Bug fix: Do not select inactive prescriptions when click 'Check All'.
[openemr.git] / sql / database.sql
blob18fe4a3794fc7f3c9309f1712967d2295a40769d
1 --
2 -- Database: `openemr`
3 -- 
5 -- --------------------------------------------------------
7 -- 
8 -- Table structure for table `addresses`
9 -- 
11 DROP TABLE IF EXISTS `addresses`;
12 CREATE TABLE `addresses` (
13   `id` int(11) NOT NULL default '0',
14   `line1` varchar(255) default NULL,
15   `line2` varchar(255) default NULL,
16   `city` varchar(255) default NULL,
17   `state` varchar(35) default NULL,
18   `zip` varchar(10) default NULL,
19   `plus_four` varchar(4) default NULL,
20   `country` varchar(255) default NULL,
21   `foreign_id` int(11) default NULL,
22   PRIMARY KEY  (`id`),
23   KEY `foreign_id` (`foreign_id`)
24 ) ENGINE=MyISAM;
26 -- --------------------------------------------------------
28 -- 
29 -- Table structure for table `array`
30 -- 
32 DROP TABLE IF EXISTS `array`;
33 CREATE TABLE `array` (
34   `array_key` varchar(255) default NULL,
35   `array_value` longtext
36 ) ENGINE=MyISAM;
38 -- --------------------------------------------------------
40 -- 
41 -- Table structure for table `batchcom`
42 -- 
44 DROP TABLE IF EXISTS `batchcom`;
45 CREATE TABLE `batchcom` (
46   `id` bigint(20) NOT NULL auto_increment,
47   `patient_id` int(11) NOT NULL default '0',
48   `sent_by` bigint(20) NOT NULL default '0',
49   `msg_type` varchar(60) default NULL,
50   `msg_subject` varchar(255) default NULL,
51   `msg_text` mediumtext,
52   `msg_date_sent` datetime NOT NULL default '0000-00-00 00:00:00',
53   PRIMARY KEY  (`id`)
54 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
56 -- --------------------------------------------------------
58 -- 
59 -- Table structure for table `billing`
60 -- 
62 DROP TABLE IF EXISTS `billing`;
63 CREATE TABLE `billing` (
64   `id` int(11) NOT NULL auto_increment,
65   `date` datetime default NULL,
66   `code_type` varchar(7) default NULL,
67   `code` varchar(9) default NULL,
68   `pid` int(11) default NULL,
69   `provider_id` int(11) default NULL,
70   `user` int(11) default NULL,
71   `groupname` varchar(255) default NULL,
72   `authorized` tinyint(1) default NULL,
73   `encounter` int(11) default NULL,
74   `code_text` longtext,
75   `billed` tinyint(1) default NULL,
76   `activity` tinyint(1) default NULL,
77   `payer_id` int(11) default NULL,
78   `bill_process` tinyint(2) NOT NULL default '0',
79   `bill_date` datetime default NULL,
80   `process_date` datetime default NULL,
81   `process_file` varchar(255) default NULL,
82   `modifier` varchar(5) default NULL,
83   `units` tinyint(3) default NULL,
84   `fee` decimal(12,2) default NULL,
85   `justify` varchar(255) default NULL,
86   `target` varchar(30) default NULL,
87   `x12_partner_id` int(11) default NULL,
88   `ndc_info` varchar(255) default NULL,
89   PRIMARY KEY  (`id`),
90   KEY `pid` (`pid`)
91 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
93 -- --------------------------------------------------------
95 -- 
96 -- Table structure for table `categories`
97 -- 
99 DROP TABLE IF EXISTS `categories`;
100 CREATE TABLE `categories` (
101   `id` int(11) NOT NULL default '0',
102   `name` varchar(255) default NULL,
103   `value` varchar(255) default NULL,
104   `parent` int(11) NOT NULL default '0',
105   `lft` int(11) NOT NULL default '0',
106   `rght` int(11) NOT NULL default '0',
107   PRIMARY KEY  (`id`),
108   KEY `parent` (`parent`),
109   KEY `lft` (`lft`,`rght`)
110 ) ENGINE=MyISAM;
112 -- 
113 -- Dumping data for table `categories`
114 -- 
116 INSERT INTO `categories` VALUES (1, 'Categories', '', 0, 0, 19);
117 INSERT INTO `categories` VALUES (2, 'Lab Report', '', 1, 1, 2);
118 INSERT INTO `categories` VALUES (3, 'Medical Record', '', 1, 3, 4);
119 INSERT INTO `categories` VALUES (4, 'Patient Information', '', 1, 5, 10);
120 INSERT INTO `categories` VALUES (5, 'Patient ID card', '', 4, 6, 7);
121 INSERT INTO `categories` VALUES (6, 'Advance Directive', '', 1, 11, 18);
122 INSERT INTO `categories` VALUES (7, 'Do Not Resuscitate Order', '', 6, 12, 13);
123 INSERT INTO `categories` VALUES (8, 'Durable Power of Attorney', '', 6, 14, 15);
124 INSERT INTO `categories` VALUES (9, 'Living Will', '', 6, 16, 17);
125 INSERT INTO `categories` VALUES (10, 'Patient Photograph', '', 4, 8, 9);
127 -- --------------------------------------------------------
129 -- 
130 -- Table structure for table `categories_seq`
131 -- 
133 DROP TABLE IF EXISTS `categories_seq`;
134 CREATE TABLE `categories_seq` (
135   `id` int(11) NOT NULL default '0',
136   PRIMARY KEY  (`id`)
137 ) ENGINE=MyISAM;
139 -- 
140 -- Dumping data for table `categories_seq`
141 -- 
143 INSERT INTO `categories_seq` VALUES (10);
145 -- --------------------------------------------------------
147 -- 
148 -- Table structure for table `categories_to_documents`
149 -- 
151 DROP TABLE IF EXISTS `categories_to_documents`;
152 CREATE TABLE `categories_to_documents` (
153   `category_id` int(11) NOT NULL default '0',
154   `document_id` int(11) NOT NULL default '0',
155   PRIMARY KEY  (`category_id`,`document_id`)
156 ) ENGINE=MyISAM;
158 -- --------------------------------------------------------
160 -- 
161 -- Table structure for table `claims`
162 -- 
164 DROP TABLE IF EXISTS `claims`;
165 CREATE TABLE `claims` (
166   `patient_id` int(11) NOT NULL,
167   `encounter_id` int(11) NOT NULL,
168   `version` int(10) unsigned NOT NULL auto_increment,
169   `payer_id` int(11) NOT NULL default '0',
170   `status` tinyint(2) NOT NULL default '0',
171   `payer_type` tinyint(4) NOT NULL default '0',
172   `bill_process` tinyint(2) NOT NULL default '0',
173   `bill_time` datetime default NULL,
174   `process_time` datetime default NULL,
175   `process_file` varchar(255) default NULL,
176   `target` varchar(30) default NULL,
177   `x12_partner_id` int(11) NOT NULL default '0',
178   PRIMARY KEY  (`patient_id`,`encounter_id`,`version`)
179 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
181 -- --------------------------------------------------------
183 -- 
184 -- Table structure for table `codes`
185 -- 
187 DROP TABLE IF EXISTS `codes`;
188 CREATE TABLE `codes` (
189   `id` int(11) NOT NULL auto_increment,
190   `code_text` varchar(255) NOT NULL default '',
191   `code_text_short` varchar(24) NOT NULL default '',
192   `code` varchar(10) NOT NULL default '',
193   `code_type` tinyint(2) default NULL,
194   `modifier` varchar(5) NOT NULL default '',
195   `units` tinyint(3) default NULL,
196   `fee` decimal(12,2) default NULL,
197   `superbill` varchar(31) NOT NULL default '',
198   `related_code` varchar(255) NOT NULL default '',
199   `taxrates` varchar(255) NOT NULL default '',
200   `cyp_factor` float NOT NULL DEFAULT 0 COMMENT 'quantity representing a years supply',
201   `active` TINYINT(1) DEFAULT 1 COMMENT '0 = inactive, 1 = active',
202   `reportable` TINYINT(1) DEFAULT 0 COMMENT '0 = non-reportable, 1 = reportable',
203   PRIMARY KEY  (`id`),
204   KEY `code` (`code`)
205 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
206 -- --------------------------------------------------------
208 -- 
209 -- Table structure for table `syndromic_surveillance`
210 -- 
212 DROP TABLE IF EXISTS `syndromic_surveillance`;
213 CREATE TABLE `syndromic_surveillance` (
214   `id` bigint(20) NOT NULL auto_increment,
215   `lists_id` bigint(20) NOT NULL,
216   `submission_date` datetime NOT NULL,
217   `filename` varchar(255) NOT NULL default '',
218   PRIMARY KEY  (`id`),
219   KEY (`lists_id`)
220 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
222 -- --------------------------------------------------------
224 -- 
225 -- Table structure for table `config`
226 -- 
228 DROP TABLE IF EXISTS `config`;
229 CREATE TABLE `config` (
230   `id` int(11) NOT NULL default '0',
231   `name` varchar(255) default NULL,
232   `value` varchar(255) default NULL,
233   `parent` int(11) NOT NULL default '0',
234   `lft` int(11) NOT NULL default '0',
235   `rght` int(11) NOT NULL default '0',
236   PRIMARY KEY  (`id`),
237   KEY `parent` (`parent`),
238   KEY `lft` (`lft`,`rght`)
239 ) ENGINE=MyISAM;
241 -- --------------------------------------------------------
243 -- 
244 -- Table structure for table `config_seq`
245 -- 
247 DROP TABLE IF EXISTS `config_seq`;
248 CREATE TABLE `config_seq` (
249   `id` int(11) NOT NULL default '0',
250   PRIMARY KEY  (`id`)
251 ) ENGINE=MyISAM;
253 -- 
254 -- Dumping data for table `config_seq`
255 -- 
257 INSERT INTO `config_seq` VALUES (0);
259 -- --------------------------------------------------------
261 -- 
262 -- Table structure for table `documents`
263 -- 
265 DROP TABLE IF EXISTS `documents`;
266 CREATE TABLE `documents` (
267   `id` int(11) NOT NULL default '0',
268   `type` enum('file_url','blob','web_url') default NULL,
269   `size` int(11) default NULL,
270   `date` datetime default NULL,
271   `url` varchar(255) default NULL,
272   `mimetype` varchar(255) default NULL,
273   `pages` int(11) default NULL,
274   `owner` int(11) default NULL,
275   `revision` timestamp NOT NULL,
276   `foreign_id` int(11) default NULL,
277   `docdate` date default NULL,
278   `hash` varchar(40) DEFAULT NULL COMMENT '40-character SHA-1 hash of document',
279   `list_id` bigint(20) NOT NULL default '0',
280   PRIMARY KEY  (`id`),
281   KEY `revision` (`revision`),
282   KEY `foreign_id` (`foreign_id`),
283   KEY `owner` (`owner`)
284 ) ENGINE=MyISAM;
286 -- --------------------------------------------------------
288 -- 
289 -- Table structure for table `drug_inventory`
290 -- 
292 DROP TABLE IF EXISTS `drug_inventory`;
293 CREATE TABLE `drug_inventory` (
294   `inventory_id` int(11) NOT NULL auto_increment,
295   `drug_id` int(11) NOT NULL,
296   `lot_number` varchar(20) default NULL,
297   `expiration` date default NULL,
298   `manufacturer` varchar(255) default NULL,
299   `on_hand` int(11) NOT NULL default '0',
300   `warehouse_id` varchar(31) NOT NULL DEFAULT '',
301   `vendor_id` bigint(20) NOT NULL DEFAULT 0,
302   `last_notify` date NOT NULL default '0000-00-00',
303   `destroy_date` date default NULL,
304   `destroy_method` varchar(255) default NULL,
305   `destroy_witness` varchar(255) default NULL,
306   `destroy_notes` varchar(255) default NULL,
307   PRIMARY KEY  (`inventory_id`)
308 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
310 -- --------------------------------------------------------
312 -- 
313 -- Table structure for table `drug_sales`
314 -- 
316 DROP TABLE IF EXISTS `drug_sales`;
317 CREATE TABLE `drug_sales` (
318   `sale_id` int(11) NOT NULL auto_increment,
319   `drug_id` int(11) NOT NULL,
320   `inventory_id` int(11) NOT NULL,
321   `prescription_id` int(11) NOT NULL default '0',
322   `pid` int(11) NOT NULL default '0',
323   `encounter` int(11) NOT NULL default '0',
324   `user` varchar(255) default NULL,
325   `sale_date` date NOT NULL,
326   `quantity` int(11) NOT NULL default '0',
327   `fee` decimal(12,2) NOT NULL default '0.00',
328   `billed` tinyint(1) NOT NULL default '0' COMMENT 'indicates if the sale is posted to accounting',
329   `xfer_inventory_id` int(11) NOT NULL DEFAULT 0,
330   `distributor_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references users.id',
331   `notes` varchar(255) NOT NULL DEFAULT '',
332   PRIMARY KEY  (`sale_id`)
333 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
335 -- --------------------------------------------------------
337 -- 
338 -- Table structure for table `drug_templates`
339 -- 
341 DROP TABLE IF EXISTS `drug_templates`;
342 CREATE TABLE `drug_templates` (
343   `drug_id` int(11) NOT NULL,
344   `selector` varchar(255) NOT NULL default '',
345   `dosage` varchar(10) default NULL,
346   `period` int(11) NOT NULL default '0',
347   `quantity` int(11) NOT NULL default '0',
348   `refills` int(11) NOT NULL default '0',
349   `taxrates` varchar(255) default NULL,
350   PRIMARY KEY  (`drug_id`,`selector`)
351 ) ENGINE=MyISAM;
353 -- --------------------------------------------------------
355 -- 
356 -- Table structure for table `drugs`
357 -- 
359 DROP TABLE IF EXISTS `drugs`;
360 CREATE TABLE `drugs` (
361   `drug_id` int(11) NOT NULL auto_increment,
362   `name` varchar(255) NOT NULL DEFAULT '',
363   `ndc_number` varchar(20) NOT NULL DEFAULT '',
364   `on_order` int(11) NOT NULL default '0',
365   `reorder_point` int(11) NOT NULL default '0',
366   `last_notify` date NOT NULL default '0000-00-00',
367   `reactions` text,
368   `form` int(3) NOT NULL default '0',
369   `size` float unsigned NOT NULL default '0',
370   `unit` int(11) NOT NULL default '0',
371   `route` int(11) NOT NULL default '0',
372   `substitute` int(11) NOT NULL default '0',
373   `related_code` varchar(255) NOT NULL DEFAULT '' COMMENT 'may reference a related codes.code',
374   `cyp_factor` float NOT NULL DEFAULT 0 COMMENT 'quantity representing a years supply',
375   `active` TINYINT(1) DEFAULT 1 COMMENT '0 = inactive, 1 = active',
376   `allow_combining` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 = allow filling an order from multiple lots',
377   `allow_multiple`  tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = allow multiple lots at one warehouse',
378   PRIMARY KEY  (`drug_id`)
379 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
381 -- --------------------------------------------------------
384 -- Table structure for table `eligibility_response`
387 DROP TABLE IF EXISTS `eligibility_response`;
388 CREATE TABLE `eligibility_response` (
389   `response_id` bigint(20) NOT NULL auto_increment,
390   `response_description` varchar(255) default NULL,
391   `response_status` enum('A','D') NOT NULL default 'A',
392   `response_vendor_id` bigint(20) default NULL,
393   `response_create_date` date default NULL,
394   `response_modify_date` date default NULL,
395   PRIMARY KEY  (`response_id`)
396 ) ENGINE=MyISAM AUTO_INCREMENT=1;
398 -- --------------------------------------------------------
401 -- Table structure for table `eligibility_verification`
404 DROP TABLE IF EXISTS `eligibility_verification`;
405 CREATE TABLE `eligibility_verification` (
406   `verification_id` bigint(20) NOT NULL auto_increment,
407   `response_id` bigint(20) default NULL,
408   `insurance_id` bigint(20) default NULL,
409   `eligibility_check_date` datetime default NULL,
410   `copay` int(11) default NULL,
411   `deductible` int(11) default NULL,
412   `deductiblemet` enum('Y','N') default 'Y',
413   `create_date` date default NULL,
414   PRIMARY KEY  (`verification_id`),
415   KEY `insurance_id` (`insurance_id`)
416 ) ENGINE=MyISAM AUTO_INCREMENT=1;
418 -- --------------------------------------------------------
420 -- 
421 -- Table structure for table `employer_data`
422 -- 
424 DROP TABLE IF EXISTS `employer_data`;
425 CREATE TABLE `employer_data` (
426   `id` bigint(20) NOT NULL auto_increment,
427   `name` varchar(255) default NULL,
428   `street` varchar(255) default NULL,
429   `postal_code` varchar(255) default NULL,
430   `city` varchar(255) default NULL,
431   `state` varchar(255) default NULL,
432   `country` varchar(255) default NULL,
433   `date` datetime default NULL,
434   `pid` bigint(20) NOT NULL default '0',
435   PRIMARY KEY  (`id`),
436   KEY `pid` (`pid`)
437 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
439 -- --------------------------------------------------------
441 -- 
442 -- Table structure for table `facility`
443 -- 
445 DROP TABLE IF EXISTS `facility`;
446 CREATE TABLE `facility` (
447   `id` int(11) NOT NULL auto_increment,
448   `name` varchar(255) default NULL,
449   `phone` varchar(30) default NULL,
450   `fax` varchar(30) default NULL,
451   `street` varchar(255) default NULL,
452   `city` varchar(255) default NULL,
453   `state` varchar(50) default NULL,
454   `postal_code` varchar(11) default NULL,
455   `country_code` varchar(10) default NULL,
456   `federal_ein` varchar(15) default NULL,
457   `service_location` tinyint(1) NOT NULL default '1',
458   `billing_location` tinyint(1) NOT NULL default '0',
459   `accepts_assignment` tinyint(1) NOT NULL default '0',
460   `pos_code` tinyint(4) default NULL,
461   `x12_sender_id` varchar(25) default NULL,
462   `attn` varchar(65) default NULL,
463   `domain_identifier` varchar(60) default NULL,
464   `facility_npi` varchar(15) default NULL,
465   `tax_id_type` VARCHAR(31) NOT NULL DEFAULT '',
466   PRIMARY KEY  (`id`)
467 ) ENGINE=MyISAM AUTO_INCREMENT=4 ;
469 -- 
470 -- Dumping data for table `facility`
471 -- 
473 INSERT INTO `facility` VALUES (3, 'Your Clinic Name Here', '000-000-0000', '000-000-0000', '', '', '', '', '', '', 1, 0, 0, NULL, '', '', '', '', '');
475 -- --------------------------------------------------------
477 -- 
478 -- Table structure for table `fee_sheet_options`
479 -- 
481 DROP TABLE IF EXISTS `fee_sheet_options`;
482 CREATE TABLE `fee_sheet_options` (
483   `fs_category` varchar(63) default NULL,
484   `fs_option` varchar(63) default NULL,
485   `fs_codes` varchar(255) default NULL
486 ) ENGINE=MyISAM;
488 -- 
489 -- Dumping data for table `fee_sheet_options`
490 -- 
492 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '1Brief', 'CPT4|99201|');
493 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '2Limited', 'CPT4|99202|');
494 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '3Detailed', 'CPT4|99203|');
495 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '4Extended', 'CPT4|99204|');
496 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '5Comprehensive', 'CPT4|99205|');
497 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '1Brief', 'CPT4|99211|');
498 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '2Limited', 'CPT4|99212|');
499 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '3Detailed', 'CPT4|99213|');
500 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '4Extended', 'CPT4|99214|');
501 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '5Comprehensive', 'CPT4|99215|');
503 -- --------------------------------------------------------
505 -- 
506 -- Table structure for table `form_dictation`
507 -- 
509 DROP TABLE IF EXISTS `form_dictation`;
510 CREATE TABLE `form_dictation` (
511   `id` bigint(20) NOT NULL auto_increment,
512   `date` datetime default NULL,
513   `pid` bigint(20) default NULL,
514   `user` varchar(255) default NULL,
515   `groupname` varchar(255) default NULL,
516   `authorized` tinyint(4) default NULL,
517   `activity` tinyint(4) default NULL,
518   `dictation` longtext,
519   `additional_notes` longtext,
520   PRIMARY KEY  (`id`)
521 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
523 -- --------------------------------------------------------
525 -- 
526 -- Table structure for table `form_encounter`
527 -- 
529 DROP TABLE IF EXISTS `form_encounter`;
530 CREATE TABLE `form_encounter` (
531   `id` bigint(20) NOT NULL auto_increment,
532   `date` datetime default NULL,
533   `reason` longtext,
534   `facility` longtext,
535   `facility_id` int(11) NOT NULL default '0',
536   `pid` bigint(20) default NULL,
537   `encounter` bigint(20) default NULL,
538   `onset_date` datetime default NULL,
539   `sensitivity` varchar(30) default NULL,
540   `billing_note` text,
541   `pc_catid` int(11) NOT NULL default '5' COMMENT 'event category from openemr_postcalendar_categories',
542   `last_level_billed` int  NOT NULL DEFAULT 0 COMMENT '0=none, 1=ins1, 2=ins2, etc',
543   `last_level_closed` int  NOT NULL DEFAULT 0 COMMENT '0=none, 1=ins1, 2=ins2, etc',
544   `last_stmt_date`    date DEFAULT NULL,
545   `stmt_count`        int  NOT NULL DEFAULT 0,
546   `provider_id` INT(11) DEFAULT '0' COMMENT 'default and main provider for this visit',
547   `supervisor_id` INT(11) DEFAULT '0' COMMENT 'supervising provider, if any, for this visit',
548   `invoice_refno` varchar(31) NOT NULL DEFAULT '',
549   `referral_source` varchar(31) NOT NULL DEFAULT '',
550   PRIMARY KEY  (`id`),
551   KEY `pid` (`pid`)
552 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
554 -- --------------------------------------------------------
556 -- 
557 -- Table structure for table `form_misc_billing_options`
558 -- 
560 DROP TABLE IF EXISTS `form_misc_billing_options`;
561 CREATE TABLE `form_misc_billing_options` (
562   `id` bigint(20) NOT NULL auto_increment,
563   `date` datetime default NULL,
564   `pid` bigint(20) default NULL,
565   `user` varchar(255) default NULL,
566   `groupname` varchar(255) default NULL,
567   `authorized` tinyint(4) default NULL,
568   `activity` tinyint(4) default NULL,
569   `employment_related` tinyint(1) default NULL,
570   `auto_accident` tinyint(1) default NULL,
571   `accident_state` varchar(2) default NULL,
572   `other_accident` tinyint(1) default NULL,
573   `outside_lab` tinyint(1) default NULL,
574   `lab_amount` decimal(5,2) default NULL,
575   `is_unable_to_work` tinyint(1) default NULL,
576   `off_work_from` date default NULL,
577   `off_work_to` date default NULL,
578   `is_hospitalized` tinyint(1) default NULL,
579   `hospitalization_date_from` date default NULL,
580   `hospitalization_date_to` date default NULL,
581   `medicaid_resubmission_code` varchar(10) default NULL,
582   `medicaid_original_reference` varchar(15) default NULL,
583   `prior_auth_number` varchar(20) default NULL,
584   `comments` varchar(255) default NULL,
585   `replacement_claim` tinyint(1) default 0,
586   PRIMARY KEY  (`id`)
587 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
589 -- --------------------------------------------------------
591 -- 
592 -- Table structure for table `form_reviewofs`
593 -- 
595 DROP TABLE IF EXISTS `form_reviewofs`;
596 CREATE TABLE `form_reviewofs` (
597   `id` bigint(20) NOT NULL auto_increment,
598   `date` datetime default NULL,
599   `pid` bigint(20) default NULL,
600   `user` varchar(255) default NULL,
601   `groupname` varchar(255) default NULL,
602   `authorized` tinyint(4) default NULL,
603   `activity` tinyint(4) default NULL,
604   `fever` varchar(5) default NULL,
605   `chills` varchar(5) default NULL,
606   `night_sweats` varchar(5) default NULL,
607   `weight_loss` varchar(5) default NULL,
608   `poor_appetite` varchar(5) default NULL,
609   `insomnia` varchar(5) default NULL,
610   `fatigued` varchar(5) default NULL,
611   `depressed` varchar(5) default NULL,
612   `hyperactive` varchar(5) default NULL,
613   `exposure_to_foreign_countries` varchar(5) default NULL,
614   `cataracts` varchar(5) default NULL,
615   `cataract_surgery` varchar(5) default NULL,
616   `glaucoma` varchar(5) default NULL,
617   `double_vision` varchar(5) default NULL,
618   `blurred_vision` varchar(5) default NULL,
619   `poor_hearing` varchar(5) default NULL,
620   `headaches` varchar(5) default NULL,
621   `ringing_in_ears` varchar(5) default NULL,
622   `bloody_nose` varchar(5) default NULL,
623   `sinusitis` varchar(5) default NULL,
624   `sinus_surgery` varchar(5) default NULL,
625   `dry_mouth` varchar(5) default NULL,
626   `strep_throat` varchar(5) default NULL,
627   `tonsillectomy` varchar(5) default NULL,
628   `swollen_lymph_nodes` varchar(5) default NULL,
629   `throat_cancer` varchar(5) default NULL,
630   `throat_cancer_surgery` varchar(5) default NULL,
631   `heart_attack` varchar(5) default NULL,
632   `irregular_heart_beat` varchar(5) default NULL,
633   `chest_pains` varchar(5) default NULL,
634   `shortness_of_breath` varchar(5) default NULL,
635   `high_blood_pressure` varchar(5) default NULL,
636   `heart_failure` varchar(5) default NULL,
637   `poor_circulation` varchar(5) default NULL,
638   `vascular_surgery` varchar(5) default NULL,
639   `cardiac_catheterization` varchar(5) default NULL,
640   `coronary_artery_bypass` varchar(5) default NULL,
641   `heart_transplant` varchar(5) default NULL,
642   `stress_test` varchar(5) default NULL,
643   `emphysema` varchar(5) default NULL,
644   `chronic_bronchitis` varchar(5) default NULL,
645   `interstitial_lung_disease` varchar(5) default NULL,
646   `shortness_of_breath_2` varchar(5) default NULL,
647   `lung_cancer` varchar(5) default NULL,
648   `lung_cancer_surgery` varchar(5) default NULL,
649   `pheumothorax` varchar(5) default NULL,
650   `stomach_pains` varchar(5) default NULL,
651   `peptic_ulcer_disease` varchar(5) default NULL,
652   `gastritis` varchar(5) default NULL,
653   `endoscopy` varchar(5) default NULL,
654   `polyps` varchar(5) default NULL,
655   `colonoscopy` varchar(5) default NULL,
656   `colon_cancer` varchar(5) default NULL,
657   `colon_cancer_surgery` varchar(5) default NULL,
658   `ulcerative_colitis` varchar(5) default NULL,
659   `crohns_disease` varchar(5) default NULL,
660   `appendectomy` varchar(5) default NULL,
661   `divirticulitis` varchar(5) default NULL,
662   `divirticulitis_surgery` varchar(5) default NULL,
663   `gall_stones` varchar(5) default NULL,
664   `cholecystectomy` varchar(5) default NULL,
665   `hepatitis` varchar(5) default NULL,
666   `cirrhosis_of_the_liver` varchar(5) default NULL,
667   `splenectomy` varchar(5) default NULL,
668   `kidney_failure` varchar(5) default NULL,
669   `kidney_stones` varchar(5) default NULL,
670   `kidney_cancer` varchar(5) default NULL,
671   `kidney_infections` varchar(5) default NULL,
672   `bladder_infections` varchar(5) default NULL,
673   `bladder_cancer` varchar(5) default NULL,
674   `prostate_problems` varchar(5) default NULL,
675   `prostate_cancer` varchar(5) default NULL,
676   `kidney_transplant` varchar(5) default NULL,
677   `sexually_transmitted_disease` varchar(5) default NULL,
678   `burning_with_urination` varchar(5) default NULL,
679   `discharge_from_urethra` varchar(5) default NULL,
680   `rashes` varchar(5) default NULL,
681   `infections` varchar(5) default NULL,
682   `ulcerations` varchar(5) default NULL,
683   `pemphigus` varchar(5) default NULL,
684   `herpes` varchar(5) default NULL,
685   `osetoarthritis` varchar(5) default NULL,
686   `rheumotoid_arthritis` varchar(5) default NULL,
687   `lupus` varchar(5) default NULL,
688   `ankylosing_sondlilitis` varchar(5) default NULL,
689   `swollen_joints` varchar(5) default NULL,
690   `stiff_joints` varchar(5) default NULL,
691   `broken_bones` varchar(5) default NULL,
692   `neck_problems` varchar(5) default NULL,
693   `back_problems` varchar(5) default NULL,
694   `back_surgery` varchar(5) default NULL,
695   `scoliosis` varchar(5) default NULL,
696   `herniated_disc` varchar(5) default NULL,
697   `shoulder_problems` varchar(5) default NULL,
698   `elbow_problems` varchar(5) default NULL,
699   `wrist_problems` varchar(5) default NULL,
700   `hand_problems` varchar(5) default NULL,
701   `hip_problems` varchar(5) default NULL,
702   `knee_problems` varchar(5) default NULL,
703   `ankle_problems` varchar(5) default NULL,
704   `foot_problems` varchar(5) default NULL,
705   `insulin_dependent_diabetes` varchar(5) default NULL,
706   `noninsulin_dependent_diabetes` varchar(5) default NULL,
707   `hypothyroidism` varchar(5) default NULL,
708   `hyperthyroidism` varchar(5) default NULL,
709   `cushing_syndrom` varchar(5) default NULL,
710   `addison_syndrom` varchar(5) default NULL,
711   `additional_notes` longtext,
712   PRIMARY KEY  (`id`)
713 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
715 -- --------------------------------------------------------
717 -- 
718 -- Table structure for table `form_ros`
719 -- 
721 DROP TABLE IF EXISTS `form_ros`;
722 CREATE TABLE `form_ros` (
723   `id` int(11) NOT NULL auto_increment,
724   `pid` int(11) NOT NULL,
725   `activity` int(11) NOT NULL default '1',
726   `date` datetime default NULL,
727   `weight_change` varchar(3) default NULL,
728   `weakness` varchar(3) default NULL,
729   `fatigue` varchar(3) default NULL,
730   `anorexia` varchar(3) default NULL,
731   `fever` varchar(3) default NULL,
732   `chills` varchar(3) default NULL,
733   `night_sweats` varchar(3) default NULL,
734   `insomnia` varchar(3) default NULL,
735   `irritability` varchar(3) default NULL,
736   `heat_or_cold` varchar(3) default NULL,
737   `intolerance` varchar(3) default NULL,
738   `change_in_vision` varchar(3) default NULL,
739   `glaucoma_history` varchar(3) default NULL,
740   `eye_pain` varchar(3) default NULL,
741   `irritation` varchar(3) default NULL,
742   `redness` varchar(3) default NULL,
743   `excessive_tearing` varchar(3) default NULL,
744   `double_vision` varchar(3) default NULL,
745   `blind_spots` varchar(3) default NULL,
746   `photophobia` varchar(3) default NULL,
747   `hearing_loss` varchar(3) default NULL,
748   `discharge` varchar(3) default NULL,
749   `pain` varchar(3) default NULL,
750   `vertigo` varchar(3) default NULL,
751   `tinnitus` varchar(3) default NULL,
752   `frequent_colds` varchar(3) default NULL,
753   `sore_throat` varchar(3) default NULL,
754   `sinus_problems` varchar(3) default NULL,
755   `post_nasal_drip` varchar(3) default NULL,
756   `nosebleed` varchar(3) default NULL,
757   `snoring` varchar(3) default NULL,
758   `apnea` varchar(3) default NULL,
759   `breast_mass` varchar(3) default NULL,
760   `breast_discharge` varchar(3) default NULL,
761   `biopsy` varchar(3) default NULL,
762   `abnormal_mammogram` varchar(3) default NULL,
763   `cough` varchar(3) default NULL,
764   `sputum` varchar(3) default NULL,
765   `shortness_of_breath` varchar(3) default NULL,
766   `wheezing` varchar(3) default NULL,
767   `hemoptsyis` varchar(3) default NULL,
768   `asthma` varchar(3) default NULL,
769   `copd` varchar(3) default NULL,
770   `chest_pain` varchar(3) default NULL,
771   `palpitation` varchar(3) default NULL,
772   `syncope` varchar(3) default NULL,
773   `pnd` varchar(3) default NULL,
774   `doe` varchar(3) default NULL,
775   `orthopnea` varchar(3) default NULL,
776   `peripheal` varchar(3) default NULL,
777   `edema` varchar(3) default NULL,
778   `legpain_cramping` varchar(3) default NULL,
779   `history_murmur` varchar(3) default NULL,
780   `arrythmia` varchar(3) default NULL,
781   `heart_problem` varchar(3) default NULL,
782   `dysphagia` varchar(3) default NULL,
783   `heartburn` varchar(3) default NULL,
784   `bloating` varchar(3) default NULL,
785   `belching` varchar(3) default NULL,
786   `flatulence` varchar(3) default NULL,
787   `nausea` varchar(3) default NULL,
788   `vomiting` varchar(3) default NULL,
789   `hematemesis` varchar(3) default NULL,
790   `gastro_pain` varchar(3) default NULL,
791   `food_intolerance` varchar(3) default NULL,
792   `hepatitis` varchar(3) default NULL,
793   `jaundice` varchar(3) default NULL,
794   `hematochezia` varchar(3) default NULL,
795   `changed_bowel` varchar(3) default NULL,
796   `diarrhea` varchar(3) default NULL,
797   `constipation` varchar(3) default NULL,
798   `polyuria` varchar(3) default NULL,
799   `polydypsia` varchar(3) default NULL,
800   `dysuria` varchar(3) default NULL,
801   `hematuria` varchar(3) default NULL,
802   `frequency` varchar(3) default NULL,
803   `urgency` varchar(3) default NULL,
804   `incontinence` varchar(3) default NULL,
805   `renal_stones` varchar(3) default NULL,
806   `utis` varchar(3) default NULL,
807   `hesitancy` varchar(3) default NULL,
808   `dribbling` varchar(3) default NULL,
809   `stream` varchar(3) default NULL,
810   `nocturia` varchar(3) default NULL,
811   `erections` varchar(3) default NULL,
812   `ejaculations` varchar(3) default NULL,
813   `g` varchar(3) default NULL,
814   `p` varchar(3) default NULL,
815   `ap` varchar(3) default NULL,
816   `lc` varchar(3) default NULL,
817   `mearche` varchar(3) default NULL,
818   `menopause` varchar(3) default NULL,
819   `lmp` varchar(3) default NULL,
820   `f_frequency` varchar(3) default NULL,
821   `f_flow` varchar(3) default NULL,
822   `f_symptoms` varchar(3) default NULL,
823   `abnormal_hair_growth` varchar(3) default NULL,
824   `f_hirsutism` varchar(3) default NULL,
825   `joint_pain` varchar(3) default NULL,
826   `swelling` varchar(3) default NULL,
827   `m_redness` varchar(3) default NULL,
828   `m_warm` varchar(3) default NULL,
829   `m_stiffness` varchar(3) default NULL,
830   `muscle` varchar(3) default NULL,
831   `m_aches` varchar(3) default NULL,
832   `fms` varchar(3) default NULL,
833   `arthritis` varchar(3) default NULL,
834   `loc` varchar(3) default NULL,
835   `seizures` varchar(3) default NULL,
836   `stroke` varchar(3) default NULL,
837   `tia` varchar(3) default NULL,
838   `n_numbness` varchar(3) default NULL,
839   `n_weakness` varchar(3) default NULL,
840   `paralysis` varchar(3) default NULL,
841   `intellectual_decline` varchar(3) default NULL,
842   `memory_problems` varchar(3) default NULL,
843   `dementia` varchar(3) default NULL,
844   `n_headache` varchar(3) default NULL,
845   `s_cancer` varchar(3) default NULL,
846   `psoriasis` varchar(3) default NULL,
847   `s_acne` varchar(3) default NULL,
848   `s_other` varchar(3) default NULL,
849   `s_disease` varchar(3) default NULL,
850   `p_diagnosis` varchar(3) default NULL,
851   `p_medication` varchar(3) default NULL,
852   `depression` varchar(3) default NULL,
853   `anxiety` varchar(3) default NULL,
854   `social_difficulties` varchar(3) default NULL,
855   `thyroid_problems` varchar(3) default NULL,
856   `diabetes` varchar(3) default NULL,
857   `abnormal_blood` varchar(3) default NULL,
858   `anemia` varchar(3) default NULL,
859   `fh_blood_problems` varchar(3) default NULL,
860   `bleeding_problems` varchar(3) default NULL,
861   `allergies` varchar(3) default NULL,
862   `frequent_illness` varchar(3) default NULL,
863   `hiv` varchar(3) default NULL,
864   `hai_status` varchar(3) default NULL,
865   PRIMARY KEY  (`id`)
866 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
868 -- --------------------------------------------------------
870 -- 
871 -- Table structure for table `form_soap`
872 -- 
874 DROP TABLE IF EXISTS `form_soap`;
875 CREATE TABLE `form_soap` (
876   `id` bigint(20) NOT NULL auto_increment,
877   `date` datetime default NULL,
878   `pid` bigint(20) default '0',
879   `user` varchar(255) default NULL,
880   `groupname` varchar(255) default NULL,
881   `authorized` tinyint(4) default '0',
882   `activity` tinyint(4) default '0',
883   `subjective` text,
884   `objective` text,
885   `assessment` text,
886   `plan` text,
887   PRIMARY KEY  (`id`)
888 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
890 -- --------------------------------------------------------
892 -- 
893 -- Table structure for table `form_vitals`
894 -- 
896 DROP TABLE IF EXISTS `form_vitals`;
897 CREATE TABLE `form_vitals` (
898   `id` bigint(20) NOT NULL auto_increment,
899   `date` datetime default NULL,
900   `pid` bigint(20) default '0',
901   `user` varchar(255) default NULL,
902   `groupname` varchar(255) default NULL,
903   `authorized` tinyint(4) default '0',
904   `activity` tinyint(4) default '0',
905   `bps` varchar(40) default NULL,
906   `bpd` varchar(40) default NULL,
907   `weight` float(5,2) default '0.00',
908   `height` float(5,2) default '0.00',
909   `temperature` float(5,2) default '0.00',
910   `temp_method` varchar(255) default NULL,
911   `pulse` float(5,2) default '0.00',
912   `respiration` float(5,2) default '0.00',
913   `note` varchar(255) default NULL,
914   `BMI` float(4,1) default '0.0',
915   `BMI_status` varchar(255) default NULL,
916   `waist_circ` float(5,2) default '0.00',
917   `head_circ` float(4,2) default '0.00',
918   `oxygen_saturation` float(5,2) default '0.00',
919   PRIMARY KEY  (`id`)
920 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
922 -- --------------------------------------------------------
924 -- 
925 -- Table structure for table `forms`
926 -- 
928 DROP TABLE IF EXISTS `forms`;
929 CREATE TABLE `forms` (
930   `id` bigint(20) NOT NULL auto_increment,
931   `date` datetime default NULL,
932   `encounter` bigint(20) default NULL,
933   `form_name` longtext,
934   `form_id` bigint(20) default NULL,
935   `pid` bigint(20) default NULL,
936   `user` varchar(255) default NULL,
937   `groupname` varchar(255) default NULL,
938   `authorized` tinyint(4) default NULL,
939   `deleted` tinyint(4) DEFAULT '0' NOT NULL COMMENT 'flag indicates form has been deleted',
940   `formdir` longtext,
941   PRIMARY KEY  (`id`)
942 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
944 -- --------------------------------------------------------
946 -- 
947 -- Table structure for table `geo_country_reference`
948 -- 
950 DROP TABLE IF EXISTS `geo_country_reference`;
951 CREATE TABLE `geo_country_reference` (
952   `countries_id` int(5) NOT NULL auto_increment,
953   `countries_name` varchar(64) default NULL,
954   `countries_iso_code_2` char(2) NOT NULL default '',
955   `countries_iso_code_3` char(3) NOT NULL default '',
956   PRIMARY KEY  (`countries_id`),
957   KEY `IDX_COUNTRIES_NAME` (`countries_name`)
958 ) ENGINE=MyISAM AUTO_INCREMENT=240 ;
960 -- 
961 -- Dumping data for table `geo_country_reference`
962 -- 
964 INSERT INTO `geo_country_reference` VALUES (1, 'Afghanistan', 'AF', 'AFG');
965 INSERT INTO `geo_country_reference` VALUES (2, 'Albania', 'AL', 'ALB');
966 INSERT INTO `geo_country_reference` VALUES (3, 'Algeria', 'DZ', 'DZA');
967 INSERT INTO `geo_country_reference` VALUES (4, 'American Samoa', 'AS', 'ASM');
968 INSERT INTO `geo_country_reference` VALUES (5, 'Andorra', 'AD', 'AND');
969 INSERT INTO `geo_country_reference` VALUES (6, 'Angola', 'AO', 'AGO');
970 INSERT INTO `geo_country_reference` VALUES (7, 'Anguilla', 'AI', 'AIA');
971 INSERT INTO `geo_country_reference` VALUES (8, 'Antarctica', 'AQ', 'ATA');
972 INSERT INTO `geo_country_reference` VALUES (9, 'Antigua and Barbuda', 'AG', 'ATG');
973 INSERT INTO `geo_country_reference` VALUES (10, 'Argentina', 'AR', 'ARG');
974 INSERT INTO `geo_country_reference` VALUES (11, 'Armenia', 'AM', 'ARM');
975 INSERT INTO `geo_country_reference` VALUES (12, 'Aruba', 'AW', 'ABW');
976 INSERT INTO `geo_country_reference` VALUES (13, 'Australia', 'AU', 'AUS');
977 INSERT INTO `geo_country_reference` VALUES (14, 'Austria', 'AT', 'AUT');
978 INSERT INTO `geo_country_reference` VALUES (15, 'Azerbaijan', 'AZ', 'AZE');
979 INSERT INTO `geo_country_reference` VALUES (16, 'Bahamas', 'BS', 'BHS');
980 INSERT INTO `geo_country_reference` VALUES (17, 'Bahrain', 'BH', 'BHR');
981 INSERT INTO `geo_country_reference` VALUES (18, 'Bangladesh', 'BD', 'BGD');
982 INSERT INTO `geo_country_reference` VALUES (19, 'Barbados', 'BB', 'BRB');
983 INSERT INTO `geo_country_reference` VALUES (20, 'Belarus', 'BY', 'BLR');
984 INSERT INTO `geo_country_reference` VALUES (21, 'Belgium', 'BE', 'BEL');
985 INSERT INTO `geo_country_reference` VALUES (22, 'Belize', 'BZ', 'BLZ');
986 INSERT INTO `geo_country_reference` VALUES (23, 'Benin', 'BJ', 'BEN');
987 INSERT INTO `geo_country_reference` VALUES (24, 'Bermuda', 'BM', 'BMU');
988 INSERT INTO `geo_country_reference` VALUES (25, 'Bhutan', 'BT', 'BTN');
989 INSERT INTO `geo_country_reference` VALUES (26, 'Bolivia', 'BO', 'BOL');
990 INSERT INTO `geo_country_reference` VALUES (27, 'Bosnia and Herzegowina', 'BA', 'BIH');
991 INSERT INTO `geo_country_reference` VALUES (28, 'Botswana', 'BW', 'BWA');
992 INSERT INTO `geo_country_reference` VALUES (29, 'Bouvet Island', 'BV', 'BVT');
993 INSERT INTO `geo_country_reference` VALUES (30, 'Brazil', 'BR', 'BRA');
994 INSERT INTO `geo_country_reference` VALUES (31, 'British Indian Ocean Territory', 'IO', 'IOT');
995 INSERT INTO `geo_country_reference` VALUES (32, 'Brunei Darussalam', 'BN', 'BRN');
996 INSERT INTO `geo_country_reference` VALUES (33, 'Bulgaria', 'BG', 'BGR');
997 INSERT INTO `geo_country_reference` VALUES (34, 'Burkina Faso', 'BF', 'BFA');
998 INSERT INTO `geo_country_reference` VALUES (35, 'Burundi', 'BI', 'BDI');
999 INSERT INTO `geo_country_reference` VALUES (36, 'Cambodia', 'KH', 'KHM');
1000 INSERT INTO `geo_country_reference` VALUES (37, 'Cameroon', 'CM', 'CMR');
1001 INSERT INTO `geo_country_reference` VALUES (38, 'Canada', 'CA', 'CAN');
1002 INSERT INTO `geo_country_reference` VALUES (39, 'Cape Verde', 'CV', 'CPV');
1003 INSERT INTO `geo_country_reference` VALUES (40, 'Cayman Islands', 'KY', 'CYM');
1004 INSERT INTO `geo_country_reference` VALUES (41, 'Central African Republic', 'CF', 'CAF');
1005 INSERT INTO `geo_country_reference` VALUES (42, 'Chad', 'TD', 'TCD');
1006 INSERT INTO `geo_country_reference` VALUES (43, 'Chile', 'CL', 'CHL');
1007 INSERT INTO `geo_country_reference` VALUES (44, 'China', 'CN', 'CHN');
1008 INSERT INTO `geo_country_reference` VALUES (45, 'Christmas Island', 'CX', 'CXR');
1009 INSERT INTO `geo_country_reference` VALUES (46, 'Cocos (Keeling) Islands', 'CC', 'CCK');
1010 INSERT INTO `geo_country_reference` VALUES (47, 'Colombia', 'CO', 'COL');
1011 INSERT INTO `geo_country_reference` VALUES (48, 'Comoros', 'KM', 'COM');
1012 INSERT INTO `geo_country_reference` VALUES (49, 'Congo', 'CG', 'COG');
1013 INSERT INTO `geo_country_reference` VALUES (50, 'Cook Islands', 'CK', 'COK');
1014 INSERT INTO `geo_country_reference` VALUES (51, 'Costa Rica', 'CR', 'CRI');
1015 INSERT INTO `geo_country_reference` VALUES (52, 'Cote D Ivoire', 'CI', 'CIV');
1016 INSERT INTO `geo_country_reference` VALUES (53, 'Croatia', 'HR', 'HRV');
1017 INSERT INTO `geo_country_reference` VALUES (54, 'Cuba', 'CU', 'CUB');
1018 INSERT INTO `geo_country_reference` VALUES (55, 'Cyprus', 'CY', 'CYP');
1019 INSERT INTO `geo_country_reference` VALUES (56, 'Czech Republic', 'CZ', 'CZE');
1020 INSERT INTO `geo_country_reference` VALUES (57, 'Denmark', 'DK', 'DNK');
1021 INSERT INTO `geo_country_reference` VALUES (58, 'Djibouti', 'DJ', 'DJI');
1022 INSERT INTO `geo_country_reference` VALUES (59, 'Dominica', 'DM', 'DMA');
1023 INSERT INTO `geo_country_reference` VALUES (60, 'Dominican Republic', 'DO', 'DOM');
1024 INSERT INTO `geo_country_reference` VALUES (61, 'East Timor', 'TP', 'TMP');
1025 INSERT INTO `geo_country_reference` VALUES (62, 'Ecuador', 'EC', 'ECU');
1026 INSERT INTO `geo_country_reference` VALUES (63, 'Egypt', 'EG', 'EGY');
1027 INSERT INTO `geo_country_reference` VALUES (64, 'El Salvador', 'SV', 'SLV');
1028 INSERT INTO `geo_country_reference` VALUES (65, 'Equatorial Guinea', 'GQ', 'GNQ');
1029 INSERT INTO `geo_country_reference` VALUES (66, 'Eritrea', 'ER', 'ERI');
1030 INSERT INTO `geo_country_reference` VALUES (67, 'Estonia', 'EE', 'EST');
1031 INSERT INTO `geo_country_reference` VALUES (68, 'Ethiopia', 'ET', 'ETH');
1032 INSERT INTO `geo_country_reference` VALUES (69, 'Falkland Islands (Malvinas)', 'FK', 'FLK');
1033 INSERT INTO `geo_country_reference` VALUES (70, 'Faroe Islands', 'FO', 'FRO');
1034 INSERT INTO `geo_country_reference` VALUES (71, 'Fiji', 'FJ', 'FJI');
1035 INSERT INTO `geo_country_reference` VALUES (72, 'Finland', 'FI', 'FIN');
1036 INSERT INTO `geo_country_reference` VALUES (73, 'France', 'FR', 'FRA');
1037 INSERT INTO `geo_country_reference` VALUES (74, 'France, MEtropolitan', 'FX', 'FXX');
1038 INSERT INTO `geo_country_reference` VALUES (75, 'French Guiana', 'GF', 'GUF');
1039 INSERT INTO `geo_country_reference` VALUES (76, 'French Polynesia', 'PF', 'PYF');
1040 INSERT INTO `geo_country_reference` VALUES (77, 'French Southern Territories', 'TF', 'ATF');
1041 INSERT INTO `geo_country_reference` VALUES (78, 'Gabon', 'GA', 'GAB');
1042 INSERT INTO `geo_country_reference` VALUES (79, 'Gambia', 'GM', 'GMB');
1043 INSERT INTO `geo_country_reference` VALUES (80, 'Georgia', 'GE', 'GEO');
1044 INSERT INTO `geo_country_reference` VALUES (81, 'Germany', 'DE', 'DEU');
1045 INSERT INTO `geo_country_reference` VALUES (82, 'Ghana', 'GH', 'GHA');
1046 INSERT INTO `geo_country_reference` VALUES (83, 'Gibraltar', 'GI', 'GIB');
1047 INSERT INTO `geo_country_reference` VALUES (84, 'Greece', 'GR', 'GRC');
1048 INSERT INTO `geo_country_reference` VALUES (85, 'Greenland', 'GL', 'GRL');
1049 INSERT INTO `geo_country_reference` VALUES (86, 'Grenada', 'GD', 'GRD');
1050 INSERT INTO `geo_country_reference` VALUES (87, 'Guadeloupe', 'GP', 'GLP');
1051 INSERT INTO `geo_country_reference` VALUES (88, 'Guam', 'GU', 'GUM');
1052 INSERT INTO `geo_country_reference` VALUES (89, 'Guatemala', 'GT', 'GTM');
1053 INSERT INTO `geo_country_reference` VALUES (90, 'Guinea', 'GN', 'GIN');
1054 INSERT INTO `geo_country_reference` VALUES (91, 'Guinea-bissau', 'GW', 'GNB');
1055 INSERT INTO `geo_country_reference` VALUES (92, 'Guyana', 'GY', 'GUY');
1056 INSERT INTO `geo_country_reference` VALUES (93, 'Haiti', 'HT', 'HTI');
1057 INSERT INTO `geo_country_reference` VALUES (94, 'Heard and Mc Donald Islands', 'HM', 'HMD');
1058 INSERT INTO `geo_country_reference` VALUES (95, 'Honduras', 'HN', 'HND');
1059 INSERT INTO `geo_country_reference` VALUES (96, 'Hong Kong', 'HK', 'HKG');
1060 INSERT INTO `geo_country_reference` VALUES (97, 'Hungary', 'HU', 'HUN');
1061 INSERT INTO `geo_country_reference` VALUES (98, 'Iceland', 'IS', 'ISL');
1062 INSERT INTO `geo_country_reference` VALUES (99, 'India', 'IN', 'IND');
1063 INSERT INTO `geo_country_reference` VALUES (100, 'Indonesia', 'ID', 'IDN');
1064 INSERT INTO `geo_country_reference` VALUES (101, 'Iran (Islamic Republic of)', 'IR', 'IRN');
1065 INSERT INTO `geo_country_reference` VALUES (102, 'Iraq', 'IQ', 'IRQ');
1066 INSERT INTO `geo_country_reference` VALUES (103, 'Ireland', 'IE', 'IRL');
1067 INSERT INTO `geo_country_reference` VALUES (104, 'Israel', 'IL', 'ISR');
1068 INSERT INTO `geo_country_reference` VALUES (105, 'Italy', 'IT', 'ITA');
1069 INSERT INTO `geo_country_reference` VALUES (106, 'Jamaica', 'JM', 'JAM');
1070 INSERT INTO `geo_country_reference` VALUES (107, 'Japan', 'JP', 'JPN');
1071 INSERT INTO `geo_country_reference` VALUES (108, 'Jordan', 'JO', 'JOR');
1072 INSERT INTO `geo_country_reference` VALUES (109, 'Kazakhstan', 'KZ', 'KAZ');
1073 INSERT INTO `geo_country_reference` VALUES (110, 'Kenya', 'KE', 'KEN');
1074 INSERT INTO `geo_country_reference` VALUES (111, 'Kiribati', 'KI', 'KIR');
1075 INSERT INTO `geo_country_reference` VALUES (112, 'Korea, Democratic Peoples Republic of', 'KP', 'PRK');
1076 INSERT INTO `geo_country_reference` VALUES (113, 'Korea, Republic of', 'KR', 'KOR');
1077 INSERT INTO `geo_country_reference` VALUES (114, 'Kuwait', 'KW', 'KWT');
1078 INSERT INTO `geo_country_reference` VALUES (115, 'Kyrgyzstan', 'KG', 'KGZ');
1079 INSERT INTO `geo_country_reference` VALUES (116, 'Lao Peoples Democratic Republic', 'LA', 'LAO');
1080 INSERT INTO `geo_country_reference` VALUES (117, 'Latvia', 'LV', 'LVA');
1081 INSERT INTO `geo_country_reference` VALUES (118, 'Lebanon', 'LB', 'LBN');
1082 INSERT INTO `geo_country_reference` VALUES (119, 'Lesotho', 'LS', 'LSO');
1083 INSERT INTO `geo_country_reference` VALUES (120, 'Liberia', 'LR', 'LBR');
1084 INSERT INTO `geo_country_reference` VALUES (121, 'Libyan Arab Jamahiriya', 'LY', 'LBY');
1085 INSERT INTO `geo_country_reference` VALUES (122, 'Liechtenstein', 'LI', 'LIE');
1086 INSERT INTO `geo_country_reference` VALUES (123, 'Lithuania', 'LT', 'LTU');
1087 INSERT INTO `geo_country_reference` VALUES (124, 'Luxembourg', 'LU', 'LUX');
1088 INSERT INTO `geo_country_reference` VALUES (125, 'Macau', 'MO', 'MAC');
1089 INSERT INTO `geo_country_reference` VALUES (126, 'Macedonia, The Former Yugoslav Republic of', 'MK', 'MKD');
1090 INSERT INTO `geo_country_reference` VALUES (127, 'Madagascar', 'MG', 'MDG');
1091 INSERT INTO `geo_country_reference` VALUES (128, 'Malawi', 'MW', 'MWI');
1092 INSERT INTO `geo_country_reference` VALUES (129, 'Malaysia', 'MY', 'MYS');
1093 INSERT INTO `geo_country_reference` VALUES (130, 'Maldives', 'MV', 'MDV');
1094 INSERT INTO `geo_country_reference` VALUES (131, 'Mali', 'ML', 'MLI');
1095 INSERT INTO `geo_country_reference` VALUES (132, 'Malta', 'MT', 'MLT');
1096 INSERT INTO `geo_country_reference` VALUES (133, 'Marshall Islands', 'MH', 'MHL');
1097 INSERT INTO `geo_country_reference` VALUES (134, 'Martinique', 'MQ', 'MTQ');
1098 INSERT INTO `geo_country_reference` VALUES (135, 'Mauritania', 'MR', 'MRT');
1099 INSERT INTO `geo_country_reference` VALUES (136, 'Mauritius', 'MU', 'MUS');
1100 INSERT INTO `geo_country_reference` VALUES (137, 'Mayotte', 'YT', 'MYT');
1101 INSERT INTO `geo_country_reference` VALUES (138, 'Mexico', 'MX', 'MEX');
1102 INSERT INTO `geo_country_reference` VALUES (139, 'Micronesia, Federated States of', 'FM', 'FSM');
1103 INSERT INTO `geo_country_reference` VALUES (140, 'Moldova, Republic of', 'MD', 'MDA');
1104 INSERT INTO `geo_country_reference` VALUES (141, 'Monaco', 'MC', 'MCO');
1105 INSERT INTO `geo_country_reference` VALUES (142, 'Mongolia', 'MN', 'MNG');
1106 INSERT INTO `geo_country_reference` VALUES (143, 'Montserrat', 'MS', 'MSR');
1107 INSERT INTO `geo_country_reference` VALUES (144, 'Morocco', 'MA', 'MAR');
1108 INSERT INTO `geo_country_reference` VALUES (145, 'Mozambique', 'MZ', 'MOZ');
1109 INSERT INTO `geo_country_reference` VALUES (146, 'Myanmar', 'MM', 'MMR');
1110 INSERT INTO `geo_country_reference` VALUES (147, 'Namibia', 'NA', 'NAM');
1111 INSERT INTO `geo_country_reference` VALUES (148, 'Nauru', 'NR', 'NRU');
1112 INSERT INTO `geo_country_reference` VALUES (149, 'Nepal', 'NP', 'NPL');
1113 INSERT INTO `geo_country_reference` VALUES (150, 'Netherlands', 'NL', 'NLD');
1114 INSERT INTO `geo_country_reference` VALUES (151, 'Netherlands Antilles', 'AN', 'ANT');
1115 INSERT INTO `geo_country_reference` VALUES (152, 'New Caledonia', 'NC', 'NCL');
1116 INSERT INTO `geo_country_reference` VALUES (153, 'New Zealand', 'NZ', 'NZL');
1117 INSERT INTO `geo_country_reference` VALUES (154, 'Nicaragua', 'NI', 'NIC');
1118 INSERT INTO `geo_country_reference` VALUES (155, 'Niger', 'NE', 'NER');
1119 INSERT INTO `geo_country_reference` VALUES (156, 'Nigeria', 'NG', 'NGA');
1120 INSERT INTO `geo_country_reference` VALUES (157, 'Niue', 'NU', 'NIU');
1121 INSERT INTO `geo_country_reference` VALUES (158, 'Norfolk Island', 'NF', 'NFK');
1122 INSERT INTO `geo_country_reference` VALUES (159, 'Northern Mariana Islands', 'MP', 'MNP');
1123 INSERT INTO `geo_country_reference` VALUES (160, 'Norway', 'NO', 'NOR');
1124 INSERT INTO `geo_country_reference` VALUES (161, 'Oman', 'OM', 'OMN');
1125 INSERT INTO `geo_country_reference` VALUES (162, 'Pakistan', 'PK', 'PAK');
1126 INSERT INTO `geo_country_reference` VALUES (163, 'Palau', 'PW', 'PLW');
1127 INSERT INTO `geo_country_reference` VALUES (164, 'Panama', 'PA', 'PAN');
1128 INSERT INTO `geo_country_reference` VALUES (165, 'Papua New Guinea', 'PG', 'PNG');
1129 INSERT INTO `geo_country_reference` VALUES (166, 'Paraguay', 'PY', 'PRY');
1130 INSERT INTO `geo_country_reference` VALUES (167, 'Peru', 'PE', 'PER');
1131 INSERT INTO `geo_country_reference` VALUES (168, 'Philippines', 'PH', 'PHL');
1132 INSERT INTO `geo_country_reference` VALUES (169, 'Pitcairn', 'PN', 'PCN');
1133 INSERT INTO `geo_country_reference` VALUES (170, 'Poland', 'PL', 'POL');
1134 INSERT INTO `geo_country_reference` VALUES (171, 'Portugal', 'PT', 'PRT');
1135 INSERT INTO `geo_country_reference` VALUES (172, 'Puerto Rico', 'PR', 'PRI');
1136 INSERT INTO `geo_country_reference` VALUES (173, 'Qatar', 'QA', 'QAT');
1137 INSERT INTO `geo_country_reference` VALUES (174, 'Reunion', 'RE', 'REU');
1138 INSERT INTO `geo_country_reference` VALUES (175, 'Romania', 'RO', 'ROM');
1139 INSERT INTO `geo_country_reference` VALUES (176, 'Russian Federation', 'RU', 'RUS');
1140 INSERT INTO `geo_country_reference` VALUES (177, 'Rwanda', 'RW', 'RWA');
1141 INSERT INTO `geo_country_reference` VALUES (178, 'Saint Kitts and Nevis', 'KN', 'KNA');
1142 INSERT INTO `geo_country_reference` VALUES (179, 'Saint Lucia', 'LC', 'LCA');
1143 INSERT INTO `geo_country_reference` VALUES (180, 'Saint Vincent and the Grenadines', 'VC', 'VCT');
1144 INSERT INTO `geo_country_reference` VALUES (181, 'Samoa', 'WS', 'WSM');
1145 INSERT INTO `geo_country_reference` VALUES (182, 'San Marino', 'SM', 'SMR');
1146 INSERT INTO `geo_country_reference` VALUES (183, 'Sao Tome and Principe', 'ST', 'STP');
1147 INSERT INTO `geo_country_reference` VALUES (184, 'Saudi Arabia', 'SA', 'SAU');
1148 INSERT INTO `geo_country_reference` VALUES (185, 'Senegal', 'SN', 'SEN');
1149 INSERT INTO `geo_country_reference` VALUES (186, 'Seychelles', 'SC', 'SYC');
1150 INSERT INTO `geo_country_reference` VALUES (187, 'Sierra Leone', 'SL', 'SLE');
1151 INSERT INTO `geo_country_reference` VALUES (188, 'Singapore', 'SG', 'SGP');
1152 INSERT INTO `geo_country_reference` VALUES (189, 'Slovakia (Slovak Republic)', 'SK', 'SVK');
1153 INSERT INTO `geo_country_reference` VALUES (190, 'Slovenia', 'SI', 'SVN');
1154 INSERT INTO `geo_country_reference` VALUES (191, 'Solomon Islands', 'SB', 'SLB');
1155 INSERT INTO `geo_country_reference` VALUES (192, 'Somalia', 'SO', 'SOM');
1156 INSERT INTO `geo_country_reference` VALUES (193, 'south Africa', 'ZA', 'ZAF');
1157 INSERT INTO `geo_country_reference` VALUES (194, 'South Georgia and the South Sandwich Islands', 'GS', 'SGS');
1158 INSERT INTO `geo_country_reference` VALUES (195, 'Spain', 'ES', 'ESP');
1159 INSERT INTO `geo_country_reference` VALUES (196, 'Sri Lanka', 'LK', 'LKA');
1160 INSERT INTO `geo_country_reference` VALUES (197, 'St. Helena', 'SH', 'SHN');
1161 INSERT INTO `geo_country_reference` VALUES (198, 'St. Pierre and Miquelon', 'PM', 'SPM');
1162 INSERT INTO `geo_country_reference` VALUES (199, 'Sudan', 'SD', 'SDN');
1163 INSERT INTO `geo_country_reference` VALUES (200, 'Suriname', 'SR', 'SUR');
1164 INSERT INTO `geo_country_reference` VALUES (201, 'Svalbard and Jan Mayen Islands', 'SJ', 'SJM');
1165 INSERT INTO `geo_country_reference` VALUES (202, 'Swaziland', 'SZ', 'SWZ');
1166 INSERT INTO `geo_country_reference` VALUES (203, 'Sweden', 'SE', 'SWE');
1167 INSERT INTO `geo_country_reference` VALUES (204, 'Switzerland', 'CH', 'CHE');
1168 INSERT INTO `geo_country_reference` VALUES (205, 'Syrian Arab Republic', 'SY', 'SYR');
1169 INSERT INTO `geo_country_reference` VALUES (206, 'Taiwan, Province of China', 'TW', 'TWN');
1170 INSERT INTO `geo_country_reference` VALUES (207, 'Tajikistan', 'TJ', 'TJK');
1171 INSERT INTO `geo_country_reference` VALUES (208, 'Tanzania, United Republic of', 'TZ', 'TZA');
1172 INSERT INTO `geo_country_reference` VALUES (209, 'Thailand', 'TH', 'THA');
1173 INSERT INTO `geo_country_reference` VALUES (210, 'Togo', 'TG', 'TGO');
1174 INSERT INTO `geo_country_reference` VALUES (211, 'Tokelau', 'TK', 'TKL');
1175 INSERT INTO `geo_country_reference` VALUES (212, 'Tonga', 'TO', 'TON');
1176 INSERT INTO `geo_country_reference` VALUES (213, 'Trinidad and Tobago', 'TT', 'TTO');
1177 INSERT INTO `geo_country_reference` VALUES (214, 'Tunisia', 'TN', 'TUN');
1178 INSERT INTO `geo_country_reference` VALUES (215, 'Turkey', 'TR', 'TUR');
1179 INSERT INTO `geo_country_reference` VALUES (216, 'Turkmenistan', 'TM', 'TKM');
1180 INSERT INTO `geo_country_reference` VALUES (217, 'Turks and Caicos Islands', 'TC', 'TCA');
1181 INSERT INTO `geo_country_reference` VALUES (218, 'Tuvalu', 'TV', 'TUV');
1182 INSERT INTO `geo_country_reference` VALUES (219, 'Uganda', 'UG', 'UGA');
1183 INSERT INTO `geo_country_reference` VALUES (220, 'Ukraine', 'UA', 'UKR');
1184 INSERT INTO `geo_country_reference` VALUES (221, 'United Arab Emirates', 'AE', 'ARE');
1185 INSERT INTO `geo_country_reference` VALUES (222, 'United Kingdom', 'GB', 'GBR');
1186 INSERT INTO `geo_country_reference` VALUES (223, 'United States', 'US', 'USA');
1187 INSERT INTO `geo_country_reference` VALUES (224, 'United States Minor Outlying Islands', 'UM', 'UMI');
1188 INSERT INTO `geo_country_reference` VALUES (225, 'Uruguay', 'UY', 'URY');
1189 INSERT INTO `geo_country_reference` VALUES (226, 'Uzbekistan', 'UZ', 'UZB');
1190 INSERT INTO `geo_country_reference` VALUES (227, 'Vanuatu', 'VU', 'VUT');
1191 INSERT INTO `geo_country_reference` VALUES (228, 'Vatican City State (Holy See)', 'VA', 'VAT');
1192 INSERT INTO `geo_country_reference` VALUES (229, 'Venezuela', 'VE', 'VEN');
1193 INSERT INTO `geo_country_reference` VALUES (230, 'Viet Nam', 'VN', 'VNM');
1194 INSERT INTO `geo_country_reference` VALUES (231, 'Virgin Islands (British)', 'VG', 'VGB');
1195 INSERT INTO `geo_country_reference` VALUES (232, 'Virgin Islands (U.S.)', 'VI', 'VIR');
1196 INSERT INTO `geo_country_reference` VALUES (233, 'Wallis and Futuna Islands', 'WF', 'WLF');
1197 INSERT INTO `geo_country_reference` VALUES (234, 'Western Sahara', 'EH', 'ESH');
1198 INSERT INTO `geo_country_reference` VALUES (235, 'Yemen', 'YE', 'YEM');
1199 INSERT INTO `geo_country_reference` VALUES (236, 'Yugoslavia', 'YU', 'YUG');
1200 INSERT INTO `geo_country_reference` VALUES (237, 'Zaire', 'ZR', 'ZAR');
1201 INSERT INTO `geo_country_reference` VALUES (238, 'Zambia', 'ZM', 'ZMB');
1202 INSERT INTO `geo_country_reference` VALUES (239, 'Zimbabwe', 'ZW', 'ZWE');
1204 -- --------------------------------------------------------
1206 -- 
1207 -- Table structure for table `geo_zone_reference`
1208 -- 
1210 DROP TABLE IF EXISTS `geo_zone_reference`;
1211 CREATE TABLE `geo_zone_reference` (
1212   `zone_id` int(5) NOT NULL auto_increment,
1213   `zone_country_id` int(5) NOT NULL default '0',
1214   `zone_code` varchar(5) default NULL,
1215   `zone_name` varchar(32) default NULL,
1216   PRIMARY KEY  (`zone_id`)
1217 ) ENGINE=MyISAM AUTO_INCREMENT=83 ;
1219 -- 
1220 -- Dumping data for table `geo_zone_reference`
1221 -- 
1223 INSERT INTO `geo_zone_reference` VALUES (1, 223, 'AL', 'Alabama');
1224 INSERT INTO `geo_zone_reference` VALUES (2, 223, 'AK', 'Alaska');
1225 INSERT INTO `geo_zone_reference` VALUES (3, 223, 'AS', 'American Samoa');
1226 INSERT INTO `geo_zone_reference` VALUES (4, 223, 'AZ', 'Arizona');
1227 INSERT INTO `geo_zone_reference` VALUES (5, 223, 'AR', 'Arkansas');
1228 INSERT INTO `geo_zone_reference` VALUES (6, 223, 'AF', 'Armed Forces Africa');
1229 INSERT INTO `geo_zone_reference` VALUES (7, 223, 'AA', 'Armed Forces Americas');
1230 INSERT INTO `geo_zone_reference` VALUES (8, 223, 'AC', 'Armed Forces Canada');
1231 INSERT INTO `geo_zone_reference` VALUES (9, 223, 'AE', 'Armed Forces Europe');
1232 INSERT INTO `geo_zone_reference` VALUES (10, 223, 'AM', 'Armed Forces Middle East');
1233 INSERT INTO `geo_zone_reference` VALUES (11, 223, 'AP', 'Armed Forces Pacific');
1234 INSERT INTO `geo_zone_reference` VALUES (12, 223, 'CA', 'California');
1235 INSERT INTO `geo_zone_reference` VALUES (13, 223, 'CO', 'Colorado');
1236 INSERT INTO `geo_zone_reference` VALUES (14, 223, 'CT', 'Connecticut');
1237 INSERT INTO `geo_zone_reference` VALUES (15, 223, 'DE', 'Delaware');
1238 INSERT INTO `geo_zone_reference` VALUES (16, 223, 'DC', 'District of Columbia');
1239 INSERT INTO `geo_zone_reference` VALUES (17, 223, 'FM', 'Federated States Of Micronesia');
1240 INSERT INTO `geo_zone_reference` VALUES (18, 223, 'FL', 'Florida');
1241 INSERT INTO `geo_zone_reference` VALUES (19, 223, 'GA', 'Georgia');
1242 INSERT INTO `geo_zone_reference` VALUES (20, 223, 'GU', 'Guam');
1243 INSERT INTO `geo_zone_reference` VALUES (21, 223, 'HI', 'Hawaii');
1244 INSERT INTO `geo_zone_reference` VALUES (22, 223, 'ID', 'Idaho');
1245 INSERT INTO `geo_zone_reference` VALUES (23, 223, 'IL', 'Illinois');
1246 INSERT INTO `geo_zone_reference` VALUES (24, 223, 'IN', 'Indiana');
1247 INSERT INTO `geo_zone_reference` VALUES (25, 223, 'IA', 'Iowa');
1248 INSERT INTO `geo_zone_reference` VALUES (26, 223, 'KS', 'Kansas');
1249 INSERT INTO `geo_zone_reference` VALUES (27, 223, 'KY', 'Kentucky');
1250 INSERT INTO `geo_zone_reference` VALUES (28, 223, 'LA', 'Louisiana');
1251 INSERT INTO `geo_zone_reference` VALUES (29, 223, 'ME', 'Maine');
1252 INSERT INTO `geo_zone_reference` VALUES (30, 223, 'MH', 'Marshall Islands');
1253 INSERT INTO `geo_zone_reference` VALUES (31, 223, 'MD', 'Maryland');
1254 INSERT INTO `geo_zone_reference` VALUES (32, 223, 'MA', 'Massachusetts');
1255 INSERT INTO `geo_zone_reference` VALUES (33, 223, 'MI', 'Michigan');
1256 INSERT INTO `geo_zone_reference` VALUES (34, 223, 'MN', 'Minnesota');
1257 INSERT INTO `geo_zone_reference` VALUES (35, 223, 'MS', 'Mississippi');
1258 INSERT INTO `geo_zone_reference` VALUES (36, 223, 'MO', 'Missouri');
1259 INSERT INTO `geo_zone_reference` VALUES (37, 223, 'MT', 'Montana');
1260 INSERT INTO `geo_zone_reference` VALUES (38, 223, 'NE', 'Nebraska');
1261 INSERT INTO `geo_zone_reference` VALUES (39, 223, 'NV', 'Nevada');
1262 INSERT INTO `geo_zone_reference` VALUES (40, 223, 'NH', 'New Hampshire');
1263 INSERT INTO `geo_zone_reference` VALUES (41, 223, 'NJ', 'New Jersey');
1264 INSERT INTO `geo_zone_reference` VALUES (42, 223, 'NM', 'New Mexico');
1265 INSERT INTO `geo_zone_reference` VALUES (43, 223, 'NY', 'New York');
1266 INSERT INTO `geo_zone_reference` VALUES (44, 223, 'NC', 'North Carolina');
1267 INSERT INTO `geo_zone_reference` VALUES (45, 223, 'ND', 'North Dakota');
1268 INSERT INTO `geo_zone_reference` VALUES (46, 223, 'MP', 'Northern Mariana Islands');
1269 INSERT INTO `geo_zone_reference` VALUES (47, 223, 'OH', 'Ohio');
1270 INSERT INTO `geo_zone_reference` VALUES (48, 223, 'OK', 'Oklahoma');
1271 INSERT INTO `geo_zone_reference` VALUES (49, 223, 'OR', 'Oregon');
1272 INSERT INTO `geo_zone_reference` VALUES (50, 223, 'PW', 'Palau');
1273 INSERT INTO `geo_zone_reference` VALUES (51, 223, 'PA', 'Pennsylvania');
1274 INSERT INTO `geo_zone_reference` VALUES (52, 223, 'PR', 'Puerto Rico');
1275 INSERT INTO `geo_zone_reference` VALUES (53, 223, 'RI', 'Rhode Island');
1276 INSERT INTO `geo_zone_reference` VALUES (54, 223, 'SC', 'South Carolina');
1277 INSERT INTO `geo_zone_reference` VALUES (55, 223, 'SD', 'South Dakota');
1278 INSERT INTO `geo_zone_reference` VALUES (56, 223, 'TN', 'Tenessee');
1279 INSERT INTO `geo_zone_reference` VALUES (57, 223, 'TX', 'Texas');
1280 INSERT INTO `geo_zone_reference` VALUES (58, 223, 'UT', 'Utah');
1281 INSERT INTO `geo_zone_reference` VALUES (59, 223, 'VT', 'Vermont');
1282 INSERT INTO `geo_zone_reference` VALUES (60, 223, 'VI', 'Virgin Islands');
1283 INSERT INTO `geo_zone_reference` VALUES (61, 223, 'VA', 'Virginia');
1284 INSERT INTO `geo_zone_reference` VALUES (62, 223, 'WA', 'Washington');
1285 INSERT INTO `geo_zone_reference` VALUES (63, 223, 'WV', 'West Virginia');
1286 INSERT INTO `geo_zone_reference` VALUES (64, 223, 'WI', 'Wisconsin');
1287 INSERT INTO `geo_zone_reference` VALUES (65, 223, 'WY', 'Wyoming');
1288 INSERT INTO `geo_zone_reference` VALUES (66, 38, 'AB', 'Alberta');
1289 INSERT INTO `geo_zone_reference` VALUES (67, 38, 'BC', 'British Columbia');
1290 INSERT INTO `geo_zone_reference` VALUES (68, 38, 'MB', 'Manitoba');
1291 INSERT INTO `geo_zone_reference` VALUES (69, 38, 'NF', 'Newfoundland');
1292 INSERT INTO `geo_zone_reference` VALUES (70, 38, 'NB', 'New Brunswick');
1293 INSERT INTO `geo_zone_reference` VALUES (71, 38, 'NS', 'Nova Scotia');
1294 INSERT INTO `geo_zone_reference` VALUES (72, 38, 'NT', 'Northwest Territories');
1295 INSERT INTO `geo_zone_reference` VALUES (73, 38, 'NU', 'Nunavut');
1296 INSERT INTO `geo_zone_reference` VALUES (74, 38, 'ON', 'Ontario');
1297 INSERT INTO `geo_zone_reference` VALUES (75, 38, 'PE', 'Prince Edward Island');
1298 INSERT INTO `geo_zone_reference` VALUES (76, 38, 'QC', 'Quebec');
1299 INSERT INTO `geo_zone_reference` VALUES (77, 38, 'SK', 'Saskatchewan');
1300 INSERT INTO `geo_zone_reference` VALUES (78, 38, 'YT', 'Yukon Territory');
1301 INSERT INTO `geo_zone_reference` VALUES (79, 61, 'QLD', 'Queensland');
1302 INSERT INTO `geo_zone_reference` VALUES (80, 61, 'SA', 'South Australia');
1303 INSERT INTO `geo_zone_reference` VALUES (81, 61, 'ACT', 'Australian Capital Territory');
1304 INSERT INTO `geo_zone_reference` VALUES (82, 61, 'VIC', 'Victoria');
1306 -- --------------------------------------------------------
1308 -- 
1309 -- Table structure for table `groups`
1310 -- 
1312 DROP TABLE IF EXISTS `groups`;
1313 CREATE TABLE `groups` (
1314   `id` bigint(20) NOT NULL auto_increment,
1315   `name` longtext,
1316   `user` longtext,
1317   PRIMARY KEY  (`id`)
1318 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1320 -- --------------------------------------------------------
1322 -- 
1323 -- Table structure for table `history_data`
1324 -- 
1326 DROP TABLE IF EXISTS `history_data`;
1327 CREATE TABLE `history_data` (
1328   `id` bigint(20) NOT NULL auto_increment,
1329   `coffee` longtext,
1330   `tobacco` longtext,
1331   `alcohol` longtext,
1332   `sleep_patterns` longtext,
1333   `exercise_patterns` longtext,
1334   `seatbelt_use` longtext,
1335   `counseling` longtext,
1336   `hazardous_activities` longtext,
1337   `recreational_drugs` longtext,
1338   `last_breast_exam` varchar(255) default NULL,
1339   `last_mammogram` varchar(255) default NULL,
1340   `last_gynocological_exam` varchar(255) default NULL,
1341   `last_rectal_exam` varchar(255) default NULL,
1342   `last_prostate_exam` varchar(255) default NULL,
1343   `last_physical_exam` varchar(255) default NULL,
1344   `last_sigmoidoscopy_colonoscopy` varchar(255) default NULL,
1345   `last_ecg` varchar(255) default NULL,
1346   `last_cardiac_echo` varchar(255) default NULL,
1347   `last_retinal` varchar(255) default NULL,
1348   `last_fluvax` varchar(255) default NULL,
1349   `last_pneuvax` varchar(255) default NULL,
1350   `last_ldl` varchar(255) default NULL,
1351   `last_hemoglobin` varchar(255) default NULL,
1352   `last_psa` varchar(255) default NULL,
1353   `last_exam_results` varchar(255) default NULL,
1354   `history_mother` longtext,
1355   `history_father` longtext,
1356   `history_siblings` longtext,
1357   `history_offspring` longtext,
1358   `history_spouse` longtext,
1359   `relatives_cancer` longtext,
1360   `relatives_tuberculosis` longtext,
1361   `relatives_diabetes` longtext,
1362   `relatives_high_blood_pressure` longtext,
1363   `relatives_heart_problems` longtext,
1364   `relatives_stroke` longtext,
1365   `relatives_epilepsy` longtext,
1366   `relatives_mental_illness` longtext,
1367   `relatives_suicide` longtext,
1368   `cataract_surgery` datetime default NULL,
1369   `tonsillectomy` datetime default NULL,
1370   `cholecystestomy` datetime default NULL,
1371   `heart_surgery` datetime default NULL,
1372   `hysterectomy` datetime default NULL,
1373   `hernia_repair` datetime default NULL,
1374   `hip_replacement` datetime default NULL,
1375   `knee_replacement` datetime default NULL,
1376   `appendectomy` datetime default NULL,
1377   `date` datetime default NULL,
1378   `pid` bigint(20) NOT NULL default '0',
1379   `name_1` varchar(255) default NULL,
1380   `value_1` varchar(255) default NULL,
1381   `name_2` varchar(255) default NULL,
1382   `value_2` varchar(255) default NULL,
1383   `additional_history` text,
1384   `exams`      text         NOT NULL DEFAULT '',
1385   `usertext11` varchar(255) NOT NULL DEFAULT '',
1386   `usertext12` varchar(255) NOT NULL DEFAULT '',
1387   `usertext13` varchar(255) NOT NULL DEFAULT '',
1388   `usertext14` varchar(255) NOT NULL DEFAULT '',
1389   `usertext15` varchar(255) NOT NULL DEFAULT '',
1390   `usertext16` varchar(255) NOT NULL DEFAULT '',
1391   `usertext17` varchar(255) NOT NULL DEFAULT '',
1392   `usertext18` varchar(255) NOT NULL DEFAULT '',
1393   `usertext19` varchar(255) NOT NULL DEFAULT '',
1394   `usertext20` varchar(255) NOT NULL DEFAULT '',
1395   `usertext21` varchar(255) NOT NULL DEFAULT '',
1396   `usertext22` varchar(255) NOT NULL DEFAULT '',
1397   `usertext23` varchar(255) NOT NULL DEFAULT '',
1398   `usertext24` varchar(255) NOT NULL DEFAULT '',
1399   `usertext25` varchar(255) NOT NULL DEFAULT '',
1400   `usertext26` varchar(255) NOT NULL DEFAULT '',
1401   `usertext27` varchar(255) NOT NULL DEFAULT '',
1402   `usertext28` varchar(255) NOT NULL DEFAULT '',
1403   `usertext29` varchar(255) NOT NULL DEFAULT '',
1404   `usertext30` varchar(255) NOT NULL DEFAULT '',
1405   `userdate11` date DEFAULT NULL,
1406   `userdate12` date DEFAULT NULL,
1407   `userdate13` date DEFAULT NULL,
1408   `userdate14` date DEFAULT NULL,
1409   `userdate15` date DEFAULT NULL,
1410   `userarea11` text NOT NULL DEFAULT '',
1411   `userarea12` text NOT NULL DEFAULT '',
1412   PRIMARY KEY  (`id`),
1413   KEY `pid` (`pid`)
1414 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1416 -- --------------------------------------------------------
1418 -- 
1419 -- Table structure for table `immunizations`
1420 -- 
1422 DROP TABLE IF EXISTS `immunizations`;
1423 CREATE TABLE `immunizations` (
1424   `id` bigint(20) NOT NULL auto_increment,
1425   `patient_id` int(11) default NULL,
1426   `administered_date` date default NULL,
1427   `immunization_id` int(11) default NULL,
1428   `manufacturer` varchar(100) default NULL,
1429   `lot_number` varchar(50) default NULL,
1430   `administered_by_id` bigint(20) default NULL,
1431   `administered_by` VARCHAR( 255 ) default NULL COMMENT 'Alternative to administered_by_id',
1432   `education_date` date default NULL,
1433   `vis_date` date default NULL COMMENT 'Date of VIS Statement', 
1434   `note` text,
1435   `create_date` datetime default NULL,
1436   `update_date` timestamp NOT NULL,
1437   `created_by` bigint(20) default NULL,
1438   `updated_by` bigint(20) default NULL,
1439   PRIMARY KEY  (`id`)
1440 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1442 -- --------------------------------------------------------
1444 -- 
1445 -- Table structure for table `insurance_companies`
1446 -- 
1448 DROP TABLE IF EXISTS `insurance_companies`;
1449 CREATE TABLE `insurance_companies` (
1450   `id` int(11) NOT NULL default '0',
1451   `name` varchar(255) default NULL,
1452   `attn` varchar(255) default NULL,
1453   `cms_id` varchar(15) default NULL,
1454   `freeb_type` tinyint(2) default NULL,
1455   `x12_receiver_id` varchar(25) default NULL,
1456   `x12_default_partner_id` int(11) default NULL,
1457   `alt_cms_id` varchar(15) NOT NULL DEFAULT '',
1458   PRIMARY KEY  (`id`)
1459 ) ENGINE=MyISAM;
1461 -- --------------------------------------------------------
1463 -- 
1464 -- Table structure for table `insurance_data`
1465 -- 
1467 DROP TABLE IF EXISTS `insurance_data`;
1468 CREATE TABLE `insurance_data` (
1469   `id` bigint(20) NOT NULL auto_increment,
1470   `type` enum('primary','secondary','tertiary') default NULL,
1471   `provider` varchar(255) default NULL,
1472   `plan_name` varchar(255) default NULL,
1473   `policy_number` varchar(255) default NULL,
1474   `group_number` varchar(255) default NULL,
1475   `subscriber_lname` varchar(255) default NULL,
1476   `subscriber_mname` varchar(255) default NULL,
1477   `subscriber_fname` varchar(255) default NULL,
1478   `subscriber_relationship` varchar(255) default NULL,
1479   `subscriber_ss` varchar(255) default NULL,
1480   `subscriber_DOB` date default NULL,
1481   `subscriber_street` varchar(255) default NULL,
1482   `subscriber_postal_code` varchar(255) default NULL,
1483   `subscriber_city` varchar(255) default NULL,
1484   `subscriber_state` varchar(255) default NULL,
1485   `subscriber_country` varchar(255) default NULL,
1486   `subscriber_phone` varchar(255) default NULL,
1487   `subscriber_employer` varchar(255) default NULL,
1488   `subscriber_employer_street` varchar(255) default NULL,
1489   `subscriber_employer_postal_code` varchar(255) default NULL,
1490   `subscriber_employer_state` varchar(255) default NULL,
1491   `subscriber_employer_country` varchar(255) default NULL,
1492   `subscriber_employer_city` varchar(255) default NULL,
1493   `copay` varchar(255) default NULL,
1494   `date` date NOT NULL default '0000-00-00',
1495   `pid` bigint(20) NOT NULL default '0',
1496   `subscriber_sex` varchar(25) default NULL,
1497   `accept_assignment` varchar(5) NOT NULL DEFAULT 'TRUE',
1498   PRIMARY KEY  (`id`),
1499   UNIQUE KEY `pid_type_date` (`pid`,`type`,`date`)
1500 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1502 -- --------------------------------------------------------
1504 -- 
1505 -- Table structure for table `insurance_numbers`
1506 -- 
1508 DROP TABLE IF EXISTS `insurance_numbers`;
1509 CREATE TABLE `insurance_numbers` (
1510   `id` int(11) NOT NULL default '0',
1511   `provider_id` int(11) NOT NULL default '0',
1512   `insurance_company_id` int(11) default NULL,
1513   `provider_number` varchar(20) default NULL,
1514   `rendering_provider_number` varchar(20) default NULL,
1515   `group_number` varchar(20) default NULL,
1516   `provider_number_type` varchar(4) default NULL,
1517   `rendering_provider_number_type` varchar(4) default NULL,
1518   PRIMARY KEY  (`id`)
1519 ) ENGINE=MyISAM;
1521 -- --------------------------------------------------------
1523 -- 
1524 -- Table structure for table `integration_mapping`
1525 -- 
1527 DROP TABLE IF EXISTS `integration_mapping`;
1528 CREATE TABLE `integration_mapping` (
1529   `id` int(11) NOT NULL default '0',
1530   `foreign_id` int(11) NOT NULL default '0',
1531   `foreign_table` varchar(125) default NULL,
1532   `local_id` int(11) NOT NULL default '0',
1533   `local_table` varchar(125) default NULL,
1534   PRIMARY KEY  (`id`),
1535   UNIQUE KEY `foreign_id` (`foreign_id`,`foreign_table`,`local_id`,`local_table`)
1536 ) ENGINE=MyISAM;
1538 -- --------------------------------------------------------
1540 -- 
1541 -- Table structure for table `issue_encounter`
1542 -- 
1544 DROP TABLE IF EXISTS `issue_encounter`;
1545 CREATE TABLE `issue_encounter` (
1546   `pid` int(11) NOT NULL,
1547   `list_id` int(11) NOT NULL,
1548   `encounter` int(11) NOT NULL,
1549   `resolved` tinyint(1) NOT NULL,
1550   PRIMARY KEY  (`pid`,`list_id`,`encounter`)
1551 ) ENGINE=MyISAM;
1553 -- --------------------------------------------------------
1555 -- 
1556 -- Table structure for table `lang_constants`
1557 -- 
1559 DROP TABLE IF EXISTS `lang_constants`;
1560 CREATE TABLE `lang_constants` (
1561   `cons_id` int(11) NOT NULL auto_increment,
1562   `constant_name` varchar(255) BINARY default NULL,
1563   UNIQUE KEY `cons_id` (`cons_id`),
1564   KEY `constant_name` (`constant_name`)
1565 ) ENGINE=MyISAM ;
1567 -- 
1568 -- Table structure for table `lang_definitions`
1569 -- 
1571 DROP TABLE IF EXISTS `lang_definitions`;
1572 CREATE TABLE `lang_definitions` (
1573   `def_id` int(11) NOT NULL auto_increment,
1574   `cons_id` int(11) NOT NULL default '0',
1575   `lang_id` int(11) NOT NULL default '0',
1576   `definition` mediumtext,
1577   UNIQUE KEY `def_id` (`def_id`),
1578   KEY `cons_id` (`cons_id`)
1579 ) ENGINE=MyISAM ;
1581 -- 
1582 -- Table structure for table `lang_languages`
1583 -- 
1585 DROP TABLE IF EXISTS `lang_languages`;
1586 CREATE TABLE `lang_languages` (
1587   `lang_id` int(11) NOT NULL auto_increment,
1588   `lang_code` char(2) NOT NULL default '',
1589   `lang_description` varchar(100) default NULL,
1590   UNIQUE KEY `lang_id` (`lang_id`)
1591 ) ENGINE=MyISAM AUTO_INCREMENT=2 ;
1593 -- 
1594 -- Dumping data for table `lang_languages`
1595 -- 
1597 INSERT INTO `lang_languages` VALUES (1, 'en', 'English');
1599 -- --------------------------------------------------------
1602 -- Table structure for table `lang_custom`
1605 DROP TABLE IF EXISTS `lang_custom`;
1606 CREATE TABLE `lang_custom` (
1607   `lang_description` varchar(100) NOT NULL default '',
1608   `lang_code` char(2) NOT NULL default '',
1609   `constant_name` varchar(255) NOT NULL default '',
1610   `definition` mediumtext NOT NULL default ''
1611 ) ENGINE=MyISAM ;
1613 -- --------------------------------------------------------
1615 -- 
1616 -- Table structure for table `layout_options`
1617 -- 
1619 DROP TABLE IF EXISTS `layout_options`;
1620 CREATE TABLE `layout_options` (
1621   `form_id` varchar(31) NOT NULL default '',
1622   `field_id` varchar(31) NOT NULL default '',
1623   `group_name` varchar(31) NOT NULL default '',
1624   `title` varchar(63) NOT NULL default '',
1625   `seq` int(11) NOT NULL default '0',
1626   `data_type` tinyint(3) NOT NULL default '0',
1627   `uor` tinyint(1) NOT NULL default '1',
1628   `fld_length` int(11) NOT NULL default '15',
1629   `max_length` int(11) NOT NULL default '0',
1630   `list_id` varchar(31) NOT NULL default '',
1631   `titlecols` tinyint(3) NOT NULL default '1',
1632   `datacols` tinyint(3) NOT NULL default '1',
1633   `default_value` varchar(255) NOT NULL default '',
1634   `edit_options` varchar(36) NOT NULL default '',
1635   `description` text,
1636   PRIMARY KEY  (`form_id`,`field_id`,`seq`)
1637 ) ENGINE=MyISAM;
1639 -- 
1640 -- Dumping data for table `layout_options`
1641 -- 
1642 INSERT INTO `layout_options` VALUES ('DEM', 'title', '1Who', 'Name', 1, 1, 1, 0, 0, 'titles', 1, 1, '', 'N', 'Title');
1643 INSERT INTO `layout_options` VALUES ('DEM', 'fname', '1Who', '', 2, 2, 2, 10, 63, '', 0, 0, '', 'CD', 'First Name');
1644 INSERT INTO `layout_options` VALUES ('DEM', 'mname', '1Who', '', 3, 2, 1, 2, 63, '', 0, 0, '', 'C', 'Middle Name');
1645 INSERT INTO `layout_options` VALUES ('DEM', 'lname', '1Who', '', 4, 2, 2, 10, 63, '', 0, 0, '', 'CD', 'Last Name');
1646 INSERT INTO `layout_options` VALUES ('DEM', 'pubpid', '1Who', 'External ID', 5, 2, 1, 10, 15, '', 1, 1, '', 'ND', 'External identifier');
1647 INSERT INTO `layout_options` VALUES ('DEM', 'DOB', '1Who', 'DOB', 6, 4, 2, 10, 10, '', 1, 1, '', 'D', 'Date of Birth');
1648 INSERT INTO `layout_options` VALUES ('DEM', 'sex', '1Who', 'Sex', 7, 1, 2, 0, 0, 'sex', 1, 1, '', 'N', 'Sex');
1649 INSERT INTO `layout_options` VALUES ('DEM', 'ss', '1Who', 'S.S.', 8, 2, 1, 11, 11, '', 1, 1, '', '', 'Social Security Number');
1650 INSERT INTO `layout_options` VALUES ('DEM', 'drivers_license', '1Who', 'License/ID', 9, 2, 1, 15, 63, '', 1, 1, '', '', 'Drivers License or State ID');
1651 INSERT INTO `layout_options` VALUES ('DEM', 'status', '1Who', 'Marital Status', 10, 1, 1, 0, 0, 'marital', 1, 3, '', '', 'Marital Status');
1652 INSERT INTO `layout_options` VALUES ('DEM', 'genericname1', '1Who', 'User Defined', 11, 2, 1, 15, 63, '', 1, 3, '', '', 'User Defined Field');
1653 INSERT INTO `layout_options` VALUES ('DEM', 'genericval1', '1Who', '', 12, 2, 1, 15, 63, '', 0, 0, '', '', 'User Defined Field');
1654 INSERT INTO `layout_options` VALUES ('DEM', 'genericname2', '1Who', '', 13, 2, 1, 15, 63, '', 0, 0, '', '', 'User Defined Field');
1655 INSERT INTO `layout_options` VALUES ('DEM', 'genericval2', '1Who', '', 14, 2, 1, 15, 63, '', 0, 0, '', '', 'User Defined Field');
1656 INSERT INTO `layout_options` VALUES ('DEM', 'squad', '1Who', 'Squad', 15, 13, 0, 0, 0, '', 1, 3, '', '', 'Squad Membership');
1657 INSERT INTO `layout_options` VALUES ('DEM', 'pricelevel', '1Who', 'Price Level', 16, 1, 0, 0, 0, 'pricelevel', 1, 1, '', '', 'Discount Level');
1658 INSERT INTO `layout_options` VALUES ('DEM', 'street', '2Contact', 'Address', 1, 2, 1, 25, 63, '', 1, 1, '', 'C', 'Street and Number');
1659 INSERT INTO `layout_options` VALUES ('DEM', 'city', '2Contact', 'City', 2, 2, 1, 15, 63, '', 1, 1, '', 'C', 'City Name');
1660 INSERT INTO `layout_options` VALUES ('DEM', 'state', '2Contact', 'State', 3, 26, 1, 0, 0, 'state', 1, 1, '', '', 'State/Locality');
1661 INSERT INTO `layout_options` VALUES ('DEM', 'postal_code', '2Contact', 'Postal Code', 4, 2, 1, 6, 63, '', 1, 1, '', '', 'Postal Code');
1662 INSERT INTO `layout_options` VALUES ('DEM', 'country_code', '2Contact', 'Country', 5, 26, 1, 0, 0, 'country', 1, 1, '', '', 'Country');
1663 INSERT INTO `layout_options` VALUES ('DEM', 'mothersname', '2Contact', 'Mother''s Name', 6, 2, 1, 20, 63, '', 1, 1, '', '', '');
1664 INSERT INTO `layout_options` VALUES ('DEM', 'guardiansname', '2Contact', 'Guardian''s Name', 7, 2, 1, 20, 63, '', 1, 1, '', '', '');
1665 INSERT INTO `layout_options` VALUES ('DEM', 'contact_relationship', '2Contact', 'Emergency Contact', 8, 2, 1, 10, 63, '', 1, 1, '', 'C', 'Emergency Contact Person');
1666 INSERT INTO `layout_options` VALUES ('DEM', 'phone_contact', '2Contact', 'Emergency Phone', 9, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Emergency Contact Phone Number');
1667 INSERT INTO `layout_options` VALUES ('DEM', 'phone_home', '2Contact', 'Home Phone', 10, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Home Phone Number');
1668 INSERT INTO `layout_options` VALUES ('DEM', 'phone_biz', '2Contact', 'Work Phone', 11, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Work Phone Number');
1669 INSERT INTO `layout_options` VALUES ('DEM', 'phone_cell', '2Contact', 'Mobile Phone', 12, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Cell Phone Number');
1670 INSERT INTO `layout_options` VALUES ('DEM', 'email', '2Contact', 'Contact Email', 13, 2, 1, 30, 95, '', 1, 1, '', '', 'Contact Email Address');
1671 INSERT INTO `layout_options` VALUES ('DEM', 'providerID', '3Choices', 'Provider', 1, 11, 1, 0, 0, '', 1, 3, '', '', 'Referring Provider');
1672 INSERT INTO `layout_options` VALUES ('DEM', 'pharmacy_id', '3Choices', 'Pharmacy', 2, 12, 1, 0, 0, '', 1, 3, '', '', 'Preferred Pharmacy');
1673 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_notice', '3Choices', 'HIPAA Notice Received', 3, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Did you receive a copy of the HIPAA Notice?');
1674 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_voice', '3Choices', 'Allow Voice Message', 4, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow telephone messages?');
1675 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_message', '3Choices', 'Leave Message With', 5, 2, 1, 20, 63, '', 1, 1, '', '', 'With whom may we leave a message?');
1676 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_mail', '3Choices', 'Allow Mail Message', 6, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow email messages?');
1677 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_allowsms'  , '3Choices', 'Allow SMS'  , 7, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow SMS (text messages)?');
1678 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_allowemail', '3Choices', 'Allow Email', 8, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow Email?');
1680 INSERT INTO `layout_options` VALUES ('DEM', 'allow_imm_reg_use', '3Choices', 'Allow Immunization Registry Use', 9, 1, 1, 0, 0, 'yesno', 1, 1, '', '', '');
1681 INSERT INTO `layout_options` VALUES ('DEM', 'allow_imm_info_share', '3Choices', 'Allow Immunization Info Sharing', 10, 1, 1, 0, 0, 'yesno', 1, 1, '', '', '');
1682 INSERT INTO `layout_options` VALUES ('DEM', 'allow_health_info_ex', '3Choices', 'Allow Health Information Exchange', 11, 1, 1, 0, 0, 'yesno', 1, 1, '', '', '');
1683 INSERT INTO `layout_options` VALUES ('DEM', 'occupation', '4Employer', 'Occupation', 1, 2, 1, 20, 63, '', 1, 1, '', 'C', 'Occupation');
1684 INSERT INTO `layout_options` VALUES ('DEM', 'em_name', '4Employer', 'Employer Name', 2, 2, 1, 20, 63, '', 1, 1, '', 'C', 'Employer Name');
1685 INSERT INTO `layout_options` VALUES ('DEM', 'em_street', '4Employer', 'Employer Address', 3, 2, 1, 25, 63, '', 1, 1, '', 'C', 'Street and Number');
1686 INSERT INTO `layout_options` VALUES ('DEM', 'em_city', '4Employer', 'City', 4, 2, 1, 15, 63, '', 1, 1, '', 'C', 'City Name');
1687 INSERT INTO `layout_options` VALUES ('DEM', 'em_state', '4Employer', 'State', 5, 26, 1, 0, 0, 'state', 1, 1, '', '', 'State/Locality');
1688 INSERT INTO `layout_options` VALUES ('DEM', 'em_postal_code', '4Employer', 'Postal Code', 6, 2, 1, 6, 63, '', 1, 1, '', '', 'Postal Code');
1689 INSERT INTO `layout_options` VALUES ('DEM', 'em_country', '4Employer', 'Country', 7, 26, 1, 0, 0, 'country', 1, 1, '', '', 'Country');
1690 INSERT INTO `layout_options` VALUES ('DEM', 'language', '5Stats', 'Language', 1, 26, 1, 0, 0, 'language', 1, 1, '', '', 'Preferred Language');
1691 INSERT INTO `layout_options` VALUES ('DEM', 'ethnicity', '5Stats', 'Ethnicity', 2, 33, 1, 0, 0, 'ethnicity', 1, 1, '', '', 'Ethnicity');
1692 INSERT INTO `layout_options` VALUES ('DEM', 'race', '5Stats', 'Race', 3, 33, 1, 0, 0, 'race', 1, 1, '', '', 'Race');
1693 INSERT INTO `layout_options` VALUES ('DEM', 'financial_review', '5Stats', 'Financial Review Date', 4, 2, 1, 10, 10, '', 1, 1, '', 'D', 'Financial Review Date');
1694 INSERT INTO `layout_options` VALUES ('DEM', 'family_size', '5Stats', 'Family Size', 4, 2, 1, 20, 63, '', 1, 1, '', '', 'Family Size');
1695 INSERT INTO `layout_options` VALUES ('DEM', 'monthly_income', '5Stats', 'Monthly Income', 5, 2, 1, 20, 63, '', 1, 1, '', '', 'Monthly Income');
1696 INSERT INTO `layout_options` VALUES ('DEM', 'homeless', '5Stats', 'Homeless, etc.', 6, 2, 1, 20, 63, '', 1, 1, '', '', 'Homeless or similar?');
1697 INSERT INTO `layout_options` VALUES ('DEM', 'interpretter', '5Stats', 'Interpreter', 7, 2, 1, 20, 63, '', 1, 1, '', '', 'Interpreter needed?');
1698 INSERT INTO `layout_options` VALUES ('DEM', 'migrantseasonal', '5Stats', 'Migrant/Seasonal', 8, 2, 1, 20, 63, '', 1, 1, '', '', 'Migrant or seasonal worker?');
1699 INSERT INTO `layout_options` VALUES ('DEM', 'contrastart', '5Stats', 'Contraceptives Start',9,4,0,10,10,'',1,1,'','','Date contraceptive services initially provided');
1700 INSERT INTO `layout_options` VALUES ('DEM', 'referral_source', '5Stats', 'Referral Source',10, 26, 1, 0, 0, 'refsource', 1, 1, '', '', 'How did they hear about us');
1701 INSERT INTO `layout_options` VALUES ('DEM', 'vfc', '5Stats', 'VFC', 12, 1, 1, 20, 0, 'eligibility', 1, 1, '', '', 'Eligibility status for Vaccine for Children supplied vaccine');
1702 INSERT INTO `layout_options` VALUES ('DEM', 'usertext1', '6Misc', 'User Defined Text 1', 1, 2, 0, 10, 63, '', 1, 1, '', '', 'User Defined');
1703 INSERT INTO `layout_options` VALUES ('DEM', 'usertext2', '6Misc', 'User Defined Text 2', 2, 2, 0, 10, 63, '', 1, 1, '', '', 'User Defined');
1704 INSERT INTO `layout_options` VALUES ('DEM', 'usertext3', '6Misc', 'User Defined Text 3', 3,2,0,10,63,'',1,1,'','','User Defined');
1705 INSERT INTO `layout_options` VALUES ('DEM', 'usertext4', '6Misc', 'User Defined Text 4', 4,2,0,10,63,'',1,1,'','','User Defined');
1706 INSERT INTO `layout_options` VALUES ('DEM', 'usertext5', '6Misc', 'User Defined Text 5', 5,2,0,10,63,'',1,1,'','','User Defined');
1707 INSERT INTO `layout_options` VALUES ('DEM', 'usertext6', '6Misc', 'User Defined Text 6', 6,2,0,10,63,'',1,1,'','','User Defined');
1708 INSERT INTO `layout_options` VALUES ('DEM', 'usertext7', '6Misc', 'User Defined Text 7', 7,2,0,10,63,'',1,1,'','','User Defined');
1709 INSERT INTO `layout_options` VALUES ('DEM', 'usertext8', '6Misc', 'User Defined Text 8', 8,2,0,10,63,'',1,1,'','','User Defined');
1710 INSERT INTO `layout_options` VALUES ('DEM', 'userlist1', '6Misc', 'User Defined List 1', 9, 1, 0, 0, 0, 'userlist1', 1, 1, '', '', 'User Defined');
1711 INSERT INTO `layout_options` VALUES ('DEM', 'userlist2', '6Misc', 'User Defined List 2',10, 1, 0, 0, 0, 'userlist2', 1, 1, '', '', 'User Defined');
1712 INSERT INTO `layout_options` VALUES ('DEM', 'userlist3', '6Misc', 'User Defined List 3',11, 1, 0, 0, 0, 'userlist3', 1, 1, '', '' , 'User Defined');
1713 INSERT INTO `layout_options` VALUES ('DEM', 'userlist4', '6Misc', 'User Defined List 4',12, 1, 0, 0, 0, 'userlist4', 1, 1, '', '' , 'User Defined');
1714 INSERT INTO `layout_options` VALUES ('DEM', 'userlist5', '6Misc', 'User Defined List 5',13, 1, 0, 0, 0, 'userlist5', 1, 1, '', '' , 'User Defined');
1715 INSERT INTO `layout_options` VALUES ('DEM', 'userlist6', '6Misc', 'User Defined List 6',14, 1, 0, 0, 0, 'userlist6', 1, 1, '', '' , 'User Defined');
1716 INSERT INTO `layout_options` VALUES ('DEM', 'userlist7', '6Misc', 'User Defined List 7',15, 1, 0, 0, 0, 'userlist7', 1, 1, '', '' , 'User Defined');
1717 INSERT INTO `layout_options` VALUES ('DEM', 'regdate'  , '6Misc', 'Registration Date'  ,16, 4, 0,10,10, ''         , 1, 1, '', 'D', 'Start Date at This Clinic');
1720 INSERT INTO layout_options VALUES ('REF','refer_date'      ,'1Referral','Referral Date'                  , 1, 4,2, 0,  0,''         ,1,1,'C','D','Date of referral');
1721 INSERT INTO layout_options VALUES ('REF','refer_from'      ,'1Referral','Refer By'                       , 2,10,2, 0,  0,''         ,1,1,'' ,'' ,'Referral By');
1722 INSERT INTO layout_options VALUES ('REF','refer_external'  ,'1Referral','External Referral'              , 3, 1,1, 0,  0,'boolean'  ,1,1,'' ,'' ,'External referral?');
1723 INSERT INTO layout_options VALUES ('REF','refer_to'        ,'1Referral','Refer To'                       , 4,14,2, 0,  0,''         ,1,1,'' ,'' ,'Referral To');
1724 INSERT INTO layout_options VALUES ('REF','body'            ,'1Referral','Reason'                         , 5, 3,2,30,  3,''         ,1,1,'' ,'' ,'Reason for referral');
1725 INSERT INTO layout_options VALUES ('REF','refer_diag'      ,'1Referral','Referrer Diagnosis'             , 6, 2,1,30,255,''         ,1,1,'' ,'X','Referrer diagnosis');
1726 INSERT INTO layout_options VALUES ('REF','refer_risk_level','1Referral','Risk Level'                     , 7, 1,1, 0,  0,'risklevel',1,1,'' ,'' ,'Level of urgency');
1727 INSERT INTO layout_options VALUES ('REF','refer_vitals'    ,'1Referral','Include Vitals'                 , 8, 1,1, 0,  0,'boolean'  ,1,1,'' ,'' ,'Include vitals data?');
1728 INSERT INTO layout_options VALUES ('REF','refer_related_code','1Referral','Requested Service'            , 9,15,1,30,255,''         ,1,1,'' ,'' ,'Billing Code for Requested Service');
1729 INSERT INTO layout_options VALUES ('REF','reply_date'      ,'2Counter-Referral','Reply Date'             ,10, 4,1, 0,  0,''         ,1,1,'' ,'D','Date of reply');
1730 INSERT INTO layout_options VALUES ('REF','reply_from'      ,'2Counter-Referral','Reply From'             ,11, 2,1,30,255,''         ,1,1,'' ,'' ,'Who replied?');
1731 INSERT INTO layout_options VALUES ('REF','reply_init_diag' ,'2Counter-Referral','Presumed Diagnosis'     ,12, 2,1,30,255,''         ,1,1,'' ,'' ,'Presumed diagnosis by specialist');
1732 INSERT INTO layout_options VALUES ('REF','reply_final_diag','2Counter-Referral','Final Diagnosis'        ,13, 2,1,30,255,''         ,1,1,'' ,'' ,'Final diagnosis by specialist');
1733 INSERT INTO layout_options VALUES ('REF','reply_documents' ,'2Counter-Referral','Documents'              ,14, 2,1,30,255,''         ,1,1,'' ,'' ,'Where may related scanned or paper documents be found?');
1734 INSERT INTO layout_options VALUES ('REF','reply_findings'  ,'2Counter-Referral','Findings'               ,15, 3,1,30,  3,''         ,1,1,'' ,'' ,'Findings by specialist');
1735 INSERT INTO layout_options VALUES ('REF','reply_services'  ,'2Counter-Referral','Services Provided'      ,16, 3,1,30,  3,''         ,1,1,'' ,'' ,'Service provided by specialist');
1736 INSERT INTO layout_options VALUES ('REF','reply_recommend' ,'2Counter-Referral','Recommendations'        ,17, 3,1,30,  3,''         ,1,1,'' ,'' ,'Recommendations by specialist');
1737 INSERT INTO layout_options VALUES ('REF','reply_rx_refer'  ,'2Counter-Referral','Prescriptions/Referrals',18, 3,1,30,  3,''         ,1,1,'' ,'' ,'Prescriptions and/or referrals by specialist');
1739 INSERT INTO layout_options VALUES ('HIS','usertext11','1General','Risk Factors',1,21,1,0,0,'riskfactors',1,1,'','' ,'Risk Factors');
1740 INSERT INTO layout_options VALUES ('HIS','exams'     ,'1General','Exams/Tests' ,2,23,1,0,0,'exams'      ,1,1,'','' ,'Exam and test results');
1741 INSERT INTO layout_options VALUES ('HIS','history_father'   ,'2Family History','Father'   ,1, 2,1,20,255,'',1,1,'','' ,'');
1742 INSERT INTO layout_options VALUES ('HIS','history_mother'   ,'2Family History','Mother'   ,2, 2,1,20,255,'',1,1,'','' ,'');
1743 INSERT INTO layout_options VALUES ('HIS','history_siblings' ,'2Family History','Siblings' ,3, 2,1,20,255,'',1,1,'','' ,'');
1744 INSERT INTO layout_options VALUES ('HIS','history_spouse'   ,'2Family History','Spouse'   ,4, 2,1,20,255,'',1,1,'','' ,'');
1745 INSERT INTO layout_options VALUES ('HIS','history_offspring','2Family History','Offspring',5, 2,1,20,255,'',1,3,'','' ,'');
1746 INSERT INTO layout_options VALUES ('HIS','relatives_cancer'             ,'3Relatives','Cancer'             ,1, 2,1,20,255,'',1,1,'','' ,'');
1747 INSERT INTO layout_options VALUES ('HIS','relatives_tuberculosis'       ,'3Relatives','Tuberculosis'       ,2, 2,1,20,255,'',1,1,'','' ,'');
1748 INSERT INTO layout_options VALUES ('HIS','relatives_diabetes'           ,'3Relatives','Diabetes'           ,3, 2,1,20,255,'',1,1,'','' ,'');
1749 INSERT INTO layout_options VALUES ('HIS','relatives_high_blood_pressure','3Relatives','High Blood Pressure',4, 2,1,20,255,'',1,1,'','' ,'');
1750 INSERT INTO layout_options VALUES ('HIS','relatives_heart_problems'     ,'3Relatives','Heart Problems'     ,5, 2,1,20,255,'',1,1,'','' ,'');
1751 INSERT INTO layout_options VALUES ('HIS','relatives_stroke'             ,'3Relatives','Stroke'             ,6, 2,1,20,255,'',1,1,'','' ,'');
1752 INSERT INTO layout_options VALUES ('HIS','relatives_epilepsy'           ,'3Relatives','Epilepsy'           ,7, 2,1,20,255,'',1,1,'','' ,'');
1753 INSERT INTO layout_options VALUES ('HIS','relatives_mental_illness'     ,'3Relatives','Mental Illness'     ,8, 2,1,20,255,'',1,1,'','' ,'');
1754 INSERT INTO layout_options VALUES ('HIS','relatives_suicide'            ,'3Relatives','Suicide'            ,9, 2,1,20,255,'',1,3,'','' ,'');
1755 INSERT INTO layout_options VALUES ('HIS','coffee'              ,'4Lifestyle','Coffee'              ,2,28,1,20,255,'',1,3,'','' ,'Caffeine consumption');
1756 INSERT INTO layout_options VALUES ('HIS','tobacco'             ,'4Lifestyle','Tobacco'             ,1,32,1,0,255,'smoking_status',1,3,'','' ,'Tobacco use');
1757 INSERT INTO layout_options VALUES ('HIS','alcohol'             ,'4Lifestyle','Alcohol'             ,3,28,1,20,255,'',1,3,'','' ,'Alcohol consumption');
1758 INSERT INTO layout_options VALUES ('HIS','recreational_drugs'  ,'4Lifestyle','Recreational Drugs'  ,4,28,1,20,255,'',1,3,'','' ,'Recreational drug use');
1759 INSERT INTO layout_options VALUES ('HIS','counseling'          ,'4Lifestyle','Counseling'          ,5,28,1,20,255,'',1,3,'','' ,'Counseling activities');
1760 INSERT INTO layout_options VALUES ('HIS','exercise_patterns'   ,'4Lifestyle','Exercise Patterns'   ,6,28,1,20,255,'',1,3,'','' ,'Exercise patterns');
1761 INSERT INTO layout_options VALUES ('HIS','hazardous_activities','4Lifestyle','Hazardous Activities',7,28,1,20,255,'',1,3,'','' ,'Hazardous activities');
1762 INSERT INTO layout_options VALUES ('HIS','sleep_patterns'      ,'4Lifestyle','Sleep Patterns'      ,8, 2,1,20,255,'',1,3,'','' ,'Sleep patterns');
1763 INSERT INTO layout_options VALUES ('HIS','seatbelt_use'        ,'4Lifestyle','Seatbelt Use'        ,9, 2,1,20,255,'',1,3,'','' ,'Seatbelt use');
1764 INSERT INTO layout_options VALUES ('HIS','name_1'            ,'5Other','Name/Value'        ,1, 2,1,10,255,'',1,1,'','' ,'Name 1' );
1765 INSERT INTO layout_options VALUES ('HIS','value_1'           ,'5Other',''                  ,2, 2,1,10,255,'',0,0,'','' ,'Value 1');
1766 INSERT INTO layout_options VALUES ('HIS','name_2'            ,'5Other','Name/Value'        ,3, 2,1,10,255,'',1,1,'','' ,'Name 2' );
1767 INSERT INTO layout_options VALUES ('HIS','value_2'           ,'5Other',''                  ,4, 2,1,10,255,'',0,0,'','' ,'Value 2');
1768 INSERT INTO layout_options VALUES ('HIS','additional_history','5Other','Additional History',5, 3,1,30,  3,'',1,3,'' ,'' ,'Additional history notes');
1769 INSERT INTO layout_options VALUES ('HIS','userarea11'        ,'5Other','User Defined Area 11',6,3,0,30,3,'',1,3,'','','User Defined');
1770 INSERT INTO layout_options VALUES ('HIS','userarea12'        ,'5Other','User Defined Area 12',7,3,0,30,3,'',1,3,'','','User Defined');
1772 -- --------------------------------------------------------
1774 -- 
1775 -- Table structure for table `list_options`
1776 -- 
1778 DROP TABLE IF EXISTS `list_options`;
1779 CREATE TABLE `list_options` (
1780   `list_id` varchar(31) NOT NULL default '',
1781   `option_id` varchar(31) NOT NULL default '',
1782   `title` varchar(255) NOT NULL default '',
1783   `seq` int(11) NOT NULL default '0',
1784   `is_default` tinyint(1) NOT NULL default '0',
1785   `option_value` float NOT NULL default '0',
1786   `mapping` varchar(31) NOT NULL DEFAULT '',
1787   `notes` varchar(255) NOT NULL DEFAULT '',
1788   PRIMARY KEY  (`list_id`,`option_id`)
1789 ) ENGINE=MyISAM;
1791 -- 
1792 -- Dumping data for table `list_options`
1793 -- 
1795 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('yesno', 'NO', 'NO', 1, 0);
1796 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('yesno', 'YES', 'YES', 2, 0);
1797 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Mr.', 'Mr.', 1, 0);
1798 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Mrs.', 'Mrs.', 2, 0);
1799 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Ms.', 'Ms.', 3, 0);
1800 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Dr.', 'Dr.', 4, 0);
1801 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sex', 'Female', 'Female', 1, 0);
1802 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sex', 'Male', 'Male', 2, 0);
1803 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'married', 'Married', 1, 0);
1804 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'single', 'Single', 2, 0);
1805 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'divorced', 'Divorced', 3, 0);
1806 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'widowed', 'Widowed', 4, 0);
1807 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'separated', 'Separated', 5, 0);
1808 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'domestic partner', 'Domestic Partner', 6, 0);
1810 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'armenian', 'Armenian', 10, 0);
1811 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'chinese', 'Chinese', 20, 0);
1812 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'danish', 'Danish', 30, 0);
1813 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'deaf', 'Deaf', 40, 0);
1814 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'English', 'English', 50, 0);
1815 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'farsi', 'Farsi', 60, 0);
1816 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'french', 'French', 70, 0);
1817 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'german', 'German', 80, 0);
1818 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'greek', 'Greek', 90, 0);
1819 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'hmong', 'Hmong', 100, 0);
1820 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'italian', 'Italian', 110, 0);
1821 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'japanese', 'Japanese', 120, 0);
1822 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'korean', 'Korean', 130, 0);
1823 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'laotian', 'Laotian', 140, 0);
1824 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'mien', 'Mien', 150, 0);
1825 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'norwegian', 'Norwegian', 160, 0);
1826 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'othrs', 'Others', 170, 0);
1827 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'portuguese', 'Portuguese', 180, 0);
1828 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'punjabi', 'Punjabi', 190, 0);
1829 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'russian', 'Russian', 200, 0);
1830 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'Spanish', 'Spanish', 210, 0);
1831 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'tagalog', 'Tagalog', 220, 0);
1832 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'turkish', 'Turkish', 230, 0);
1833 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'vietnamese', 'Vietnamese', 240, 0);
1834 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'yiddish', 'Yiddish', 250, 0);
1835 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'zulu', 'Zulu', 260, 0);
1836 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'aleut', 'ALEUT', 10,  0);
1837 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'amer_indian', 'American Indian', 20, 0);
1838 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Asian', 'Asian', 30, 0);
1839 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Black', 'Black', 40, 0);
1840 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'cambodian', 'Cambodian', 50, 0);
1841 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Caucasian', 'Caucasian', 60, 0);
1842 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'cs_american', 'Central/South American', 70, 0);
1843 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'chinese', 'Chinese', 80, 0);
1844 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'cuban', 'Cuban', 90, 0);
1845 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'eskimo', 'Eskimo', 100, 0);
1846 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'filipino', 'Filipino', 110, 0);
1847 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'guamanian', 'Guamanian', 120, 0);
1848 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'hawaiian', 'Hawaiian', 130, 0);
1849 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Hispanic', 'Hispanic', 140, 0);
1850 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr_us', 'Hispanic - Other (Born in US)', 150, 0);
1851 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr_non_us', 'Hispanic - Other (Born outside US)', 160, 0);
1852 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'hmong', 'Hmong', 170, 0);
1853 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'indian', 'Indian', 180, 0);
1854 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'japanese', 'Japanese', 190, 0);
1855 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'korean', 'Korean', 200, 0);
1856 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'laotian', 'Laotian', 210, 0);
1857 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'mexican', 'Mexican/MexAmer/Chicano', 220, 0);
1858 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'mlt-race', 'Multiracial', 230, 0);
1859 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr', 'Other', 240, 0);
1860 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr_spec', 'Other - Specified', 250, 0);
1861 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'pac_island', 'Pacific Islander', 260, 0);
1862 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'puerto_rican', 'Puerto Rican', 270, 0);
1863 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'refused', 'Refused To State', 280, 0);
1864 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'samoan', 'Samoan', 290, 0);
1865 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'spec', 'Specified', 300, 0);
1866 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'thai', 'Thai', 310, 0);
1867 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'unknown', 'Unknown', 320, 0);
1868 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'unspec', 'Unspecified', 330, 0);
1869 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'vietnamese', 'Vietnamese', 340, 0);
1870 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'white', 'White', 350, 0);
1871 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'withheld', 'Withheld', 360, 0);
1873 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist1', 'sample', 'Sample', 1, 0);
1874 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist2', 'sample', 'Sample', 1, 0);
1875 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist3','sample','Sample',1,0);
1876 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist4','sample','Sample',1,0);
1877 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist5','sample','Sample',1,0);
1878 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist6','sample','Sample',1,0);
1879 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist7','sample','Sample',1,0);
1880 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('pricelevel', 'standard', 'Standard', 1, 1);
1881 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('risklevel', 'low', 'Low', 1, 0);
1882 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('risklevel', 'medium', 'Medium', 2, 1);
1883 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('risklevel', 'high', 'High', 3, 0);
1884 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('boolean', '0', 'No', 1, 0);
1885 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('boolean', '1', 'Yes', 2, 0);
1886 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('country', 'USA', 'USA', 1, 0);
1888 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AL','Alabama'             , 1,0);
1889 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AK','Alaska'              , 2,0);
1890 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AZ','Arizona'             , 3,0);
1891 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AR','Arkansas'            , 4,0);
1892 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','CA','California'          , 5,0);
1893 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','CO','Colorado'            , 6,0);
1894 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','CT','Connecticut'         , 7,0);
1895 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','DE','Delaware'            , 8,0);
1896 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','DC','District of Columbia', 9,0);
1897 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','FL','Florida'             ,10,0);
1898 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','GA','Georgia'             ,11,0);
1899 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','HI','Hawaii'              ,12,0);
1900 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','ID','Idaho'               ,13,0);
1901 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','IL','Illinois'            ,14,0);
1902 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','IN','Indiana'             ,15,0);
1903 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','IA','Iowa'                ,16,0);
1904 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','KS','Kansas'              ,17,0);
1905 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','KY','Kentucky'            ,18,0);
1906 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','LA','Louisiana'           ,19,0);
1907 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','ME','Maine'               ,20,0);
1908 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MD','Maryland'            ,21,0);
1909 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MA','Massachusetts'       ,22,0);
1910 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MI','Michigan'            ,23,0);
1911 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MN','Minnesota'           ,24,0);
1912 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MS','Mississippi'         ,25,0);
1913 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MO','Missouri'            ,26,0);
1914 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MT','Montana'             ,27,0);
1915 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NE','Nebraska'            ,28,0);
1916 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NV','Nevada'              ,29,0);
1917 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NH','New Hampshire'       ,30,0);
1918 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NJ','New Jersey'          ,31,0);
1919 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NM','New Mexico'          ,32,0);
1920 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NY','New York'            ,33,0);
1921 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NC','North Carolina'      ,34,0);
1922 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','ND','North Dakota'        ,35,0);
1923 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','OH','Ohio'                ,36,0);
1924 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','OK','Oklahoma'            ,37,0);
1925 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','OR','Oregon'              ,38,0);
1926 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','PA','Pennsylvania'        ,39,0);
1927 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','RI','Rhode Island'        ,40,0);
1928 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','SC','South Carolina'      ,41,0);
1929 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','SD','South Dakota'        ,42,0);
1930 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','TN','Tennessee'           ,43,0);
1931 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','TX','Texas'               ,44,0);
1932 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','UT','Utah'                ,45,0);
1933 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','VT','Vermont'             ,46,0);
1934 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','VA','Virginia'            ,47,0);
1935 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WA','Washington'          ,48,0);
1936 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WV','West Virginia'       ,49,0);
1937 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WI','Wisconsin'           ,50,0);
1938 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WY','Wyoming'             ,51,0);
1940 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Patient'      ,'Patient'      , 1,0);
1941 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Employee'     ,'Employee'     , 2,0);
1942 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Walk-In'      ,'Walk-In'      , 3,0);
1943 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Newspaper'    ,'Newspaper'    , 4,0);
1944 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Radio'        ,'Radio'        , 5,0);
1945 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','T.V.'         ,'T.V.'         , 6,0);
1946 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Direct Mail'  ,'Direct Mail'  , 7,0);
1947 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Coupon'       ,'Coupon'       , 8,0);
1948 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Referral Card','Referral Card', 9,0);
1949 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Other'        ,'Other'        ,10,0);
1950 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','vv' ,'Varicose Veins'                      , 1,0);
1951 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','ht' ,'Hypertension'                        , 2,0);
1952 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','db' ,'Diabetes'                            , 3,0);
1953 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','sc' ,'Sickle Cell'                         , 4,0);
1954 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','fib','Fibroids'                            , 5,0);
1955 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','pid','PID (Pelvic Inflammatory Disease)'   , 6,0);
1956 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','mig','Severe Migraine'                     , 7,0);
1957 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','hd' ,'Heart Disease'                       , 8,0);
1958 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','str','Thrombosis/Stroke'                   , 9,0);
1959 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','hep','Hepatitis'                           ,10,0);
1960 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','gb' ,'Gall Bladder Condition'              ,11,0);
1961 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','br' ,'Breast Disease'                      ,12,0);
1962 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','dpr','Depression'                          ,13,0);
1963 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','all','Allergies'                           ,14,0);
1964 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','inf','Infertility'                         ,15,0);
1965 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','ast','Asthma'                              ,16,0);
1966 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','ep' ,'Epilepsy'                            ,17,0);
1967 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','cl' ,'Contact Lenses'                      ,18,0);
1968 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','coc','Contraceptive Complication (specify)',19,0);
1969 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','oth','Other (specify)'                     ,20,0);
1970 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'brs','Breast Exam'          , 1,0);
1971 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'cec','Cardiac Echo'         , 2,0);
1972 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'ecg','ECG'                  , 3,0);
1973 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'gyn','Gynecological Exam'   , 4,0);
1974 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'mam','Mammogram'            , 5,0);
1975 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'phy','Physical Exam'        , 6,0);
1976 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'pro','Prostate Exam'        , 7,0);
1977 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'rec','Rectal Exam'          , 8,0);
1978 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'sic','Sigmoid/Colonoscopy'  , 9,0);
1979 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'ret','Retinal Exam'         ,10,0);
1980 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'flu','Flu Vaccination'      ,11,0);
1981 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'pne','Pneumonia Vaccination',12,0);
1982 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'ldl','LDL'                  ,13,0);
1983 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'hem','Hemoglobin'           ,14,0);
1984 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'psa','PSA'                  ,15,0);
1985 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','0',''           ,0,0);
1986 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','1','suspension' ,1,0);
1987 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','2','tablet'     ,2,0);
1988 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','3','capsule'    ,3,0);
1989 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','4','solution'   ,4,0);
1990 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','5','tsp'        ,5,0);
1991 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','6','ml'         ,6,0);
1992 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','7','units'      ,7,0);
1993 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','8','inhalations',8,0);
1994 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','9','gtts(drops)',9,0);
1995 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','10','cream'   ,10,0);
1996 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','11','ointment',11,0);
1997 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','0',''          ,0,0);
1998 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','1','mg'    ,1,0);
1999 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','2','mg/1cc',2,0);
2000 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','3','mg/2cc',3,0);
2001 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','4','mg/3cc',4,0);
2002 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','5','mg/4cc',5,0);
2003 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','6','mg/5cc',6,0);
2004 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','7','mcg'   ,7,0);
2005 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','8','grams' ,8,0);
2006 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '0',''                 , 0,0);
2007 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '1','Per Oris'         , 1,0);
2008 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '2','Per Rectum'       , 2,0);
2009 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '3','To Skin'          , 3,0);
2010 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '4','To Affected Area' , 4,0);
2011 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '5','Sublingual'       , 5,0);
2012 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '6','OS'               , 6,0);
2013 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '7','OD'               , 7,0);
2014 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '8','OU'               , 8,0);
2015 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '9','SQ'               , 9,0);
2016 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','10','IM'               ,10,0);
2017 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','11','IV'               ,11,0);
2018 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','12','Per Nostril'      ,12,0);
2019 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','13','Both Ears',13,0);
2020 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','14','Left Ear' ,14,0);
2021 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','15','Right Ear',15,0);
2022 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','0',''      ,0,0);
2023 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','1','b.i.d.',1,0);
2024 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','2','t.i.d.',2,0);
2025 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','3','q.i.d.',3,0);
2026 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','4','q.3h'  ,4,0);
2027 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','5','q.4h'  ,5,0);
2028 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','6','q.5h'  ,6,0);
2029 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','7','q.6h'  ,7,0);
2030 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','8','q.8h'  ,8,0);
2031 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','9','q.d.'  ,9,0);
2032 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','10','a.c.'  ,10,0);
2033 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','11','p.c.'  ,11,0);
2034 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','12','a.m.'  ,12,0);
2035 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','13','p.m.'  ,13,0);
2036 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','14','ante'  ,14,0);
2037 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','15','h'     ,15,0);
2038 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','16','h.s.'  ,16,0);
2039 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','17','p.r.n.',17,0);
2040 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','18','stat'  ,18,0);
2042 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('chartloc','fileroom','File Room'              ,1,0);
2043 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'boolean'      ,'Boolean'            , 1,0);
2044 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'chartloc'     ,'Chart Storage Locations',1,0);
2045 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'country'      ,'Country'            , 2,0);
2046 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_form'    ,'Drug Forms'         , 3,0);
2047 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_units'   ,'Drug Units'         , 4,0);
2048 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_route'   ,'Drug Routes'        , 5,0);
2049 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_interval','Drug Intervals'     , 6,0);
2050 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'exams'        ,'Exams/Tests'        , 7,0);
2051 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'feesheet'     ,'Fee Sheet'          , 8,0);
2052 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'language'     ,'Language'           , 9,0);
2053 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'lbfnames'     ,'Layout-Based Visit Forms',9,0);
2054 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'marital'      ,'Marital Status'     ,10,0);
2055 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'pricelevel'   ,'Price Level'        ,11,0);
2056 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'ethrace'      ,'Race/Ethnicity'     ,12,0);
2057 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'refsource'    ,'Referral Source'    ,13,0);
2058 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'riskfactors'  ,'Risk Factors'       ,14,0);
2059 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'risklevel'    ,'Risk Level'         ,15,0);
2060 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'superbill'    ,'Service Category'   ,16,0);
2061 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'sex'          ,'Sex'                ,17,0);
2062 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'state'        ,'State'              ,18,0);
2063 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'taxrate'      ,'Tax Rate'           ,19,0);
2064 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'titles'       ,'Titles'             ,20,0);
2065 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'yesno'        ,'Yes/No'             ,21,0);
2066 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist1'    ,'User Defined List 1',22,0);
2067 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist2'    ,'User Defined List 2',23,0);
2068 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist3'    ,'User Defined List 3',24,0);
2069 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist4'    ,'User Defined List 4',25,0);
2070 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist5'    ,'User Defined List 5',26,0);
2071 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist6'    ,'User Defined List 6',27,0);
2072 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist7'    ,'User Defined List 7',28,0);
2074 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'    ,'adjreason'      ,'Adjustment Reasons',1,0);
2075 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Adm adjust'     ,'Adm adjust'     , 5,1);
2076 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','After hrs calls','After hrs calls',10,1);
2077 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Bad check'      ,'Bad check'      ,15,1);
2078 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Bad debt'       ,'Bad debt'       ,20,1);
2079 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Coll w/o'       ,'Coll w/o'       ,25,1);
2080 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Discount'       ,'Discount'       ,30,1);
2081 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Hardship w/o'   ,'Hardship w/o'   ,35,1);
2082 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins adjust'     ,'Ins adjust'     ,40,1);
2083 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins bundling'   ,'Ins bundling'   ,45,1);
2084 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins overpaid'   ,'Ins overpaid'   ,50,5);
2085 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins refund'     ,'Ins refund'     ,55,5);
2086 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Pt overpaid'    ,'Pt overpaid'    ,60,5);
2087 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Pt refund'      ,'Pt refund'      ,65,5);
2088 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Pt released'    ,'Pt released'    ,70,1);
2089 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Sm debt w/o'    ,'Sm debt w/o'    ,75,1);
2090 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','To copay'       ,'To copay'       ,80,2);
2091 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','To ded\'ble'    ,'To ded\'ble'    ,85,3);
2092 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Untimely filing','Untimely filing',90,1);
2094 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'       ,'sub_relation','Subscriber Relationship',18,0);
2095 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','self'        ,'Self'                   , 1,0);
2096 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','spouse'      ,'Spouse'                 , 2,0);
2097 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','child'       ,'Child'                  , 3,0);
2098 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','other'       ,'Other'                  , 4,0);
2100 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'     ,'occurrence','Occurrence'                  ,10,0);
2101 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','0'         ,'Unknown or N/A'              , 5,0);
2102 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','1'         ,'First'                       ,10,0);
2103 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','6'         ,'Early Recurrence (<2 Mo)'    ,15,0);
2104 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','7'         ,'Late Recurrence (2-12 Mo)'   ,20,0);
2105 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','8'         ,'Delayed Recurrence (> 12 Mo)',25,0);
2106 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','4'         ,'Chronic/Recurrent'           ,30,0);
2107 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','5'         ,'Acute on Chronic'            ,35,0);
2109 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'  ,'outcome','Outcome'         ,10,0);
2110 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','0'      ,'Unassigned'      , 2,0);
2111 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','1'      ,'Resolved'        , 5,0);
2112 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','2'      ,'Improved'        ,10,0);
2113 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','3'      ,'Status quo'      ,15,0);
2114 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','4'      ,'Worse'           ,20,0);
2115 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','5'      ,'Pending followup',25,0);
2117 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'    ,'note_type'      ,'Patient Note Types',10,0);
2118 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Unassigned'     ,'Unassigned'        , 1,0);
2119 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Chart Note'     ,'Chart Note'        , 2,0);
2120 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Insurance'      ,'Insurance'         , 3,0);
2121 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','New Document'   ,'New Document'      , 4,0);
2122 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Pharmacy'       ,'Pharmacy'          , 5,0);
2123 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Prior Auth'     ,'Prior Auth'        , 6,0);
2124 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Referral'       ,'Referral'          , 7,0);
2125 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Test Scheduling','Test Scheduling'   , 8,0);
2126 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Bill/Collect'   ,'Bill/Collect'      , 9,0);
2127 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Other'          ,'Other'             ,10,0);
2129 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'        ,'immunizations','Immunizations'           ,  8,0);
2130 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','1'            ,'DTaP 1'                  , 30,0);
2131 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','2'            ,'DTaP 2'                  , 35,0);
2132 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','3'            ,'DTaP 3'                  , 40,0);
2133 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','4'            ,'DTaP 4'                  , 45,0);
2134 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','5'            ,'DTaP 5'                  , 50,0);
2135 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','6'            ,'DT 1'                    ,  5,0);
2136 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','7'            ,'DT 2'                    , 10,0);
2137 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','8'            ,'DT 3'                    , 15,0);
2138 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','9'            ,'DT 4'                    , 20,0);
2139 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','10'           ,'DT 5'                    , 25,0);
2140 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','11'           ,'IPV 1'                   ,110,0);
2141 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','12'           ,'IPV 2'                   ,115,0);
2142 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','13'           ,'IPV 3'                   ,120,0);
2143 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','14'           ,'IPV 4'                   ,125,0);
2144 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','15'           ,'Hib 1'                   , 80,0);
2145 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','16'           ,'Hib 2'                   , 85,0);
2146 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','17'           ,'Hib 3'                   , 90,0);
2147 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','18'           ,'Hib 4'                   , 95,0);
2148 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','19'           ,'Pneumococcal Conjugate 1',140,0);
2149 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','20'           ,'Pneumococcal Conjugate 2',145,0);
2150 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','21'           ,'Pneumococcal Conjugate 3',150,0);
2151 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','22'           ,'Pneumococcal Conjugate 4',155,0);
2152 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','23'           ,'MMR 1'                   ,130,0);
2153 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','24'           ,'MMR 2'                   ,135,0);
2154 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','25'           ,'Varicella 1'             ,165,0);
2155 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','26'           ,'Varicella 2'             ,170,0);
2156 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','27'           ,'Hepatitis B 1'           , 65,0);
2157 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','28'           ,'Hepatitis B 2'           , 70,0);
2158 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','29'           ,'Hepatitis B 3'           , 75,0);
2159 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','30'           ,'Influenza 1'             ,100,0);
2160 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','31'           ,'Influenza 2'             ,105,0);
2161 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','32'           ,'Td'                      ,160,0);
2162 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','33'           ,'Hepatitis A 1'           , 55,0);
2163 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','34'           ,'Hepatitis A 2'           , 60,0);
2164 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','35'           ,'Other'                   ,175,0);
2166 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'apptstat','Appointment Statuses', 1,0);
2167 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','-'       ,'- None'              , 5,0);
2168 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','*'       ,'* Reminder done'     ,10,0);
2169 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','+'       ,'+ Chart pulled'      ,15,0);
2170 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','x'       ,'x Canceled'          ,20,0);
2171 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','?'       ,'? No show'           ,25,0);
2172 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','@'       ,'@ Arrived'           ,30,0);
2173 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','~'       ,'~ Arrived late'      ,35,0);
2174 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','!'       ,'! Left w/o visit'    ,40,0);
2175 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','#'       ,'# Ins/fin issue'     ,45,0);
2176 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','<'       ,'< In exam room'      ,50,0);
2177 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','>'       ,'> Checked out'       ,55,0);
2178 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','$'       ,'$ Coding done'       ,60,0);
2179 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','%'       ,'% Canceled < 24h'    ,65,0);
2181 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'    ,'warehouse','Warehouses',21,0);
2182 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('warehouse','onsite'   ,'On Site'   , 5,0);
2184 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','abook_type'  ,'Address Book Types'  , 1,0);
2185 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','ord_img','Imaging Service'     , 5,3);
2186 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','ord_imm','Immunization Service',10,3);
2187 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','ord_lab','Lab Service'         ,15,3);
2188 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','spe'    ,'Specialist'          ,20,2);
2189 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','vendor' ,'Vendor'              ,25,3);
2190 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','dist'   ,'Distributor'         ,30,3);
2191 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','oth'    ,'Other'               ,95,1);
2193 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_type','Procedure Types', 1,0);
2194 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','grp','Group'          ,10,0);
2195 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','ord','Procedure Order',20,0);
2196 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','res','Discrete Result',30,0);
2197 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','rec','Recommendation' ,40,0);
2199 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_body_site','Procedure Body Sites', 1,0);
2200 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_body_site','arm'    ,'Arm'    ,10,0);
2201 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_body_site','buttock','Buttock',20,0);
2202 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_body_site','oth'    ,'Other'  ,90,0);
2204 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_specimen','Procedure Specimen Types', 1,0);
2205 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','blood' ,'Blood' ,10,0);
2206 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','saliva','Saliva',20,0);
2207 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','urine' ,'Urine' ,30,0);
2208 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','oth'   ,'Other' ,90,0);
2210 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_route','Procedure Routes', 1,0);
2211 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_route','inj' ,'Injection',10,0);
2212 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_route','oral','Oral'     ,20,0);
2213 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_route','oth' ,'Other'    ,90,0);
2215 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_lat','Procedure Lateralities', 1,0);
2216 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_lat','left' ,'Left'     ,10,0);
2217 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_lat','right','Right'    ,20,0);
2218 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_lat','bilat','Bilateral',30,0);
2220 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('lists','proc_unit','Procedure Units', 1);
2221 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','bool'       ,'Boolean'    ,  5);
2222 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','cu_mm'      ,'CU.MM'      , 10);
2223 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','fl'         ,'FL'         , 20);
2224 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','g_dl'       ,'G/DL'       , 30);
2225 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','gm_dl'      ,'GM/DL'      , 40);
2226 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','hmol_l'     ,'HMOL/L'     , 50);
2227 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','iu_l'       ,'IU/L'       , 60);
2228 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','mg_dl'      ,'MG/DL'      , 70);
2229 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','mil_cu_mm'  ,'Mil/CU.MM'  , 80);
2230 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','percent'    ,'Percent'    , 90);
2231 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','percentile' ,'Percentile' ,100);
2232 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','pg'         ,'PG'         ,110);
2233 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','ratio'      ,'Ratio'      ,120);
2234 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','thous_cu_mm','Thous/CU.MM',130);
2235 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','units'      ,'Units'      ,140);
2236 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','units_l'    ,'Units/L'    ,150);
2237 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','days'       ,'Days'       ,600);
2238 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','weeks'      ,'Weeks'      ,610);
2239 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','months'     ,'Months'     ,620);
2240 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','oth'        ,'Other'      ,990);
2242 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','ord_priority','Order Priorities', 1,0);
2243 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_priority','high'  ,'High'  ,10,0);
2244 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_priority','normal','Normal',20,0);
2246 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','ord_status','Order Statuses', 1,0);
2247 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','pending' ,'Pending' ,10,0);
2248 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','routed'  ,'Routed'  ,20,0);
2249 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','complete','Complete',30,0);
2250 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','canceled','Canceled',40,0);
2252 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_rep_status','Procedure Report Statuses', 1,0);
2253 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','final'  ,'Final'      ,10,0);
2254 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','review' ,'Reviewed'   ,20,0);
2255 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','prelim' ,'Preliminary',30,0);
2256 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','cancel' ,'Canceled'   ,40,0);
2257 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','error'  ,'Error'      ,50,0);
2258 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','correct','Corrected'  ,60,0);
2260 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_res_abnormal','Procedure Result Abnormal', 1,0);
2261 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','no'  ,'No'  ,10,0);
2262 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','yes' ,'Yes' ,20,0);
2263 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','high','High',30,0);
2264 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','low' ,'Low' ,40,0);
2266 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_res_status','Procedure Result Statuses', 1,0);
2267 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','final'     ,'Final'      ,10,0);
2268 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','prelim'    ,'Preliminary',20,0);
2269 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','cancel'    ,'Canceled'   ,30,0);
2270 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','error'     ,'Error'      ,40,0);
2271 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','correct'   ,'Corrected'  ,50,0);
2272 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','incomplete','Incomplete' ,60,0);
2274 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_res_bool','Procedure Boolean Results', 1,0);
2275 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_bool','neg' ,'Negative',10,0);
2276 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_bool','pos' ,'Positive',20,0);
2278 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'         ,'message_status','Message Status',45,0);
2279 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','Done'           ,'Done'         , 5,0);
2280 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','Forwarded'      ,'Forwarded'    ,10,0);
2281 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','New'            ,'New'          ,15,0);
2282 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','Read'           ,'Read'         ,20,0);
2284 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Lab Results' ,'Lab Results', 15,0);
2285 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','New Orders' ,'New Orders', 20,0);
2286 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Patient Reminders' ,'Patient Reminders', 25,0);
2288 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'irnpool','Invoice Reference Number Pools', 1,0);
2289 INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('irnpool','main','Main',1,1,'000001');
2291 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists', 'eligibility', 'Eligibility', 60, 0);
2292 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('eligibility', 'eligible', 'Eligible', 10, 0);
2293 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('eligibility', 'ineligible', 'Ineligible', 20, 0);
2295 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists', 'transactions', 'Transactions', 20, 0);
2296 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Referral', 'Referral', 10, 0);
2297 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Patient Request', 'Patient Request', 20, 0);
2298 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Physician Request', 'Physician Request', 30, 0);
2299 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Legal', 'Legal', 40, 0);
2300 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Billing', 'Billing', 50, 0);
2303 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'payment_adjustment_code','Payment Adjustment Code', 1,0);
2304 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'family_payment', 'Family Payment', 20, 0);
2305 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'group_payment', 'Group Payment', 30, 0);
2306 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'insurance_payment', 'Insurance Payment', 40, 0);
2307 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'patient_payment', 'Patient Payment', 50, 0);
2308 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'pre_payment', 'Pre Payment', 60, 0);
2310 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'payment_ins','Payment Ins', 1,0);
2311 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '0', 'Pat', 40, 0);
2312 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '1', 'Ins1', 10, 0);
2313 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '2', 'Ins2', 20, 0);
2314 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '3', 'Ins3', 30, 0);
2316 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'payment_method','Payment Method', 1,0);
2317 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'bank_draft', 'Bank Draft', 50, 0);
2318 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'cash', 'Cash', 20, 0);
2319 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'check_payment', 'Check Payment', 10, 0);
2320 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'credit_card', 'Credit Card', 30, 0);
2321 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'electronic', 'Electronic', 40, 0);
2323 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'payment_sort_by','Payment Sort By', 1,0);
2324 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'check_date', 'Check Date', 20, 0);
2325 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'payer_id', 'Ins Code', 40, 0);
2326 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'payment_method', 'Payment Method', 50, 0);
2327 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'payment_type', 'Paying Entity', 30, 0);
2328 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'pay_total', 'Amount', 70, 0);
2329 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'reference', 'Check Number', 60, 0);
2330 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'session_id', 'Id', 10, 0);
2332 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'payment_status','Payment Status', 1,0);
2333 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_status', 'fully_paid', 'Fully Paid', 10, 0);
2334 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_status', 'unapplied', 'Unapplied', 20, 0);
2336 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'payment_type','Payment Type', 1,0);
2337 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_type', 'insurance', 'Insurance', 10, 0);
2338 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_type', 'patient', 'Patient', 20, 0);
2340 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists', 'date_master_criteria', 'Date Master Criteria', 33, 1);
2341 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'all', 'All', 10, 0);
2342 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'today', 'Today', 20, 0);
2343 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'this_month_to_date', 'This Month to Date', 30, 0);
2344 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'last_month', 'Last Month', 40, 0);
2345 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'this_week_to_date', 'This Week to Date', 50, 0);
2346 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'this_calendar_year', 'This Calendar Year', 60, 0);
2347 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'last_calendar_year', 'Last Calendar Year', 70, 0);
2348 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'custom', 'Custom', 80, 0);
2350 -- --------------------------------------------------------
2352 -- 
2353 -- Table structure for table `lists`
2354 -- 
2356 DROP TABLE IF EXISTS `lists`;
2357 CREATE TABLE `lists` (
2358   `id` bigint(20) NOT NULL auto_increment,
2359   `date` datetime default NULL,
2360   `type` varchar(255) default NULL,
2361   `title` varchar(255) default NULL,
2362   `begdate` date default NULL,
2363   `enddate` date default NULL,
2364   `returndate` date default NULL,
2365   `occurrence` int(11) default '0',
2366   `classification` int(11) default '0',
2367   `referredby` varchar(255) default NULL,
2368   `extrainfo` varchar(255) default NULL,
2369   `diagnosis` varchar(255) default NULL,
2370   `activity` tinyint(4) default NULL,
2371   `comments` longtext,
2372   `pid` bigint(20) default NULL,
2373   `user` varchar(255) default NULL,
2374   `groupname` varchar(255) default NULL,
2375   `outcome` int(11) NOT NULL default '0',
2376   `destination` varchar(255) default NULL,
2377   `reinjury_id` bigint(20)  NOT NULL DEFAULT 0,
2378   `injury_part` varchar(31) NOT NULL DEFAULT '',
2379   `injury_type` varchar(31) NOT NULL DEFAULT '',
2380   `injury_grade` varchar(31) NOT NULL DEFAULT '',
2381   `reaction` varchar(255) NOT NULL DEFAULT '',
2382   PRIMARY KEY  (`id`)
2383 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2385 -- --------------------------------------------------------
2387 -- 
2388 -- Table structure for table `log`
2389 -- 
2391 DROP TABLE IF EXISTS `log`;
2392 CREATE TABLE `log` (
2393   `id` bigint(20) NOT NULL auto_increment,
2394   `date` datetime default NULL,
2395   `event` varchar(255) default NULL,
2396   `user` varchar(255) default NULL,
2397   `groupname` varchar(255) default NULL,
2398   `comments` longtext,
2399   `user_notes` longtext,
2400   `patient_id` bigint(20) default NULL,
2401   `success` tinyint(1) default 1,
2402   `checksum` longtext default NULL,
2403   `crt_user` varchar(255) default NULL,
2404   PRIMARY KEY  (`id`)
2405 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2407 -- --------------------------------------------------------
2409 -- 
2410 -- Table structure for table `notes`
2411 -- 
2413 DROP TABLE IF EXISTS `notes`;
2414 CREATE TABLE `notes` (
2415   `id` int(11) NOT NULL default '0',
2416   `foreign_id` int(11) NOT NULL default '0',
2417   `note` varchar(255) default NULL,
2418   `owner` int(11) default NULL,
2419   `date` datetime default NULL,
2420   `revision` timestamp NOT NULL,
2421   PRIMARY KEY  (`id`),
2422   KEY `foreign_id` (`owner`),
2423   KEY `foreign_id_2` (`foreign_id`),
2424   KEY `date` (`date`)
2425 ) ENGINE=MyISAM;
2427 -- --------------------------------------------------------
2429 -- 
2430 -- Table structure for table `onotes`
2431 -- 
2433 DROP TABLE IF EXISTS `onotes`;
2434 CREATE TABLE `onotes` (
2435   `id` bigint(20) NOT NULL auto_increment,
2436   `date` datetime default NULL,
2437   `body` longtext,
2438   `user` varchar(255) default NULL,
2439   `groupname` varchar(255) default NULL,
2440   `activity` tinyint(4) default NULL,
2441   PRIMARY KEY  (`id`)
2442 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2444 -- --------------------------------------------------------
2446 -- 
2447 -- Table structure for table `openemr_module_vars`
2448 -- 
2450 DROP TABLE IF EXISTS `openemr_module_vars`;
2451 CREATE TABLE `openemr_module_vars` (
2452   `pn_id` int(11) unsigned NOT NULL auto_increment,
2453   `pn_modname` varchar(64) default NULL,
2454   `pn_name` varchar(64) default NULL,
2455   `pn_value` longtext,
2456   PRIMARY KEY  (`pn_id`),
2457   KEY `pn_modname` (`pn_modname`),
2458   KEY `pn_name` (`pn_name`)
2459 ) ENGINE=MyISAM AUTO_INCREMENT=235 ;
2461 -- 
2462 -- Dumping data for table `openemr_module_vars`
2463 -- 
2465 INSERT INTO `openemr_module_vars` VALUES (234, 'PostCalendar', 'pcNotifyEmail', '');
2466 INSERT INTO `openemr_module_vars` VALUES (233, 'PostCalendar', 'pcNotifyAdmin', '0');
2467 INSERT INTO `openemr_module_vars` VALUES (232, 'PostCalendar', 'pcCacheLifetime', '3600');
2468 INSERT INTO `openemr_module_vars` VALUES (231, 'PostCalendar', 'pcUseCache', '0');
2469 INSERT INTO `openemr_module_vars` VALUES (230, 'PostCalendar', 'pcDefaultView', 'day');
2470 INSERT INTO `openemr_module_vars` VALUES (229, 'PostCalendar', 'pcTimeIncrement', '5');
2471 INSERT INTO `openemr_module_vars` VALUES (228, 'PostCalendar', 'pcAllowUserCalendar', '1');
2472 INSERT INTO `openemr_module_vars` VALUES (227, 'PostCalendar', 'pcAllowSiteWide', '1');
2473 INSERT INTO `openemr_module_vars` VALUES (226, 'PostCalendar', 'pcTemplate', 'default');
2474 INSERT INTO `openemr_module_vars` VALUES (225, 'PostCalendar', 'pcEventDateFormat', '%Y-%m-%d');
2475 INSERT INTO `openemr_module_vars` VALUES (224, 'PostCalendar', 'pcDisplayTopics', '0');
2476 INSERT INTO `openemr_module_vars` VALUES (223, 'PostCalendar', 'pcListHowManyEvents', '15');
2477 INSERT INTO `openemr_module_vars` VALUES (222, 'PostCalendar', 'pcAllowDirectSubmit', '1');
2478 INSERT INTO `openemr_module_vars` VALUES (221, 'PostCalendar', 'pcUsePopups', '0');
2479 INSERT INTO `openemr_module_vars` VALUES (220, 'PostCalendar', 'pcDayHighlightColor', '#EEEEEE');
2480 INSERT INTO `openemr_module_vars` VALUES (219, 'PostCalendar', 'pcFirstDayOfWeek', '1');
2481 INSERT INTO `openemr_module_vars` VALUES (218, 'PostCalendar', 'pcUseInternationalDates', '0');
2482 INSERT INTO `openemr_module_vars` VALUES (217, 'PostCalendar', 'pcEventsOpenInNewWindow', '0');
2483 INSERT INTO `openemr_module_vars` VALUES (216, 'PostCalendar', 'pcTime24Hours', '0');
2485 -- --------------------------------------------------------
2487 -- 
2488 -- Table structure for table `openemr_modules`
2489 -- 
2491 DROP TABLE IF EXISTS `openemr_modules`;
2492 CREATE TABLE `openemr_modules` (
2493   `pn_id` int(11) unsigned NOT NULL auto_increment,
2494   `pn_name` varchar(64) default NULL,
2495   `pn_type` int(6) NOT NULL default '0',
2496   `pn_displayname` varchar(64) default NULL,
2497   `pn_description` varchar(255) default NULL,
2498   `pn_regid` int(11) unsigned NOT NULL default '0',
2499   `pn_directory` varchar(64) default NULL,
2500   `pn_version` varchar(10) default NULL,
2501   `pn_admin_capable` tinyint(1) NOT NULL default '0',
2502   `pn_user_capable` tinyint(1) NOT NULL default '0',
2503   `pn_state` tinyint(1) NOT NULL default '0',
2504   PRIMARY KEY  (`pn_id`)
2505 ) ENGINE=MyISAM AUTO_INCREMENT=47 ;
2507 -- 
2508 -- Dumping data for table `openemr_modules`
2509 -- 
2511 INSERT INTO `openemr_modules` VALUES (46, 'PostCalendar', 2, 'PostCalendar', 'PostNuke Calendar Module', 0, 'PostCalendar', '4.0.0', 1, 1, 3);
2513 -- --------------------------------------------------------
2515 -- 
2516 -- Table structure for table `openemr_postcalendar_categories`
2517 -- 
2519 DROP TABLE IF EXISTS `openemr_postcalendar_categories`;
2520 CREATE TABLE `openemr_postcalendar_categories` (
2521   `pc_catid` int(11) unsigned NOT NULL auto_increment,
2522   `pc_catname` varchar(100) default NULL,
2523   `pc_catcolor` varchar(50) default NULL,
2524   `pc_catdesc` text,
2525   `pc_recurrtype` int(1) NOT NULL default '0',
2526   `pc_enddate` date default NULL,
2527   `pc_recurrspec` text,
2528   `pc_recurrfreq` int(3) NOT NULL default '0',
2529   `pc_duration` bigint(20) NOT NULL default '0',
2530   `pc_end_date_flag` tinyint(1) NOT NULL default '0',
2531   `pc_end_date_type` int(2) default NULL,
2532   `pc_end_date_freq` int(11) NOT NULL default '0',
2533   `pc_end_all_day` tinyint(1) NOT NULL default '0',
2534   `pc_dailylimit` int(2) NOT NULL default '0',
2535   PRIMARY KEY  (`pc_catid`),
2536   KEY `basic_cat` (`pc_catname`,`pc_catcolor`)
2537 ) ENGINE=MyISAM AUTO_INCREMENT=11 ;
2539 -- 
2540 -- Dumping data for table `openemr_postcalendar_categories`
2541 -- 
2543 INSERT INTO `openemr_postcalendar_categories` VALUES (5, 'Office Visit', '#FFFFCC', 'Normal Office Visit', 0, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"0";s:22:"event_repeat_freq_type";s:1:"0";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 900, 0, 0, 0, 0, 0);
2544 INSERT INTO `openemr_postcalendar_categories` VALUES (4, 'Vacation', '#EFEFEF', 'Reserved for use to define Scheduled Vacation Time', 0, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"0";s:22:"event_repeat_freq_type";s:1:"0";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 0, 0, 0, 0, 1, 0);
2545 INSERT INTO `openemr_postcalendar_categories` VALUES (1, 'No Show', '#DDDDDD', 'Reserved to define when an event did not occur as specified.', 0, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"0";s:22:"event_repeat_freq_type";s:1:"0";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 0, 0, 0, 0, 0, 0);
2546 INSERT INTO `openemr_postcalendar_categories` VALUES (2, 'In Office', '#99CCFF', 'Reserved todefine when a provider may haveavailable appointments after.', 1, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"1";s:22:"event_repeat_freq_type";s:1:"4";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 0, 1, 3, 2, 0, 0);
2547 INSERT INTO `openemr_postcalendar_categories` VALUES (3, 'Out Of Office', '#99FFFF', 'Reserved to define when a provider may not have available appointments after.', 1, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"1";s:22:"event_repeat_freq_type";s:1:"4";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 0, 1, 3, 2, 0, 0);
2548 INSERT INTO `openemr_postcalendar_categories` VALUES (8, 'Lunch', '#FFFF33', 'Lunch', 1, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"1";s:22:"event_repeat_freq_type";s:1:"4";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 3600, 0, 3, 2, 0, 0);
2549 INSERT INTO `openemr_postcalendar_categories` VALUES (9, 'Established Patient', '#CCFF33', '', 0, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"0";s:22:"event_repeat_freq_type";s:1:"0";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 900, 0, 0, 0, 0, 0);
2550 INSERT INTO `openemr_postcalendar_categories` VALUES (10,'New Patient', '#CCFFFF', '', 0, NULL, 'a:5:{s:17:"event_repeat_freq";s:1:"0";s:22:"event_repeat_freq_type";s:1:"0";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, 1800, 0, 0, 0, 0, 0);
2551 INSERT INTO `openemr_postcalendar_categories` VALUES (11,'Reserved','#FF7777','Reserved',1,NULL,'a:5:{s:17:\"event_repeat_freq\";s:1:\"1\";s:22:\"event_repeat_freq_type\";s:1:\"4\";s:19:\"event_repeat_on_num\";s:1:\"1\";s:19:\"event_repeat_on_day\";s:1:\"0\";s:20:\"event_repeat_on_freq\";s:1:\"0\";}',0,900,0,3,2,0,0);
2553 -- --------------------------------------------------------
2555 -- 
2556 -- Table structure for table `openemr_postcalendar_events`
2557 -- 
2559 DROP TABLE IF EXISTS `openemr_postcalendar_events`;
2560 CREATE TABLE `openemr_postcalendar_events` (
2561   `pc_eid` int(11) unsigned NOT NULL auto_increment,
2562   `pc_catid` int(11) NOT NULL default '0',
2563   `pc_multiple` int(10) unsigned NOT NULL,
2564   `pc_aid` varchar(30) default NULL,
2565   `pc_pid` varchar(11) default NULL,
2566   `pc_title` varchar(150) default NULL,
2567   `pc_time` datetime default NULL,
2568   `pc_hometext` text,
2569   `pc_comments` int(11) default '0',
2570   `pc_counter` mediumint(8) unsigned default '0',
2571   `pc_topic` int(3) NOT NULL default '1',
2572   `pc_informant` varchar(20) default NULL,
2573   `pc_eventDate` date NOT NULL default '0000-00-00',
2574   `pc_endDate` date NOT NULL default '0000-00-00',
2575   `pc_duration` bigint(20) NOT NULL default '0',
2576   `pc_recurrtype` int(1) NOT NULL default '0',
2577   `pc_recurrspec` text,
2578   `pc_recurrfreq` int(3) NOT NULL default '0',
2579   `pc_startTime` time default NULL,
2580   `pc_endTime` time default NULL,
2581   `pc_alldayevent` int(1) NOT NULL default '0',
2582   `pc_location` text,
2583   `pc_conttel` varchar(50) default NULL,
2584   `pc_contname` varchar(50) default NULL,
2585   `pc_contemail` varchar(255) default NULL,
2586   `pc_website` varchar(255) default NULL,
2587   `pc_fee` varchar(50) default NULL,
2588   `pc_eventstatus` int(11) NOT NULL default '0',
2589   `pc_sharing` int(11) NOT NULL default '0',
2590   `pc_language` varchar(30) default NULL,
2591   `pc_apptstatus` varchar(15) NOT NULL default '-',
2592   `pc_prefcatid` int(11) NOT NULL default '0',
2593   `pc_facility` smallint(6) NOT NULL default '0' COMMENT 'facility id for this event',
2594   `pc_sendalertsms` VARCHAR(3) NOT NULL DEFAULT 'NO',
2595   `pc_sendalertemail` VARCHAR( 3 ) NOT NULL DEFAULT 'NO',
2596   PRIMARY KEY  (`pc_eid`),
2597   KEY `basic_event` (`pc_catid`,`pc_aid`,`pc_eventDate`,`pc_endDate`,`pc_eventstatus`,`pc_sharing`,`pc_topic`)
2598 ) ENGINE=MyISAM AUTO_INCREMENT=7 ;
2600 -- 
2601 -- Dumping data for table `openemr_postcalendar_events`
2602 -- 
2604 INSERT INTO `openemr_postcalendar_events` VALUES (3, 2, 0, '1', '', 'In Office', '2005-03-03 12:22:31', ':text:', 0, 0, 0, '1', '2005-03-03', '2007-03-03', 0, 1, 'a:5:{s:17:"event_repeat_freq";s:1:"1";s:22:"event_repeat_freq_type";s:1:"4";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, '09:00:00', '09:00:00', 0, 'a:6:{s:14:"event_location";N;s:13:"event_street1";N;s:13:"event_street2";N;s:10:"event_city";N;s:11:"event_state";N;s:12:"event_postal";N;}', '', '', '', '', '', 1, 1, '', '-', 0, 0, 'NO', 'NO');
2605 INSERT INTO `openemr_postcalendar_events` VALUES (5, 3, 0, '1', '', 'Out Of Office', '2005-03-03 12:22:52', ':text:', 0, 0, 0, '1', '2005-03-03', '2007-03-03', 0, 1, 'a:5:{s:17:"event_repeat_freq";s:1:"1";s:22:"event_repeat_freq_type";s:1:"4";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, '17:00:00', '17:00:00', 0, 'a:6:{s:14:"event_location";N;s:13:"event_street1";N;s:13:"event_street2";N;s:10:"event_city";N;s:11:"event_state";N;s:12:"event_postal";N;}', '', '', '', '', '', 1, 1, '', '-', 0, 0, 'NO', 'NO');
2606 INSERT INTO `openemr_postcalendar_events` VALUES (6, 8, 0, '1', '', 'Lunch', '2005-03-03 12:23:31', ':text:', 0, 0, 0, '1', '2005-03-03', '2007-03-03', 3600, 1, 'a:5:{s:17:"event_repeat_freq";s:1:"1";s:22:"event_repeat_freq_type";s:1:"4";s:19:"event_repeat_on_num";s:1:"1";s:19:"event_repeat_on_day";s:1:"0";s:20:"event_repeat_on_freq";s:1:"0";}', 0, '12:00:00', '13:00:00', 0, 'a:6:{s:14:"event_location";N;s:13:"event_street1";N;s:13:"event_street2";N;s:10:"event_city";N;s:11:"event_state";N;s:12:"event_postal";N;}', '', '', '', '', '', 1, 1, '', '-', 0, 0, 'NO', 'NO');
2608 -- --------------------------------------------------------
2610 -- 
2611 -- Table structure for table `openemr_postcalendar_limits`
2612 -- 
2614 DROP TABLE IF EXISTS `openemr_postcalendar_limits`;
2615 CREATE TABLE `openemr_postcalendar_limits` (
2616   `pc_limitid` int(11) NOT NULL auto_increment,
2617   `pc_catid` int(11) NOT NULL default '0',
2618   `pc_starttime` time NOT NULL default '00:00:00',
2619   `pc_endtime` time NOT NULL default '00:00:00',
2620   `pc_limit` int(11) NOT NULL default '1',
2621   PRIMARY KEY  (`pc_limitid`)
2622 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2624 -- --------------------------------------------------------
2626 -- 
2627 -- Table structure for table `openemr_postcalendar_topics`
2628 -- 
2630 DROP TABLE IF EXISTS `openemr_postcalendar_topics`;
2631 CREATE TABLE `openemr_postcalendar_topics` (
2632   `pc_catid` int(11) unsigned NOT NULL auto_increment,
2633   `pc_catname` varchar(100) default NULL,
2634   `pc_catcolor` varchar(50) default NULL,
2635   `pc_catdesc` text,
2636   PRIMARY KEY  (`pc_catid`),
2637   KEY `basic_cat` (`pc_catname`,`pc_catcolor`)
2638 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2640 -- --------------------------------------------------------
2642 -- 
2643 -- Table structure for table `openemr_session_info`
2644 -- 
2646 DROP TABLE IF EXISTS `openemr_session_info`;
2647 CREATE TABLE `openemr_session_info` (
2648   `pn_sessid` varchar(32) NOT NULL default '',
2649   `pn_ipaddr` varchar(20) default NULL,
2650   `pn_firstused` int(11) NOT NULL default '0',
2651   `pn_lastused` int(11) NOT NULL default '0',
2652   `pn_uid` int(11) NOT NULL default '0',
2653   `pn_vars` blob,
2654   PRIMARY KEY  (`pn_sessid`)
2655 ) ENGINE=MyISAM;
2657 -- 
2658 -- Dumping data for table `openemr_session_info`
2659 -- 
2661 INSERT INTO `openemr_session_info` VALUES ('978d31441dccd350d406bfab98978f20', '127.0.0.1', 1109233952, 1109234177, 0, NULL);
2663 -- --------------------------------------------------------
2665 -- 
2666 -- Table structure for table `patient_data`
2667 -- 
2669 DROP TABLE IF EXISTS `patient_data`;
2670 CREATE TABLE `patient_data` (
2671   `id` bigint(20) NOT NULL auto_increment,
2672   `title` varchar(255) NOT NULL default '',
2673   `language` varchar(255) NOT NULL default '',
2674   `financial` varchar(255) NOT NULL default '',
2675   `fname` varchar(255) NOT NULL default '',
2676   `lname` varchar(255) NOT NULL default '',
2677   `mname` varchar(255) NOT NULL default '',
2678   `DOB` date default NULL,
2679   `street` varchar(255) NOT NULL default '',
2680   `postal_code` varchar(255) NOT NULL default '',
2681   `city` varchar(255) NOT NULL default '',
2682   `state` varchar(255) NOT NULL default '',
2683   `country_code` varchar(255) NOT NULL default '',
2684   `drivers_license` varchar(255) NOT NULL default '',
2685   `ss` varchar(255) NOT NULL default '',
2686   `occupation` longtext,
2687   `phone_home` varchar(255) NOT NULL default '',
2688   `phone_biz` varchar(255) NOT NULL default '',
2689   `phone_contact` varchar(255) NOT NULL default '',
2690   `phone_cell` varchar(255) NOT NULL default '',
2691   `pharmacy_id` int(11) NOT NULL default '0',
2692   `status` varchar(255) NOT NULL default '',
2693   `contact_relationship` varchar(255) NOT NULL default '',
2694   `date` datetime default NULL,
2695   `sex` varchar(255) NOT NULL default '',
2696   `referrer` varchar(255) NOT NULL default '',
2697   `referrerID` varchar(255) NOT NULL default '',
2698   `providerID` int(11) default NULL,
2699   `email` varchar(255) NOT NULL default '',
2700   `ethnoracial` varchar(255) NOT NULL default '',
2701   `race` varchar(255) NOT NULL default '',
2702   `ethnicity` varchar(255) NOT NULL default '',
2703   `interpretter` varchar(255) NOT NULL default '',
2704   `migrantseasonal` varchar(255) NOT NULL default '',
2705   `family_size` varchar(255) NOT NULL default '',
2706   `monthly_income` varchar(255) NOT NULL default '',
2707   `homeless` varchar(255) NOT NULL default '',
2708   `financial_review` datetime default NULL,
2709   `pubpid` varchar(255) NOT NULL default '',
2710   `pid` bigint(20) NOT NULL default '0',
2711   `genericname1` varchar(255) NOT NULL default '',
2712   `genericval1` varchar(255) NOT NULL default '',
2713   `genericname2` varchar(255) NOT NULL default '',
2714   `genericval2` varchar(255) NOT NULL default '',
2715   `hipaa_mail` varchar(3) NOT NULL default '',
2716   `hipaa_voice` varchar(3) NOT NULL default '',
2717   `hipaa_notice` varchar(3) NOT NULL default '',
2718   `hipaa_message` varchar(20) NOT NULL default '',
2719   `hipaa_allowsms` VARCHAR(3) NOT NULL DEFAULT 'NO',
2720   `hipaa_allowemail` VARCHAR(3) NOT NULL DEFAULT 'NO',
2721   `squad` varchar(32) NOT NULL default '',
2722   `fitness` int(11) NOT NULL default '0',
2723   `referral_source` varchar(30) NOT NULL default '',
2724   `usertext1` varchar(255) NOT NULL DEFAULT '',
2725   `usertext2` varchar(255) NOT NULL DEFAULT '',
2726   `usertext3` varchar(255) NOT NULL DEFAULT '',
2727   `usertext4` varchar(255) NOT NULL DEFAULT '',
2728   `usertext5` varchar(255) NOT NULL DEFAULT '',
2729   `usertext6` varchar(255) NOT NULL DEFAULT '',
2730   `usertext7` varchar(255) NOT NULL DEFAULT '',
2731   `usertext8` varchar(255) NOT NULL DEFAULT '',
2732   `userlist1` varchar(255) NOT NULL DEFAULT '',
2733   `userlist2` varchar(255) NOT NULL DEFAULT '',
2734   `userlist3` varchar(255) NOT NULL DEFAULT '',
2735   `userlist4` varchar(255) NOT NULL DEFAULT '',
2736   `userlist5` varchar(255) NOT NULL DEFAULT '',
2737   `userlist6` varchar(255) NOT NULL DEFAULT '',
2738   `userlist7` varchar(255) NOT NULL DEFAULT '',
2739   `pricelevel` varchar(255) NOT NULL default 'standard',
2740   `regdate`     date DEFAULT NULL COMMENT 'Registration Date',
2741   `contrastart` date DEFAULT NULL COMMENT 'Date contraceptives initially used',
2742   `completed_ad` VARCHAR(3) NOT NULL DEFAULT 'NO',
2743   `ad_reviewed` date DEFAULT NULL,
2744   `vfc` varchar(255) NOT NULL DEFAULT '',
2745   `mothersname` varchar(255) NOT NULL DEFAULT '',
2746   `guardiansname` varchar(255) NOT NULL DEFAULT '',
2747   `allow_imm_reg_use` varchar(255) NOT NULL DEFAULT '',
2748   `allow_imm_info_share` varchar(255) NOT NULL DEFAULT '',
2749   `allow_health_info_ex` varchar(255) NOT NULL DEFAULT '',
2750   UNIQUE KEY `pid` (`pid`),
2751   KEY `id` (`id`)
2752 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2754 -- --------------------------------------------------------
2756 -- 
2757 -- Table structure for table `payments`
2758 -- 
2760 DROP TABLE IF EXISTS `payments`;
2761 CREATE TABLE `payments` (
2762   `id` bigint(20) NOT NULL auto_increment,
2763   `pid` bigint(20) NOT NULL default '0',
2764   `dtime` datetime NOT NULL,
2765   `encounter` bigint(20) NOT NULL default '0',
2766   `user` varchar(255) default NULL,
2767   `method` varchar(255) default NULL,
2768   `source` varchar(255) default NULL,
2769   `amount1` decimal(12,2) NOT NULL default '0.00',
2770   `amount2` decimal(12,2) NOT NULL default '0.00',
2771   `posted1` decimal(12,2) NOT NULL default '0.00',
2772   `posted2` decimal(12,2) NOT NULL default '0.00',
2773   PRIMARY KEY  (`id`),
2774   KEY `pid` (`pid`)
2775 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2777 -- --------------------------------------------------------
2779 -- 
2780 -- Table structure for table `pharmacies`
2781 -- 
2783 DROP TABLE IF EXISTS `pharmacies`;
2784 CREATE TABLE `pharmacies` (
2785   `id` int(11) NOT NULL default '0',
2786   `name` varchar(255) default NULL,
2787   `transmit_method` int(11) NOT NULL default '1',
2788   `email` varchar(255) default NULL,
2789   PRIMARY KEY  (`id`)
2790 ) ENGINE=MyISAM;
2792 -- --------------------------------------------------------
2794 -- 
2795 -- Table structure for table `phone_numbers`
2796 -- 
2798 DROP TABLE IF EXISTS `phone_numbers`;
2799 CREATE TABLE `phone_numbers` (
2800   `id` int(11) NOT NULL default '0',
2801   `country_code` varchar(5) default NULL,
2802   `area_code` char(3) default NULL,
2803   `prefix` char(3) default NULL,
2804   `number` varchar(4) default NULL,
2805   `type` int(11) default NULL,
2806   `foreign_id` int(11) default NULL,
2807   PRIMARY KEY  (`id`),
2808   KEY `foreign_id` (`foreign_id`)
2809 ) ENGINE=MyISAM;
2811 -- --------------------------------------------------------
2813 -- 
2814 -- Table structure for table `pma_bookmark`
2815 -- 
2817 DROP TABLE IF EXISTS `pma_bookmark`;
2818 CREATE TABLE `pma_bookmark` (
2819   `id` int(11) NOT NULL auto_increment,
2820   `dbase` varchar(255) default NULL,
2821   `user` varchar(255) default NULL,
2822   `label` varchar(255) default NULL,
2823   `query` text,
2824   PRIMARY KEY  (`id`)
2825 ) ENGINE=MyISAM COMMENT='Bookmarks' AUTO_INCREMENT=10 ;
2827 -- 
2828 -- Dumping data for table `pma_bookmark`
2829 -- 
2831 INSERT INTO `pma_bookmark` VALUES (2, 'openemr', 'openemr', 'Aggregate Race Statistics', 'SELECT ethnoracial as "Race/Ethnicity", count(*) as Count FROM  `patient_data` WHERE 1 group by ethnoracial');
2832 INSERT INTO `pma_bookmark` VALUES (9, 'openemr', 'openemr', 'Search by Code', 'SELECT  b.code, concat(pd.fname," ", pd.lname) as "Patient Name", concat(u.fname," ", u.lname) as "Provider Name", en.reason as "Encounter Desc.", en.date\r\nFROM billing as b\r\nLEFT JOIN users AS u ON b.user = u.id\r\nLEFT JOIN patient_data as pd on b.pid = pd.pid\r\nLEFT JOIN form_encounter as en on b.encounter = en.encounter and b.pid = en.pid\r\nWHERE 1 /* and b.code like ''%[VARIABLE]%'' */ ORDER BY b.code');
2833 INSERT INTO `pma_bookmark` VALUES (8, 'openemr', 'openemr', 'Count No Shows By Provider since Interval ago', 'SELECT concat( u.fname,  " ", u.lname )  AS  "Provider Name", u.id AS  "Provider ID", count(  DISTINCT ev.pc_eid )  AS  "Number of No Shows"/* , concat(DATE_FORMAT(NOW(),''%Y-%m-%d''), '' and '',DATE_FORMAT(DATE_ADD(now(), INTERVAL [VARIABLE]),''%Y-%m-%d'') ) as "Between Dates" */ FROM  `openemr_postcalendar_events`  AS ev LEFT  JOIN users AS u ON ev.pc_aid = u.id WHERE ev.pc_catid =1/* and ( ev.pc_eventDate >= DATE_SUB(now(), INTERVAL [VARIABLE]) )  */\r\nGROUP  BY u.id;');
2834 INSERT INTO `pma_bookmark` VALUES (6, 'openemr', 'openemr', 'Appointments By Race/Ethnicity from today plus interval', 'SELECT  count(pd.ethnoracial) as "Number of Appointments", pd.ethnoracial AS  "Race/Ethnicity" /* , concat(DATE_FORMAT(NOW(),''%Y-%m-%d''), '' and '',DATE_FORMAT(DATE_ADD(now(), INTERVAL [VARIABLE]),''%Y-%m-%d'') ) as "Between Dates" */ FROM openemr_postcalendar_events AS ev LEFT  JOIN   `patient_data`  AS pd ON  pd.pid = ev.pc_pid where ev.pc_eventstatus=1 and ev.pc_catid = 5 and ev.pc_eventDate >= now()  /* and ( ev.pc_eventDate <= DATE_ADD(now(), INTERVAL [VARIABLE]) )  */ group by pd.ethnoracial');
2836 -- --------------------------------------------------------
2838 -- 
2839 -- Table structure for table `pma_column_info`
2840 -- 
2842 DROP TABLE IF EXISTS `pma_column_info`;
2843 CREATE TABLE `pma_column_info` (
2844   `id` int(5) unsigned NOT NULL auto_increment,
2845   `db_name` varchar(64) default NULL,
2846   `table_name` varchar(64) default NULL,
2847   `column_name` varchar(64) default NULL,
2848   `comment` varchar(255) default NULL,
2849   `mimetype` varchar(255) default NULL,
2850   `transformation` varchar(255) default NULL,
2851   `transformation_options` varchar(255) default NULL,
2852   PRIMARY KEY  (`id`),
2853   UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`)
2854 ) ENGINE=MyISAM COMMENT='Column Information for phpMyAdmin' AUTO_INCREMENT=1 ;
2856 -- --------------------------------------------------------
2858 -- 
2859 -- Table structure for table `pma_history`
2860 -- 
2862 DROP TABLE IF EXISTS `pma_history`;
2863 CREATE TABLE `pma_history` (
2864   `id` bigint(20) unsigned NOT NULL auto_increment,
2865   `username` varchar(64) default NULL,
2866   `db` varchar(64) default NULL,
2867   `table` varchar(64) default NULL,
2868   `timevalue` timestamp NOT NULL,
2869   `sqlquery` text,
2870   PRIMARY KEY  (`id`),
2871   KEY `username` (`username`,`db`,`table`,`timevalue`)
2872 ) ENGINE=MyISAM COMMENT='SQL history' AUTO_INCREMENT=1 ;
2874 -- --------------------------------------------------------
2876 -- 
2877 -- Table structure for table `pma_pdf_pages`
2878 -- 
2880 DROP TABLE IF EXISTS `pma_pdf_pages`;
2881 CREATE TABLE `pma_pdf_pages` (
2882   `db_name` varchar(64) default NULL,
2883   `page_nr` int(10) unsigned NOT NULL auto_increment,
2884   `page_descr` varchar(50) default NULL,
2885   PRIMARY KEY  (`page_nr`),
2886   KEY `db_name` (`db_name`)
2887 ) ENGINE=MyISAM COMMENT='PDF Relationpages for PMA' AUTO_INCREMENT=1 ;
2889 -- --------------------------------------------------------
2891 -- 
2892 -- Table structure for table `pma_relation`
2893 -- 
2895 DROP TABLE IF EXISTS `pma_relation`;
2896 CREATE TABLE `pma_relation` (
2897   `master_db` varchar(64) NOT NULL default '',
2898   `master_table` varchar(64) NOT NULL default '',
2899   `master_field` varchar(64) NOT NULL default '',
2900   `foreign_db` varchar(64) default NULL,
2901   `foreign_table` varchar(64) default NULL,
2902   `foreign_field` varchar(64) default NULL,
2903   PRIMARY KEY  (`master_db`,`master_table`,`master_field`),
2904   KEY `foreign_field` (`foreign_db`,`foreign_table`)
2905 ) ENGINE=MyISAM COMMENT='Relation table';
2907 -- --------------------------------------------------------
2909 -- 
2910 -- Table structure for table `pma_table_coords`
2911 -- 
2913 DROP TABLE IF EXISTS `pma_table_coords`;
2914 CREATE TABLE `pma_table_coords` (
2915   `db_name` varchar(64) NOT NULL default '',
2916   `table_name` varchar(64) NOT NULL default '',
2917   `pdf_page_number` int(11) NOT NULL default '0',
2918   `x` float unsigned NOT NULL default '0',
2919   `y` float unsigned NOT NULL default '0',
2920   PRIMARY KEY  (`db_name`,`table_name`,`pdf_page_number`)
2921 ) ENGINE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output';
2923 -- --------------------------------------------------------
2925 -- 
2926 -- Table structure for table `pma_table_info`
2927 -- 
2929 DROP TABLE IF EXISTS `pma_table_info`;
2930 CREATE TABLE `pma_table_info` (
2931   `db_name` varchar(64) NOT NULL default '',
2932   `table_name` varchar(64) NOT NULL default '',
2933   `display_field` varchar(64) default NULL,
2934   PRIMARY KEY  (`db_name`,`table_name`)
2935 ) ENGINE=MyISAM COMMENT='Table information for phpMyAdmin';
2937 -- --------------------------------------------------------
2939 -- 
2940 -- Table structure for table `pnotes`
2941 -- 
2943 DROP TABLE IF EXISTS `pnotes`;
2944 CREATE TABLE `pnotes` (
2945   `id` bigint(20) NOT NULL auto_increment,
2946   `date` datetime default NULL,
2947   `body` longtext,
2948   `pid` bigint(20) default NULL,
2949   `user` varchar(255) default NULL,
2950   `groupname` varchar(255) default NULL,
2951   `activity` tinyint(4) default NULL,
2952   `authorized` tinyint(4) default NULL,
2953   `title` varchar(255) default NULL,
2954   `assigned_to` varchar(255) default NULL,
2955   `deleted` tinyint(4) default 0 COMMENT 'flag indicates note is deleted',
2956   `message_status` VARCHAR(20) NOT NULL DEFAULT 'New',
2957   PRIMARY KEY  (`id`)
2958 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2960 -- --------------------------------------------------------
2962 -- 
2963 -- Table structure for table `prescriptions`
2964 -- 
2966 DROP TABLE IF EXISTS `prescriptions`;
2967 CREATE TABLE `prescriptions` (
2968   `id` int(11) NOT NULL auto_increment,
2969   `patient_id` int(11) default NULL,
2970   `filled_by_id` int(11) default NULL,
2971   `pharmacy_id` int(11) default NULL,
2972   `date_added` date default NULL,
2973   `date_modified` date default NULL,
2974   `provider_id` int(11) default NULL,
2975   `start_date` date default NULL,
2976   `drug` varchar(150) default NULL,
2977   `drug_id` int(11) NOT NULL default '0',
2978   `form` int(3) default NULL,
2979   `dosage` varchar(100) default NULL,
2980   `quantity` varchar(31) default NULL,
2981   `size` float unsigned default NULL,
2982   `unit` int(11) default NULL,
2983   `route` int(11) default NULL,
2984   `interval` int(11) default NULL,
2985   `substitute` int(11) default NULL,
2986   `refills` int(11) default NULL,
2987   `per_refill` int(11) default NULL,
2988   `filled_date` date default NULL,
2989   `medication` int(11) default NULL,
2990   `note` text,
2991   `active` int(11) NOT NULL default '1',
2992   PRIMARY KEY  (`id`)
2993 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2995 -- --------------------------------------------------------
2997 -- 
2998 -- Table structure for table `prices`
2999 -- 
3001 DROP TABLE IF EXISTS `prices`;
3002 CREATE TABLE `prices` (
3003   `pr_id` varchar(11) NOT NULL default '',
3004   `pr_selector` varchar(255) NOT NULL default '' COMMENT 'template selector for drugs, empty for codes',
3005   `pr_level` varchar(31) NOT NULL default '',
3006   `pr_price` decimal(12,2) NOT NULL default '0.00' COMMENT 'price in local currency',
3007   PRIMARY KEY  (`pr_id`,`pr_selector`,`pr_level`)
3008 ) ENGINE=MyISAM;
3010 -- --------------------------------------------------------
3012 -- 
3013 -- Table structure for table `registry`
3014 -- 
3016 DROP TABLE IF EXISTS `registry`;
3017 CREATE TABLE `registry` (
3018   `name` varchar(255) default NULL,
3019   `state` tinyint(4) default NULL,
3020   `directory` varchar(255) default NULL,
3021   `id` bigint(20) NOT NULL auto_increment,
3022   `sql_run` tinyint(4) default NULL,
3023   `unpackaged` tinyint(4) default NULL,
3024   `date` datetime default NULL,
3025   `priority` int(11) default '0',
3026   `category` varchar(255) default NULL,
3027   `nickname` varchar(255) default NULL,
3028   PRIMARY KEY  (`id`)
3029 ) ENGINE=MyISAM AUTO_INCREMENT=16 ;
3031 -- 
3032 -- Dumping data for table `registry`
3033 -- 
3035 INSERT INTO `registry` VALUES ('New Encounter Form', 1, 'newpatient', 1, 1, 1, '2003-09-14 15:16:45', 0, 'Administrative', '');
3036 INSERT INTO `registry` VALUES ('Review of Systems Checks', 1, 'reviewofs', 9, 1, 1, '2003-09-14 15:16:45', 0, 'Clinical', '');
3037 INSERT INTO `registry` VALUES ('Speech Dictation', 1, 'dictation', 10, 1, 1, '2003-09-14 15:16:45', 0, 'Clinical', '');
3038 INSERT INTO `registry` VALUES ('SOAP', 1, 'soap', 11, 1, 1, '2005-03-03 00:16:35', 0, 'Clinical', '');
3039 INSERT INTO `registry` VALUES ('Vitals', 1, 'vitals', 12, 1, 1, '2005-03-03 00:16:34', 0, 'Clinical', '');
3040 INSERT INTO `registry` VALUES ('Review Of Systems', 1, 'ros', 13, 1, 1, '2005-03-03 00:16:30', 0, 'Clinical', '');
3041 INSERT INTO `registry` VALUES ('Fee Sheet', 1, 'fee_sheet', 14, 1, 1, '2007-07-28 00:00:00', 0, 'Administrative', '');
3042 INSERT INTO `registry` VALUES ('Misc Billing Options HCFA', 1, 'misc_billing_options', 15, 1, 1, '2007-07-28 00:00:00', 0, 'Administrative', '');
3043 INSERT INTO `registry` VALUES ('Procedure Order', 1, 'procedure_order', 16, 1, 1, '2010-02-25 00:00:00', 0, 'Administrative', '');
3045 -- --------------------------------------------------------
3047 -- 
3048 -- Table structure for table `sequences`
3049 -- 
3051 DROP TABLE IF EXISTS `sequences`;
3052 CREATE TABLE `sequences` (
3053   `id` int(11) unsigned NOT NULL default '0'
3054 ) ENGINE=MyISAM;
3056 -- 
3057 -- Dumping data for table `sequences`
3058 -- 
3060 INSERT INTO `sequences` VALUES (1);
3062 -- --------------------------------------------------------
3064 -- 
3065 -- Table structure for table `transactions`
3066 -- 
3068 DROP TABLE IF EXISTS `transactions`;
3069 CREATE TABLE `transactions` (
3070   `id`                      bigint(20)   NOT NULL auto_increment,
3071   `date`                    datetime     default NULL,
3072   `title`                   varchar(255) NOT NULL DEFAULT '',
3073   `body`                    longtext     NOT NULL DEFAULT '',
3074   `pid`                     bigint(20)   default NULL,
3075   `user`                    varchar(255) NOT NULL DEFAULT '',
3076   `groupname`               varchar(255) NOT NULL DEFAULT '',
3077   `authorized`              tinyint(4)   default NULL,
3078   `refer_date`              date         DEFAULT NULL,
3079   `refer_from`              int(11)      NOT NULL DEFAULT 0,
3080   `refer_to`                int(11)      NOT NULL DEFAULT 0,
3081   `refer_diag`              varchar(255) NOT NULL DEFAULT '',
3082   `refer_risk_level`        varchar(255) NOT NULL DEFAULT '',
3083   `refer_vitals`            tinyint(1)   NOT NULL DEFAULT 0,
3084   `refer_external`          tinyint(1)   NOT NULL DEFAULT 0,
3085   `refer_related_code`      varchar(255) NOT NULL DEFAULT '',
3086   `refer_reply_date`        date         DEFAULT NULL,
3087   `reply_date`              date         DEFAULT NULL,
3088   `reply_from`              varchar(255) NOT NULL DEFAULT '',
3089   `reply_init_diag`         varchar(255) NOT NULL DEFAULT '',
3090   `reply_final_diag`        varchar(255) NOT NULL DEFAULT '',
3091   `reply_documents`         varchar(255) NOT NULL DEFAULT '',
3092   `reply_findings`          text         NOT NULL DEFAULT '',
3093   `reply_services`          text         NOT NULL DEFAULT '',
3094   `reply_recommend`         text         NOT NULL DEFAULT '',
3095   `reply_rx_refer`          text         NOT NULL DEFAULT '',
3096   `reply_related_code`      varchar(255) NOT NULL DEFAULT '',
3097   PRIMARY KEY  (`id`)
3098 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3100 -- --------------------------------------------------------
3102 -- 
3103 -- Table structure for table `users`
3104 -- 
3106 DROP TABLE IF EXISTS `users`;
3107 CREATE TABLE `users` (
3108   `id` bigint(20) NOT NULL auto_increment,
3109   `username` varchar(255) default NULL,
3110   `password` longtext,
3111   `authorized` tinyint(4) default NULL,
3112   `info` longtext,
3113   `source` tinyint(4) default NULL,
3114   `fname` varchar(255) default NULL,
3115   `mname` varchar(255) default NULL,
3116   `lname` varchar(255) default NULL,
3117   `federaltaxid` varchar(255) default NULL,
3118   `federaldrugid` varchar(255) default NULL,
3119   `upin` varchar(255) default NULL,
3120   `facility` varchar(255) default NULL,
3121   `facility_id` int(11) NOT NULL default '0',
3122   `see_auth` int(11) NOT NULL default '1',
3123   `active` tinyint(1) NOT NULL default '1',
3124   `npi` varchar(15) default NULL,
3125   `title` varchar(30) default NULL,
3126   `specialty` varchar(255) default NULL,
3127   `billname` varchar(255) default NULL,
3128   `email` varchar(255) default NULL,
3129   `url` varchar(255) default NULL,
3130   `assistant` varchar(255) default NULL,
3131   `organization` varchar(255) default NULL,
3132   `valedictory` varchar(255) default NULL,
3133   `street` varchar(60) default NULL,
3134   `streetb` varchar(60) default NULL,
3135   `city` varchar(30) default NULL,
3136   `state` varchar(30) default NULL,
3137   `zip` varchar(20) default NULL,
3138   `street2` varchar(60) default NULL,
3139   `streetb2` varchar(60) default NULL,
3140   `city2` varchar(30) default NULL,
3141   `state2` varchar(30) default NULL,
3142   `zip2` varchar(20) default NULL,
3143   `phone` varchar(30) default NULL,
3144   `fax` varchar(30) default NULL,
3145   `phonew1` varchar(30) default NULL,
3146   `phonew2` varchar(30) default NULL,
3147   `phonecell` varchar(30) default NULL,
3148   `notes` text,
3149   `cal_ui` tinyint(4) NOT NULL default '1',
3150   `taxonomy` varchar(30) NOT NULL DEFAULT '207Q00000X',
3151   `ssi_relayhealth` varchar(64) NULL,
3152   `calendar` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1 = appears in calendar',
3153   `abook_type` varchar(31) NOT NULL DEFAULT '',
3154   `pwd_expiration_date` date default NULL,
3155   `pwd_history1` longtext default NULL,
3156   `pwd_history2` longtext default NULL,
3157   `default_warehouse` varchar(31) NOT NULL DEFAULT '',
3158   `irnpool` varchar(31) NOT NULL DEFAULT '',
3159   PRIMARY KEY  (`id`)
3160 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3162 -- --------------------------------------------------------
3165 -- Table structure for table `user_settings`
3168 CREATE TABLE `user_settings` (
3169   `setting_user`  bigint(20)   NOT NULL DEFAULT 0,
3170   `setting_label` varchar(63)  NOT NULL,
3171   `setting_value` varchar(255) NOT NULL DEFAULT '',
3172   PRIMARY KEY (`setting_user`, `setting_label`)
3173 ) ENGINE=MyISAM;
3176 -- Dumping data for table `user_settings`
3179 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'allergy_ps_expand', '1');
3180 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'appointments_ps_expand', '1');
3181 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'billing_ps_expand', '0');
3182 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'demographics_ps_expand', '0');
3183 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'dental_ps_expand', '1');
3184 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'directives_ps_expand', '1');
3185 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'disclosures_ps_expand', '0');
3186 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'immunizations_ps_expand', '1');
3187 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'insurance_ps_expand', '0');
3188 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'medical_problem_ps_expand', '1');
3189 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'medication_ps_expand', '1');
3190 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'pnotes_ps_expand', '0');
3191 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'prescriptions_ps_expand', '1');
3192 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'surgery_ps_expand', '1');
3193 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'vitals_ps_expand', '1');
3194 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'gacl_protect', '0');
3195 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (1, 'gacl_protect', '1');
3197 -- --------------------------------------------------------
3199 -- 
3200 -- Table structure for table `x12_partners`
3201 -- 
3203 DROP TABLE IF EXISTS `x12_partners`;
3204 CREATE TABLE `x12_partners` (
3205   `id` int(11) NOT NULL default '0',
3206   `name` varchar(255) default NULL,
3207   `id_number` varchar(255) default NULL,
3208   `x12_sender_id` varchar(255) default NULL,
3209   `x12_receiver_id` varchar(255) default NULL,
3210   `x12_version` varchar(255) default NULL,
3211   `processing_format` enum('standard','medi-cal','cms','proxymed') default NULL,
3212   `x12_isa05` char(2)     NOT NULL DEFAULT 'ZZ',
3213   `x12_isa07` char(2)     NOT NULL DEFAULT 'ZZ',
3214   `x12_isa14` char(1)     NOT NULL DEFAULT '0',
3215   `x12_isa15` char(1)     NOT NULL DEFAULT 'P',
3216   `x12_gs02`  varchar(15) NOT NULL DEFAULT '',
3217   `x12_per06` varchar(80) NOT NULL DEFAULT '',
3218   PRIMARY KEY  (`id`)
3219 ) ENGINE=MyISAM;
3221 ------------------------------------------------------------------------------------- 
3222 -- Table structure for table `automatic_notification`
3223 -- 
3225 DROP TABLE IF EXISTS `automatic_notification`;
3226 CREATE TABLE `automatic_notification` (
3227   `notification_id` int(5) NOT NULL auto_increment,
3228   `sms_gateway_type` varchar(255) NOT NULL,
3229   `next_app_date` date NOT NULL,
3230   `next_app_time` varchar(10) NOT NULL,
3231   `provider_name` varchar(100) NOT NULL,
3232   `message` text NOT NULL,
3233   `email_sender` varchar(100) NOT NULL,
3234   `email_subject` varchar(100) NOT NULL,
3235   `type` enum('SMS','Email') NOT NULL default 'SMS',
3236   `notification_sent_date` datetime NOT NULL,
3237   PRIMARY KEY  (`notification_id`)
3238 ) ENGINE=InnoDB AUTO_INCREMENT=3 ;
3240 -- 
3241 -- Dumping data for table `automatic_notification`
3242 -- 
3244 INSERT INTO `automatic_notification` (`notification_id`, `sms_gateway_type`, `next_app_date`, `next_app_time`, `provider_name`, `message`, `email_sender`, `email_subject`, `type`, `notification_sent_date`) VALUES (1, 'CLICKATELL', '0000-00-00', ':', 'EMR GROUP 1 .. SMS', 'Welcome to EMR GROUP 1.. SMS', '', '', 'SMS', '0000-00-00 00:00:00'),
3245 (2, '', '2007-10-02', '05:50', 'EMR GROUP', 'Welcome to EMR GROUP . Email', 'EMR Group', 'Welcome to EMR GROUP', 'Email', '2007-09-30 00:00:00');
3247 -- --------------------------------------------------------
3249 -- 
3250 -- Table structure for table `notification_log`
3251 -- 
3253 DROP TABLE IF EXISTS `notification_log`;
3254 CREATE TABLE `notification_log` (
3255   `iLogId` int(11) NOT NULL auto_increment,
3256   `pid` int(7) NOT NULL,
3257   `pc_eid` int(11) unsigned NULL,
3258   `sms_gateway_type` varchar(50) NOT NULL,
3259   `smsgateway_info` varchar(255) NOT NULL,
3260   `message` text NOT NULL,
3261   `email_sender` varchar(255) NOT NULL,
3262   `email_subject` varchar(255) NOT NULL,
3263   `type` enum('SMS','Email') NOT NULL,
3264   `patient_info` text NOT NULL,
3265   `pc_eventDate` date NOT NULL,
3266   `pc_endDate` date NOT NULL,
3267   `pc_startTime` time NOT NULL,
3268   `pc_endTime` time NOT NULL,
3269   `dSentDateTime` datetime NOT NULL,
3270   PRIMARY KEY  (`iLogId`)
3271 ) ENGINE=InnoDB AUTO_INCREMENT=5 ;
3273 -- --------------------------------------------------------
3275 -- 
3276 -- Table structure for table `notification_settings`
3277 -- 
3279 DROP TABLE IF EXISTS `notification_settings`;
3280 CREATE TABLE `notification_settings` (
3281   `SettingsId` int(3) NOT NULL auto_increment,
3282   `Send_SMS_Before_Hours` int(3) NOT NULL,
3283   `Send_Email_Before_Hours` int(3) NOT NULL,
3284   `SMS_gateway_username` varchar(100) NOT NULL,
3285   `SMS_gateway_password` varchar(100) NOT NULL,
3286   `SMS_gateway_apikey` varchar(100) NOT NULL,
3287   `type` varchar(50) NOT NULL,
3288   PRIMARY KEY  (`SettingsId`)
3289 ) ENGINE=InnoDB AUTO_INCREMENT=2 ;
3291 -- 
3292 -- Dumping data for table `notification_settings`
3293 -- 
3295 INSERT INTO `notification_settings` (`SettingsId`, `Send_SMS_Before_Hours`, `Send_Email_Before_Hours`, `SMS_gateway_username`, `SMS_gateway_password`, `SMS_gateway_apikey`, `type`) VALUES (1, 150, 150, 'sms username', 'sms password', 'sms api key', 'SMS/Email Settings');
3297 -- -------------------------------------------------------------------
3299 CREATE TABLE chart_tracker (
3300   ct_pid            int(11)       NOT NULL,
3301   ct_when           datetime      NOT NULL,
3302   ct_userid         bigint(20)    NOT NULL DEFAULT 0,
3303   ct_location       varchar(31)   NOT NULL DEFAULT '',
3304   PRIMARY KEY (ct_pid, ct_when)
3305 ) ENGINE=MyISAM;
3307 CREATE TABLE ar_session (
3308   session_id     int unsigned  NOT NULL AUTO_INCREMENT,
3309   payer_id       int(11)       NOT NULL            COMMENT '0=pt else references insurance_companies.id',
3310   user_id        int(11)       NOT NULL            COMMENT 'references users.id for session owner',
3311   closed         tinyint(1)    NOT NULL DEFAULT 0  COMMENT '0=no, 1=yes',
3312   reference      varchar(255)  NOT NULL DEFAULT '' COMMENT 'check or EOB number',
3313   check_date     date          DEFAULT NULL,
3314   deposit_date   date          DEFAULT NULL,
3315   pay_total      decimal(12,2) NOT NULL DEFAULT 0,
3316   created_time timestamp NOT NULL default CURRENT_TIMESTAMP,
3317   modified_time datetime NOT NULL,
3318   global_amount decimal( 12, 2 ) NOT NULL ,
3319   payment_type varchar( 50 ) NOT NULL ,
3320   description text NOT NULL ,
3321   adjustment_code varchar( 50 ) NOT NULL ,
3322   post_to_date date NOT NULL ,
3323   patient_id int( 11 ) NOT NULL ,
3324   payment_method varchar( 25 ) NOT NULL,
3325   PRIMARY KEY (session_id),
3326   KEY user_closed (user_id, closed),
3327   KEY deposit_date (deposit_date)
3328 ) ENGINE=MyISAM;
3330 CREATE TABLE ar_activity (
3331   pid            int(11)       NOT NULL,
3332   encounter      int(11)       NOT NULL,
3333   sequence_no    int unsigned  NOT NULL AUTO_INCREMENT,
3334   code           varchar(9)    NOT NULL            COMMENT 'empty means claim level',
3335   modifier       varchar(5)    NOT NULL DEFAULT '',
3336   payer_type     int           NOT NULL            COMMENT '0=pt, 1=ins1, 2=ins2, etc',
3337   post_time      datetime      NOT NULL,
3338   post_user      int(11)       NOT NULL            COMMENT 'references users.id',
3339   session_id     int unsigned  NOT NULL            COMMENT 'references ar_session.session_id',
3340   memo           varchar(255)  NOT NULL DEFAULT '' COMMENT 'adjustment reasons go here',
3341   pay_amount     decimal(12,2) NOT NULL DEFAULT 0  COMMENT 'either pay or adj will always be 0',
3342   adj_amount     decimal(12,2) NOT NULL DEFAULT 0,
3343   modified_time datetime NOT NULL,
3344   follow_up char(1) NOT NULL,
3345   follow_up_note text NOT NULL,
3346   account_code varchar(15) NOT NULL,
3347   PRIMARY KEY (pid, encounter, sequence_no),
3348   KEY session_id (session_id)
3349 ) ENGINE=MyISAM;
3351 CREATE TABLE `users_facility` (
3352   `tablename` varchar(64) NOT NULL,
3353   `table_id` int(11) NOT NULL,
3354   `facility_id` int(11) NOT NULL,
3355   PRIMARY KEY (`tablename`,`table_id`,`facility_id`)
3356 ) ENGINE=InnoDB COMMENT='joins users or patient_data to facility table';
3358 CREATE TABLE `lbf_data` (
3359   `form_id`     int(11)      NOT NULL AUTO_INCREMENT COMMENT 'references forms.form_id',
3360   `field_id`    varchar(31)  NOT NULL COMMENT 'references layout_options.field_id',
3361   `field_value` varchar(255) NOT NULL,
3362   PRIMARY KEY (`form_id`,`field_id`)
3363 ) ENGINE=MyISAM COMMENT='contains all data from layout-based forms';
3365 CREATE TABLE gprelations (
3366   type1 int(2)     NOT NULL,
3367   id1   bigint(20) NOT NULL,
3368   type2 int(2)     NOT NULL,
3369   id2   bigint(20) NOT NULL,
3370   PRIMARY KEY (type1,id1,type2,id2),
3371   KEY key2  (type2,id2)
3372 ) ENGINE=MyISAM COMMENT='general purpose relations';
3374 CREATE TABLE `procedure_type` (
3375   `procedure_type_id`   bigint(20)   NOT NULL AUTO_INCREMENT,
3376   `parent`              bigint(20)   NOT NULL DEFAULT 0  COMMENT 'references procedure_type.procedure_type_id',
3377   `name`                varchar(63)  NOT NULL DEFAULT '' COMMENT 'name for this category, procedure or result type',
3378   `lab_id`              bigint(20)   NOT NULL DEFAULT 0  COMMENT 'references users.id, 0 means default to parent',
3379   `procedure_code`      varchar(31)  NOT NULL DEFAULT '' COMMENT 'code identifying this procedure',
3380   `procedure_type`      varchar(31)  NOT NULL DEFAULT '' COMMENT 'see list proc_type',
3381   `body_site`           varchar(31)  NOT NULL DEFAULT '' COMMENT 'where to do injection, e.g. arm, buttok',
3382   `specimen`            varchar(31)  NOT NULL DEFAULT '' COMMENT 'blood, urine, saliva, etc.',
3383   `route_admin`         varchar(31)  NOT NULL DEFAULT '' COMMENT 'oral, injection',
3384   `laterality`          varchar(31)  NOT NULL DEFAULT '' COMMENT 'left, right, ...',
3385   `description`         varchar(255) NOT NULL DEFAULT '' COMMENT 'descriptive text for procedure_code',
3386   `standard_code`       varchar(255) NOT NULL DEFAULT '' COMMENT 'industry standard code type and code (e.g. CPT4:12345)',
3387   `related_code`        varchar(255) NOT NULL DEFAULT '' COMMENT 'suggested code(s) for followup services if result is abnormal',
3388   `units`               varchar(31)  NOT NULL DEFAULT '' COMMENT 'default for procedure_result.units',
3389   `range`               varchar(255) NOT NULL DEFAULT '' COMMENT 'default for procedure_result.range',
3390   `seq`                 int(11)      NOT NULL default 0  COMMENT 'sequence number for ordering',
3391   PRIMARY KEY (`procedure_type_id`),
3392   KEY parent (parent)
3393 ) ENGINE=MyISAM;
3395 CREATE TABLE `procedure_order` (
3396   `procedure_order_id`     bigint(20)   NOT NULL AUTO_INCREMENT,
3397   `procedure_type_id`      bigint(20)   NOT NULL            COMMENT 'references procedure_type.procedure_type_id',
3398   `provider_id`            bigint(20)   NOT NULL DEFAULT 0  COMMENT 'references users.id',
3399   `patient_id`             bigint(20)   NOT NULL            COMMENT 'references patient_data.pid',
3400   `encounter_id`           bigint(20)   NOT NULL DEFAULT 0  COMMENT 'references form_encounter.encounter',
3401   `date_collected`         datetime     DEFAULT NULL        COMMENT 'time specimen collected',
3402   `date_ordered`           date         DEFAULT NULL,
3403   `order_priority`         varchar(31)  NOT NULL DEFAULT '',
3404   `order_status`           varchar(31)  NOT NULL DEFAULT '' COMMENT 'pending,routed,complete,canceled',
3405   `patient_instructions`   text         NOT NULL DEFAULT '',
3406   `activity`               tinyint(1)   NOT NULL DEFAULT 1  COMMENT '0 if deleted',
3407   `control_id`             bigint(20)   NOT NULL            COMMENT 'This is the CONTROL ID that is sent back from lab',
3408   PRIMARY KEY (`procedure_order_id`),
3409   KEY datepid (date_ordered, patient_id)
3410 ) ENGINE=MyISAM;
3412 CREATE TABLE `procedure_report` (
3413   `procedure_report_id` bigint(20)     NOT NULL AUTO_INCREMENT,
3414   `procedure_order_id`  bigint(20)     DEFAULT NULL   COMMENT 'references procedure_order.procedure_order_id',
3415   `date_collected`      datetime       DEFAULT NULL,
3416   `date_report`         date           DEFAULT NULL,
3417   `source`              bigint(20)     NOT NULL DEFAULT 0  COMMENT 'references users.id, who entered this data',
3418   `specimen_num`        varchar(63)    NOT NULL DEFAULT '',
3419   `report_status`       varchar(31)    NOT NULL DEFAULT '' COMMENT 'received,complete,error',
3420   `review_status`       varchar(31)    NOT NULL DEFAULT 'received' COMMENT 'panding reivew status: received,reviewed',  
3421   PRIMARY KEY (`procedure_report_id`),
3422   KEY procedure_order_id (procedure_order_id)
3423 ) ENGINE=MyISAM; 
3425 CREATE TABLE `procedure_result` (
3426   `procedure_result_id` bigint(20)   NOT NULL AUTO_INCREMENT,
3427   `procedure_report_id` bigint(20)   NOT NULL            COMMENT 'references procedure_report.procedure_report_id',
3428   `procedure_type_id`   bigint(20)   NOT NULL            COMMENT 'references procedure_type.procedure_type_id',
3429   `date`                datetime     DEFAULT NULL        COMMENT 'lab-provided date specific to this result',
3430   `facility`            varchar(255) NOT NULL DEFAULT '' COMMENT 'lab-provided testing facility ID',
3431   `units`               varchar(31)  NOT NULL DEFAULT '',
3432   `result`              varchar(255) NOT NULL DEFAULT '',
3433   `range`               varchar(255) NOT NULL DEFAULT '',
3434   `abnormal`            varchar(31)  NOT NULL DEFAULT '' COMMENT 'no,yes,high,low',
3435   `comments`            text         NOT NULL DEFAULT '' COMMENT 'comments from the lab',
3436   `document_id`         bigint(20)   NOT NULL DEFAULT 0  COMMENT 'references documents.id if this result is a document',
3437   `result_status`       varchar(31)  NOT NULL DEFAULT '' COMMENT 'preliminary, cannot be done, final, corrected, incompete...etc.',
3438   PRIMARY KEY (`procedure_result_id`),
3439   KEY procedure_report_id (procedure_report_id)
3440 ) ENGINE=MyISAM; 
3442 CREATE TABLE `globals` (
3443   `gl_name`             varchar(63)    NOT NULL,
3444   `gl_index`            int(11)        NOT NULL DEFAULT 0,
3445   `gl_value`            varchar(255)   NOT NULL DEFAULT '',
3446   PRIMARY KEY (`gl_name`, `gl_index`)
3447 ) ENGINE=MyISAM; 
3449 CREATE TABLE code_types (
3450   ct_key  varchar(15) NOT NULL           COMMENT 'short alphanumeric name',
3451   ct_id   int(11)     UNIQUE NOT NULL    COMMENT 'numeric identifier',
3452   ct_seq  int(11)     NOT NULL DEFAULT 0 COMMENT 'sort order',
3453   ct_mod  int(11)     NOT NULL DEFAULT 0 COMMENT 'length of modifier field',
3454   ct_just varchar(15) NOT NULL DEFAULT ''COMMENT 'ct_key of justify type, if any',
3455   ct_mask varchar(9)  NOT NULL DEFAULT ''COMMENT 'formatting mask for code values',
3456   ct_fee  tinyint(1)  NOT NULL default 0 COMMENT '1 if fees are used',
3457   ct_rel  tinyint(1)  NOT NULL default 0 COMMENT '1 if can relate to other code types',
3458   ct_nofs tinyint(1)  NOT NULL default 0 COMMENT '1 if to be hidden in the fee sheet',
3459   ct_diag tinyint(1)  NOT NULL default 0 COMMENT '1 if this is a diagnosis type',
3460   PRIMARY KEY (ct_key)
3461 ) ENGINE=MyISAM;
3462 INSERT INTO code_types (ct_key, ct_id, ct_seq, ct_mod, ct_just, ct_fee, ct_rel, ct_nofs, ct_diag ) VALUES ('ICD9' , 2, 1, 2, ''    , 0, 0, 0, 1);
3463 INSERT INTO code_types (ct_key, ct_id, ct_seq, ct_mod, ct_just, ct_fee, ct_rel, ct_nofs, ct_diag ) VALUES ('CPT4' , 1, 2, 2, 'ICD9', 1, 0, 0, 0);
3464 INSERT INTO code_types (ct_key, ct_id, ct_seq, ct_mod, ct_just, ct_fee, ct_rel, ct_nofs, ct_diag ) VALUES ('HCPCS', 3, 3, 2, 'ICD9', 1, 0, 0, 0);
3466 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('lists', 'code_types', 'Code Types', 1);
3468 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'disclosure_type','Disclosure Type', 3,0);
3469 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('disclosure_type', 'disclosure-treatment', 'Treatment', 10, 0);
3470 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('disclosure_type', 'disclosure-payment', 'Payment', 20, 0);
3471 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('disclosure_type', 'disclosure-healthcareoperations', 'Health Care Operations', 30, 0);
3473 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'smoking_status','Smoking Status', 1,0);
3474 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '1', 'Current every day smoker', 10, 0);
3475 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '2', 'Current some day smoker', 20, 0);
3476 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '3', 'Former smoker', 30, 0);
3477 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '4', 'Never smoker', 40, 0);
3478 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '5', 'Smoker, current status unknown', 50, 0);
3479 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '9', 'Unknown if ever smoked', 60, 0);
3481 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'race','Race', 1,0);
3482 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'amer_ind_or_alaska_native', 'American Indian or Alaska Native', 10, 0);
3483 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'Asian', 'Asian',20,0);
3484 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'black_or_afri_amer', 'Black or African American',30,0);
3485 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'native_hawai_or_pac_island', 'Native Hawaiian or Other Pacific Islander',40,0);
3486 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'white', 'White',50,0);
3488 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'ethnicity','Ethnicity', 1,0);
3489 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethnicity', 'hisp_or_latin', 'Hispanic or Latino', 10, 0);
3490 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethnicity', 'not_hisp_or_latin', 'Not Hispanic or Latino', 10, 0);
3492 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists'   ,'payment_date','Payment Date', 1,0);
3493 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_date', 'date_val', 'Date', 10, 0);
3494 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_date', 'post_to_date', 'Post To Date', 20, 0);
3495 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_date', 'deposit_date', 'Deposit Date', 30, 0);
3496 -- --------------------------------------------------------
3498 -- 
3499 -- Table structure for table `extended_log`
3502 DROP TABLE IF EXISTS `extended_log`;
3503 CREATE TABLE `extended_log` (
3504   `id` bigint(20) NOT NULL auto_increment,
3505   `date` datetime default NULL,
3506   `event` varchar(255) default NULL,
3507   `user` varchar(255) default NULL,
3508   `recipient` varchar(255) default NULL,
3509   `description` longtext,
3510   `patient_id` bigint(20) default NULL,
3511   PRIMARY KEY  (`id`)
3512 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3514 CREATE TABLE version (
3515   v_major    int(11)     NOT NULL DEFAULT 0,
3516   v_minor    int(11)     NOT NULL DEFAULT 0,
3517   v_patch    int(11)     NOT NULL DEFAULT 0,
3518   v_tag      varchar(31) NOT NULL DEFAULT '',
3519   v_database int(11)     NOT NULL DEFAULT 0
3520 ) ENGINE=MyISAM;
3521 INSERT INTO version (v_major, v_minor, v_patch, v_tag, v_database) VALUES (0, 0, 0, '', 0);