1 #IfNotRow lang_constants cons_id 6
4 ## Data for language translations
8 ## version 2.6.4-pl1-Debian-1ubuntu1.1
9 ## http://www.phpmyadmin.net
12 ## Generation Time: Feb 07, 2006 at 05:39 PM
13 ## Server version: 4.1.12
14 ## PHP Version: 4.4.0-3ubuntu1
16 ## Database: `openemr`
20 ## Dumping data for table `lang_constants`
23 INSERT INTO `lang_constants` VALUES (6, 'Group');
24 INSERT INTO `lang_constants` VALUES (8, 'Username:');
25 INSERT INTO `lang_constants` VALUES (10, 'EOB Posting - Instructions');
26 INSERT INTO `lang_constants` VALUES (11, 'Zip Code');
27 INSERT INTO `lang_constants` VALUES (12, 'Last Name');
28 INSERT INTO `lang_constants` VALUES (13, 'Male');
29 INSERT INTO `lang_constants` VALUES (14, 'Female');
30 INSERT INTO `lang_constants` VALUES (15, 'Appointment Date');
31 INSERT INTO `lang_constants` VALUES (16, 'Batch Communication Tool');
32 INSERT INTO `lang_constants` VALUES (17, 'Age From:');
33 INSERT INTO `lang_constants` VALUES (18, ' Up to:');
34 INSERT INTO `lang_constants` VALUES (19, 'SSN');
35 INSERT INTO `lang_constants` VALUES (20, 'User & Group Administration');
36 INSERT INTO `lang_constants` VALUES (21, 'Logout');
37 INSERT INTO `lang_constants` VALUES (22, 'Password:');
38 INSERT INTO `lang_constants` VALUES (23, 'Login');
39 INSERT INTO `lang_constants` VALUES (24, 'Administration');
40 INSERT INTO `lang_constants` VALUES (25, 'Password');
41 INSERT INTO `lang_constants` VALUES (26, 'Reports');
42 INSERT INTO `lang_constants` VALUES (27, 'Notes');
43 INSERT INTO `lang_constants` VALUES (28, 'Billing');
44 INSERT INTO `lang_constants` VALUES (29, 'Home');
45 INSERT INTO `lang_constants` VALUES (30, 'Patient Notes');
46 INSERT INTO `lang_constants` VALUES (31, 'Authorizations');
47 INSERT INTO `lang_constants` VALUES (32, '(More)');
48 INSERT INTO `lang_constants` VALUES (33, 'Find Patient');
49 INSERT INTO `lang_constants` VALUES (34, 'New Patient');
50 INSERT INTO `lang_constants` VALUES (35, 'Name');
51 INSERT INTO `lang_constants` VALUES (36, 'ID');
52 INSERT INTO `lang_constants` VALUES (37, 'DOB');
53 INSERT INTO `lang_constants` VALUES (38, 'and');
54 INSERT INTO `lang_constants` VALUES (39, 'Patient Appointment');
55 INSERT INTO `lang_constants` VALUES (40, '(Notes and Authorizations)');
56 INSERT INTO `lang_constants` VALUES (41, 'Search');
57 INSERT INTO `lang_constants` VALUES (42, 'Category');
58 INSERT INTO `lang_constants` VALUES (43, 'Date');
59 INSERT INTO `lang_constants` VALUES (44, 'Title');
60 INSERT INTO `lang_constants` VALUES (45, 'Patient');
61 INSERT INTO `lang_constants` VALUES (46, 'Provider');
62 INSERT INTO `lang_constants` VALUES (47, 'Comments');
63 INSERT INTO `lang_constants` VALUES (48, 'duration');
64 INSERT INTO `lang_constants` VALUES (49, 'Records Found');
65 INSERT INTO `lang_constants` VALUES (50, '(New Patient)');
66 INSERT INTO `lang_constants` VALUES (51, 'All day event');
67 INSERT INTO `lang_constants` VALUES (52, 'Time');
68 INSERT INTO `lang_constants` VALUES (53, 'minutes');
69 INSERT INTO `lang_constants` VALUES (54, 'day');
70 INSERT INTO `lang_constants` VALUES (55, 'Repeats');
71 INSERT INTO `lang_constants` VALUES (56, 'until');
80 # http://www.phpmyadmin.net
83 # Generation Time: Feb 14, 2006 at 09:21 AM
84 # Server version: 4.1.12
85 # PHP Version: 4.4.0-3ubuntu1
87 # Database : `openemr`
91 # Dumping data for table `lang_definitions`
94 INSERT INTO `lang_definitions` VALUES (1, 6, 3, 'Grupo');
95 INSERT INTO `lang_definitions` VALUES (2, 8, 3, 'Usuario:');
96 INSERT INTO `lang_definitions` VALUES (5, 10, 3, 'EOB Posting - Instrucciones');
97 INSERT INTO `lang_definitions` VALUES (6, 11, 3, 'Codigo Postal');
98 INSERT INTO `lang_definitions` VALUES (7, 12, 3, 'Apellido');
99 INSERT INTO `lang_definitions` VALUES (8, 18, 3, 'Hasta:');
100 INSERT INTO `lang_definitions` VALUES (9, 17, 3, 'Edades desde:');
101 INSERT INTO `lang_definitions` VALUES (10, 15, 3, 'Fecha de Cita');
102 INSERT INTO `lang_definitions` VALUES (11, 16, 3, 'Herramienta de Comunicaciones');
103 INSERT INTO `lang_definitions` VALUES (12, 14, 3, 'Femenino');
104 INSERT INTO `lang_definitions` VALUES (13, 13, 3, 'Masculino');
105 INSERT INTO `lang_definitions` VALUES (14, 19, 3, 'Seguro Social');
106 INSERT INTO `lang_definitions` VALUES (15, 20, 3, 'Administracion de Usuarios y Grupos');
107 INSERT INTO `lang_definitions` VALUES (16, 21, 3, 'Salir');
108 INSERT INTO `lang_definitions` VALUES (17, 22, 3, 'Contrase�:');
109 INSERT INTO `lang_definitions` VALUES (18, 23, 3, 'Entrar');
110 INSERT INTO `lang_definitions` VALUES (19, 24, 3, 'Administraci�');
111 INSERT INTO `lang_definitions` VALUES (20, 25, 3, 'Contrase�');
112 INSERT INTO `lang_definitions` VALUES (21, 28, 3, 'Facturaci�');
113 INSERT INTO `lang_definitions` VALUES (22, 29, 3, 'Inicio');
114 INSERT INTO `lang_definitions` VALUES (23, 27, 3, 'Notas');
115 INSERT INTO `lang_definitions` VALUES (24, 26, 3, 'Informes');
116 INSERT INTO `lang_definitions` VALUES (25, 32, 3, '(M�)');
117 INSERT INTO `lang_definitions` VALUES (26, 31, 3, 'Autorizaci�es');
118 INSERT INTO `lang_definitions` VALUES (27, 33, 3, 'Localizar Paciente');
119 INSERT INTO `lang_definitions` VALUES (28, 30, 3, 'Notas de Paciente');
120 INSERT INTO `lang_definitions` VALUES (29, 34, 3, 'Paciente Nuevo');
121 INSERT INTO `lang_definitions` VALUES (30, 37, 3, 'Fecha Nacimiento');
122 INSERT INTO `lang_definitions` VALUES (31, 36, 3, 'Num Expediente');
123 INSERT INTO `lang_definitions` VALUES (32, 35, 3, 'Nombre');
124 INSERT INTO `lang_definitions` VALUES (33, 38, 3, 'y');
125 INSERT INTO `lang_definitions` VALUES (34, 39, 3, 'Cita(s) del Paciente');
126 INSERT INTO `lang_definitions` VALUES (35, 40, 3, '(Notas y Autorizaciones)');
127 INSERT INTO `lang_definitions` VALUES (36, 41, 3, 'Bsqueda');
128 INSERT INTO `lang_definitions` VALUES (37, 42, 3, 'Categor�');
129 INSERT INTO `lang_definitions` VALUES (38, 43, 3, 'Fecha');
130 INSERT INTO `lang_definitions` VALUES (39, 44, 3, 'T�ulo');
131 INSERT INTO `lang_definitions` VALUES (40, 45, 3, 'Paciente');
132 INSERT INTO `lang_definitions` VALUES (41, 46, 3, 'M�ico');
133 INSERT INTO `lang_definitions` VALUES (42, 47, 3, 'Notas');
134 INSERT INTO `lang_definitions` VALUES (43, 48, 3, 'Duraci�');
135 INSERT INTO `lang_definitions` VALUES (44, 49, 3, 'Expedientes Localizado');
136 INSERT INTO `lang_definitions` VALUES (45, 50, 3, '(Paciente Nuevo)');
137 INSERT INTO `lang_definitions` VALUES (46, 51, 3, 'D� completo');
138 INSERT INTO `lang_definitions` VALUES (47, 52, 3, 'Hora');
139 INSERT INTO `lang_definitions` VALUES (48, 53, 3, 'Minutos');
140 INSERT INTO `lang_definitions` VALUES (49, 54, 3, 'D�');
141 INSERT INTO `lang_definitions` VALUES (50, 55, 3, 'Repite');
142 INSERT INTO `lang_definitions` VALUES (51, 56, 3, 'Hasta');
143 INSERT INTO `lang_definitions` VALUES (52, 57, 3, 'Ver Todos');
144 INSERT INTO `lang_definitions` VALUES (53, 58, 3, 'M�');
145 INSERT INTO `lang_definitions` VALUES (54, 59, 3, 'Localizar Paciente');
146 INSERT INTO `lang_definitions` VALUES (55, 60, 3, 'Favor de ingresar datos');
147 INSERT INTO `lang_definitions` VALUES (56, 61, 3, 'Escoja Paciente');
148 INSERT INTO `lang_definitions` VALUES (57, 62, 3, 'por');
149 INSERT INTO `lang_definitions` VALUES (58, 63, 3, 'Apellido');
150 INSERT INTO `lang_definitions` VALUES (59, 64, 3, 'Volver');
151 INSERT INTO `lang_definitions` VALUES (60, 65, 3, 'Primer Nombre');
152 INSERT INTO `lang_definitions` VALUES (61, 66, 3, 'Segundo Nombre');
153 INSERT INTO `lang_definitions` VALUES (62, 67, 3, 'Nmero de Expediente');
154 INSERT INTO `lang_definitions` VALUES (63, 68, 3, 'Omitir para Autoasignaci�');
155 INSERT INTO `lang_definitions` VALUES (64, 69, 3, 'Usuario');
156 INSERT INTO `lang_definitions` VALUES (65, 70, 3, 'Informaci� de Nuevas Facilidades');
157 INSERT INTO `lang_definitions` VALUES (66, 71, 3, 'Pa�');
158 INSERT INTO `lang_definitions` VALUES (67, 72, 3, 'Direcci�');
159 INSERT INTO `lang_definitions` VALUES (69, 74, 3, 'Estado');
160 INSERT INTO `lang_definitions` VALUES (70, 75, 3, 'Ciudad');
161 INSERT INTO `lang_definitions` VALUES (71, 76, 3, 'Seguro Social Patronal');
162 INSERT INTO `lang_definitions` VALUES (72, 77, 3, 'Acepta Facturaci�');
163 INSERT INTO `lang_definitions` VALUES (73, 78, 3, 'Centro de Facturaci�');
164 INSERT INTO `lang_definitions` VALUES (74, 79, 3, 'Aplicable si es Centro de Facturaci�');
165 INSERT INTO `lang_definitions` VALUES (75, 80, 3, 'Cod�o de Lugar de Servic�');
166 INSERT INTO `lang_definitions` VALUES (76, 81, 3, 'Facturas a Nombre');
167 INSERT INTO `lang_definitions` VALUES (77, 82, 3, 'C�igo de Laboratorio Cl�ico');
168 INSERT INTO `lang_definitions` VALUES (78, 83, 3, 'Tel�ono');
169 INSERT INTO `lang_definitions` VALUES (79, 84, 3, 'como');
170 INSERT INTO `lang_definitions` VALUES (80, 85, 3, 'Editar Informaci� de Facilidades');
171 INSERT INTO `lang_definitions` VALUES (81, 86, 3, 'Informaci� de Facilidades');
172 INSERT INTO `lang_definitions` VALUES (82, 87, 3, 'Actualizar');
173 INSERT INTO `lang_definitions` VALUES (83, 88, 3, 'Administracion de Usuarios');
174 INSERT INTO `lang_definitions` VALUES (84, 89, 3, 'Usuario');
175 INSERT INTO `lang_definitions` VALUES (85, 90, 3, 'Autorizado');
176 INSERT INTO `lang_definitions` VALUES (86, 91, 3, 'Nmero de Identifcaci� Federal');
177 INSERT INTO `lang_definitions` VALUES (87, 92, 3, 'Ver Autorizaciones');
178 INSERT INTO `lang_definitions` VALUES (88, 93, 3, 'Ninguno');
179 INSERT INTO `lang_definitions` VALUES (89, 94, 3, 'Mio Solamente');
180 INSERT INTO `lang_definitions` VALUES (90, 95, 3, 'Todos');
181 INSERT INTO `lang_definitions` VALUES (91, 96, 3, 'Informaci� Addicional');
182 INSERT INTO `lang_definitions` VALUES (92, 97, 3, 'Guardar Cambios');
183 INSERT INTO `lang_definitions` VALUES (93, 98, 3, 'Dejar en Blanco para no cambiar contrase�');
184 INSERT INTO `lang_definitions` VALUES (94, 99, 3, 'Nombre de Cl�ica');
185 INSERT INTO `lang_definitions` VALUES (95, 100, 3, 'Nombre de Grupo');
186 INSERT INTO `lang_definitions` VALUES (96, 101, 3, 'Usuario Inicial');
187 INSERT INTO `lang_definitions` VALUES (97, 102, 3, 'Usuario');
188 INSERT INTO `lang_definitions` VALUES (98, 103, 3, 'Modificar');
189 INSERT INTO `lang_definitions` VALUES (99, 104, 3, 'Nombre Real');
190 INSERT INTO `lang_definitions` VALUES (100, 105, 3, 'Informaci�');
191 INSERT INTO `lang_definitions` VALUES (101, 106, 3, 'si');
192 INSERT INTO `lang_definitions` VALUES (102, 107, 3, 'Salir de Administraci�');
193 INSERT INTO `lang_definitions` VALUES (103, 108, 3, 'Ver Registro');
194 INSERT INTO `lang_definitions` VALUES (104, 109, 3, 'Registro');
195 INSERT INTO `lang_definitions` VALUES (105, 110, 3, 'Idioma');
196 INSERT INTO `lang_definitions` VALUES (106, 111, 3, 'Base de Datos');
197 INSERT INTO `lang_definitions` VALUES (107, 116, 3, 'Communicaci�');
198 INSERT INTO `lang_definitions` VALUES (108, 112, 3, 'Calendario');
199 INSERT INTO `lang_definitions` VALUES (109, 114, 3, 'Formularios');
200 INSERT INTO `lang_definitions` VALUES (110, 113, 3, 'Consultorio');
201 INSERT INTO `lang_definitions` VALUES (111, 115, 3, 'Usuarios y Grupos');
202 INSERT INTO `lang_definitions` VALUES (112, 117, 3, 'Modificar Facilidades');
203 INSERT INTO `lang_definitions` VALUES (113, 118, 3, 'Usuario Nuevo');
204 INSERT INTO `lang_definitions` VALUES (114, 119, 3, 'Grupo Nuevo');
205 INSERT INTO `lang_definitions` VALUES (115, 120, 3, 'Agrega Usuario a Grupo');
206 INSERT INTO `lang_definitions` VALUES (116, 121, 3, 'D� Laboral');
207 INSERT INTO `lang_definitions` VALUES (117, 123, 3, 'mes');
208 INSERT INTO `lang_definitions` VALUES (118, 122, 3, 'semana');
209 INSERT INTO `lang_definitions` VALUES (119, 124, 3, 'a�');
210 INSERT INTO `lang_definitions` VALUES (120, 126, 3, '2ndo');
211 INSERT INTO `lang_definitions` VALUES (121, 127, 3, '3er');
212 INSERT INTO `lang_definitions` VALUES (122, 128, 3, '4to');
213 INSERT INTO `lang_definitions` VALUES (123, 129, 3, '5to');
214 INSERT INTO `lang_definitions` VALUES (124, 130, 3, '6to');
215 INSERT INTO `lang_definitions` VALUES (125, 125, 3, 'cada');
216 INSERT INTO `lang_definitions` VALUES (126, 131, 3, 'Localizar');
217 INSERT INTO `lang_definitions` VALUES (127, 132, 3, 'Cancelar');
218 INSERT INTO `lang_definitions` VALUES (128, 133, 3, 'Guardar');
219 INSERT INTO `lang_definitions` VALUES (129, 134, 3, 'Eliminar');
220 INSERT INTO `lang_definitions` VALUES (130, 135, 3, 'Registro');
221 INSERT INTO `lang_definitions` VALUES (131, 136, 3, 'Evento');
222 INSERT INTO `lang_definitions` VALUES (132, 137, 3, 'Atenci�');
223 INSERT INTO `lang_definitions` VALUES (133, 138, 3, 'Registrado');
224 INSERT INTO `lang_definitions` VALUES (134, 139, 3, 'No Registrado');
225 INSERT INTO `lang_definitions` VALUES (135, 140, 3, 'Administraci� de Formularios');
226 INSERT INTO `lang_definitions` VALUES (136, 142, 3, 'desactivado');
227 INSERT INTO `lang_definitions` VALUES (137, 141, 3, 'activado');
228 INSERT INTO `lang_definitions` VALUES (138, 143, 3, 'Instalado');
229 INSERT INTO `lang_definitions` VALUES (139, 144, 3, 'PHP descomprimido');
230 INSERT INTO `lang_definitions` VALUES (140, 145, 3, 'Instalar');
231 INSERT INTO `lang_definitions` VALUES (141, 146, 3, 'Informe de Facturaci�');
232 INSERT INTO `lang_definitions` VALUES (142, 147, 3, 'Notas Oficiales');
233 INSERT INTO `lang_definitions` VALUES (143, 149, 3, 'Activos');
234 INSERT INTO `lang_definitions` VALUES (144, 150, 3, 'Inactivos');
235 INSERT INTO `lang_definitions` VALUES (145, 148, 3, 'Ver');
236 INSERT INTO `lang_definitions` VALUES (146, 151, 3, 'Modificar Actividad');
237 INSERT INTO `lang_definitions` VALUES (147, 152, 3, 'Agregar Nota Nueva');
238 INSERT INTO `lang_definitions` VALUES (148, 153, 3, 'Modificar Contrase�');
239 INSERT INTO `lang_definitions` VALUES (149, 154, 3, 'Al cambiar su contrase�, Re-valida.');
240 INSERT INTO `lang_definitions` VALUES (150, 155, 3, 'Nuevamente');
241 INSERT INTO `lang_definitions` VALUES (151, 156, 3, 'O');
242 INSERT INTO `lang_definitions` VALUES (152, 157, 3, 'Sexo');
243 INSERT INTO `lang_definitions` VALUES (153, 158, 3, 'Formato');
244 INSERT INTO `lang_definitions` VALUES (154, 159, 3, 'Citado entre');
245 INSERT INTO `lang_definitions` VALUES (155, 160, 3, 'Visto desde');
246 INSERT INTO `lang_definitions` VALUES (156, 161, 3, 'No visto desde');
247 INSERT INTO `lang_definitions` VALUES (157, 162, 3, 'Organizado por');
248 INSERT INTO `lang_definitions` VALUES (158, 163, 3, 'Correo Electronico por');
249 INSERT INTO `lang_definitions` VALUES (159, 164, 3, 'Tema de Correo Electronico');
250 INSERT INTO `lang_definitions` VALUES (160, 165, 3, 'Texto de Correo Electronico, Utiliza formato de Tag: ***NAME*** , eg. Saludos ***NAME***');
251 INSERT INTO `lang_definitions` VALUES (161, 166, 3, 'Processo Lento');
252 INSERT INTO `lang_definitions` VALUES (162, 167, 3, 'Solamente para uso de Correo Electronico a pacientes');
253 INSERT INTO `lang_definitions` VALUES (163, 168, 3, 'Edad desde');
254 INSERT INTO `lang_definitions` VALUES (164, 169, 3, 'Hasta');
255 INSERT INTO `lang_definitions` VALUES (165, 171, 3, 'Contacto');
256 INSERT INTO `lang_definitions` VALUES (166, 172, 3, 'No enviado por error con servidor');
257 INSERT INTO `lang_definitions` VALUES (167, 173, 3, 'Correo Electronico no enviado');
258 INSERT INTO `lang_definitions` VALUES (168, 170, 3, 'Empleo');
259 INSERT INTO `lang_definitions` VALUES (169, 174, 3, 'Ignorar HIPAA');
260 INSERT INTO `lang_definitions` VALUES (170, 175, 3, 'Archivo CSV');
261 INSERT INTO `lang_definitions` VALUES (171, 177, 3, 'Correo Electr�ico');
262 INSERT INTO `lang_definitions` VALUES (172, 176, 3, 'Lista de llamadas telef�icas');
263 INSERT INTO `lang_definitions` VALUES (173, 178, 3, 'Cualquier');
267 #IfMissingColumn registry priority
268 ## alters to categorize forms / per Mark
269 ALTER TABLE registry ADD COLUMN priority INT DEFAULT 0 AFTER date;
270 ALTER TABLE registry ADD COLUMN category VARCHAR(255) DEFAULT "category" AFTER priority;
271 ALTER TABLE registry ADD COLUMN nickname VARCHAR(255) DEFAULT '' AFTER category;
274 #IfMissingColumn patient_data phone_pharmacy
275 ALTER TABLE patient_data
276 ADD phone_pharmacy varchar(255) NOT NULL default '';
280 ## array table for storing configuration data and string lists etc...
281 CREATE TABLE `array` (
282 `array_key` varchar(255) default NULL,
283 `array_value` longtext
287 #IfMissingColumn patient_data drivers_license
288 ALTER TABLE patient_data
289 ADD drivers_license varchar(255) NOT NULL default '';
292 #IfNotColumnType form_vitals oxygen_saturation float(5,2)
293 ALTER TABLE form_vitals
294 MODIFY oxygen_saturation float(5,2) default 0;
299 drug_id int(11) NOT NULL auto_increment,
300 name varchar(255) NOT NULL DEFAULT '',
301 ndc_number varchar(20) NOT NULL DEFAULT '',
302 on_order int(11) NOT NULL DEFAULT 0,
303 reorder_point int(11) NOT NULL DEFAULT 0,
304 last_notify date NOT NULL DEFAULT '0000-00-00',
305 reactions text NOT NULL DEFAULT '',
306 form int(3) NOT NULL DEFAULT 0,
307 size int(11) NOT NULL DEFAULT 0,
308 unit int(11) NOT NULL DEFAULT 0,
309 route int(11) NOT NULL DEFAULT 0,
310 substitute int(11) NOT NULL DEFAULT 0,
311 PRIMARY KEY (drug_id)
313 CREATE TABLE drug_inventory (
314 inventory_id int(11) NOT NULL auto_increment,
315 drug_id int(11) NOT NULL,
316 lot_number varchar(20) NOT NULL DEFAULT '',
317 expiration date DEFAULT NULL,
318 manufacturer varchar(255) NOT NULL DEFAULT '',
319 on_hand int(11) NOT NULL DEFAULT 0,
320 last_notify date NOT NULL DEFAULT '0000-00-00',
321 PRIMARY KEY (inventory_id)
323 CREATE TABLE drug_sales (
324 sale_id int(11) NOT NULL auto_increment,
325 drug_id int(11) NOT NULL,
326 inventory_id int(11) NOT NULL,
327 prescription_id int(11) NOT NULL DEFAULT 0,
328 pid int(11) NOT NULL DEFAULT 0,
329 encounter int(11) NOT NULL DEFAULT 0,
330 user varchar(255) NOT NULL DEFAULT '',
331 sale_date date NOT NULL,
332 quantity int(11) NOT NULL DEFAULT 0,
333 fee decimal(7,2) NOT NULL DEFAULT 0.00,
334 PRIMARY KEY (sale_id)
338 #IfMissingColumn prescriptions drug_id
339 ALTER TABLE prescriptions
340 ADD drug_id int(11) NOT NULL DEFAULT 0;
343 #IfMissingColumn patient_data pharmacy_id
344 ALTER TABLE patient_data
345 ADD pharmacy_id int(11) NOT NULL DEFAULT 0,
346 ADD referral_source varchar(30) NOT NULL DEFAULT '';
349 #IfNotRow lang_languages lang_id 4
350 # new options in lang tables
351 INSERT INTO `lang_languages` (`lang_id`, `lang_code`, `lang_description`) VALUES (4, 'de', 'German');
352 INSERT INTO `lang_languages` (`lang_id`, `lang_code`, `lang_description`) VALUES (5, 'du', 'Dutch');
353 INSERT INTO `lang_languages` (`lang_id`, `lang_code`, `lang_description`) VALUES (6, 'he', 'Hebrew');
356 #IfMissingColumn openemr_postcalendar_events pc_prefcatid
357 ALTER TABLE openemr_postcalendar_events
358 ADD pc_prefcatid int(11) NOT NULL DEFAULT 0;
361 #IfMissingColumn prescriptions medication
362 # Option to deal with prescriptions on the medication list
363 ALTER TABLE prescriptions
364 ADD medication int(11);
367 #IfMissingColumn facility fax
368 # Add fax to facility table
370 ADD fax varchar(30) default NULL;
373 #IfNotTable drug_templates
374 CREATE TABLE drug_templates (
375 drug_id int(11) NOT NULL,
376 selector varchar(255) NOT NULL,
377 dosage varchar(10) NOT NULL DEFAULT '',
378 period int(11) NOT NULL DEFAULT 0,
379 quantity int(11) NOT NULL DEFAULT 0,
380 refills int(11) NOT NULL DEFAULT 0,
381 PRIMARY KEY (drug_id, selector)
385 #IfMissingColumn drug_inventory destroy_date
386 ALTER TABLE drug_inventory
387 ADD destroy_date date DEFAULT NULL,
388 ADD destroy_method varchar(255) NOT NULL DEFAULT '',
389 ADD destroy_witness varchar(255) NOT NULL DEFAULT '',
390 ADD destroy_notes varchar(255) NOT NULL DEFAULT '';
393 #IfNotColumnType prescriptions size float
394 ALTER TABLE prescriptions
395 MODIFY `size` float unsigned DEFAULT NULL;
398 #IfNotColumnType drugs size float
400 MODIFY `size` float unsigned NOT NULL DEFAULT 0;
403 #IfMissingColumn form_encounter sensitivity
404 ALTER TABLE form_encounter
405 ADD sensitivity varchar(30) NOT NULL DEFAULT '';
408 #IfMissingColumn lists returndate
410 ADD returndate date DEFAULT NULL;
413 #IfMissingColumn users active
415 ADD active tinyint(1) NOT NULL DEFAULT 1,
416 ADD npi varchar(15) NOT NULL DEFAULT '',
417 ADD specialty varchar(255) NOT NULL DEFAULT '',
418 ADD billname varchar(255) NOT NULL DEFAULT '',
419 ADD email varchar(255) NOT NULL DEFAULT '',
420 ADD url varchar(255) NOT NULL DEFAULT '',
421 ADD street varchar(60) NOT NULL DEFAULT '',
422 ADD city varchar(30) NOT NULL DEFAULT '',
423 ADD state varchar(30) NOT NULL DEFAULT '',
424 ADD zip varchar(20) NOT NULL DEFAULT '',
425 ADD phone varchar(30) NOT NULL DEFAULT '',
426 ADD fax varchar(30) NOT NULL DEFAULT '',
427 ADD title varchar(30) NOT NULL DEFAULT '',
428 ADD phonew1 varchar(30) NOT NULL DEFAULT '',
429 ADD phonew2 varchar(30) NOT NULL DEFAULT '',
430 ADD phonecell varchar(30) NOT NULL DEFAULT '',
431 ADD assistant varchar(255) NOT NULL DEFAULT '',
432 ADD street2 varchar(60) NOT NULL DEFAULT '',
433 ADD city2 varchar(30) NOT NULL DEFAULT '',
434 ADD state2 varchar(30) NOT NULL DEFAULT '',
435 ADD zip2 varchar(20) NOT NULL DEFAULT '';
438 #IfMissingColumn patient_data hipaa_notice
439 ALTER TABLE patient_data
440 ADD `hipaa_notice` VARCHAR(3) DEFAULT 'NO' NOT NULL,
441 ADD `hipaa_message` VARCHAR(20);
444 #IfNotColumnType prescriptions dosage varchar(100)
445 ALTER TABLE prescriptions
446 MODIFY `dosage` varchar(100) DEFAULT NULL,
447 MODIFY `quantity` varchar(11) DEFAULT NULL;