5 -- --------------------------------------------------------
8 -- Table structure for table `addresses`
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,
23 KEY `foreign_id` (`foreign_id`)
26 -- --------------------------------------------------------
29 -- Table structure for table `array`
32 DROP TABLE IF EXISTS `array`;
33 CREATE TABLE `array` (
34 `array_key` varchar(255) default NULL,
35 `array_value` longtext
38 -- --------------------------------------------------------
41 -- Table structure for table `batchcom`
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',
54 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
56 -- --------------------------------------------------------
59 -- Table structure for table `billing`
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,
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,
91 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
93 -- --------------------------------------------------------
96 -- Table structure for table `categories`
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',
108 KEY `parent` (`parent`),
109 KEY `lft` (`lft`,`rght`)
113 -- Dumping data for table `categories`
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 -- --------------------------------------------------------
130 -- Table structure for table `categories_seq`
133 DROP TABLE IF EXISTS `categories_seq`;
134 CREATE TABLE `categories_seq` (
135 `id` int(11) NOT NULL default '0',
140 -- Dumping data for table `categories_seq`
143 INSERT INTO `categories_seq` VALUES (10);
145 -- --------------------------------------------------------
148 -- Table structure for table `categories_to_documents`
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`)
158 -- --------------------------------------------------------
161 -- Table structure for table `claims`
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 -- --------------------------------------------------------
184 -- Table structure for table `clinical_plans`
187 DROP TABLE IF EXISTS `clinical_plans`;
188 CREATE TABLE `clinical_plans` (
189 `id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Unique and maps to list_options list clinical_plans',
190 `pid` bigint(20) NOT NULL DEFAULT '0' COMMENT '0 is default for all patients, while > 0 is id from patient_data table',
191 `normal_flag` tinyint(1) COMMENT 'Normal Activation Flag',
192 `cqm_flag` tinyint(1) COMMENT 'Clinical Quality Measure flag (unable to customize per patient)',
193 `cqm_measure_group` varchar(10) NOT NULL default '' COMMENT 'Clinical Quality Measure Group Identifier',
194 PRIMARY KEY (`id`,`pid`)
198 -- Clinical Quality Measure (CMQ) plans
200 -- Measure Group A: Diabetes Mellitus
201 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('dm_plan_cqm', 0, 0, 1, 'A');
202 -- Measure Group C: Chronic Kidney Disease (CKD)
203 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('ckd_plan_cqm', 0, 0, 1, 'C');
204 -- Measure Group D: Preventative Care
205 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('prevent_plan_cqm', 0, 0, 1, 'D');
206 -- Measure Group E: Perioperative Care
207 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('periop_plan_cqm', 0, 0, 1, 'E');
208 -- Measure Group F: Rheumatoid Arthritis
209 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('rheum_arth_plan_cqm', 0, 0, 1, 'F');
210 -- Measure Group G: Back Pain
211 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('back_pain_plan_cqm', 0, 0, 1, 'G');
212 -- Measure Group H: Coronary Artery Bypass Graft (CABG)
213 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('cabg_plan_cqm', 0, 0, 1, 'H');
215 -- Standard clinical plans
218 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('dm_plan', 0, 1, 0, '');
219 INSERT INTO `clinical_plans` ( `id`, `pid`, `normal_flag`, `cqm_flag`, `cqm_measure_group` ) VALUES ('prevent_plan', 0, 1, 0, '');
221 -- --------------------------------------------------------
224 -- Table structure for table `clinical_plans_rules`
227 DROP TABLE IF EXISTS `clinical_plans_rules`;
228 CREATE TABLE `clinical_plans_rules` (
229 `plan_id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Unique and maps to list_options list clinical_plans',
230 `rule_id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Unique and maps to list_options list clinical_rules',
231 PRIMARY KEY (`plan_id`,`rule_id`)
235 -- Clinical Quality Measure (CMQ) plans to rules mappings
237 -- Measure Group A: Diabetes Mellitus
238 -- NQF 0061 (PQRI 3) Diabetes: Blood Pressure Management
239 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('dm_plan_cqm', 'rule_dm_bp_control_cqm');
240 -- NQF 0055 (PQRI 117) Diabetes: Eye Exam
241 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('dm_plan_cqm', 'rule_dm_eye_cqm');
242 -- NQF 0056 (PQRI 163) Diabetes: Foot Exam
243 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('dm_plan_cqm', 'rule_dm_foot_cqm');
244 -- Measure Group D: Preventative Care
245 -- NQF 0041 (PQRI 110) Influenza Immunization for Patients >= 50 Years Old
246 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan_cqm', 'rule_influenza_ge_50_cqm');
247 -- NQF 0043 (PQRI 111) Pneumonia Vaccination Status for Older Adults
248 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan_cqm', 'rule_pneumovacc_ge_65_cqm');
249 -- NQF 0421 (PQRI 128) Adult Weight Screening and Follow-Up
250 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan_cqm', 'rule_adult_wt_screen_fu_cqm');
252 -- Standard clinical plans to rules mappings
256 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('dm_plan', 'rule_dm_hemo_a1c');
257 -- Urine Microalbumin
258 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('dm_plan', 'rule_dm_urine_alb');
260 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('dm_plan', 'rule_dm_eye');
262 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('dm_plan', 'rule_dm_foot');
264 -- Hypertension: Blood Pressure Measurement
265 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_htn_bp_measure');
266 -- Tobacco Use Assessment
267 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_tob_use_assess');
268 -- Tobacco Cessation Intervention
269 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_tob_cess_inter');
270 -- Adult Weight Screening and Follow-Up
271 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_adult_wt_screen_fu');
272 -- Weight Assessment and Counseling for Children and Adolescents
273 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_wt_assess_couns_child');
274 -- Influenza Immunization for Patients >= 50 Years Old
275 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_influenza_ge_50');
276 -- Pneumonia Vaccination Status for Older Adults
277 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_pneumovacc_ge_65');
278 -- Cancer Screening: Mammogram
279 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_cs_mammo');
280 -- Cancer Screening: Pap Smear
281 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_cs_pap');
282 -- Cancer Screening: Colon Cancer Screening
283 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_cs_colon');
284 -- Cancer Screening: Prostate Cancer Screening
285 INSERT INTO `clinical_plans_rules` ( `plan_id`, `rule_id` ) VALUES ('prevent_plan', 'rule_cs_prostate');
287 -- --------------------------------------------------------
290 -- Table structure for table `clinical_rules`
293 DROP TABLE IF EXISTS `clinical_rules`;
294 CREATE TABLE `clinical_rules` (
295 `id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Unique and maps to list_options list clinical_rules',
296 `pid` bigint(20) NOT NULL DEFAULT '0' COMMENT '0 is default for all patients, while > 0 is id from patient_data table',
297 `active_alert_flag` tinyint(1) COMMENT 'Active Alert Widget Module flag - note not yet utilized',
298 `passive_alert_flag` tinyint(1) COMMENT 'Passive Alert Widget Module flag',
299 `cqm_flag` tinyint(1) COMMENT 'Clinical Quality Measure flag (unable to customize per patient)',
300 `cqm_nqf_code` varchar(10) NOT NULL default '' COMMENT 'Clinical Quality Measure NQF identifier',
301 `cqm_pqri_code` varchar(10) NOT NULL default '' COMMENT 'Clinical Quality Measure PQRI identifier',
302 `amc_flag` tinyint(1) COMMENT 'Automated Measure Calculation flag (unable to customize per patient)',
303 `amc_code` varchar(10) NOT NULL default '' COMMENT 'Automated Measure Calculation indentifier (MU rule)',
304 `patient_reminder_flag` tinyint(1) COMMENT 'Clinical Reminder Module flag',
305 PRIMARY KEY (`id`,`pid`)
309 -- Automated Measure Calculation (AMC) rules
311 -- MU 170.302(c) Maintain an up-to-date problem list of current and active diagnoses
312 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('problem_list_amc', 0, 0, 0, 0, '', '', 1, '170.302(c)', 0);
313 -- MU 170.302(d) Maintain active medication list
314 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('med_list_amc', 0, 0, 0, 0, '', '', 1, '170.302(d)', 0);
315 -- MU 170.302(e) Maintain active medication allergy list
316 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('med_allergy_list_amc', 0, 0, 0, 0, '', '', 1, '170.302(e)', 0);
317 -- MU 170.302(f) Record and chart changes in vital signs
318 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('record_vitals_amc', 0, 0, 0, 0, '', '', 1, '170.302(f)', 0);
319 -- MU 170.302(g) Record smoking status for patients 13 years old or older
320 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('record_smoke_amc', 0, 0, 0, 0, '', '', 1, '170.302(g)', 0);
321 -- MU 170.302(h) Incorporate clinical lab-test results into certified EHR technology as
323 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('lab_result_amc', 0, 0, 0, 0, '', '', 1, '170.302(h)', 0);
324 -- MU 170.302(j) The EP, eligible hospital or CAH who receives a patient from another
325 -- setting of care or provider of care or believes an encounter is relevant
326 -- should perform medication reconciliation
327 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('med_reconc_amc', 0, 0, 0, 0, '', '', 1, '170.302(j)', 0);
328 -- MU 170.302(m) Use certified EHR technology to identify patient-specific education resources
329 -- and provide those resources to the patient if appropriate
330 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('patient_edu_amc', 0, 0, 0, 0, '', '', 1, '170.302(m)', 0);
331 -- MU 170.304(a) Use CPOE for medication orders directly entered by any licensed healthcare
332 -- professional who can enter orders into the medical record per state, local
333 -- and professional guidelines
334 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('cpoe_med_amc', 0, 0, 0, 0, '', '', 1, '170.304(a)', 0);
335 -- MU 170.304(b) Generate and transmit permissible prescriptions electronically (eRx)
336 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('e_prescribe_amc', 0, 0, 0, 0, '', '', 1, '170.304(b)', 0);
337 -- MU 170.304(c) Record demographics
338 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('record_dem_amc', 0, 0, 0, 0, '', '', 1, '170.304(c)', 0);
339 -- MU 170.304(d) Send reminders to patients per patient preference for preventive/follow up care
340 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('send_reminder_amc', 0, 0, 0, 0, '', '', 1, '170.304(d)', 0);
341 -- MU 170.304(f) Provide patients with an electronic copy of their health information
342 -- (including diagnostic test results, problem list, medication lists,
343 -- medication allergies), upon request
344 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('provide_rec_pat_amc', 0, 0, 0, 0, '', '', 1, '170.304(f)', 0);
345 -- MU 170.304(g) Provide patients with timely electronic access to their health information
346 -- (including lab results, problem list, medication lists, medication allergies)
347 -- within four business days of the information being available to the EP
348 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('timely_access_amc', 0, 0, 0, 0, '', '', 1, '170.304(g)', 0);
349 -- MU 170.304(h) Provide clinical summaries for patients for each office visit
350 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('provide_sum_pat_amc', 0, 0, 0, 0, '', '', 1, '170.304(h)', 0);
351 -- MU 170.304(i) The EP, eligible hospital or CAH who transitions their patient to
352 -- another setting of care or provider of care or refers their patient to
353 -- another provider of care should provide summary of care record for
354 -- each transition of care or referral
355 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('send_sum_amc', 0, 0, 0, 0, '', '', 1, '170.304(i)', 0);
357 -- Clinical Quality Measure (CQM) rules
359 -- NQF 0013 Hypertension: Blood Pressure Measurement
360 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_htn_bp_measure_cqm', 0, 0, 0, 1, '0013', '', 0, '', 0);
361 -- NQF 0028a Tobacco Use Assessment
362 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_tob_use_assess_cqm', 0, 0, 0, 1, '0028a', '', 0, '', 0);
363 -- NQF 0028b Tobacco Cessation Intervention
364 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_tob_cess_inter_cqm', 0, 0, 0, 1, '0028b', '', 0, '', 0);
365 -- NQF 0421 (PQRI 128) Adult Weight Screening and Follow-Up
366 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_adult_wt_screen_fu_cqm', 0, 0, 0, 1, '0421', '128', 0, '', 0);
367 -- NQF 0024 Weight Assessment and Counseling for Children and Adolescents
368 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_wt_assess_couns_child_cqm', 0, 0, 0, 1, '0024', '', 0, '', 0);
369 -- NQF 0041 (PQRI 110) Influenza Immunization for Patients >= 50 Years Old
370 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_influenza_ge_50_cqm', 0, 0, 0, 1, '0041', '110', 0, '', 0);
371 -- NQF 0038 Childhood immunization Status
372 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_child_immun_stat_cqm', 0, 0, 0, 1, '0038', '', 0, '', 0);
373 -- NQF 0043 (PQRI 111) Pneumonia Vaccination Status for Older Adults
374 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_pneumovacc_ge_65_cqm', 0, 0, 0, 1, '0043', '111', 0, '', 0);
375 -- NQF 0055 (PQRI 117) Diabetes: Eye Exam
376 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_dm_eye_cqm', 0, 0, 0, 1, '0055', '117', 0, '', 0);
377 -- NQF 0056 (PQRI 163) Diabetes: Foot Exam
378 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_dm_foot_cqm', 0, 0, 0, 1, '0056', '163', 0, '', 0);
379 -- NQF 0061 (PQRI 3) Diabetes: Blood Pressure Management
380 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_dm_bp_control_cqm', 0, 0, 0, 1, '0061', '3', 0, '', 0);
382 -- Standard clinical rules
384 -- Hypertension: Blood Pressure Measurement
385 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_htn_bp_measure', 0, 0, 1, 0, '', '', 0, '', 0);
386 -- Tobacco Use Assessment
387 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_tob_use_assess', 0, 0, 1, 0, '', '', 0, '', 0);
388 -- Tobacco Cessation Intervention
389 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_tob_cess_inter', 0, 0, 1, 0, '', '', 0, '', 0);
390 -- Adult Weight Screening and Follow-Up
391 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_adult_wt_screen_fu', 0, 0, 1, 0, '', '', 0, '', 0);
392 -- Weight Assessment and Counseling for Children and Adolescents
393 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_wt_assess_couns_child', 0, 0, 1, 0, '', '', 0, '', 0);
394 -- Influenza Immunization for Patients >= 50 Years Old
395 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_influenza_ge_50', 0, 0, 1, 0, '', '', 0, '', 0);
396 -- Pneumonia Vaccination Status for Older Adults
397 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_pneumovacc_ge_65', 0, 0, 1, 0, '', '', 0, '', 0);
398 -- Diabetes: Hemoglobin A1C
399 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_dm_hemo_a1c', 0, 0, 1, 0, '', '', 0, '', 0);
400 -- Diabetes: Urine Microalbumin
401 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_dm_urine_alb', 0, 0, 1, 0, '', '', 0, '', 0);
402 -- Diabetes: Eye Exam
403 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_dm_eye', 0, 0, 1, 0, '', '', 0, '', 0);
404 -- Diabetes: Foot Exam
405 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_dm_foot', 0, 0, 1, 0, '', '', 0, '', 0);
406 -- Cancer Screening: Mammogram
407 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_cs_mammo', 0, 0, 1, 0, '', '', 0, '', 0);
408 -- Cancer Screening: Pap Smear
409 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_cs_pap', 0, 0, 1, 0, '', '', 0, '', 0);
410 -- Cancer Screening: Colon Cancer Screening
411 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_cs_colon', 0, 0, 1, 0, '', '', 0, '', 0);
412 -- Cancer Screening: Prostate Cancer Screening
413 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_cs_prostate', 0, 0, 1, 0, '', '', 0, '', 0);
415 -- Rules to specifically demonstrate passing of NIST criteria
417 -- Coumadin Management - INR Monitoring
418 INSERT INTO `clinical_rules` ( `id`, `pid`, `active_alert_flag`, `passive_alert_flag`, `cqm_flag`, `cqm_nqf_code`, `cqm_pqri_code`, `amc_flag`, `amc_code`, `patient_reminder_flag` ) VALUES ('rule_inr_monitor', 0, 0, 1, 0, '', '', 0, '', 0);
420 -- --------------------------------------------------------
423 -- Table structure for table `codes`
426 DROP TABLE IF EXISTS `codes`;
427 CREATE TABLE `codes` (
428 `id` int(11) NOT NULL auto_increment,
429 `code_text` varchar(255) NOT NULL default '',
430 `code_text_short` varchar(24) NOT NULL default '',
431 `code` varchar(10) NOT NULL default '',
432 `code_type` tinyint(2) default NULL,
433 `modifier` varchar(5) NOT NULL default '',
434 `units` tinyint(3) default NULL,
435 `fee` decimal(12,2) default NULL,
436 `superbill` varchar(31) NOT NULL default '',
437 `related_code` varchar(255) NOT NULL default '',
438 `taxrates` varchar(255) NOT NULL default '',
439 `cyp_factor` float NOT NULL DEFAULT 0 COMMENT 'quantity representing a years supply',
440 `active` TINYINT(1) DEFAULT 1 COMMENT '0 = inactive, 1 = active',
441 `reportable` TINYINT(1) DEFAULT 0 COMMENT '0 = non-reportable, 1 = reportable',
444 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
445 -- --------------------------------------------------------
448 -- Table structure for table `syndromic_surveillance`
451 DROP TABLE IF EXISTS `syndromic_surveillance`;
452 CREATE TABLE `syndromic_surveillance` (
453 `id` bigint(20) NOT NULL auto_increment,
454 `lists_id` bigint(20) NOT NULL,
455 `submission_date` datetime NOT NULL,
456 `filename` varchar(255) NOT NULL default '',
459 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
461 -- --------------------------------------------------------
464 -- Table structure for table `config`
467 DROP TABLE IF EXISTS `config`;
468 CREATE TABLE `config` (
469 `id` int(11) NOT NULL default '0',
470 `name` varchar(255) default NULL,
471 `value` varchar(255) default NULL,
472 `parent` int(11) NOT NULL default '0',
473 `lft` int(11) NOT NULL default '0',
474 `rght` int(11) NOT NULL default '0',
476 KEY `parent` (`parent`),
477 KEY `lft` (`lft`,`rght`)
480 -- --------------------------------------------------------
483 -- Table structure for table `config_seq`
486 DROP TABLE IF EXISTS `config_seq`;
487 CREATE TABLE `config_seq` (
488 `id` int(11) NOT NULL default '0',
493 -- Dumping data for table `config_seq`
496 INSERT INTO `config_seq` VALUES (0);
498 -- --------------------------------------------------------
501 -- Table structure for table `documents`
504 DROP TABLE IF EXISTS `documents`;
505 CREATE TABLE `documents` (
506 `id` int(11) NOT NULL default '0',
507 `type` enum('file_url','blob','web_url') default NULL,
508 `size` int(11) default NULL,
509 `date` datetime default NULL,
510 `url` varchar(255) default NULL,
511 `mimetype` varchar(255) default NULL,
512 `pages` int(11) default NULL,
513 `owner` int(11) default NULL,
514 `revision` timestamp NOT NULL,
515 `foreign_id` int(11) default NULL,
516 `docdate` date default NULL,
517 `hash` varchar(40) DEFAULT NULL COMMENT '40-character SHA-1 hash of document',
518 `list_id` bigint(20) NOT NULL default '0',
520 KEY `revision` (`revision`),
521 KEY `foreign_id` (`foreign_id`),
522 KEY `owner` (`owner`)
525 -- --------------------------------------------------------
528 -- Table structure for table `drug_inventory`
531 DROP TABLE IF EXISTS `drug_inventory`;
532 CREATE TABLE `drug_inventory` (
533 `inventory_id` int(11) NOT NULL auto_increment,
534 `drug_id` int(11) NOT NULL,
535 `lot_number` varchar(20) default NULL,
536 `expiration` date default NULL,
537 `manufacturer` varchar(255) default NULL,
538 `on_hand` int(11) NOT NULL default '0',
539 `warehouse_id` varchar(31) NOT NULL DEFAULT '',
540 `vendor_id` bigint(20) NOT NULL DEFAULT 0,
541 `last_notify` date NOT NULL default '0000-00-00',
542 `destroy_date` date default NULL,
543 `destroy_method` varchar(255) default NULL,
544 `destroy_witness` varchar(255) default NULL,
545 `destroy_notes` varchar(255) default NULL,
546 PRIMARY KEY (`inventory_id`)
547 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
549 -- --------------------------------------------------------
552 -- Table structure for table `drug_sales`
555 DROP TABLE IF EXISTS `drug_sales`;
556 CREATE TABLE `drug_sales` (
557 `sale_id` int(11) NOT NULL auto_increment,
558 `drug_id` int(11) NOT NULL,
559 `inventory_id` int(11) NOT NULL,
560 `prescription_id` int(11) NOT NULL default '0',
561 `pid` int(11) NOT NULL default '0',
562 `encounter` int(11) NOT NULL default '0',
563 `user` varchar(255) default NULL,
564 `sale_date` date NOT NULL,
565 `quantity` int(11) NOT NULL default '0',
566 `fee` decimal(12,2) NOT NULL default '0.00',
567 `billed` tinyint(1) NOT NULL default '0' COMMENT 'indicates if the sale is posted to accounting',
568 `xfer_inventory_id` int(11) NOT NULL DEFAULT 0,
569 `distributor_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references users.id',
570 `notes` varchar(255) NOT NULL DEFAULT '',
571 PRIMARY KEY (`sale_id`)
572 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
574 -- --------------------------------------------------------
577 -- Table structure for table `drug_templates`
580 DROP TABLE IF EXISTS `drug_templates`;
581 CREATE TABLE `drug_templates` (
582 `drug_id` int(11) NOT NULL,
583 `selector` varchar(255) NOT NULL default '',
584 `dosage` varchar(10) default NULL,
585 `period` int(11) NOT NULL default '0',
586 `quantity` int(11) NOT NULL default '0',
587 `refills` int(11) NOT NULL default '0',
588 `taxrates` varchar(255) default NULL,
589 PRIMARY KEY (`drug_id`,`selector`)
592 -- --------------------------------------------------------
595 -- Table structure for table `drugs`
598 DROP TABLE IF EXISTS `drugs`;
599 CREATE TABLE `drugs` (
600 `drug_id` int(11) NOT NULL auto_increment,
601 `name` varchar(255) NOT NULL DEFAULT '',
602 `ndc_number` varchar(20) NOT NULL DEFAULT '',
603 `on_order` int(11) NOT NULL default '0',
604 `reorder_point` int(11) NOT NULL default '0',
605 `last_notify` date NOT NULL default '0000-00-00',
607 `form` int(3) NOT NULL default '0',
608 `size` float unsigned NOT NULL default '0',
609 `unit` int(11) NOT NULL default '0',
610 `route` int(11) NOT NULL default '0',
611 `substitute` int(11) NOT NULL default '0',
612 `related_code` varchar(255) NOT NULL DEFAULT '' COMMENT 'may reference a related codes.code',
613 `cyp_factor` float NOT NULL DEFAULT 0 COMMENT 'quantity representing a years supply',
614 `active` TINYINT(1) DEFAULT 1 COMMENT '0 = inactive, 1 = active',
615 `allow_combining` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1 = allow filling an order from multiple lots',
616 `allow_multiple` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = allow multiple lots at one warehouse',
617 PRIMARY KEY (`drug_id`)
618 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
620 -- --------------------------------------------------------
623 -- Table structure for table `eligibility_response`
626 DROP TABLE IF EXISTS `eligibility_response`;
627 CREATE TABLE `eligibility_response` (
628 `response_id` bigint(20) NOT NULL auto_increment,
629 `response_description` varchar(255) default NULL,
630 `response_status` enum('A','D') NOT NULL default 'A',
631 `response_vendor_id` bigint(20) default NULL,
632 `response_create_date` date default NULL,
633 `response_modify_date` date default NULL,
634 PRIMARY KEY (`response_id`)
635 ) ENGINE=MyISAM AUTO_INCREMENT=1;
637 -- --------------------------------------------------------
640 -- Table structure for table `eligibility_verification`
643 DROP TABLE IF EXISTS `eligibility_verification`;
644 CREATE TABLE `eligibility_verification` (
645 `verification_id` bigint(20) NOT NULL auto_increment,
646 `response_id` bigint(20) default NULL,
647 `insurance_id` bigint(20) default NULL,
648 `eligibility_check_date` datetime default NULL,
649 `copay` int(11) default NULL,
650 `deductible` int(11) default NULL,
651 `deductiblemet` enum('Y','N') default 'Y',
652 `create_date` date default NULL,
653 PRIMARY KEY (`verification_id`),
654 KEY `insurance_id` (`insurance_id`)
655 ) ENGINE=MyISAM AUTO_INCREMENT=1;
657 -- --------------------------------------------------------
660 -- Table structure for table `employer_data`
663 DROP TABLE IF EXISTS `employer_data`;
664 CREATE TABLE `employer_data` (
665 `id` bigint(20) NOT NULL auto_increment,
666 `name` varchar(255) default NULL,
667 `street` varchar(255) default NULL,
668 `postal_code` varchar(255) default NULL,
669 `city` varchar(255) default NULL,
670 `state` varchar(255) default NULL,
671 `country` varchar(255) default NULL,
672 `date` datetime default NULL,
673 `pid` bigint(20) NOT NULL default '0',
676 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
678 -- --------------------------------------------------------
681 -- Table structure for table `enc_category_map`
683 -- Mapping of rule encounter categories to category ids from the event category in openemr_postcalendar_categories
686 DROP TABLE IF EXISTS `enc_category_map`;
687 CREATE TABLE `enc_category_map` (
688 `rule_enc_id` varchar(31) NOT NULL DEFAULT '' COMMENT 'encounter id from rule_enc_types list in list_options',
689 `main_cat_id` int(11) NOT NULL DEFAULT 0 COMMENT 'category id from event category in openemr_postcalendar_categories',
690 KEY (`rule_enc_id`,`main_cat_id`)
693 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_outpatient', 5);
694 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_outpatient', 9);
695 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_outpatient', 10);
696 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nurs_fac', 5);
697 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nurs_fac', 9);
698 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nurs_fac', 10);
699 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_off_vis', 5);
700 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_off_vis', 9);
701 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_off_vis', 10);
702 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_hea_and_beh', 5);
703 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_hea_and_beh', 9);
704 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_hea_and_beh', 10);
705 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_occ_ther', 5);
706 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_occ_ther', 9);
707 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_occ_ther', 10);
708 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_psych_and_psych', 5);
709 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_psych_and_psych', 9);
710 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_psych_and_psych', 10);
711 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_ser_18_older', 5);
712 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_ser_18_older', 9);
713 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_ser_18_older', 10);
714 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_ind_counsel', 5);
715 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_ind_counsel', 9);
716 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_ind_counsel', 10);
717 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_group_counsel', 5);
718 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_group_counsel', 9);
719 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_group_counsel', 10);
720 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_other_serv', 5);
721 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_other_serv', 9);
722 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pre_med_other_serv', 10);
723 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_out_pcp_obgyn', 5);
724 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_out_pcp_obgyn', 9);
725 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_out_pcp_obgyn', 10);
726 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pregnancy', 5);
727 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pregnancy', 9);
728 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_pregnancy', 10);
729 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nurs_discharge', 5);
730 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nurs_discharge', 9);
731 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nurs_discharge', 10);
732 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_acute_inp_or_ed', 5);
733 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_acute_inp_or_ed', 9);
734 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_acute_inp_or_ed', 10);
735 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nonac_inp_out_or_opth', 5);
736 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nonac_inp_out_or_opth', 9);
737 INSERT INTO `enc_category_map` ( `rule_enc_id`, `main_cat_id` ) VALUES ('enc_nonac_inp_out_or_opth', 10);
739 -- --------------------------------------------------------
742 -- Table structure for table `facility`
745 DROP TABLE IF EXISTS `facility`;
746 CREATE TABLE `facility` (
747 `id` int(11) NOT NULL auto_increment,
748 `name` varchar(255) default NULL,
749 `phone` varchar(30) default NULL,
750 `fax` varchar(30) default NULL,
751 `street` varchar(255) default NULL,
752 `city` varchar(255) default NULL,
753 `state` varchar(50) default NULL,
754 `postal_code` varchar(11) default NULL,
755 `country_code` varchar(10) default NULL,
756 `federal_ein` varchar(15) default NULL,
757 `service_location` tinyint(1) NOT NULL default '1',
758 `billing_location` tinyint(1) NOT NULL default '0',
759 `accepts_assignment` tinyint(1) NOT NULL default '0',
760 `pos_code` tinyint(4) default NULL,
761 `x12_sender_id` varchar(25) default NULL,
762 `attn` varchar(65) default NULL,
763 `domain_identifier` varchar(60) default NULL,
764 `facility_npi` varchar(15) default NULL,
765 `tax_id_type` VARCHAR(31) NOT NULL DEFAULT '',
766 `color` VARCHAR(7) NOT NULL DEFAULT '',
768 ) ENGINE=MyISAM AUTO_INCREMENT=4 ;
771 -- Dumping data for table `facility`
774 INSERT INTO `facility` VALUES (3, 'Your Clinic Name Here', '000-000-0000', '000-000-0000', '', '', '', '', '', '', 1, 1, 0, NULL, '', '', '', '', '','#99FFFF');
776 -- --------------------------------------------------------
779 -- Table structure for table `fee_sheet_options`
782 DROP TABLE IF EXISTS `fee_sheet_options`;
783 CREATE TABLE `fee_sheet_options` (
784 `fs_category` varchar(63) default NULL,
785 `fs_option` varchar(63) default NULL,
786 `fs_codes` varchar(255) default NULL
790 -- Dumping data for table `fee_sheet_options`
793 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '1Brief', 'CPT4|99201|');
794 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '2Limited', 'CPT4|99202|');
795 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '3Detailed', 'CPT4|99203|');
796 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '4Extended', 'CPT4|99204|');
797 INSERT INTO `fee_sheet_options` VALUES ('1New Patient', '5Comprehensive', 'CPT4|99205|');
798 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '1Brief', 'CPT4|99211|');
799 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '2Limited', 'CPT4|99212|');
800 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '3Detailed', 'CPT4|99213|');
801 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '4Extended', 'CPT4|99214|');
802 INSERT INTO `fee_sheet_options` VALUES ('2Established Patient', '5Comprehensive', 'CPT4|99215|');
804 -- --------------------------------------------------------
807 -- Table structure for table `form_dictation`
810 DROP TABLE IF EXISTS `form_dictation`;
811 CREATE TABLE `form_dictation` (
812 `id` bigint(20) NOT NULL auto_increment,
813 `date` datetime default NULL,
814 `pid` bigint(20) default NULL,
815 `user` varchar(255) default NULL,
816 `groupname` varchar(255) default NULL,
817 `authorized` tinyint(4) default NULL,
818 `activity` tinyint(4) default NULL,
819 `dictation` longtext,
820 `additional_notes` longtext,
822 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
824 -- --------------------------------------------------------
827 -- Table structure for table `form_encounter`
830 DROP TABLE IF EXISTS `form_encounter`;
831 CREATE TABLE `form_encounter` (
832 `id` bigint(20) NOT NULL auto_increment,
833 `date` datetime default NULL,
836 `facility_id` int(11) NOT NULL default '0',
837 `pid` bigint(20) default NULL,
838 `encounter` bigint(20) default NULL,
839 `onset_date` datetime default NULL,
840 `sensitivity` varchar(30) default NULL,
842 `pc_catid` int(11) NOT NULL default '5' COMMENT 'event category from openemr_postcalendar_categories',
843 `last_level_billed` int NOT NULL DEFAULT 0 COMMENT '0=none, 1=ins1, 2=ins2, etc',
844 `last_level_closed` int NOT NULL DEFAULT 0 COMMENT '0=none, 1=ins1, 2=ins2, etc',
845 `last_stmt_date` date DEFAULT NULL,
846 `stmt_count` int NOT NULL DEFAULT 0,
847 `provider_id` INT(11) DEFAULT '0' COMMENT 'default and main provider for this visit',
848 `supervisor_id` INT(11) DEFAULT '0' COMMENT 'supervising provider, if any, for this visit',
849 `invoice_refno` varchar(31) NOT NULL DEFAULT '',
850 `referral_source` varchar(31) NOT NULL DEFAULT '',
851 `billing_facility` INT(11) NOT NULL DEFAULT 0,
854 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
856 -- --------------------------------------------------------
859 -- Table structure for table `form_misc_billing_options`
862 DROP TABLE IF EXISTS `form_misc_billing_options`;
863 CREATE TABLE `form_misc_billing_options` (
864 `id` bigint(20) NOT NULL auto_increment,
865 `date` datetime default NULL,
866 `pid` bigint(20) default NULL,
867 `user` varchar(255) default NULL,
868 `groupname` varchar(255) default NULL,
869 `authorized` tinyint(4) default NULL,
870 `activity` tinyint(4) default NULL,
871 `employment_related` tinyint(1) default NULL,
872 `auto_accident` tinyint(1) default NULL,
873 `accident_state` varchar(2) default NULL,
874 `other_accident` tinyint(1) default NULL,
875 `outside_lab` tinyint(1) default NULL,
876 `lab_amount` decimal(5,2) default NULL,
877 `is_unable_to_work` tinyint(1) default NULL,
878 `off_work_from` date default NULL,
879 `off_work_to` date default NULL,
880 `is_hospitalized` tinyint(1) default NULL,
881 `hospitalization_date_from` date default NULL,
882 `hospitalization_date_to` date default NULL,
883 `medicaid_resubmission_code` varchar(10) default NULL,
884 `medicaid_original_reference` varchar(15) default NULL,
885 `prior_auth_number` varchar(20) default NULL,
886 `comments` varchar(255) default NULL,
887 `replacement_claim` tinyint(1) default 0,
889 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
891 -- --------------------------------------------------------
894 -- Table structure for table `form_reviewofs`
897 DROP TABLE IF EXISTS `form_reviewofs`;
898 CREATE TABLE `form_reviewofs` (
899 `id` bigint(20) NOT NULL auto_increment,
900 `date` datetime default NULL,
901 `pid` bigint(20) default NULL,
902 `user` varchar(255) default NULL,
903 `groupname` varchar(255) default NULL,
904 `authorized` tinyint(4) default NULL,
905 `activity` tinyint(4) default NULL,
906 `fever` varchar(5) default NULL,
907 `chills` varchar(5) default NULL,
908 `night_sweats` varchar(5) default NULL,
909 `weight_loss` varchar(5) default NULL,
910 `poor_appetite` varchar(5) default NULL,
911 `insomnia` varchar(5) default NULL,
912 `fatigued` varchar(5) default NULL,
913 `depressed` varchar(5) default NULL,
914 `hyperactive` varchar(5) default NULL,
915 `exposure_to_foreign_countries` varchar(5) default NULL,
916 `cataracts` varchar(5) default NULL,
917 `cataract_surgery` varchar(5) default NULL,
918 `glaucoma` varchar(5) default NULL,
919 `double_vision` varchar(5) default NULL,
920 `blurred_vision` varchar(5) default NULL,
921 `poor_hearing` varchar(5) default NULL,
922 `headaches` varchar(5) default NULL,
923 `ringing_in_ears` varchar(5) default NULL,
924 `bloody_nose` varchar(5) default NULL,
925 `sinusitis` varchar(5) default NULL,
926 `sinus_surgery` varchar(5) default NULL,
927 `dry_mouth` varchar(5) default NULL,
928 `strep_throat` varchar(5) default NULL,
929 `tonsillectomy` varchar(5) default NULL,
930 `swollen_lymph_nodes` varchar(5) default NULL,
931 `throat_cancer` varchar(5) default NULL,
932 `throat_cancer_surgery` varchar(5) default NULL,
933 `heart_attack` varchar(5) default NULL,
934 `irregular_heart_beat` varchar(5) default NULL,
935 `chest_pains` varchar(5) default NULL,
936 `shortness_of_breath` varchar(5) default NULL,
937 `high_blood_pressure` varchar(5) default NULL,
938 `heart_failure` varchar(5) default NULL,
939 `poor_circulation` varchar(5) default NULL,
940 `vascular_surgery` varchar(5) default NULL,
941 `cardiac_catheterization` varchar(5) default NULL,
942 `coronary_artery_bypass` varchar(5) default NULL,
943 `heart_transplant` varchar(5) default NULL,
944 `stress_test` varchar(5) default NULL,
945 `emphysema` varchar(5) default NULL,
946 `chronic_bronchitis` varchar(5) default NULL,
947 `interstitial_lung_disease` varchar(5) default NULL,
948 `shortness_of_breath_2` varchar(5) default NULL,
949 `lung_cancer` varchar(5) default NULL,
950 `lung_cancer_surgery` varchar(5) default NULL,
951 `pheumothorax` varchar(5) default NULL,
952 `stomach_pains` varchar(5) default NULL,
953 `peptic_ulcer_disease` varchar(5) default NULL,
954 `gastritis` varchar(5) default NULL,
955 `endoscopy` varchar(5) default NULL,
956 `polyps` varchar(5) default NULL,
957 `colonoscopy` varchar(5) default NULL,
958 `colon_cancer` varchar(5) default NULL,
959 `colon_cancer_surgery` varchar(5) default NULL,
960 `ulcerative_colitis` varchar(5) default NULL,
961 `crohns_disease` varchar(5) default NULL,
962 `appendectomy` varchar(5) default NULL,
963 `divirticulitis` varchar(5) default NULL,
964 `divirticulitis_surgery` varchar(5) default NULL,
965 `gall_stones` varchar(5) default NULL,
966 `cholecystectomy` varchar(5) default NULL,
967 `hepatitis` varchar(5) default NULL,
968 `cirrhosis_of_the_liver` varchar(5) default NULL,
969 `splenectomy` varchar(5) default NULL,
970 `kidney_failure` varchar(5) default NULL,
971 `kidney_stones` varchar(5) default NULL,
972 `kidney_cancer` varchar(5) default NULL,
973 `kidney_infections` varchar(5) default NULL,
974 `bladder_infections` varchar(5) default NULL,
975 `bladder_cancer` varchar(5) default NULL,
976 `prostate_problems` varchar(5) default NULL,
977 `prostate_cancer` varchar(5) default NULL,
978 `kidney_transplant` varchar(5) default NULL,
979 `sexually_transmitted_disease` varchar(5) default NULL,
980 `burning_with_urination` varchar(5) default NULL,
981 `discharge_from_urethra` varchar(5) default NULL,
982 `rashes` varchar(5) default NULL,
983 `infections` varchar(5) default NULL,
984 `ulcerations` varchar(5) default NULL,
985 `pemphigus` varchar(5) default NULL,
986 `herpes` varchar(5) default NULL,
987 `osetoarthritis` varchar(5) default NULL,
988 `rheumotoid_arthritis` varchar(5) default NULL,
989 `lupus` varchar(5) default NULL,
990 `ankylosing_sondlilitis` varchar(5) default NULL,
991 `swollen_joints` varchar(5) default NULL,
992 `stiff_joints` varchar(5) default NULL,
993 `broken_bones` varchar(5) default NULL,
994 `neck_problems` varchar(5) default NULL,
995 `back_problems` varchar(5) default NULL,
996 `back_surgery` varchar(5) default NULL,
997 `scoliosis` varchar(5) default NULL,
998 `herniated_disc` varchar(5) default NULL,
999 `shoulder_problems` varchar(5) default NULL,
1000 `elbow_problems` varchar(5) default NULL,
1001 `wrist_problems` varchar(5) default NULL,
1002 `hand_problems` varchar(5) default NULL,
1003 `hip_problems` varchar(5) default NULL,
1004 `knee_problems` varchar(5) default NULL,
1005 `ankle_problems` varchar(5) default NULL,
1006 `foot_problems` varchar(5) default NULL,
1007 `insulin_dependent_diabetes` varchar(5) default NULL,
1008 `noninsulin_dependent_diabetes` varchar(5) default NULL,
1009 `hypothyroidism` varchar(5) default NULL,
1010 `hyperthyroidism` varchar(5) default NULL,
1011 `cushing_syndrom` varchar(5) default NULL,
1012 `addison_syndrom` varchar(5) default NULL,
1013 `additional_notes` longtext,
1015 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1017 -- --------------------------------------------------------
1020 -- Table structure for table `form_ros`
1023 DROP TABLE IF EXISTS `form_ros`;
1024 CREATE TABLE `form_ros` (
1025 `id` int(11) NOT NULL auto_increment,
1026 `pid` int(11) NOT NULL,
1027 `activity` int(11) NOT NULL default '1',
1028 `date` datetime default NULL,
1029 `weight_change` varchar(3) default NULL,
1030 `weakness` varchar(3) default NULL,
1031 `fatigue` varchar(3) default NULL,
1032 `anorexia` varchar(3) default NULL,
1033 `fever` varchar(3) default NULL,
1034 `chills` varchar(3) default NULL,
1035 `night_sweats` varchar(3) default NULL,
1036 `insomnia` varchar(3) default NULL,
1037 `irritability` varchar(3) default NULL,
1038 `heat_or_cold` varchar(3) default NULL,
1039 `intolerance` varchar(3) default NULL,
1040 `change_in_vision` varchar(3) default NULL,
1041 `glaucoma_history` varchar(3) default NULL,
1042 `eye_pain` varchar(3) default NULL,
1043 `irritation` varchar(3) default NULL,
1044 `redness` varchar(3) default NULL,
1045 `excessive_tearing` varchar(3) default NULL,
1046 `double_vision` varchar(3) default NULL,
1047 `blind_spots` varchar(3) default NULL,
1048 `photophobia` varchar(3) default NULL,
1049 `hearing_loss` varchar(3) default NULL,
1050 `discharge` varchar(3) default NULL,
1051 `pain` varchar(3) default NULL,
1052 `vertigo` varchar(3) default NULL,
1053 `tinnitus` varchar(3) default NULL,
1054 `frequent_colds` varchar(3) default NULL,
1055 `sore_throat` varchar(3) default NULL,
1056 `sinus_problems` varchar(3) default NULL,
1057 `post_nasal_drip` varchar(3) default NULL,
1058 `nosebleed` varchar(3) default NULL,
1059 `snoring` varchar(3) default NULL,
1060 `apnea` varchar(3) default NULL,
1061 `breast_mass` varchar(3) default NULL,
1062 `breast_discharge` varchar(3) default NULL,
1063 `biopsy` varchar(3) default NULL,
1064 `abnormal_mammogram` varchar(3) default NULL,
1065 `cough` varchar(3) default NULL,
1066 `sputum` varchar(3) default NULL,
1067 `shortness_of_breath` varchar(3) default NULL,
1068 `wheezing` varchar(3) default NULL,
1069 `hemoptsyis` varchar(3) default NULL,
1070 `asthma` varchar(3) default NULL,
1071 `copd` varchar(3) default NULL,
1072 `chest_pain` varchar(3) default NULL,
1073 `palpitation` varchar(3) default NULL,
1074 `syncope` varchar(3) default NULL,
1075 `pnd` varchar(3) default NULL,
1076 `doe` varchar(3) default NULL,
1077 `orthopnea` varchar(3) default NULL,
1078 `peripheal` varchar(3) default NULL,
1079 `edema` varchar(3) default NULL,
1080 `legpain_cramping` varchar(3) default NULL,
1081 `history_murmur` varchar(3) default NULL,
1082 `arrythmia` varchar(3) default NULL,
1083 `heart_problem` varchar(3) default NULL,
1084 `dysphagia` varchar(3) default NULL,
1085 `heartburn` varchar(3) default NULL,
1086 `bloating` varchar(3) default NULL,
1087 `belching` varchar(3) default NULL,
1088 `flatulence` varchar(3) default NULL,
1089 `nausea` varchar(3) default NULL,
1090 `vomiting` varchar(3) default NULL,
1091 `hematemesis` varchar(3) default NULL,
1092 `gastro_pain` varchar(3) default NULL,
1093 `food_intolerance` varchar(3) default NULL,
1094 `hepatitis` varchar(3) default NULL,
1095 `jaundice` varchar(3) default NULL,
1096 `hematochezia` varchar(3) default NULL,
1097 `changed_bowel` varchar(3) default NULL,
1098 `diarrhea` varchar(3) default NULL,
1099 `constipation` varchar(3) default NULL,
1100 `polyuria` varchar(3) default NULL,
1101 `polydypsia` varchar(3) default NULL,
1102 `dysuria` varchar(3) default NULL,
1103 `hematuria` varchar(3) default NULL,
1104 `frequency` varchar(3) default NULL,
1105 `urgency` varchar(3) default NULL,
1106 `incontinence` varchar(3) default NULL,
1107 `renal_stones` varchar(3) default NULL,
1108 `utis` varchar(3) default NULL,
1109 `hesitancy` varchar(3) default NULL,
1110 `dribbling` varchar(3) default NULL,
1111 `stream` varchar(3) default NULL,
1112 `nocturia` varchar(3) default NULL,
1113 `erections` varchar(3) default NULL,
1114 `ejaculations` varchar(3) default NULL,
1115 `g` varchar(3) default NULL,
1116 `p` varchar(3) default NULL,
1117 `ap` varchar(3) default NULL,
1118 `lc` varchar(3) default NULL,
1119 `mearche` varchar(3) default NULL,
1120 `menopause` varchar(3) default NULL,
1121 `lmp` varchar(3) default NULL,
1122 `f_frequency` varchar(3) default NULL,
1123 `f_flow` varchar(3) default NULL,
1124 `f_symptoms` varchar(3) default NULL,
1125 `abnormal_hair_growth` varchar(3) default NULL,
1126 `f_hirsutism` varchar(3) default NULL,
1127 `joint_pain` varchar(3) default NULL,
1128 `swelling` varchar(3) default NULL,
1129 `m_redness` varchar(3) default NULL,
1130 `m_warm` varchar(3) default NULL,
1131 `m_stiffness` varchar(3) default NULL,
1132 `muscle` varchar(3) default NULL,
1133 `m_aches` varchar(3) default NULL,
1134 `fms` varchar(3) default NULL,
1135 `arthritis` varchar(3) default NULL,
1136 `loc` varchar(3) default NULL,
1137 `seizures` varchar(3) default NULL,
1138 `stroke` varchar(3) default NULL,
1139 `tia` varchar(3) default NULL,
1140 `n_numbness` varchar(3) default NULL,
1141 `n_weakness` varchar(3) default NULL,
1142 `paralysis` varchar(3) default NULL,
1143 `intellectual_decline` varchar(3) default NULL,
1144 `memory_problems` varchar(3) default NULL,
1145 `dementia` varchar(3) default NULL,
1146 `n_headache` varchar(3) default NULL,
1147 `s_cancer` varchar(3) default NULL,
1148 `psoriasis` varchar(3) default NULL,
1149 `s_acne` varchar(3) default NULL,
1150 `s_other` varchar(3) default NULL,
1151 `s_disease` varchar(3) default NULL,
1152 `p_diagnosis` varchar(3) default NULL,
1153 `p_medication` varchar(3) default NULL,
1154 `depression` varchar(3) default NULL,
1155 `anxiety` varchar(3) default NULL,
1156 `social_difficulties` varchar(3) default NULL,
1157 `thyroid_problems` varchar(3) default NULL,
1158 `diabetes` varchar(3) default NULL,
1159 `abnormal_blood` varchar(3) default NULL,
1160 `anemia` varchar(3) default NULL,
1161 `fh_blood_problems` varchar(3) default NULL,
1162 `bleeding_problems` varchar(3) default NULL,
1163 `allergies` varchar(3) default NULL,
1164 `frequent_illness` varchar(3) default NULL,
1165 `hiv` varchar(3) default NULL,
1166 `hai_status` varchar(3) default NULL,
1168 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1170 -- --------------------------------------------------------
1173 -- Table structure for table `form_soap`
1176 DROP TABLE IF EXISTS `form_soap`;
1177 CREATE TABLE `form_soap` (
1178 `id` bigint(20) NOT NULL auto_increment,
1179 `date` datetime default NULL,
1180 `pid` bigint(20) default '0',
1181 `user` varchar(255) default NULL,
1182 `groupname` varchar(255) default NULL,
1183 `authorized` tinyint(4) default '0',
1184 `activity` tinyint(4) default '0',
1190 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1192 -- --------------------------------------------------------
1195 -- Table structure for table `form_vitals`
1198 DROP TABLE IF EXISTS `form_vitals`;
1199 CREATE TABLE `form_vitals` (
1200 `id` bigint(20) NOT NULL auto_increment,
1201 `date` datetime default NULL,
1202 `pid` bigint(20) default '0',
1203 `user` varchar(255) default NULL,
1204 `groupname` varchar(255) default NULL,
1205 `authorized` tinyint(4) default '0',
1206 `activity` tinyint(4) default '0',
1207 `bps` varchar(40) default NULL,
1208 `bpd` varchar(40) default NULL,
1209 `weight` float(5,2) default '0.00',
1210 `height` float(5,2) default '0.00',
1211 `temperature` float(5,2) default '0.00',
1212 `temp_method` varchar(255) default NULL,
1213 `pulse` float(5,2) default '0.00',
1214 `respiration` float(5,2) default '0.00',
1215 `note` varchar(255) default NULL,
1216 `BMI` float(4,1) default '0.0',
1217 `BMI_status` varchar(255) default NULL,
1218 `waist_circ` float(5,2) default '0.00',
1219 `head_circ` float(4,2) default '0.00',
1220 `oxygen_saturation` float(5,2) default '0.00',
1222 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1224 -- --------------------------------------------------------
1227 -- Table structure for table `forms`
1230 DROP TABLE IF EXISTS `forms`;
1231 CREATE TABLE `forms` (
1232 `id` bigint(20) NOT NULL auto_increment,
1233 `date` datetime default NULL,
1234 `encounter` bigint(20) default NULL,
1235 `form_name` longtext,
1236 `form_id` bigint(20) default NULL,
1237 `pid` bigint(20) default NULL,
1238 `user` varchar(255) default NULL,
1239 `groupname` varchar(255) default NULL,
1240 `authorized` tinyint(4) default NULL,
1241 `deleted` tinyint(4) DEFAULT '0' NOT NULL COMMENT 'flag indicates form has been deleted',
1244 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1246 -- --------------------------------------------------------
1249 -- Table structure for table `geo_country_reference`
1252 DROP TABLE IF EXISTS `geo_country_reference`;
1253 CREATE TABLE `geo_country_reference` (
1254 `countries_id` int(5) NOT NULL auto_increment,
1255 `countries_name` varchar(64) default NULL,
1256 `countries_iso_code_2` char(2) NOT NULL default '',
1257 `countries_iso_code_3` char(3) NOT NULL default '',
1258 PRIMARY KEY (`countries_id`),
1259 KEY `IDX_COUNTRIES_NAME` (`countries_name`)
1260 ) ENGINE=MyISAM AUTO_INCREMENT=240 ;
1263 -- Dumping data for table `geo_country_reference`
1266 INSERT INTO `geo_country_reference` VALUES (1, 'Afghanistan', 'AF', 'AFG');
1267 INSERT INTO `geo_country_reference` VALUES (2, 'Albania', 'AL', 'ALB');
1268 INSERT INTO `geo_country_reference` VALUES (3, 'Algeria', 'DZ', 'DZA');
1269 INSERT INTO `geo_country_reference` VALUES (4, 'American Samoa', 'AS', 'ASM');
1270 INSERT INTO `geo_country_reference` VALUES (5, 'Andorra', 'AD', 'AND');
1271 INSERT INTO `geo_country_reference` VALUES (6, 'Angola', 'AO', 'AGO');
1272 INSERT INTO `geo_country_reference` VALUES (7, 'Anguilla', 'AI', 'AIA');
1273 INSERT INTO `geo_country_reference` VALUES (8, 'Antarctica', 'AQ', 'ATA');
1274 INSERT INTO `geo_country_reference` VALUES (9, 'Antigua and Barbuda', 'AG', 'ATG');
1275 INSERT INTO `geo_country_reference` VALUES (10, 'Argentina', 'AR', 'ARG');
1276 INSERT INTO `geo_country_reference` VALUES (11, 'Armenia', 'AM', 'ARM');
1277 INSERT INTO `geo_country_reference` VALUES (12, 'Aruba', 'AW', 'ABW');
1278 INSERT INTO `geo_country_reference` VALUES (13, 'Australia', 'AU', 'AUS');
1279 INSERT INTO `geo_country_reference` VALUES (14, 'Austria', 'AT', 'AUT');
1280 INSERT INTO `geo_country_reference` VALUES (15, 'Azerbaijan', 'AZ', 'AZE');
1281 INSERT INTO `geo_country_reference` VALUES (16, 'Bahamas', 'BS', 'BHS');
1282 INSERT INTO `geo_country_reference` VALUES (17, 'Bahrain', 'BH', 'BHR');
1283 INSERT INTO `geo_country_reference` VALUES (18, 'Bangladesh', 'BD', 'BGD');
1284 INSERT INTO `geo_country_reference` VALUES (19, 'Barbados', 'BB', 'BRB');
1285 INSERT INTO `geo_country_reference` VALUES (20, 'Belarus', 'BY', 'BLR');
1286 INSERT INTO `geo_country_reference` VALUES (21, 'Belgium', 'BE', 'BEL');
1287 INSERT INTO `geo_country_reference` VALUES (22, 'Belize', 'BZ', 'BLZ');
1288 INSERT INTO `geo_country_reference` VALUES (23, 'Benin', 'BJ', 'BEN');
1289 INSERT INTO `geo_country_reference` VALUES (24, 'Bermuda', 'BM', 'BMU');
1290 INSERT INTO `geo_country_reference` VALUES (25, 'Bhutan', 'BT', 'BTN');
1291 INSERT INTO `geo_country_reference` VALUES (26, 'Bolivia', 'BO', 'BOL');
1292 INSERT INTO `geo_country_reference` VALUES (27, 'Bosnia and Herzegowina', 'BA', 'BIH');
1293 INSERT INTO `geo_country_reference` VALUES (28, 'Botswana', 'BW', 'BWA');
1294 INSERT INTO `geo_country_reference` VALUES (29, 'Bouvet Island', 'BV', 'BVT');
1295 INSERT INTO `geo_country_reference` VALUES (30, 'Brazil', 'BR', 'BRA');
1296 INSERT INTO `geo_country_reference` VALUES (31, 'British Indian Ocean Territory', 'IO', 'IOT');
1297 INSERT INTO `geo_country_reference` VALUES (32, 'Brunei Darussalam', 'BN', 'BRN');
1298 INSERT INTO `geo_country_reference` VALUES (33, 'Bulgaria', 'BG', 'BGR');
1299 INSERT INTO `geo_country_reference` VALUES (34, 'Burkina Faso', 'BF', 'BFA');
1300 INSERT INTO `geo_country_reference` VALUES (35, 'Burundi', 'BI', 'BDI');
1301 INSERT INTO `geo_country_reference` VALUES (36, 'Cambodia', 'KH', 'KHM');
1302 INSERT INTO `geo_country_reference` VALUES (37, 'Cameroon', 'CM', 'CMR');
1303 INSERT INTO `geo_country_reference` VALUES (38, 'Canada', 'CA', 'CAN');
1304 INSERT INTO `geo_country_reference` VALUES (39, 'Cape Verde', 'CV', 'CPV');
1305 INSERT INTO `geo_country_reference` VALUES (40, 'Cayman Islands', 'KY', 'CYM');
1306 INSERT INTO `geo_country_reference` VALUES (41, 'Central African Republic', 'CF', 'CAF');
1307 INSERT INTO `geo_country_reference` VALUES (42, 'Chad', 'TD', 'TCD');
1308 INSERT INTO `geo_country_reference` VALUES (43, 'Chile', 'CL', 'CHL');
1309 INSERT INTO `geo_country_reference` VALUES (44, 'China', 'CN', 'CHN');
1310 INSERT INTO `geo_country_reference` VALUES (45, 'Christmas Island', 'CX', 'CXR');
1311 INSERT INTO `geo_country_reference` VALUES (46, 'Cocos (Keeling) Islands', 'CC', 'CCK');
1312 INSERT INTO `geo_country_reference` VALUES (47, 'Colombia', 'CO', 'COL');
1313 INSERT INTO `geo_country_reference` VALUES (48, 'Comoros', 'KM', 'COM');
1314 INSERT INTO `geo_country_reference` VALUES (49, 'Congo', 'CG', 'COG');
1315 INSERT INTO `geo_country_reference` VALUES (50, 'Cook Islands', 'CK', 'COK');
1316 INSERT INTO `geo_country_reference` VALUES (51, 'Costa Rica', 'CR', 'CRI');
1317 INSERT INTO `geo_country_reference` VALUES (52, 'Cote D Ivoire', 'CI', 'CIV');
1318 INSERT INTO `geo_country_reference` VALUES (53, 'Croatia', 'HR', 'HRV');
1319 INSERT INTO `geo_country_reference` VALUES (54, 'Cuba', 'CU', 'CUB');
1320 INSERT INTO `geo_country_reference` VALUES (55, 'Cyprus', 'CY', 'CYP');
1321 INSERT INTO `geo_country_reference` VALUES (56, 'Czech Republic', 'CZ', 'CZE');
1322 INSERT INTO `geo_country_reference` VALUES (57, 'Denmark', 'DK', 'DNK');
1323 INSERT INTO `geo_country_reference` VALUES (58, 'Djibouti', 'DJ', 'DJI');
1324 INSERT INTO `geo_country_reference` VALUES (59, 'Dominica', 'DM', 'DMA');
1325 INSERT INTO `geo_country_reference` VALUES (60, 'Dominican Republic', 'DO', 'DOM');
1326 INSERT INTO `geo_country_reference` VALUES (61, 'East Timor', 'TP', 'TMP');
1327 INSERT INTO `geo_country_reference` VALUES (62, 'Ecuador', 'EC', 'ECU');
1328 INSERT INTO `geo_country_reference` VALUES (63, 'Egypt', 'EG', 'EGY');
1329 INSERT INTO `geo_country_reference` VALUES (64, 'El Salvador', 'SV', 'SLV');
1330 INSERT INTO `geo_country_reference` VALUES (65, 'Equatorial Guinea', 'GQ', 'GNQ');
1331 INSERT INTO `geo_country_reference` VALUES (66, 'Eritrea', 'ER', 'ERI');
1332 INSERT INTO `geo_country_reference` VALUES (67, 'Estonia', 'EE', 'EST');
1333 INSERT INTO `geo_country_reference` VALUES (68, 'Ethiopia', 'ET', 'ETH');
1334 INSERT INTO `geo_country_reference` VALUES (69, 'Falkland Islands (Malvinas)', 'FK', 'FLK');
1335 INSERT INTO `geo_country_reference` VALUES (70, 'Faroe Islands', 'FO', 'FRO');
1336 INSERT INTO `geo_country_reference` VALUES (71, 'Fiji', 'FJ', 'FJI');
1337 INSERT INTO `geo_country_reference` VALUES (72, 'Finland', 'FI', 'FIN');
1338 INSERT INTO `geo_country_reference` VALUES (73, 'France', 'FR', 'FRA');
1339 INSERT INTO `geo_country_reference` VALUES (74, 'France, MEtropolitan', 'FX', 'FXX');
1340 INSERT INTO `geo_country_reference` VALUES (75, 'French Guiana', 'GF', 'GUF');
1341 INSERT INTO `geo_country_reference` VALUES (76, 'French Polynesia', 'PF', 'PYF');
1342 INSERT INTO `geo_country_reference` VALUES (77, 'French Southern Territories', 'TF', 'ATF');
1343 INSERT INTO `geo_country_reference` VALUES (78, 'Gabon', 'GA', 'GAB');
1344 INSERT INTO `geo_country_reference` VALUES (79, 'Gambia', 'GM', 'GMB');
1345 INSERT INTO `geo_country_reference` VALUES (80, 'Georgia', 'GE', 'GEO');
1346 INSERT INTO `geo_country_reference` VALUES (81, 'Germany', 'DE', 'DEU');
1347 INSERT INTO `geo_country_reference` VALUES (82, 'Ghana', 'GH', 'GHA');
1348 INSERT INTO `geo_country_reference` VALUES (83, 'Gibraltar', 'GI', 'GIB');
1349 INSERT INTO `geo_country_reference` VALUES (84, 'Greece', 'GR', 'GRC');
1350 INSERT INTO `geo_country_reference` VALUES (85, 'Greenland', 'GL', 'GRL');
1351 INSERT INTO `geo_country_reference` VALUES (86, 'Grenada', 'GD', 'GRD');
1352 INSERT INTO `geo_country_reference` VALUES (87, 'Guadeloupe', 'GP', 'GLP');
1353 INSERT INTO `geo_country_reference` VALUES (88, 'Guam', 'GU', 'GUM');
1354 INSERT INTO `geo_country_reference` VALUES (89, 'Guatemala', 'GT', 'GTM');
1355 INSERT INTO `geo_country_reference` VALUES (90, 'Guinea', 'GN', 'GIN');
1356 INSERT INTO `geo_country_reference` VALUES (91, 'Guinea-bissau', 'GW', 'GNB');
1357 INSERT INTO `geo_country_reference` VALUES (92, 'Guyana', 'GY', 'GUY');
1358 INSERT INTO `geo_country_reference` VALUES (93, 'Haiti', 'HT', 'HTI');
1359 INSERT INTO `geo_country_reference` VALUES (94, 'Heard and Mc Donald Islands', 'HM', 'HMD');
1360 INSERT INTO `geo_country_reference` VALUES (95, 'Honduras', 'HN', 'HND');
1361 INSERT INTO `geo_country_reference` VALUES (96, 'Hong Kong', 'HK', 'HKG');
1362 INSERT INTO `geo_country_reference` VALUES (97, 'Hungary', 'HU', 'HUN');
1363 INSERT INTO `geo_country_reference` VALUES (98, 'Iceland', 'IS', 'ISL');
1364 INSERT INTO `geo_country_reference` VALUES (99, 'India', 'IN', 'IND');
1365 INSERT INTO `geo_country_reference` VALUES (100, 'Indonesia', 'ID', 'IDN');
1366 INSERT INTO `geo_country_reference` VALUES (101, 'Iran (Islamic Republic of)', 'IR', 'IRN');
1367 INSERT INTO `geo_country_reference` VALUES (102, 'Iraq', 'IQ', 'IRQ');
1368 INSERT INTO `geo_country_reference` VALUES (103, 'Ireland', 'IE', 'IRL');
1369 INSERT INTO `geo_country_reference` VALUES (104, 'Israel', 'IL', 'ISR');
1370 INSERT INTO `geo_country_reference` VALUES (105, 'Italy', 'IT', 'ITA');
1371 INSERT INTO `geo_country_reference` VALUES (106, 'Jamaica', 'JM', 'JAM');
1372 INSERT INTO `geo_country_reference` VALUES (107, 'Japan', 'JP', 'JPN');
1373 INSERT INTO `geo_country_reference` VALUES (108, 'Jordan', 'JO', 'JOR');
1374 INSERT INTO `geo_country_reference` VALUES (109, 'Kazakhstan', 'KZ', 'KAZ');
1375 INSERT INTO `geo_country_reference` VALUES (110, 'Kenya', 'KE', 'KEN');
1376 INSERT INTO `geo_country_reference` VALUES (111, 'Kiribati', 'KI', 'KIR');
1377 INSERT INTO `geo_country_reference` VALUES (112, 'Korea, Democratic Peoples Republic of', 'KP', 'PRK');
1378 INSERT INTO `geo_country_reference` VALUES (113, 'Korea, Republic of', 'KR', 'KOR');
1379 INSERT INTO `geo_country_reference` VALUES (114, 'Kuwait', 'KW', 'KWT');
1380 INSERT INTO `geo_country_reference` VALUES (115, 'Kyrgyzstan', 'KG', 'KGZ');
1381 INSERT INTO `geo_country_reference` VALUES (116, 'Lao Peoples Democratic Republic', 'LA', 'LAO');
1382 INSERT INTO `geo_country_reference` VALUES (117, 'Latvia', 'LV', 'LVA');
1383 INSERT INTO `geo_country_reference` VALUES (118, 'Lebanon', 'LB', 'LBN');
1384 INSERT INTO `geo_country_reference` VALUES (119, 'Lesotho', 'LS', 'LSO');
1385 INSERT INTO `geo_country_reference` VALUES (120, 'Liberia', 'LR', 'LBR');
1386 INSERT INTO `geo_country_reference` VALUES (121, 'Libyan Arab Jamahiriya', 'LY', 'LBY');
1387 INSERT INTO `geo_country_reference` VALUES (122, 'Liechtenstein', 'LI', 'LIE');
1388 INSERT INTO `geo_country_reference` VALUES (123, 'Lithuania', 'LT', 'LTU');
1389 INSERT INTO `geo_country_reference` VALUES (124, 'Luxembourg', 'LU', 'LUX');
1390 INSERT INTO `geo_country_reference` VALUES (125, 'Macau', 'MO', 'MAC');
1391 INSERT INTO `geo_country_reference` VALUES (126, 'Macedonia, The Former Yugoslav Republic of', 'MK', 'MKD');
1392 INSERT INTO `geo_country_reference` VALUES (127, 'Madagascar', 'MG', 'MDG');
1393 INSERT INTO `geo_country_reference` VALUES (128, 'Malawi', 'MW', 'MWI');
1394 INSERT INTO `geo_country_reference` VALUES (129, 'Malaysia', 'MY', 'MYS');
1395 INSERT INTO `geo_country_reference` VALUES (130, 'Maldives', 'MV', 'MDV');
1396 INSERT INTO `geo_country_reference` VALUES (131, 'Mali', 'ML', 'MLI');
1397 INSERT INTO `geo_country_reference` VALUES (132, 'Malta', 'MT', 'MLT');
1398 INSERT INTO `geo_country_reference` VALUES (133, 'Marshall Islands', 'MH', 'MHL');
1399 INSERT INTO `geo_country_reference` VALUES (134, 'Martinique', 'MQ', 'MTQ');
1400 INSERT INTO `geo_country_reference` VALUES (135, 'Mauritania', 'MR', 'MRT');
1401 INSERT INTO `geo_country_reference` VALUES (136, 'Mauritius', 'MU', 'MUS');
1402 INSERT INTO `geo_country_reference` VALUES (137, 'Mayotte', 'YT', 'MYT');
1403 INSERT INTO `geo_country_reference` VALUES (138, 'Mexico', 'MX', 'MEX');
1404 INSERT INTO `geo_country_reference` VALUES (139, 'Micronesia, Federated States of', 'FM', 'FSM');
1405 INSERT INTO `geo_country_reference` VALUES (140, 'Moldova, Republic of', 'MD', 'MDA');
1406 INSERT INTO `geo_country_reference` VALUES (141, 'Monaco', 'MC', 'MCO');
1407 INSERT INTO `geo_country_reference` VALUES (142, 'Mongolia', 'MN', 'MNG');
1408 INSERT INTO `geo_country_reference` VALUES (143, 'Montserrat', 'MS', 'MSR');
1409 INSERT INTO `geo_country_reference` VALUES (144, 'Morocco', 'MA', 'MAR');
1410 INSERT INTO `geo_country_reference` VALUES (145, 'Mozambique', 'MZ', 'MOZ');
1411 INSERT INTO `geo_country_reference` VALUES (146, 'Myanmar', 'MM', 'MMR');
1412 INSERT INTO `geo_country_reference` VALUES (147, 'Namibia', 'NA', 'NAM');
1413 INSERT INTO `geo_country_reference` VALUES (148, 'Nauru', 'NR', 'NRU');
1414 INSERT INTO `geo_country_reference` VALUES (149, 'Nepal', 'NP', 'NPL');
1415 INSERT INTO `geo_country_reference` VALUES (150, 'Netherlands', 'NL', 'NLD');
1416 INSERT INTO `geo_country_reference` VALUES (151, 'Netherlands Antilles', 'AN', 'ANT');
1417 INSERT INTO `geo_country_reference` VALUES (152, 'New Caledonia', 'NC', 'NCL');
1418 INSERT INTO `geo_country_reference` VALUES (153, 'New Zealand', 'NZ', 'NZL');
1419 INSERT INTO `geo_country_reference` VALUES (154, 'Nicaragua', 'NI', 'NIC');
1420 INSERT INTO `geo_country_reference` VALUES (155, 'Niger', 'NE', 'NER');
1421 INSERT INTO `geo_country_reference` VALUES (156, 'Nigeria', 'NG', 'NGA');
1422 INSERT INTO `geo_country_reference` VALUES (157, 'Niue', 'NU', 'NIU');
1423 INSERT INTO `geo_country_reference` VALUES (158, 'Norfolk Island', 'NF', 'NFK');
1424 INSERT INTO `geo_country_reference` VALUES (159, 'Northern Mariana Islands', 'MP', 'MNP');
1425 INSERT INTO `geo_country_reference` VALUES (160, 'Norway', 'NO', 'NOR');
1426 INSERT INTO `geo_country_reference` VALUES (161, 'Oman', 'OM', 'OMN');
1427 INSERT INTO `geo_country_reference` VALUES (162, 'Pakistan', 'PK', 'PAK');
1428 INSERT INTO `geo_country_reference` VALUES (163, 'Palau', 'PW', 'PLW');
1429 INSERT INTO `geo_country_reference` VALUES (164, 'Panama', 'PA', 'PAN');
1430 INSERT INTO `geo_country_reference` VALUES (165, 'Papua New Guinea', 'PG', 'PNG');
1431 INSERT INTO `geo_country_reference` VALUES (166, 'Paraguay', 'PY', 'PRY');
1432 INSERT INTO `geo_country_reference` VALUES (167, 'Peru', 'PE', 'PER');
1433 INSERT INTO `geo_country_reference` VALUES (168, 'Philippines', 'PH', 'PHL');
1434 INSERT INTO `geo_country_reference` VALUES (169, 'Pitcairn', 'PN', 'PCN');
1435 INSERT INTO `geo_country_reference` VALUES (170, 'Poland', 'PL', 'POL');
1436 INSERT INTO `geo_country_reference` VALUES (171, 'Portugal', 'PT', 'PRT');
1437 INSERT INTO `geo_country_reference` VALUES (172, 'Puerto Rico', 'PR', 'PRI');
1438 INSERT INTO `geo_country_reference` VALUES (173, 'Qatar', 'QA', 'QAT');
1439 INSERT INTO `geo_country_reference` VALUES (174, 'Reunion', 'RE', 'REU');
1440 INSERT INTO `geo_country_reference` VALUES (175, 'Romania', 'RO', 'ROM');
1441 INSERT INTO `geo_country_reference` VALUES (176, 'Russian Federation', 'RU', 'RUS');
1442 INSERT INTO `geo_country_reference` VALUES (177, 'Rwanda', 'RW', 'RWA');
1443 INSERT INTO `geo_country_reference` VALUES (178, 'Saint Kitts and Nevis', 'KN', 'KNA');
1444 INSERT INTO `geo_country_reference` VALUES (179, 'Saint Lucia', 'LC', 'LCA');
1445 INSERT INTO `geo_country_reference` VALUES (180, 'Saint Vincent and the Grenadines', 'VC', 'VCT');
1446 INSERT INTO `geo_country_reference` VALUES (181, 'Samoa', 'WS', 'WSM');
1447 INSERT INTO `geo_country_reference` VALUES (182, 'San Marino', 'SM', 'SMR');
1448 INSERT INTO `geo_country_reference` VALUES (183, 'Sao Tome and Principe', 'ST', 'STP');
1449 INSERT INTO `geo_country_reference` VALUES (184, 'Saudi Arabia', 'SA', 'SAU');
1450 INSERT INTO `geo_country_reference` VALUES (185, 'Senegal', 'SN', 'SEN');
1451 INSERT INTO `geo_country_reference` VALUES (186, 'Seychelles', 'SC', 'SYC');
1452 INSERT INTO `geo_country_reference` VALUES (187, 'Sierra Leone', 'SL', 'SLE');
1453 INSERT INTO `geo_country_reference` VALUES (188, 'Singapore', 'SG', 'SGP');
1454 INSERT INTO `geo_country_reference` VALUES (189, 'Slovakia (Slovak Republic)', 'SK', 'SVK');
1455 INSERT INTO `geo_country_reference` VALUES (190, 'Slovenia', 'SI', 'SVN');
1456 INSERT INTO `geo_country_reference` VALUES (191, 'Solomon Islands', 'SB', 'SLB');
1457 INSERT INTO `geo_country_reference` VALUES (192, 'Somalia', 'SO', 'SOM');
1458 INSERT INTO `geo_country_reference` VALUES (193, 'south Africa', 'ZA', 'ZAF');
1459 INSERT INTO `geo_country_reference` VALUES (194, 'South Georgia and the South Sandwich Islands', 'GS', 'SGS');
1460 INSERT INTO `geo_country_reference` VALUES (195, 'Spain', 'ES', 'ESP');
1461 INSERT INTO `geo_country_reference` VALUES (196, 'Sri Lanka', 'LK', 'LKA');
1462 INSERT INTO `geo_country_reference` VALUES (197, 'St. Helena', 'SH', 'SHN');
1463 INSERT INTO `geo_country_reference` VALUES (198, 'St. Pierre and Miquelon', 'PM', 'SPM');
1464 INSERT INTO `geo_country_reference` VALUES (199, 'Sudan', 'SD', 'SDN');
1465 INSERT INTO `geo_country_reference` VALUES (200, 'Suriname', 'SR', 'SUR');
1466 INSERT INTO `geo_country_reference` VALUES (201, 'Svalbard and Jan Mayen Islands', 'SJ', 'SJM');
1467 INSERT INTO `geo_country_reference` VALUES (202, 'Swaziland', 'SZ', 'SWZ');
1468 INSERT INTO `geo_country_reference` VALUES (203, 'Sweden', 'SE', 'SWE');
1469 INSERT INTO `geo_country_reference` VALUES (204, 'Switzerland', 'CH', 'CHE');
1470 INSERT INTO `geo_country_reference` VALUES (205, 'Syrian Arab Republic', 'SY', 'SYR');
1471 INSERT INTO `geo_country_reference` VALUES (206, 'Taiwan, Province of China', 'TW', 'TWN');
1472 INSERT INTO `geo_country_reference` VALUES (207, 'Tajikistan', 'TJ', 'TJK');
1473 INSERT INTO `geo_country_reference` VALUES (208, 'Tanzania, United Republic of', 'TZ', 'TZA');
1474 INSERT INTO `geo_country_reference` VALUES (209, 'Thailand', 'TH', 'THA');
1475 INSERT INTO `geo_country_reference` VALUES (210, 'Togo', 'TG', 'TGO');
1476 INSERT INTO `geo_country_reference` VALUES (211, 'Tokelau', 'TK', 'TKL');
1477 INSERT INTO `geo_country_reference` VALUES (212, 'Tonga', 'TO', 'TON');
1478 INSERT INTO `geo_country_reference` VALUES (213, 'Trinidad and Tobago', 'TT', 'TTO');
1479 INSERT INTO `geo_country_reference` VALUES (214, 'Tunisia', 'TN', 'TUN');
1480 INSERT INTO `geo_country_reference` VALUES (215, 'Turkey', 'TR', 'TUR');
1481 INSERT INTO `geo_country_reference` VALUES (216, 'Turkmenistan', 'TM', 'TKM');
1482 INSERT INTO `geo_country_reference` VALUES (217, 'Turks and Caicos Islands', 'TC', 'TCA');
1483 INSERT INTO `geo_country_reference` VALUES (218, 'Tuvalu', 'TV', 'TUV');
1484 INSERT INTO `geo_country_reference` VALUES (219, 'Uganda', 'UG', 'UGA');
1485 INSERT INTO `geo_country_reference` VALUES (220, 'Ukraine', 'UA', 'UKR');
1486 INSERT INTO `geo_country_reference` VALUES (221, 'United Arab Emirates', 'AE', 'ARE');
1487 INSERT INTO `geo_country_reference` VALUES (222, 'United Kingdom', 'GB', 'GBR');
1488 INSERT INTO `geo_country_reference` VALUES (223, 'United States', 'US', 'USA');
1489 INSERT INTO `geo_country_reference` VALUES (224, 'United States Minor Outlying Islands', 'UM', 'UMI');
1490 INSERT INTO `geo_country_reference` VALUES (225, 'Uruguay', 'UY', 'URY');
1491 INSERT INTO `geo_country_reference` VALUES (226, 'Uzbekistan', 'UZ', 'UZB');
1492 INSERT INTO `geo_country_reference` VALUES (227, 'Vanuatu', 'VU', 'VUT');
1493 INSERT INTO `geo_country_reference` VALUES (228, 'Vatican City State (Holy See)', 'VA', 'VAT');
1494 INSERT INTO `geo_country_reference` VALUES (229, 'Venezuela', 'VE', 'VEN');
1495 INSERT INTO `geo_country_reference` VALUES (230, 'Viet Nam', 'VN', 'VNM');
1496 INSERT INTO `geo_country_reference` VALUES (231, 'Virgin Islands (British)', 'VG', 'VGB');
1497 INSERT INTO `geo_country_reference` VALUES (232, 'Virgin Islands (U.S.)', 'VI', 'VIR');
1498 INSERT INTO `geo_country_reference` VALUES (233, 'Wallis and Futuna Islands', 'WF', 'WLF');
1499 INSERT INTO `geo_country_reference` VALUES (234, 'Western Sahara', 'EH', 'ESH');
1500 INSERT INTO `geo_country_reference` VALUES (235, 'Yemen', 'YE', 'YEM');
1501 INSERT INTO `geo_country_reference` VALUES (236, 'Yugoslavia', 'YU', 'YUG');
1502 INSERT INTO `geo_country_reference` VALUES (237, 'Zaire', 'ZR', 'ZAR');
1503 INSERT INTO `geo_country_reference` VALUES (238, 'Zambia', 'ZM', 'ZMB');
1504 INSERT INTO `geo_country_reference` VALUES (239, 'Zimbabwe', 'ZW', 'ZWE');
1506 -- --------------------------------------------------------
1509 -- Table structure for table `geo_zone_reference`
1512 DROP TABLE IF EXISTS `geo_zone_reference`;
1513 CREATE TABLE `geo_zone_reference` (
1514 `zone_id` int(5) NOT NULL auto_increment,
1515 `zone_country_id` int(5) NOT NULL default '0',
1516 `zone_code` varchar(5) default NULL,
1517 `zone_name` varchar(32) default NULL,
1518 PRIMARY KEY (`zone_id`)
1519 ) ENGINE=MyISAM AUTO_INCREMENT=83 ;
1522 -- Dumping data for table `geo_zone_reference`
1525 INSERT INTO `geo_zone_reference` VALUES (1, 223, 'AL', 'Alabama');
1526 INSERT INTO `geo_zone_reference` VALUES (2, 223, 'AK', 'Alaska');
1527 INSERT INTO `geo_zone_reference` VALUES (3, 223, 'AS', 'American Samoa');
1528 INSERT INTO `geo_zone_reference` VALUES (4, 223, 'AZ', 'Arizona');
1529 INSERT INTO `geo_zone_reference` VALUES (5, 223, 'AR', 'Arkansas');
1530 INSERT INTO `geo_zone_reference` VALUES (6, 223, 'AF', 'Armed Forces Africa');
1531 INSERT INTO `geo_zone_reference` VALUES (7, 223, 'AA', 'Armed Forces Americas');
1532 INSERT INTO `geo_zone_reference` VALUES (8, 223, 'AC', 'Armed Forces Canada');
1533 INSERT INTO `geo_zone_reference` VALUES (9, 223, 'AE', 'Armed Forces Europe');
1534 INSERT INTO `geo_zone_reference` VALUES (10, 223, 'AM', 'Armed Forces Middle East');
1535 INSERT INTO `geo_zone_reference` VALUES (11, 223, 'AP', 'Armed Forces Pacific');
1536 INSERT INTO `geo_zone_reference` VALUES (12, 223, 'CA', 'California');
1537 INSERT INTO `geo_zone_reference` VALUES (13, 223, 'CO', 'Colorado');
1538 INSERT INTO `geo_zone_reference` VALUES (14, 223, 'CT', 'Connecticut');
1539 INSERT INTO `geo_zone_reference` VALUES (15, 223, 'DE', 'Delaware');
1540 INSERT INTO `geo_zone_reference` VALUES (16, 223, 'DC', 'District of Columbia');
1541 INSERT INTO `geo_zone_reference` VALUES (17, 223, 'FM', 'Federated States Of Micronesia');
1542 INSERT INTO `geo_zone_reference` VALUES (18, 223, 'FL', 'Florida');
1543 INSERT INTO `geo_zone_reference` VALUES (19, 223, 'GA', 'Georgia');
1544 INSERT INTO `geo_zone_reference` VALUES (20, 223, 'GU', 'Guam');
1545 INSERT INTO `geo_zone_reference` VALUES (21, 223, 'HI', 'Hawaii');
1546 INSERT INTO `geo_zone_reference` VALUES (22, 223, 'ID', 'Idaho');
1547 INSERT INTO `geo_zone_reference` VALUES (23, 223, 'IL', 'Illinois');
1548 INSERT INTO `geo_zone_reference` VALUES (24, 223, 'IN', 'Indiana');
1549 INSERT INTO `geo_zone_reference` VALUES (25, 223, 'IA', 'Iowa');
1550 INSERT INTO `geo_zone_reference` VALUES (26, 223, 'KS', 'Kansas');
1551 INSERT INTO `geo_zone_reference` VALUES (27, 223, 'KY', 'Kentucky');
1552 INSERT INTO `geo_zone_reference` VALUES (28, 223, 'LA', 'Louisiana');
1553 INSERT INTO `geo_zone_reference` VALUES (29, 223, 'ME', 'Maine');
1554 INSERT INTO `geo_zone_reference` VALUES (30, 223, 'MH', 'Marshall Islands');
1555 INSERT INTO `geo_zone_reference` VALUES (31, 223, 'MD', 'Maryland');
1556 INSERT INTO `geo_zone_reference` VALUES (32, 223, 'MA', 'Massachusetts');
1557 INSERT INTO `geo_zone_reference` VALUES (33, 223, 'MI', 'Michigan');
1558 INSERT INTO `geo_zone_reference` VALUES (34, 223, 'MN', 'Minnesota');
1559 INSERT INTO `geo_zone_reference` VALUES (35, 223, 'MS', 'Mississippi');
1560 INSERT INTO `geo_zone_reference` VALUES (36, 223, 'MO', 'Missouri');
1561 INSERT INTO `geo_zone_reference` VALUES (37, 223, 'MT', 'Montana');
1562 INSERT INTO `geo_zone_reference` VALUES (38, 223, 'NE', 'Nebraska');
1563 INSERT INTO `geo_zone_reference` VALUES (39, 223, 'NV', 'Nevada');
1564 INSERT INTO `geo_zone_reference` VALUES (40, 223, 'NH', 'New Hampshire');
1565 INSERT INTO `geo_zone_reference` VALUES (41, 223, 'NJ', 'New Jersey');
1566 INSERT INTO `geo_zone_reference` VALUES (42, 223, 'NM', 'New Mexico');
1567 INSERT INTO `geo_zone_reference` VALUES (43, 223, 'NY', 'New York');
1568 INSERT INTO `geo_zone_reference` VALUES (44, 223, 'NC', 'North Carolina');
1569 INSERT INTO `geo_zone_reference` VALUES (45, 223, 'ND', 'North Dakota');
1570 INSERT INTO `geo_zone_reference` VALUES (46, 223, 'MP', 'Northern Mariana Islands');
1571 INSERT INTO `geo_zone_reference` VALUES (47, 223, 'OH', 'Ohio');
1572 INSERT INTO `geo_zone_reference` VALUES (48, 223, 'OK', 'Oklahoma');
1573 INSERT INTO `geo_zone_reference` VALUES (49, 223, 'OR', 'Oregon');
1574 INSERT INTO `geo_zone_reference` VALUES (50, 223, 'PW', 'Palau');
1575 INSERT INTO `geo_zone_reference` VALUES (51, 223, 'PA', 'Pennsylvania');
1576 INSERT INTO `geo_zone_reference` VALUES (52, 223, 'PR', 'Puerto Rico');
1577 INSERT INTO `geo_zone_reference` VALUES (53, 223, 'RI', 'Rhode Island');
1578 INSERT INTO `geo_zone_reference` VALUES (54, 223, 'SC', 'South Carolina');
1579 INSERT INTO `geo_zone_reference` VALUES (55, 223, 'SD', 'South Dakota');
1580 INSERT INTO `geo_zone_reference` VALUES (56, 223, 'TN', 'Tenessee');
1581 INSERT INTO `geo_zone_reference` VALUES (57, 223, 'TX', 'Texas');
1582 INSERT INTO `geo_zone_reference` VALUES (58, 223, 'UT', 'Utah');
1583 INSERT INTO `geo_zone_reference` VALUES (59, 223, 'VT', 'Vermont');
1584 INSERT INTO `geo_zone_reference` VALUES (60, 223, 'VI', 'Virgin Islands');
1585 INSERT INTO `geo_zone_reference` VALUES (61, 223, 'VA', 'Virginia');
1586 INSERT INTO `geo_zone_reference` VALUES (62, 223, 'WA', 'Washington');
1587 INSERT INTO `geo_zone_reference` VALUES (63, 223, 'WV', 'West Virginia');
1588 INSERT INTO `geo_zone_reference` VALUES (64, 223, 'WI', 'Wisconsin');
1589 INSERT INTO `geo_zone_reference` VALUES (65, 223, 'WY', 'Wyoming');
1590 INSERT INTO `geo_zone_reference` VALUES (66, 38, 'AB', 'Alberta');
1591 INSERT INTO `geo_zone_reference` VALUES (67, 38, 'BC', 'British Columbia');
1592 INSERT INTO `geo_zone_reference` VALUES (68, 38, 'MB', 'Manitoba');
1593 INSERT INTO `geo_zone_reference` VALUES (69, 38, 'NF', 'Newfoundland');
1594 INSERT INTO `geo_zone_reference` VALUES (70, 38, 'NB', 'New Brunswick');
1595 INSERT INTO `geo_zone_reference` VALUES (71, 38, 'NS', 'Nova Scotia');
1596 INSERT INTO `geo_zone_reference` VALUES (72, 38, 'NT', 'Northwest Territories');
1597 INSERT INTO `geo_zone_reference` VALUES (73, 38, 'NU', 'Nunavut');
1598 INSERT INTO `geo_zone_reference` VALUES (74, 38, 'ON', 'Ontario');
1599 INSERT INTO `geo_zone_reference` VALUES (75, 38, 'PE', 'Prince Edward Island');
1600 INSERT INTO `geo_zone_reference` VALUES (76, 38, 'QC', 'Quebec');
1601 INSERT INTO `geo_zone_reference` VALUES (77, 38, 'SK', 'Saskatchewan');
1602 INSERT INTO `geo_zone_reference` VALUES (78, 38, 'YT', 'Yukon Territory');
1603 INSERT INTO `geo_zone_reference` VALUES (79, 61, 'QLD', 'Queensland');
1604 INSERT INTO `geo_zone_reference` VALUES (80, 61, 'SA', 'South Australia');
1605 INSERT INTO `geo_zone_reference` VALUES (81, 61, 'ACT', 'Australian Capital Territory');
1606 INSERT INTO `geo_zone_reference` VALUES (82, 61, 'VIC', 'Victoria');
1608 -- --------------------------------------------------------
1611 -- Table structure for table `groups`
1614 DROP TABLE IF EXISTS `groups`;
1615 CREATE TABLE `groups` (
1616 `id` bigint(20) NOT NULL auto_increment,
1620 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1622 -- --------------------------------------------------------
1625 -- Table structure for table `history_data`
1628 DROP TABLE IF EXISTS `history_data`;
1629 CREATE TABLE `history_data` (
1630 `id` bigint(20) NOT NULL auto_increment,
1634 `sleep_patterns` longtext,
1635 `exercise_patterns` longtext,
1636 `seatbelt_use` longtext,
1637 `counseling` longtext,
1638 `hazardous_activities` longtext,
1639 `recreational_drugs` longtext,
1640 `last_breast_exam` varchar(255) default NULL,
1641 `last_mammogram` varchar(255) default NULL,
1642 `last_gynocological_exam` varchar(255) default NULL,
1643 `last_rectal_exam` varchar(255) default NULL,
1644 `last_prostate_exam` varchar(255) default NULL,
1645 `last_physical_exam` varchar(255) default NULL,
1646 `last_sigmoidoscopy_colonoscopy` varchar(255) default NULL,
1647 `last_ecg` varchar(255) default NULL,
1648 `last_cardiac_echo` varchar(255) default NULL,
1649 `last_retinal` varchar(255) default NULL,
1650 `last_fluvax` varchar(255) default NULL,
1651 `last_pneuvax` varchar(255) default NULL,
1652 `last_ldl` varchar(255) default NULL,
1653 `last_hemoglobin` varchar(255) default NULL,
1654 `last_psa` varchar(255) default NULL,
1655 `last_exam_results` varchar(255) default NULL,
1656 `history_mother` longtext,
1657 `history_father` longtext,
1658 `history_siblings` longtext,
1659 `history_offspring` longtext,
1660 `history_spouse` longtext,
1661 `relatives_cancer` longtext,
1662 `relatives_tuberculosis` longtext,
1663 `relatives_diabetes` longtext,
1664 `relatives_high_blood_pressure` longtext,
1665 `relatives_heart_problems` longtext,
1666 `relatives_stroke` longtext,
1667 `relatives_epilepsy` longtext,
1668 `relatives_mental_illness` longtext,
1669 `relatives_suicide` longtext,
1670 `cataract_surgery` datetime default NULL,
1671 `tonsillectomy` datetime default NULL,
1672 `cholecystestomy` datetime default NULL,
1673 `heart_surgery` datetime default NULL,
1674 `hysterectomy` datetime default NULL,
1675 `hernia_repair` datetime default NULL,
1676 `hip_replacement` datetime default NULL,
1677 `knee_replacement` datetime default NULL,
1678 `appendectomy` datetime default NULL,
1679 `date` datetime default NULL,
1680 `pid` bigint(20) NOT NULL default '0',
1681 `name_1` varchar(255) default NULL,
1682 `value_1` varchar(255) default NULL,
1683 `name_2` varchar(255) default NULL,
1684 `value_2` varchar(255) default NULL,
1685 `additional_history` text,
1686 `exams` text NOT NULL DEFAULT '',
1687 `usertext11` varchar(255) NOT NULL DEFAULT '',
1688 `usertext12` varchar(255) NOT NULL DEFAULT '',
1689 `usertext13` varchar(255) NOT NULL DEFAULT '',
1690 `usertext14` varchar(255) NOT NULL DEFAULT '',
1691 `usertext15` varchar(255) NOT NULL DEFAULT '',
1692 `usertext16` varchar(255) NOT NULL DEFAULT '',
1693 `usertext17` varchar(255) NOT NULL DEFAULT '',
1694 `usertext18` varchar(255) NOT NULL DEFAULT '',
1695 `usertext19` varchar(255) NOT NULL DEFAULT '',
1696 `usertext20` varchar(255) NOT NULL DEFAULT '',
1697 `usertext21` varchar(255) NOT NULL DEFAULT '',
1698 `usertext22` varchar(255) NOT NULL DEFAULT '',
1699 `usertext23` varchar(255) NOT NULL DEFAULT '',
1700 `usertext24` varchar(255) NOT NULL DEFAULT '',
1701 `usertext25` varchar(255) NOT NULL DEFAULT '',
1702 `usertext26` varchar(255) NOT NULL DEFAULT '',
1703 `usertext27` varchar(255) NOT NULL DEFAULT '',
1704 `usertext28` varchar(255) NOT NULL DEFAULT '',
1705 `usertext29` varchar(255) NOT NULL DEFAULT '',
1706 `usertext30` varchar(255) NOT NULL DEFAULT '',
1707 `userdate11` date DEFAULT NULL,
1708 `userdate12` date DEFAULT NULL,
1709 `userdate13` date DEFAULT NULL,
1710 `userdate14` date DEFAULT NULL,
1711 `userdate15` date DEFAULT NULL,
1712 `userarea11` text NOT NULL DEFAULT '',
1713 `userarea12` text NOT NULL DEFAULT '',
1716 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1718 -- --------------------------------------------------------
1721 -- Table structure for table `immunizations`
1724 DROP TABLE IF EXISTS `immunizations`;
1725 CREATE TABLE `immunizations` (
1726 `id` bigint(20) NOT NULL auto_increment,
1727 `patient_id` int(11) default NULL,
1728 `administered_date` date default NULL,
1729 `immunization_id` int(11) default NULL,
1730 `manufacturer` varchar(100) default NULL,
1731 `lot_number` varchar(50) default NULL,
1732 `administered_by_id` bigint(20) default NULL,
1733 `administered_by` VARCHAR( 255 ) default NULL COMMENT 'Alternative to administered_by_id',
1734 `education_date` date default NULL,
1735 `vis_date` date default NULL COMMENT 'Date of VIS Statement',
1737 `create_date` datetime default NULL,
1738 `update_date` timestamp NOT NULL,
1739 `created_by` bigint(20) default NULL,
1740 `updated_by` bigint(20) default NULL,
1742 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1744 -- --------------------------------------------------------
1747 -- Table structure for table `insurance_companies`
1750 DROP TABLE IF EXISTS `insurance_companies`;
1751 CREATE TABLE `insurance_companies` (
1752 `id` int(11) NOT NULL default '0',
1753 `name` varchar(255) default NULL,
1754 `attn` varchar(255) default NULL,
1755 `cms_id` varchar(15) default NULL,
1756 `freeb_type` tinyint(2) default NULL,
1757 `x12_receiver_id` varchar(25) default NULL,
1758 `x12_default_partner_id` int(11) default NULL,
1759 `alt_cms_id` varchar(15) NOT NULL DEFAULT '',
1763 -- --------------------------------------------------------
1766 -- Table structure for table `insurance_data`
1769 DROP TABLE IF EXISTS `insurance_data`;
1770 CREATE TABLE `insurance_data` (
1771 `id` bigint(20) NOT NULL auto_increment,
1772 `type` enum('primary','secondary','tertiary') default NULL,
1773 `provider` varchar(255) default NULL,
1774 `plan_name` varchar(255) default NULL,
1775 `policy_number` varchar(255) default NULL,
1776 `group_number` varchar(255) default NULL,
1777 `subscriber_lname` varchar(255) default NULL,
1778 `subscriber_mname` varchar(255) default NULL,
1779 `subscriber_fname` varchar(255) default NULL,
1780 `subscriber_relationship` varchar(255) default NULL,
1781 `subscriber_ss` varchar(255) default NULL,
1782 `subscriber_DOB` date default NULL,
1783 `subscriber_street` varchar(255) default NULL,
1784 `subscriber_postal_code` varchar(255) default NULL,
1785 `subscriber_city` varchar(255) default NULL,
1786 `subscriber_state` varchar(255) default NULL,
1787 `subscriber_country` varchar(255) default NULL,
1788 `subscriber_phone` varchar(255) default NULL,
1789 `subscriber_employer` varchar(255) default NULL,
1790 `subscriber_employer_street` varchar(255) default NULL,
1791 `subscriber_employer_postal_code` varchar(255) default NULL,
1792 `subscriber_employer_state` varchar(255) default NULL,
1793 `subscriber_employer_country` varchar(255) default NULL,
1794 `subscriber_employer_city` varchar(255) default NULL,
1795 `copay` varchar(255) default NULL,
1796 `date` date NOT NULL default '0000-00-00',
1797 `pid` bigint(20) NOT NULL default '0',
1798 `subscriber_sex` varchar(25) default NULL,
1799 `accept_assignment` varchar(5) NOT NULL DEFAULT 'TRUE',
1801 UNIQUE KEY `pid_type_date` (`pid`,`type`,`date`)
1802 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
1804 -- --------------------------------------------------------
1807 -- Table structure for table `insurance_numbers`
1810 DROP TABLE IF EXISTS `insurance_numbers`;
1811 CREATE TABLE `insurance_numbers` (
1812 `id` int(11) NOT NULL default '0',
1813 `provider_id` int(11) NOT NULL default '0',
1814 `insurance_company_id` int(11) default NULL,
1815 `provider_number` varchar(20) default NULL,
1816 `rendering_provider_number` varchar(20) default NULL,
1817 `group_number` varchar(20) default NULL,
1818 `provider_number_type` varchar(4) default NULL,
1819 `rendering_provider_number_type` varchar(4) default NULL,
1823 -- --------------------------------------------------------
1826 -- Table structure for table `integration_mapping`
1829 DROP TABLE IF EXISTS `integration_mapping`;
1830 CREATE TABLE `integration_mapping` (
1831 `id` int(11) NOT NULL default '0',
1832 `foreign_id` int(11) NOT NULL default '0',
1833 `foreign_table` varchar(125) default NULL,
1834 `local_id` int(11) NOT NULL default '0',
1835 `local_table` varchar(125) default NULL,
1837 UNIQUE KEY `foreign_id` (`foreign_id`,`foreign_table`,`local_id`,`local_table`)
1840 -- --------------------------------------------------------
1843 -- Table structure for table `issue_encounter`
1846 DROP TABLE IF EXISTS `issue_encounter`;
1847 CREATE TABLE `issue_encounter` (
1848 `pid` int(11) NOT NULL,
1849 `list_id` int(11) NOT NULL,
1850 `encounter` int(11) NOT NULL,
1851 `resolved` tinyint(1) NOT NULL,
1852 PRIMARY KEY (`pid`,`list_id`,`encounter`)
1855 -- --------------------------------------------------------
1858 -- Table structure for table `lang_constants`
1861 DROP TABLE IF EXISTS `lang_constants`;
1862 CREATE TABLE `lang_constants` (
1863 `cons_id` int(11) NOT NULL auto_increment,
1864 `constant_name` varchar(255) BINARY default NULL,
1865 UNIQUE KEY `cons_id` (`cons_id`),
1866 KEY `constant_name` (`constant_name`)
1870 -- Table structure for table `lang_definitions`
1873 DROP TABLE IF EXISTS `lang_definitions`;
1874 CREATE TABLE `lang_definitions` (
1875 `def_id` int(11) NOT NULL auto_increment,
1876 `cons_id` int(11) NOT NULL default '0',
1877 `lang_id` int(11) NOT NULL default '0',
1878 `definition` mediumtext,
1879 UNIQUE KEY `def_id` (`def_id`),
1880 KEY `cons_id` (`cons_id`)
1884 -- Table structure for table `lang_languages`
1887 DROP TABLE IF EXISTS `lang_languages`;
1888 CREATE TABLE `lang_languages` (
1889 `lang_id` int(11) NOT NULL auto_increment,
1890 `lang_code` char(2) NOT NULL default '',
1891 `lang_description` varchar(100) default NULL,
1892 UNIQUE KEY `lang_id` (`lang_id`)
1893 ) ENGINE=MyISAM AUTO_INCREMENT=2 ;
1896 -- Dumping data for table `lang_languages`
1899 INSERT INTO `lang_languages` VALUES (1, 'en', 'English');
1901 -- --------------------------------------------------------
1904 -- Table structure for table `lang_custom`
1907 DROP TABLE IF EXISTS `lang_custom`;
1908 CREATE TABLE `lang_custom` (
1909 `lang_description` varchar(100) NOT NULL default '',
1910 `lang_code` char(2) NOT NULL default '',
1911 `constant_name` varchar(255) NOT NULL default '',
1912 `definition` mediumtext NOT NULL default ''
1915 -- --------------------------------------------------------
1918 -- Table structure for table `layout_options`
1921 DROP TABLE IF EXISTS `layout_options`;
1922 CREATE TABLE `layout_options` (
1923 `form_id` varchar(31) NOT NULL default '',
1924 `field_id` varchar(31) NOT NULL default '',
1925 `group_name` varchar(31) NOT NULL default '',
1926 `title` varchar(63) NOT NULL default '',
1927 `seq` int(11) NOT NULL default '0',
1928 `data_type` tinyint(3) NOT NULL default '0',
1929 `uor` tinyint(1) NOT NULL default '1',
1930 `fld_length` int(11) NOT NULL default '15',
1931 `max_length` int(11) NOT NULL default '0',
1932 `list_id` varchar(31) NOT NULL default '',
1933 `titlecols` tinyint(3) NOT NULL default '1',
1934 `datacols` tinyint(3) NOT NULL default '1',
1935 `default_value` varchar(255) NOT NULL default '',
1936 `edit_options` varchar(36) NOT NULL default '',
1938 PRIMARY KEY (`form_id`,`field_id`,`seq`)
1942 -- Dumping data for table `layout_options`
1944 INSERT INTO `layout_options` VALUES ('DEM', 'title', '1Who', 'Name', 1, 1, 1, 0, 0, 'titles', 1, 1, '', 'N', 'Title');
1945 INSERT INTO `layout_options` VALUES ('DEM', 'fname', '1Who', '', 2, 2, 2, 10, 63, '', 0, 0, '', 'CD', 'First Name');
1946 INSERT INTO `layout_options` VALUES ('DEM', 'mname', '1Who', '', 3, 2, 1, 2, 63, '', 0, 0, '', 'C', 'Middle Name');
1947 INSERT INTO `layout_options` VALUES ('DEM', 'lname', '1Who', '', 4, 2, 2, 10, 63, '', 0, 0, '', 'CD', 'Last Name');
1948 INSERT INTO `layout_options` VALUES ('DEM', 'pubpid', '1Who', 'External ID', 5, 2, 1, 10, 15, '', 1, 1, '', 'ND', 'External identifier');
1949 INSERT INTO `layout_options` VALUES ('DEM', 'DOB', '1Who', 'DOB', 6, 4, 2, 10, 10, '', 1, 1, '', 'D', 'Date of Birth');
1950 INSERT INTO `layout_options` VALUES ('DEM', 'sex', '1Who', 'Sex', 7, 1, 2, 0, 0, 'sex', 1, 1, '', 'N', 'Sex');
1951 INSERT INTO `layout_options` VALUES ('DEM', 'ss', '1Who', 'S.S.', 8, 2, 1, 11, 11, '', 1, 1, '', '', 'Social Security Number');
1952 INSERT INTO `layout_options` VALUES ('DEM', 'drivers_license', '1Who', 'License/ID', 9, 2, 1, 15, 63, '', 1, 1, '', '', 'Drivers License or State ID');
1953 INSERT INTO `layout_options` VALUES ('DEM', 'status', '1Who', 'Marital Status', 10, 1, 1, 0, 0, 'marital', 1, 3, '', '', 'Marital Status');
1954 INSERT INTO `layout_options` VALUES ('DEM', 'genericname1', '1Who', 'User Defined', 11, 2, 1, 15, 63, '', 1, 3, '', '', 'User Defined Field');
1955 INSERT INTO `layout_options` VALUES ('DEM', 'genericval1', '1Who', '', 12, 2, 1, 15, 63, '', 0, 0, '', '', 'User Defined Field');
1956 INSERT INTO `layout_options` VALUES ('DEM', 'genericname2', '1Who', '', 13, 2, 1, 15, 63, '', 0, 0, '', '', 'User Defined Field');
1957 INSERT INTO `layout_options` VALUES ('DEM', 'genericval2', '1Who', '', 14, 2, 1, 15, 63, '', 0, 0, '', '', 'User Defined Field');
1958 INSERT INTO `layout_options` VALUES ('DEM', 'squad', '1Who', 'Squad', 15, 13, 0, 0, 0, '', 1, 3, '', '', 'Squad Membership');
1959 INSERT INTO `layout_options` VALUES ('DEM', 'pricelevel', '1Who', 'Price Level', 16, 1, 0, 0, 0, 'pricelevel', 1, 1, '', '', 'Discount Level');
1960 INSERT INTO `layout_options` VALUES ('DEM', 'street', '2Contact', 'Address', 1, 2, 1, 25, 63, '', 1, 1, '', 'C', 'Street and Number');
1961 INSERT INTO `layout_options` VALUES ('DEM', 'city', '2Contact', 'City', 2, 2, 1, 15, 63, '', 1, 1, '', 'C', 'City Name');
1962 INSERT INTO `layout_options` VALUES ('DEM', 'state', '2Contact', 'State', 3, 26, 1, 0, 0, 'state', 1, 1, '', '', 'State/Locality');
1963 INSERT INTO `layout_options` VALUES ('DEM', 'postal_code', '2Contact', 'Postal Code', 4, 2, 1, 6, 63, '', 1, 1, '', '', 'Postal Code');
1964 INSERT INTO `layout_options` VALUES ('DEM', 'country_code', '2Contact', 'Country', 5, 26, 1, 0, 0, 'country', 1, 1, '', '', 'Country');
1965 INSERT INTO `layout_options` VALUES ('DEM', 'mothersname', '2Contact', 'Mother''s Name', 6, 2, 1, 20, 63, '', 1, 1, '', '', '');
1966 INSERT INTO `layout_options` VALUES ('DEM', 'guardiansname', '2Contact', 'Guardian''s Name', 7, 2, 1, 20, 63, '', 1, 1, '', '', '');
1967 INSERT INTO `layout_options` VALUES ('DEM', 'contact_relationship', '2Contact', 'Emergency Contact', 8, 2, 1, 10, 63, '', 1, 1, '', 'C', 'Emergency Contact Person');
1968 INSERT INTO `layout_options` VALUES ('DEM', 'phone_contact', '2Contact', 'Emergency Phone', 9, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Emergency Contact Phone Number');
1969 INSERT INTO `layout_options` VALUES ('DEM', 'phone_home', '2Contact', 'Home Phone', 10, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Home Phone Number');
1970 INSERT INTO `layout_options` VALUES ('DEM', 'phone_biz', '2Contact', 'Work Phone', 11, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Work Phone Number');
1971 INSERT INTO `layout_options` VALUES ('DEM', 'phone_cell', '2Contact', 'Mobile Phone', 12, 2, 1, 20, 63, '', 1, 1, '', 'P', 'Cell Phone Number');
1972 INSERT INTO `layout_options` VALUES ('DEM', 'email', '2Contact', 'Contact Email', 13, 2, 1, 30, 95, '', 1, 1, '', '', 'Contact Email Address');
1973 INSERT INTO `layout_options` VALUES ('DEM', 'providerID', '3Choices', 'Provider', 1, 11, 1, 0, 0, '', 1, 3, '', '', 'Referring Provider');
1974 INSERT INTO `layout_options` VALUES ('DEM', 'pharmacy_id', '3Choices', 'Pharmacy', 2, 12, 1, 0, 0, '', 1, 3, '', '', 'Preferred Pharmacy');
1975 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?');
1976 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_voice', '3Choices', 'Allow Voice Message', 4, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow telephone messages?');
1977 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?');
1978 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_mail', '3Choices', 'Allow Mail Message', 6, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow email messages?');
1979 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_allowsms' , '3Choices', 'Allow SMS' , 7, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow SMS (text messages)?');
1980 INSERT INTO `layout_options` VALUES ('DEM', 'hipaa_allowemail', '3Choices', 'Allow Email', 8, 1, 1, 0, 0, 'yesno', 1, 1, '', '', 'Allow Email?');
1982 INSERT INTO `layout_options` VALUES ('DEM', 'allow_imm_reg_use', '3Choices', 'Allow Immunization Registry Use', 9, 1, 1, 0, 0, 'yesno', 1, 1, '', '', '');
1983 INSERT INTO `layout_options` VALUES ('DEM', 'allow_imm_info_share', '3Choices', 'Allow Immunization Info Sharing', 10, 1, 1, 0, 0, 'yesno', 1, 1, '', '', '');
1984 INSERT INTO `layout_options` VALUES ('DEM', 'allow_health_info_ex', '3Choices', 'Allow Health Information Exchange', 11, 1, 1, 0, 0, 'yesno', 1, 1, '', '', '');
1985 INSERT INTO `layout_options` VALUES ('DEM', 'occupation', '4Employer', 'Occupation', 1, 2, 1, 20, 63, '', 1, 1, '', 'C', 'Occupation');
1986 INSERT INTO `layout_options` VALUES ('DEM', 'em_name', '4Employer', 'Employer Name', 2, 2, 1, 20, 63, '', 1, 1, '', 'C', 'Employer Name');
1987 INSERT INTO `layout_options` VALUES ('DEM', 'em_street', '4Employer', 'Employer Address', 3, 2, 1, 25, 63, '', 1, 1, '', 'C', 'Street and Number');
1988 INSERT INTO `layout_options` VALUES ('DEM', 'em_city', '4Employer', 'City', 4, 2, 1, 15, 63, '', 1, 1, '', 'C', 'City Name');
1989 INSERT INTO `layout_options` VALUES ('DEM', 'em_state', '4Employer', 'State', 5, 26, 1, 0, 0, 'state', 1, 1, '', '', 'State/Locality');
1990 INSERT INTO `layout_options` VALUES ('DEM', 'em_postal_code', '4Employer', 'Postal Code', 6, 2, 1, 6, 63, '', 1, 1, '', '', 'Postal Code');
1991 INSERT INTO `layout_options` VALUES ('DEM', 'em_country', '4Employer', 'Country', 7, 26, 1, 0, 0, 'country', 1, 1, '', '', 'Country');
1992 INSERT INTO `layout_options` VALUES ('DEM', 'language', '5Stats', 'Language', 1, 26, 1, 0, 0, 'language', 1, 1, '', '', 'Preferred Language');
1993 INSERT INTO `layout_options` VALUES ('DEM', 'ethnicity', '5Stats', 'Ethnicity', 2, 33, 1, 0, 0, 'ethnicity', 1, 1, '', '', 'Ethnicity');
1994 INSERT INTO `layout_options` VALUES ('DEM', 'race', '5Stats', 'Race', 3, 33, 1, 0, 0, 'race', 1, 1, '', '', 'Race');
1995 INSERT INTO `layout_options` VALUES ('DEM', 'financial_review', '5Stats', 'Financial Review Date', 4, 2, 1, 10, 10, '', 1, 1, '', 'D', 'Financial Review Date');
1996 INSERT INTO `layout_options` VALUES ('DEM', 'family_size', '5Stats', 'Family Size', 4, 2, 1, 20, 63, '', 1, 1, '', '', 'Family Size');
1997 INSERT INTO `layout_options` VALUES ('DEM', 'monthly_income', '5Stats', 'Monthly Income', 5, 2, 1, 20, 63, '', 1, 1, '', '', 'Monthly Income');
1998 INSERT INTO `layout_options` VALUES ('DEM', 'homeless', '5Stats', 'Homeless, etc.', 6, 2, 1, 20, 63, '', 1, 1, '', '', 'Homeless or similar?');
1999 INSERT INTO `layout_options` VALUES ('DEM', 'interpretter', '5Stats', 'Interpreter', 7, 2, 1, 20, 63, '', 1, 1, '', '', 'Interpreter needed?');
2000 INSERT INTO `layout_options` VALUES ('DEM', 'migrantseasonal', '5Stats', 'Migrant/Seasonal', 8, 2, 1, 20, 63, '', 1, 1, '', '', 'Migrant or seasonal worker?');
2001 INSERT INTO `layout_options` VALUES ('DEM', 'contrastart', '5Stats', 'Contraceptives Start',9,4,0,10,10,'',1,1,'','','Date contraceptive services initially provided');
2002 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');
2003 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');
2004 INSERT INTO `layout_options` VALUES ('DEM', 'usertext1', '6Misc', 'User Defined Text 1', 1, 2, 0, 10, 63, '', 1, 1, '', '', 'User Defined');
2005 INSERT INTO `layout_options` VALUES ('DEM', 'usertext2', '6Misc', 'User Defined Text 2', 2, 2, 0, 10, 63, '', 1, 1, '', '', 'User Defined');
2006 INSERT INTO `layout_options` VALUES ('DEM', 'usertext3', '6Misc', 'User Defined Text 3', 3,2,0,10,63,'',1,1,'','','User Defined');
2007 INSERT INTO `layout_options` VALUES ('DEM', 'usertext4', '6Misc', 'User Defined Text 4', 4,2,0,10,63,'',1,1,'','','User Defined');
2008 INSERT INTO `layout_options` VALUES ('DEM', 'usertext5', '6Misc', 'User Defined Text 5', 5,2,0,10,63,'',1,1,'','','User Defined');
2009 INSERT INTO `layout_options` VALUES ('DEM', 'usertext6', '6Misc', 'User Defined Text 6', 6,2,0,10,63,'',1,1,'','','User Defined');
2010 INSERT INTO `layout_options` VALUES ('DEM', 'usertext7', '6Misc', 'User Defined Text 7', 7,2,0,10,63,'',1,1,'','','User Defined');
2011 INSERT INTO `layout_options` VALUES ('DEM', 'usertext8', '6Misc', 'User Defined Text 8', 8,2,0,10,63,'',1,1,'','','User Defined');
2012 INSERT INTO `layout_options` VALUES ('DEM', 'userlist1', '6Misc', 'User Defined List 1', 9, 1, 0, 0, 0, 'userlist1', 1, 1, '', '', 'User Defined');
2013 INSERT INTO `layout_options` VALUES ('DEM', 'userlist2', '6Misc', 'User Defined List 2',10, 1, 0, 0, 0, 'userlist2', 1, 1, '', '', 'User Defined');
2014 INSERT INTO `layout_options` VALUES ('DEM', 'userlist3', '6Misc', 'User Defined List 3',11, 1, 0, 0, 0, 'userlist3', 1, 1, '', '' , 'User Defined');
2015 INSERT INTO `layout_options` VALUES ('DEM', 'userlist4', '6Misc', 'User Defined List 4',12, 1, 0, 0, 0, 'userlist4', 1, 1, '', '' , 'User Defined');
2016 INSERT INTO `layout_options` VALUES ('DEM', 'userlist5', '6Misc', 'User Defined List 5',13, 1, 0, 0, 0, 'userlist5', 1, 1, '', '' , 'User Defined');
2017 INSERT INTO `layout_options` VALUES ('DEM', 'userlist6', '6Misc', 'User Defined List 6',14, 1, 0, 0, 0, 'userlist6', 1, 1, '', '' , 'User Defined');
2018 INSERT INTO `layout_options` VALUES ('DEM', 'userlist7', '6Misc', 'User Defined List 7',15, 1, 0, 0, 0, 'userlist7', 1, 1, '', '' , 'User Defined');
2019 INSERT INTO `layout_options` VALUES ('DEM', 'regdate' , '6Misc', 'Registration Date' ,16, 4, 0,10,10, '' , 1, 1, '', 'D', 'Start Date at This Clinic');
2022 INSERT INTO layout_options VALUES ('REF','refer_date' ,'1Referral','Referral Date' , 1, 4,2, 0, 0,'' ,1,1,'C','D','Date of referral');
2023 INSERT INTO layout_options VALUES ('REF','refer_from' ,'1Referral','Refer By' , 2,10,2, 0, 0,'' ,1,1,'' ,'' ,'Referral By');
2024 INSERT INTO layout_options VALUES ('REF','refer_external' ,'1Referral','External Referral' , 3, 1,1, 0, 0,'boolean' ,1,1,'' ,'' ,'External referral?');
2025 INSERT INTO layout_options VALUES ('REF','refer_to' ,'1Referral','Refer To' , 4,14,2, 0, 0,'' ,1,1,'' ,'' ,'Referral To');
2026 INSERT INTO layout_options VALUES ('REF','body' ,'1Referral','Reason' , 5, 3,2,30, 3,'' ,1,1,'' ,'' ,'Reason for referral');
2027 INSERT INTO layout_options VALUES ('REF','refer_diag' ,'1Referral','Referrer Diagnosis' , 6, 2,1,30,255,'' ,1,1,'' ,'X','Referrer diagnosis');
2028 INSERT INTO layout_options VALUES ('REF','refer_risk_level','1Referral','Risk Level' , 7, 1,1, 0, 0,'risklevel',1,1,'' ,'' ,'Level of urgency');
2029 INSERT INTO layout_options VALUES ('REF','refer_vitals' ,'1Referral','Include Vitals' , 8, 1,1, 0, 0,'boolean' ,1,1,'' ,'' ,'Include vitals data?');
2030 INSERT INTO layout_options VALUES ('REF','refer_related_code','1Referral','Requested Service' , 9,15,1,30,255,'' ,1,1,'' ,'' ,'Billing Code for Requested Service');
2031 INSERT INTO layout_options VALUES ('REF','reply_date' ,'2Counter-Referral','Reply Date' ,10, 4,1, 0, 0,'' ,1,1,'' ,'D','Date of reply');
2032 INSERT INTO layout_options VALUES ('REF','reply_from' ,'2Counter-Referral','Reply From' ,11, 2,1,30,255,'' ,1,1,'' ,'' ,'Who replied?');
2033 INSERT INTO layout_options VALUES ('REF','reply_init_diag' ,'2Counter-Referral','Presumed Diagnosis' ,12, 2,1,30,255,'' ,1,1,'' ,'' ,'Presumed diagnosis by specialist');
2034 INSERT INTO layout_options VALUES ('REF','reply_final_diag','2Counter-Referral','Final Diagnosis' ,13, 2,1,30,255,'' ,1,1,'' ,'' ,'Final diagnosis by specialist');
2035 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?');
2036 INSERT INTO layout_options VALUES ('REF','reply_findings' ,'2Counter-Referral','Findings' ,15, 3,1,30, 3,'' ,1,1,'' ,'' ,'Findings by specialist');
2037 INSERT INTO layout_options VALUES ('REF','reply_services' ,'2Counter-Referral','Services Provided' ,16, 3,1,30, 3,'' ,1,1,'' ,'' ,'Service provided by specialist');
2038 INSERT INTO layout_options VALUES ('REF','reply_recommend' ,'2Counter-Referral','Recommendations' ,17, 3,1,30, 3,'' ,1,1,'' ,'' ,'Recommendations by specialist');
2039 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');
2041 INSERT INTO layout_options VALUES ('HIS','usertext11','1General','Risk Factors',1,21,1,0,0,'riskfactors',1,1,'','' ,'Risk Factors');
2042 INSERT INTO layout_options VALUES ('HIS','exams' ,'1General','Exams/Tests' ,2,23,1,0,0,'exams' ,1,1,'','' ,'Exam and test results');
2043 INSERT INTO layout_options VALUES ('HIS','history_father' ,'2Family History','Father' ,1, 2,1,20,255,'',1,1,'','' ,'');
2044 INSERT INTO layout_options VALUES ('HIS','history_mother' ,'2Family History','Mother' ,2, 2,1,20,255,'',1,1,'','' ,'');
2045 INSERT INTO layout_options VALUES ('HIS','history_siblings' ,'2Family History','Siblings' ,3, 2,1,20,255,'',1,1,'','' ,'');
2046 INSERT INTO layout_options VALUES ('HIS','history_spouse' ,'2Family History','Spouse' ,4, 2,1,20,255,'',1,1,'','' ,'');
2047 INSERT INTO layout_options VALUES ('HIS','history_offspring','2Family History','Offspring',5, 2,1,20,255,'',1,3,'','' ,'');
2048 INSERT INTO layout_options VALUES ('HIS','relatives_cancer' ,'3Relatives','Cancer' ,1, 2,1,20,255,'',1,1,'','' ,'');
2049 INSERT INTO layout_options VALUES ('HIS','relatives_tuberculosis' ,'3Relatives','Tuberculosis' ,2, 2,1,20,255,'',1,1,'','' ,'');
2050 INSERT INTO layout_options VALUES ('HIS','relatives_diabetes' ,'3Relatives','Diabetes' ,3, 2,1,20,255,'',1,1,'','' ,'');
2051 INSERT INTO layout_options VALUES ('HIS','relatives_high_blood_pressure','3Relatives','High Blood Pressure',4, 2,1,20,255,'',1,1,'','' ,'');
2052 INSERT INTO layout_options VALUES ('HIS','relatives_heart_problems' ,'3Relatives','Heart Problems' ,5, 2,1,20,255,'',1,1,'','' ,'');
2053 INSERT INTO layout_options VALUES ('HIS','relatives_stroke' ,'3Relatives','Stroke' ,6, 2,1,20,255,'',1,1,'','' ,'');
2054 INSERT INTO layout_options VALUES ('HIS','relatives_epilepsy' ,'3Relatives','Epilepsy' ,7, 2,1,20,255,'',1,1,'','' ,'');
2055 INSERT INTO layout_options VALUES ('HIS','relatives_mental_illness' ,'3Relatives','Mental Illness' ,8, 2,1,20,255,'',1,1,'','' ,'');
2056 INSERT INTO layout_options VALUES ('HIS','relatives_suicide' ,'3Relatives','Suicide' ,9, 2,1,20,255,'',1,3,'','' ,'');
2057 INSERT INTO layout_options VALUES ('HIS','coffee' ,'4Lifestyle','Coffee' ,2,28,1,20,255,'',1,3,'','' ,'Caffeine consumption');
2058 INSERT INTO layout_options VALUES ('HIS','tobacco' ,'4Lifestyle','Tobacco' ,1,32,1,0,255,'smoking_status',1,3,'','' ,'Tobacco use');
2059 INSERT INTO layout_options VALUES ('HIS','alcohol' ,'4Lifestyle','Alcohol' ,3,28,1,20,255,'',1,3,'','' ,'Alcohol consumption');
2060 INSERT INTO layout_options VALUES ('HIS','recreational_drugs' ,'4Lifestyle','Recreational Drugs' ,4,28,1,20,255,'',1,3,'','' ,'Recreational drug use');
2061 INSERT INTO layout_options VALUES ('HIS','counseling' ,'4Lifestyle','Counseling' ,5,28,1,20,255,'',1,3,'','' ,'Counseling activities');
2062 INSERT INTO layout_options VALUES ('HIS','exercise_patterns' ,'4Lifestyle','Exercise Patterns' ,6,28,1,20,255,'',1,3,'','' ,'Exercise patterns');
2063 INSERT INTO layout_options VALUES ('HIS','hazardous_activities','4Lifestyle','Hazardous Activities',7,28,1,20,255,'',1,3,'','' ,'Hazardous activities');
2064 INSERT INTO layout_options VALUES ('HIS','sleep_patterns' ,'4Lifestyle','Sleep Patterns' ,8, 2,1,20,255,'',1,3,'','' ,'Sleep patterns');
2065 INSERT INTO layout_options VALUES ('HIS','seatbelt_use' ,'4Lifestyle','Seatbelt Use' ,9, 2,1,20,255,'',1,3,'','' ,'Seatbelt use');
2066 INSERT INTO layout_options VALUES ('HIS','name_1' ,'5Other','Name/Value' ,1, 2,1,10,255,'',1,1,'','' ,'Name 1' );
2067 INSERT INTO layout_options VALUES ('HIS','value_1' ,'5Other','' ,2, 2,1,10,255,'',0,0,'','' ,'Value 1');
2068 INSERT INTO layout_options VALUES ('HIS','name_2' ,'5Other','Name/Value' ,3, 2,1,10,255,'',1,1,'','' ,'Name 2' );
2069 INSERT INTO layout_options VALUES ('HIS','value_2' ,'5Other','' ,4, 2,1,10,255,'',0,0,'','' ,'Value 2');
2070 INSERT INTO layout_options VALUES ('HIS','additional_history','5Other','Additional History',5, 3,1,30, 3,'',1,3,'' ,'' ,'Additional history notes');
2071 INSERT INTO layout_options VALUES ('HIS','userarea11' ,'5Other','User Defined Area 11',6,3,0,30,3,'',1,3,'','','User Defined');
2072 INSERT INTO layout_options VALUES ('HIS','userarea12' ,'5Other','User Defined Area 12',7,3,0,30,3,'',1,3,'','','User Defined');
2074 -- --------------------------------------------------------
2077 -- Table structure for table `list_options`
2080 DROP TABLE IF EXISTS `list_options`;
2081 CREATE TABLE `list_options` (
2082 `list_id` varchar(31) NOT NULL default '',
2083 `option_id` varchar(31) NOT NULL default '',
2084 `title` varchar(255) NOT NULL default '',
2085 `seq` int(11) NOT NULL default '0',
2086 `is_default` tinyint(1) NOT NULL default '0',
2087 `option_value` float NOT NULL default '0',
2088 `mapping` varchar(31) NOT NULL DEFAULT '',
2089 `notes` varchar(255) NOT NULL DEFAULT '',
2090 PRIMARY KEY (`list_id`,`option_id`)
2094 -- Dumping data for table `list_options`
2097 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('yesno', 'NO', 'NO', 1, 0);
2098 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('yesno', 'YES', 'YES', 2, 0);
2099 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Mr.', 'Mr.', 1, 0);
2100 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Mrs.', 'Mrs.', 2, 0);
2101 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Ms.', 'Ms.', 3, 0);
2102 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('titles', 'Dr.', 'Dr.', 4, 0);
2103 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sex', 'Female', 'Female', 1, 0);
2104 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sex', 'Male', 'Male', 2, 0);
2105 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'married', 'Married', 1, 0);
2106 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'single', 'Single', 2, 0);
2107 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'divorced', 'Divorced', 3, 0);
2108 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'widowed', 'Widowed', 4, 0);
2109 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'separated', 'Separated', 5, 0);
2110 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('marital', 'domestic partner', 'Domestic Partner', 6, 0);
2112 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'armenian', 'Armenian', 10, 0);
2113 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'chinese', 'Chinese', 20, 0);
2114 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'danish', 'Danish', 30, 0);
2115 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'deaf', 'Deaf', 40, 0);
2116 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'English', 'English', 50, 0);
2117 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'farsi', 'Farsi', 60, 0);
2118 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'french', 'French', 70, 0);
2119 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'german', 'German', 80, 0);
2120 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'greek', 'Greek', 90, 0);
2121 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'hmong', 'Hmong', 100, 0);
2122 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'italian', 'Italian', 110, 0);
2123 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'japanese', 'Japanese', 120, 0);
2124 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'korean', 'Korean', 130, 0);
2125 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'laotian', 'Laotian', 140, 0);
2126 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'mien', 'Mien', 150, 0);
2127 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'norwegian', 'Norwegian', 160, 0);
2128 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'othrs', 'Others', 170, 0);
2129 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'portuguese', 'Portuguese', 180, 0);
2130 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'punjabi', 'Punjabi', 190, 0);
2131 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'russian', 'Russian', 200, 0);
2132 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'Spanish', 'Spanish', 210, 0);
2133 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'tagalog', 'Tagalog', 220, 0);
2134 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'turkish', 'Turkish', 230, 0);
2135 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'vietnamese', 'Vietnamese', 240, 0);
2136 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'yiddish', 'Yiddish', 250, 0);
2137 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('language', 'zulu', 'Zulu', 260, 0);
2138 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'aleut', 'ALEUT', 10, 0);
2139 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'amer_indian', 'American Indian', 20, 0);
2140 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Asian', 'Asian', 30, 0);
2141 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Black', 'Black', 40, 0);
2142 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'cambodian', 'Cambodian', 50, 0);
2143 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Caucasian', 'Caucasian', 60, 0);
2144 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'cs_american', 'Central/South American', 70, 0);
2145 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'chinese', 'Chinese', 80, 0);
2146 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'cuban', 'Cuban', 90, 0);
2147 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'eskimo', 'Eskimo', 100, 0);
2148 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'filipino', 'Filipino', 110, 0);
2149 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'guamanian', 'Guamanian', 120, 0);
2150 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'hawaiian', 'Hawaiian', 130, 0);
2151 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'Hispanic', 'Hispanic', 140, 0);
2152 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr_us', 'Hispanic - Other (Born in US)', 150, 0);
2153 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr_non_us', 'Hispanic - Other (Born outside US)', 160, 0);
2154 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'hmong', 'Hmong', 170, 0);
2155 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'indian', 'Indian', 180, 0);
2156 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'japanese', 'Japanese', 190, 0);
2157 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'korean', 'Korean', 200, 0);
2158 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'laotian', 'Laotian', 210, 0);
2159 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'mexican', 'Mexican/MexAmer/Chicano', 220, 0);
2160 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'mlt-race', 'Multiracial', 230, 0);
2161 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr', 'Other', 240, 0);
2162 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'othr_spec', 'Other - Specified', 250, 0);
2163 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'pac_island', 'Pacific Islander', 260, 0);
2164 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'puerto_rican', 'Puerto Rican', 270, 0);
2165 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'refused', 'Refused To State', 280, 0);
2166 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'samoan', 'Samoan', 290, 0);
2167 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'spec', 'Specified', 300, 0);
2168 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'thai', 'Thai', 310, 0);
2169 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'unknown', 'Unknown', 320, 0);
2170 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'unspec', 'Unspecified', 330, 0);
2171 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'vietnamese', 'Vietnamese', 340, 0);
2172 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'white', 'White', 350, 0);
2173 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethrace', 'withheld', 'Withheld', 360, 0);
2175 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist1', 'sample', 'Sample', 1, 0);
2176 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist2', 'sample', 'Sample', 1, 0);
2177 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist3','sample','Sample',1,0);
2178 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist4','sample','Sample',1,0);
2179 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist5','sample','Sample',1,0);
2180 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist6','sample','Sample',1,0);
2181 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('userlist7','sample','Sample',1,0);
2182 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('pricelevel', 'standard', 'Standard', 1, 1);
2183 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('risklevel', 'low', 'Low', 1, 0);
2184 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('risklevel', 'medium', 'Medium', 2, 1);
2185 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('risklevel', 'high', 'High', 3, 0);
2186 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('boolean', '0', 'No', 1, 0);
2187 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('boolean', '1', 'Yes', 2, 0);
2188 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('country', 'USA', 'USA', 1, 0);
2190 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AL','Alabama' , 1,0);
2191 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AK','Alaska' , 2,0);
2192 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AZ','Arizona' , 3,0);
2193 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','AR','Arkansas' , 4,0);
2194 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','CA','California' , 5,0);
2195 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','CO','Colorado' , 6,0);
2196 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','CT','Connecticut' , 7,0);
2197 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','DE','Delaware' , 8,0);
2198 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','DC','District of Columbia', 9,0);
2199 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','FL','Florida' ,10,0);
2200 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','GA','Georgia' ,11,0);
2201 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','HI','Hawaii' ,12,0);
2202 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','ID','Idaho' ,13,0);
2203 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','IL','Illinois' ,14,0);
2204 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','IN','Indiana' ,15,0);
2205 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','IA','Iowa' ,16,0);
2206 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','KS','Kansas' ,17,0);
2207 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','KY','Kentucky' ,18,0);
2208 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','LA','Louisiana' ,19,0);
2209 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','ME','Maine' ,20,0);
2210 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MD','Maryland' ,21,0);
2211 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MA','Massachusetts' ,22,0);
2212 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MI','Michigan' ,23,0);
2213 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MN','Minnesota' ,24,0);
2214 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MS','Mississippi' ,25,0);
2215 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MO','Missouri' ,26,0);
2216 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','MT','Montana' ,27,0);
2217 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NE','Nebraska' ,28,0);
2218 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NV','Nevada' ,29,0);
2219 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NH','New Hampshire' ,30,0);
2220 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NJ','New Jersey' ,31,0);
2221 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NM','New Mexico' ,32,0);
2222 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NY','New York' ,33,0);
2223 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','NC','North Carolina' ,34,0);
2224 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','ND','North Dakota' ,35,0);
2225 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','OH','Ohio' ,36,0);
2226 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','OK','Oklahoma' ,37,0);
2227 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','OR','Oregon' ,38,0);
2228 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','PA','Pennsylvania' ,39,0);
2229 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','RI','Rhode Island' ,40,0);
2230 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','SC','South Carolina' ,41,0);
2231 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','SD','South Dakota' ,42,0);
2232 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','TN','Tennessee' ,43,0);
2233 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','TX','Texas' ,44,0);
2234 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','UT','Utah' ,45,0);
2235 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','VT','Vermont' ,46,0);
2236 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','VA','Virginia' ,47,0);
2237 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WA','Washington' ,48,0);
2238 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WV','West Virginia' ,49,0);
2239 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WI','Wisconsin' ,50,0);
2240 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('state','WY','Wyoming' ,51,0);
2242 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Patient' ,'Patient' , 1,0);
2243 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Employee' ,'Employee' , 2,0);
2244 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Walk-In' ,'Walk-In' , 3,0);
2245 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Newspaper' ,'Newspaper' , 4,0);
2246 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Radio' ,'Radio' , 5,0);
2247 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','T.V.' ,'T.V.' , 6,0);
2248 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Direct Mail' ,'Direct Mail' , 7,0);
2249 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Coupon' ,'Coupon' , 8,0);
2250 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Referral Card','Referral Card', 9,0);
2251 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('refsource','Other' ,'Other' ,10,0);
2252 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','vv' ,'Varicose Veins' , 1,0);
2253 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','ht' ,'Hypertension' , 2,0);
2254 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','db' ,'Diabetes' , 3,0);
2255 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','sc' ,'Sickle Cell' , 4,0);
2256 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','fib','Fibroids' , 5,0);
2257 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','pid','PID (Pelvic Inflammatory Disease)' , 6,0);
2258 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','mig','Severe Migraine' , 7,0);
2259 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','hd' ,'Heart Disease' , 8,0);
2260 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','str','Thrombosis/Stroke' , 9,0);
2261 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','hep','Hepatitis' ,10,0);
2262 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','gb' ,'Gall Bladder Condition' ,11,0);
2263 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','br' ,'Breast Disease' ,12,0);
2264 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','dpr','Depression' ,13,0);
2265 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','all','Allergies' ,14,0);
2266 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','inf','Infertility' ,15,0);
2267 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','ast','Asthma' ,16,0);
2268 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','ep' ,'Epilepsy' ,17,0);
2269 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','cl' ,'Contact Lenses' ,18,0);
2270 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','coc','Contraceptive Complication (specify)',19,0);
2271 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('riskfactors','oth','Other (specify)' ,20,0);
2272 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'brs','Breast Exam' , 1,0);
2273 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'cec','Cardiac Echo' , 2,0);
2274 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'ecg','ECG' , 3,0);
2275 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'gyn','Gynecological Exam' , 4,0);
2276 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'mam','Mammogram' , 5,0);
2277 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'phy','Physical Exam' , 6,0);
2278 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'pro','Prostate Exam' , 7,0);
2279 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'rec','Rectal Exam' , 8,0);
2280 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'sic','Sigmoid/Colonoscopy' , 9,0);
2281 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'ret','Retinal Exam' ,10,0);
2282 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'flu','Flu Vaccination' ,11,0);
2283 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'pne','Pneumonia Vaccination',12,0);
2284 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'ldl','LDL' ,13,0);
2285 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'hem','Hemoglobin' ,14,0);
2286 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('exams' ,'psa','PSA' ,15,0);
2287 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','0','' ,0,0);
2288 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','1','suspension' ,1,0);
2289 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','2','tablet' ,2,0);
2290 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','3','capsule' ,3,0);
2291 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','4','solution' ,4,0);
2292 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','5','tsp' ,5,0);
2293 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','6','ml' ,6,0);
2294 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','7','units' ,7,0);
2295 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','8','inhalations',8,0);
2296 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','9','gtts(drops)',9,0);
2297 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','10','cream' ,10,0);
2298 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_form','11','ointment',11,0);
2299 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','0','' ,0,0);
2300 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','1','mg' ,1,0);
2301 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','2','mg/1cc',2,0);
2302 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','3','mg/2cc',3,0);
2303 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','4','mg/3cc',4,0);
2304 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','5','mg/4cc',5,0);
2305 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','6','mg/5cc',6,0);
2306 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','7','mcg' ,7,0);
2307 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_units','8','grams' ,8,0);
2308 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '0','' , 0,0);
2309 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '1','Per Oris' , 1,0);
2310 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '2','Per Rectum' , 2,0);
2311 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '3','To Skin' , 3,0);
2312 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '4','To Affected Area' , 4,0);
2313 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '5','Sublingual' , 5,0);
2314 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '6','OS' , 6,0);
2315 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '7','OD' , 7,0);
2316 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '8','OU' , 8,0);
2317 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route', '9','SQ' , 9,0);
2318 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','10','IM' ,10,0);
2319 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','11','IV' ,11,0);
2320 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','12','Per Nostril' ,12,0);
2321 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','13','Both Ears',13,0);
2322 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','14','Left Ear' ,14,0);
2323 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_route','15','Right Ear',15,0);
2324 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','0','' ,0,0);
2325 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','1','b.i.d.',1,0);
2326 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','2','t.i.d.',2,0);
2327 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','3','q.i.d.',3,0);
2328 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','4','q.3h' ,4,0);
2329 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','5','q.4h' ,5,0);
2330 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','6','q.5h' ,6,0);
2331 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','7','q.6h' ,7,0);
2332 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','8','q.8h' ,8,0);
2333 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','9','q.d.' ,9,0);
2334 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','10','a.c.' ,10,0);
2335 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','11','p.c.' ,11,0);
2336 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','12','a.m.' ,12,0);
2337 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','13','p.m.' ,13,0);
2338 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','14','ante' ,14,0);
2339 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','15','h' ,15,0);
2340 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','16','h.s.' ,16,0);
2341 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','17','p.r.n.',17,0);
2342 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('drug_interval','18','stat' ,18,0);
2344 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('chartloc','fileroom','File Room' ,1,0);
2345 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'boolean' ,'Boolean' , 1,0);
2346 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'chartloc' ,'Chart Storage Locations',1,0);
2347 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'country' ,'Country' , 2,0);
2348 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_form' ,'Drug Forms' , 3,0);
2349 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_units' ,'Drug Units' , 4,0);
2350 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_route' ,'Drug Routes' , 5,0);
2351 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'drug_interval','Drug Intervals' , 6,0);
2352 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'exams' ,'Exams/Tests' , 7,0);
2353 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'feesheet' ,'Fee Sheet' , 8,0);
2354 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'language' ,'Language' , 9,0);
2355 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'lbfnames' ,'Layout-Based Visit Forms',9,0);
2356 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'marital' ,'Marital Status' ,10,0);
2357 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'pricelevel' ,'Price Level' ,11,0);
2358 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'ethrace' ,'Race/Ethnicity' ,12,0);
2359 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'refsource' ,'Referral Source' ,13,0);
2360 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'riskfactors' ,'Risk Factors' ,14,0);
2361 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'risklevel' ,'Risk Level' ,15,0);
2362 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'superbill' ,'Service Category' ,16,0);
2363 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'sex' ,'Sex' ,17,0);
2364 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'state' ,'State' ,18,0);
2365 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'taxrate' ,'Tax Rate' ,19,0);
2366 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'titles' ,'Titles' ,20,0);
2367 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'yesno' ,'Yes/No' ,21,0);
2368 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist1' ,'User Defined List 1',22,0);
2369 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist2' ,'User Defined List 2',23,0);
2370 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist3' ,'User Defined List 3',24,0);
2371 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist4' ,'User Defined List 4',25,0);
2372 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist5' ,'User Defined List 5',26,0);
2373 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist6' ,'User Defined List 6',27,0);
2374 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'userlist7' ,'User Defined List 7',28,0);
2376 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'adjreason' ,'Adjustment Reasons',1,0);
2377 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Adm adjust' ,'Adm adjust' , 5,1);
2378 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','After hrs calls','After hrs calls',10,1);
2379 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Bad check' ,'Bad check' ,15,1);
2380 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Bad debt' ,'Bad debt' ,20,1);
2381 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Coll w/o' ,'Coll w/o' ,25,1);
2382 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Discount' ,'Discount' ,30,1);
2383 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Hardship w/o' ,'Hardship w/o' ,35,1);
2384 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins adjust' ,'Ins adjust' ,40,1);
2385 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins bundling' ,'Ins bundling' ,45,1);
2386 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins overpaid' ,'Ins overpaid' ,50,5);
2387 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Ins refund' ,'Ins refund' ,55,5);
2388 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Pt overpaid' ,'Pt overpaid' ,60,5);
2389 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Pt refund' ,'Pt refund' ,65,5);
2390 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Pt released' ,'Pt released' ,70,1);
2391 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Sm debt w/o' ,'Sm debt w/o' ,75,1);
2392 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','To copay' ,'To copay' ,80,2);
2393 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','To ded\'ble' ,'To ded\'ble' ,85,3);
2394 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('adjreason','Untimely filing','Untimely filing',90,1);
2396 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'sub_relation','Subscriber Relationship',18,0);
2397 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','self' ,'Self' , 1,0);
2398 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','spouse' ,'Spouse' , 2,0);
2399 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','child' ,'Child' , 3,0);
2400 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('sub_relation','other' ,'Other' , 4,0);
2402 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'occurrence','Occurrence' ,10,0);
2403 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','0' ,'Unknown or N/A' , 5,0);
2404 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','1' ,'First' ,10,0);
2405 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','6' ,'Early Recurrence (<2 Mo)' ,15,0);
2406 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','7' ,'Late Recurrence (2-12 Mo)' ,20,0);
2407 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','8' ,'Delayed Recurrence (> 12 Mo)',25,0);
2408 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','4' ,'Chronic/Recurrent' ,30,0);
2409 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('occurrence','5' ,'Acute on Chronic' ,35,0);
2411 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'outcome','Outcome' ,10,0);
2412 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','0' ,'Unassigned' , 2,0);
2413 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','1' ,'Resolved' , 5,0);
2414 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','2' ,'Improved' ,10,0);
2415 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','3' ,'Status quo' ,15,0);
2416 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','4' ,'Worse' ,20,0);
2417 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('outcome','5' ,'Pending followup',25,0);
2419 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'note_type' ,'Patient Note Types',10,0);
2420 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Unassigned' ,'Unassigned' , 1,0);
2421 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Chart Note' ,'Chart Note' , 2,0);
2422 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Insurance' ,'Insurance' , 3,0);
2423 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','New Document' ,'New Document' , 4,0);
2424 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Pharmacy' ,'Pharmacy' , 5,0);
2425 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Prior Auth' ,'Prior Auth' , 6,0);
2426 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Referral' ,'Referral' , 7,0);
2427 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Test Scheduling','Test Scheduling' , 8,0);
2428 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Bill/Collect' ,'Bill/Collect' , 9,0);
2429 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Other' ,'Other' ,10,0);
2431 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'immunizations','Immunizations' , 8,0);
2432 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','1' ,'DTaP 1' , 30,0);
2433 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','2' ,'DTaP 2' , 35,0);
2434 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','3' ,'DTaP 3' , 40,0);
2435 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','4' ,'DTaP 4' , 45,0);
2436 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','5' ,'DTaP 5' , 50,0);
2437 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','6' ,'DT 1' , 5,0);
2438 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','7' ,'DT 2' , 10,0);
2439 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','8' ,'DT 3' , 15,0);
2440 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','9' ,'DT 4' , 20,0);
2441 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','10' ,'DT 5' , 25,0);
2442 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','11' ,'IPV 1' ,110,0);
2443 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','12' ,'IPV 2' ,115,0);
2444 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','13' ,'IPV 3' ,120,0);
2445 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','14' ,'IPV 4' ,125,0);
2446 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','15' ,'Hib 1' , 80,0);
2447 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','16' ,'Hib 2' , 85,0);
2448 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','17' ,'Hib 3' , 90,0);
2449 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','18' ,'Hib 4' , 95,0);
2450 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','19' ,'Pneumococcal Conjugate 1',140,0);
2451 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','20' ,'Pneumococcal Conjugate 2',145,0);
2452 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','21' ,'Pneumococcal Conjugate 3',150,0);
2453 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','22' ,'Pneumococcal Conjugate 4',155,0);
2454 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','23' ,'MMR 1' ,130,0);
2455 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','24' ,'MMR 2' ,135,0);
2456 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','25' ,'Varicella 1' ,165,0);
2457 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','26' ,'Varicella 2' ,170,0);
2458 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','27' ,'Hepatitis B 1' , 65,0);
2459 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','28' ,'Hepatitis B 2' , 70,0);
2460 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','29' ,'Hepatitis B 3' , 75,0);
2461 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','30' ,'Influenza 1' ,100,0);
2462 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','31' ,'Influenza 2' ,105,0);
2463 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','32' ,'Td' ,160,0);
2464 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','33' ,'Hepatitis A 1' , 55,0);
2465 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','34' ,'Hepatitis A 2' , 60,0);
2466 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('immunizations','35' ,'Other' ,175,0);
2468 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'apptstat','Appointment Statuses', 1,0);
2469 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','-' ,'- None' , 5,0);
2470 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','*' ,'* Reminder done' ,10,0);
2471 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','+' ,'+ Chart pulled' ,15,0);
2472 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','x' ,'x Canceled' ,20,0);
2473 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','?' ,'? No show' ,25,0);
2474 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','@' ,'@ Arrived' ,30,0);
2475 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','~' ,'~ Arrived late' ,35,0);
2476 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','!' ,'! Left w/o visit' ,40,0);
2477 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','#' ,'# Ins/fin issue' ,45,0);
2478 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','<' ,'< In exam room' ,50,0);
2479 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','>' ,'> Checked out' ,55,0);
2480 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','$' ,'$ Coding done' ,60,0);
2481 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('apptstat','%' ,'% Canceled < 24h' ,65,0);
2483 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'warehouse','Warehouses',21,0);
2484 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('warehouse','onsite' ,'On Site' , 5,0);
2486 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','abook_type' ,'Address Book Types' , 1,0);
2487 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','ord_img','Imaging Service' , 5,3);
2488 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','ord_imm','Immunization Service',10,3);
2489 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','ord_lab','Lab Service' ,15,3);
2490 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','spe' ,'Specialist' ,20,2);
2491 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','vendor' ,'Vendor' ,25,3);
2492 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','dist' ,'Distributor' ,30,3);
2493 INSERT INTO list_options ( list_id, option_id, title, seq, option_value ) VALUES ('abook_type','oth' ,'Other' ,95,1);
2495 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_type','Procedure Types', 1,0);
2496 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','grp','Group' ,10,0);
2497 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','ord','Procedure Order',20,0);
2498 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','res','Discrete Result',30,0);
2499 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_type','rec','Recommendation' ,40,0);
2501 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_body_site','Procedure Body Sites', 1,0);
2502 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_body_site','arm' ,'Arm' ,10,0);
2503 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_body_site','buttock','Buttock',20,0);
2504 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_body_site','oth' ,'Other' ,90,0);
2506 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_specimen','Procedure Specimen Types', 1,0);
2507 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','blood' ,'Blood' ,10,0);
2508 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','saliva','Saliva',20,0);
2509 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','urine' ,'Urine' ,30,0);
2510 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_specimen','oth' ,'Other' ,90,0);
2512 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_route','Procedure Routes', 1,0);
2513 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_route','inj' ,'Injection',10,0);
2514 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_route','oral','Oral' ,20,0);
2515 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_route','oth' ,'Other' ,90,0);
2517 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_lat','Procedure Lateralities', 1,0);
2518 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_lat','left' ,'Left' ,10,0);
2519 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_lat','right','Right' ,20,0);
2520 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_lat','bilat','Bilateral',30,0);
2522 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('lists','proc_unit','Procedure Units', 1);
2523 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','bool' ,'Boolean' , 5);
2524 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','cu_mm' ,'CU.MM' , 10);
2525 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','fl' ,'FL' , 20);
2526 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','g_dl' ,'G/DL' , 30);
2527 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','gm_dl' ,'GM/DL' , 40);
2528 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','hmol_l' ,'HMOL/L' , 50);
2529 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','iu_l' ,'IU/L' , 60);
2530 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','mg_dl' ,'MG/DL' , 70);
2531 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','mil_cu_mm' ,'Mil/CU.MM' , 80);
2532 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','percent' ,'Percent' , 90);
2533 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','percentile' ,'Percentile' ,100);
2534 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','pg' ,'PG' ,110);
2535 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','ratio' ,'Ratio' ,120);
2536 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','thous_cu_mm','Thous/CU.MM',130);
2537 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','units' ,'Units' ,140);
2538 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','units_l' ,'Units/L' ,150);
2539 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','days' ,'Days' ,600);
2540 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','weeks' ,'Weeks' ,610);
2541 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','months' ,'Months' ,620);
2542 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('proc_unit','oth' ,'Other' ,990);
2544 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','ord_priority','Order Priorities', 1,0);
2545 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_priority','high' ,'High' ,10,0);
2546 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_priority','normal','Normal',20,0);
2548 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','ord_status','Order Statuses', 1,0);
2549 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','pending' ,'Pending' ,10,0);
2550 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','routed' ,'Routed' ,20,0);
2551 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','complete','Complete',30,0);
2552 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ord_status','canceled','Canceled',40,0);
2554 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_rep_status','Procedure Report Statuses', 1,0);
2555 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','final' ,'Final' ,10,0);
2556 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','review' ,'Reviewed' ,20,0);
2557 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','prelim' ,'Preliminary',30,0);
2558 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','cancel' ,'Canceled' ,40,0);
2559 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','error' ,'Error' ,50,0);
2560 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_rep_status','correct','Corrected' ,60,0);
2562 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_res_abnormal','Procedure Result Abnormal', 1,0);
2563 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','no' ,'No' ,10,0);
2564 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','yes' ,'Yes' ,20,0);
2565 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','high','High',30,0);
2566 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_abnormal','low' ,'Low' ,40,0);
2568 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_res_status','Procedure Result Statuses', 1,0);
2569 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','final' ,'Final' ,10,0);
2570 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','prelim' ,'Preliminary',20,0);
2571 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','cancel' ,'Canceled' ,30,0);
2572 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','error' ,'Error' ,40,0);
2573 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','correct' ,'Corrected' ,50,0);
2574 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_status','incomplete','Incomplete' ,60,0);
2576 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists','proc_res_bool','Procedure Boolean Results', 1,0);
2577 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_bool','neg' ,'Negative',10,0);
2578 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('proc_res_bool','pos' ,'Positive',20,0);
2580 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'message_status','Message Status',45,0);
2581 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','Done' ,'Done' , 5,0);
2582 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','Forwarded' ,'Forwarded' ,10,0);
2583 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','New' ,'New' ,15,0);
2584 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('message_status','Read' ,'Read' ,20,0);
2586 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Lab Results' ,'Lab Results', 15,0);
2587 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','New Orders' ,'New Orders', 20,0);
2588 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('note_type','Patient Reminders' ,'Patient Reminders', 25,0);
2590 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'irnpool','Invoice Reference Number Pools', 1,0);
2591 INSERT INTO list_options ( list_id, option_id, title, seq, is_default, notes ) VALUES ('irnpool','main','Main',1,1,'000001');
2593 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists', 'eligibility', 'Eligibility', 60, 0);
2594 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('eligibility', 'eligible', 'Eligible', 10, 0);
2595 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('eligibility', 'ineligible', 'Ineligible', 20, 0);
2597 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists', 'transactions', 'Transactions', 20, 0);
2598 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Referral', 'Referral', 10, 0);
2599 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Patient Request', 'Patient Request', 20, 0);
2600 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Physician Request', 'Physician Request', 30, 0);
2601 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Legal', 'Legal', 40, 0);
2602 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('transactions', 'Billing', 'Billing', 50, 0);
2605 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'payment_adjustment_code','Payment Adjustment Code', 1,0);
2606 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'family_payment', 'Family Payment', 20, 0);
2607 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'group_payment', 'Group Payment', 30, 0);
2608 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'insurance_payment', 'Insurance Payment', 40, 0);
2609 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'patient_payment', 'Patient Payment', 50, 0);
2610 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_adjustment_code', 'pre_payment', 'Pre Payment', 60, 0);
2612 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'payment_ins','Payment Ins', 1,0);
2613 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '0', 'Pat', 40, 0);
2614 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '1', 'Ins1', 10, 0);
2615 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '2', 'Ins2', 20, 0);
2616 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_ins', '3', 'Ins3', 30, 0);
2618 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'payment_method','Payment Method', 1,0);
2619 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'bank_draft', 'Bank Draft', 50, 0);
2620 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'cash', 'Cash', 20, 0);
2621 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'check_payment', 'Check Payment', 10, 0);
2622 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'credit_card', 'Credit Card', 30, 0);
2623 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_method', 'electronic', 'Electronic', 40, 0);
2625 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'payment_sort_by','Payment Sort By', 1,0);
2626 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'check_date', 'Check Date', 20, 0);
2627 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'payer_id', 'Ins Code', 40, 0);
2628 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'payment_method', 'Payment Method', 50, 0);
2629 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'payment_type', 'Paying Entity', 30, 0);
2630 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'pay_total', 'Amount', 70, 0);
2631 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'reference', 'Check Number', 60, 0);
2632 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_sort_by', 'session_id', 'Id', 10, 0);
2634 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'payment_status','Payment Status', 1,0);
2635 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_status', 'fully_paid', 'Fully Paid', 10, 0);
2636 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_status', 'unapplied', 'Unapplied', 20, 0);
2638 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'payment_type','Payment Type', 1,0);
2639 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_type', 'insurance', 'Insurance', 10, 0);
2640 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_type', 'patient', 'Patient', 20, 0);
2642 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists', 'date_master_criteria', 'Date Master Criteria', 33, 1);
2643 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'all', 'All', 10, 0);
2644 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'today', 'Today', 20, 0);
2645 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);
2646 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'last_month', 'Last Month', 40, 0);
2647 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);
2648 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'this_calendar_year', 'This Calendar Year', 60, 0);
2649 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'last_calendar_year', 'Last Calendar Year', 70, 0);
2650 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('date_master_criteria', 'custom', 'Custom', 80, 0);
2652 -- Clinical Plan Titles
2653 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'clinical_plans','Clinical Plans', 3, 0);
2654 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'dm_plan_cqm', 'Diabetes Mellitus', 5, 0);
2655 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'ckd_plan_cqm', 'Chronic Kidney Disease (CKD)', 10, 0);
2656 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'prevent_plan_cqm', 'Preventative Care', 15, 0);
2657 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'periop_plan_cqm', 'Perioperative Care', 20, 0);
2658 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'rheum_arth_plan_cqm', 'Rheumatoid Arthritis', 25, 0);
2659 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'back_pain_plan_cqm', 'Back Pain', 30, 0);
2660 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'cabg_plan_cqm', 'Coronary Artery Bypass Graft (CABG)', 35, 0);
2661 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'dm_plan', 'Diabetes Mellitus', 500, 0);
2662 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_plans', 'prevent_plan', 'Preventative Care', 510, 0);
2664 -- Clinical Rule Titles
2665 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'clinical_rules','Clinical Rules', 3, 0);
2666 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'problem_list_amc', 'Maintain an up-to-date problem list of current and active diagnoses.', 5, 0);
2667 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'med_list_amc', 'Maintain active medication list.', 10, 0);
2668 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'med_allergy_list_amc', 'Maintain active medication allergy list.', 15, 0);
2669 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'record_vitals_amc', 'Record and chart changes in vital signs.', 20, 0);
2670 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'record_smoke_amc', 'Record smoking status for patients 13 years old or older.', 25, 0);
2671 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'lab_result_amc', 'Incorporate clinical lab-test results into certified EHR technology as structured data.', 30, 0);
2672 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'med_reconc_amc', 'The EP, eligible hospital or CAH who receives a patient from another setting of care or provider of care or believes an encounter is relevant should perform medication reconciliation.', 35, 0);
2673 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'patient_edu_amc', 'Use certified EHR technology to identify patient-specific education resources and provide those resources to the patient if appropriate.', 40, 0);
2674 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'cpoe_med_amc', 'Use CPOE for medication orders directly entered by any licensed healthcare professional who can enter orders into the medical record per state, local and professional guidelines.', 45, 0);
2675 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'e_prescribe_amc', 'Generate and transmit permissible prescriptions electronically.', 50, 0);
2676 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'record_dem_amc', 'Record demographics.', 55, 0);
2677 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'send_reminder_amc', 'Send reminders to patients per patient preference for preventive/follow up care.', 60, 0);
2678 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'provide_rec_pat_amc', 'Provide patients with an electronic copy of their health information (including diagnostic test results, problem list, medication lists, medication allergies), upon request.', 65, 0);
2679 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'timely_access_amc', 'Provide patients with timely electronic access to their health information (including lab results, problem list, medication lists, medication allergies) within four business days of the information being available to the EP.', 70, 0);
2680 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'provide_sum_pat_amc', 'Provide clinical summaries for patients for each office visit.', 75, 0);
2681 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'send_sum_amc', 'The EP, eligible hospital or CAH who transitions their patient to another setting of care or provider of care or refers their patient to another provider of care should provide summary of care record for each transition of care or referral.', 80, 0);
2682 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_htn_bp_measure_cqm', 'Hypertension: Blood Pressure Measurement (CQM)', 200, 0);
2683 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_tob_use_assess_cqm', 'Tobacco Use Assessment (CQM)', 205, 0);
2684 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_tob_cess_inter_cqm', 'Tobacco Cessation Intervention (CQM)', 210, 0);
2685 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_adult_wt_screen_fu_cqm', 'Adult Weight Screening and Follow-Up (CQM)', 220, 0);
2686 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_wt_assess_couns_child_cqm', 'Weight Assessment and Counseling for Children and Adolescents (CQM)', 230, 0);
2687 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_influenza_ge_50_cqm', 'Influenza Immunization for Patients >= 50 Years Old (CQM)', 240, 0);
2688 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_child_immun_stat_cqm', 'Childhood immunization Status (CQM)', 250, 0);
2689 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_pneumovacc_ge_65_cqm', 'Pneumonia Vaccination Status for Older Adults (CQM)', 260, 0);
2690 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_dm_eye_cqm', 'Diabetes: Eye Exam (CQM)', 270, 0);
2691 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_dm_foot_cqm', 'Diabetes: Foot Exam (CQM)', 280, 0);
2692 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_dm_bp_control_cqm', 'Diabetes: Blood Pressure Management (CQM)', 290, 0);
2693 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_htn_bp_measure', 'Hypertension: Blood Pressure Measurement', 500, 0);
2694 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_tob_use_assess', 'Tobacco Use Assessment', 510, 0);
2695 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_tob_cess_inter', 'Tobacco Cessation Intervention', 520, 0);
2696 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_adult_wt_screen_fu', 'Adult Weight Screening and Follow-Up', 530, 0);
2697 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_wt_assess_couns_child', 'Weight Assessment and Counseling for Children and Adolescents', 540, 0);
2698 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_influenza_ge_50', 'Influenza Immunization for Patients >= 50 Years Old', 550, 0);
2699 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_pneumovacc_ge_65', 'Pneumonia Vaccination Status for Older Adults', 570, 0);
2700 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_dm_hemo_a1c', 'Diabetes: Hemoglobin A1C', 570, 0);
2701 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_dm_urine_alb', 'Diabetes: Urine Microalbumin', 590, 0);
2702 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_dm_eye', 'Diabetes: Eye Exam', 600, 0);
2703 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_dm_foot', 'Diabetes: Foot Exam', 610, 0);
2704 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_cs_mammo', 'Cancer Screening: Mammogram', 620, 0);
2705 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_cs_pap', 'Cancer Screening: Pap Smear', 630, 0);
2706 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_cs_colon', 'Cancer Screening: Colon Cancer Screening', 640, 0);
2707 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_cs_prostate', 'Cancer Screening: Prostate Cancer Screening', 650, 0);
2708 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_inr_monitor', 'Coumadin Management - INR Monitoring', 1000, 0);
2709 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('clinical_rules', 'rule_appt_reminder', 'Appointment Reminder Rule', 2000, 0);
2711 -- Clinical Rule Target Methods
2712 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_targets', 'Clinical Rule Target Methods', 3, 0);
2713 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_targets' ,'target_database', 'Database', 10, 0);
2714 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_targets' ,'target_interval', 'Interval', 20, 0);
2715 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_targets' ,'target_proc', 'Procedure', 20, 0);
2717 -- Clinical Rule Target Intervals
2718 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_target_intervals', 'Clinical Rules Target Intervals', 3, 0);
2719 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'year', 'Year', 10, 0);
2720 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'month', 'Month', 20, 0);
2721 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'week', 'Week', 30, 0);
2722 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'day', 'Day', 40, 0);
2723 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'hour', 'Hour', 50, 0);
2724 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'minute', 'Minute', 60, 0);
2725 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'second', 'Second', 70, 0);
2726 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_target_intervals' ,'flu_season', 'Flu Season', 80, 0);
2728 -- Clinical Rule Comparisons
2729 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_comparisons', 'Clinical Rules Comparisons', 3, 0);
2730 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_comparisons' ,'EXIST', 'Exist', 10, 0);
2731 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_comparisons' ,'lt', 'Less Than', 20, 0);
2732 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_comparisons' ,'le', 'Less Than or Equal To', 30, 0);
2733 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_comparisons' ,'gt', 'Greater Than', 40, 0);
2734 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_comparisons' ,'ge', 'Greater Than or Equal To', 50, 0);
2736 -- Clinical Rule Filter Methods
2737 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_filters','Clinical Rule Filter Methods', 3, 0);
2738 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_filters', 'filt_database', 'Database', 10, 0);
2739 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_filters', 'filt_diagnosis', 'Diagnosis', 20, 0);
2740 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_filters', 'filt_sex', 'Gender', 30, 0);
2741 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_filters', 'filt_age_max', 'Maximum Age', 40, 0);
2742 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_filters', 'filt_age_min', 'Minimum Age', 50, 0);
2744 -- Clinical Rule Age Intervals
2745 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_age_intervals', 'Clinical Rules Age Intervals', 3, 0);
2746 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_age_intervals' ,'year', 'Year', 10, 0);
2747 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_age_intervals' ,'month', 'Month', 20, 0);
2749 -- Encounter Types (needed for mapping encounters for CQM rules)
2750 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_enc_types', 'Clinical Rules Encounter Types', 3, 0);
2751 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_outpatient', 'encounter outpatient', 10, 0);
2752 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_nurs_fac', 'encounter nursing facility', 20, 0);
2753 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_off_vis', 'encounter office visit', 30, 0);
2754 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_hea_and_beh', 'encounter health and behavior assessment', 40, 0);
2755 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_occ_ther', 'encounter occupational therapy', 50, 0);
2756 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_psych_and_psych', 'encounter psychiatric & psychologic', 60, 0);
2757 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_pre_med_ser_18_older', 'encounter preventive medicine services 18 and older', 70, 0);
2758 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_pre_ind_counsel', 'encounter preventive medicine - individual counseling', 80, 0);
2759 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_pre_med_group_counsel', 'encounter preventive medicine group counseling', 90, 0);
2760 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_pre_med_other_serv', 'encounter preventive medicine other services', 100, 0);
2761 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_out_pcp_obgyn', 'encounter outpatient w/PCP & obgyn', 110, 0);
2762 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_pregnancy', 'encounter pregnancy', 120, 0);
2763 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_nurs_discharge', 'encounter nursing discharge', 130, 0);
2764 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_acute_inp_or_ed', 'encounter acute inpatient or ED', 130, 0);
2765 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_enc_types' ,'enc_nonac_inp_out_or_opth', 'Encounter: encounter non-acute inpt, outpatient, or ophthalmology', 140, 0);
2767 -- Clinical Rule Action Categories
2768 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_action_category', 'Clinical Rule Action Category', 3, 0);
2769 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action_category' ,'act_cat_assess', 'Assessment', 10, 0);
2770 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action_category' ,'act_cat_edu', 'Education', 20, 0);
2771 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action_category' ,'act_cat_exam', 'Examination', 30, 0);
2772 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action_category' ,'act_cat_inter', 'Intervention', 40, 0);
2773 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action_category' ,'act_cat_measure', 'Measurement', 50, 0);
2774 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action_category' ,'act_cat_treat', 'Treatment', 60, 0);
2775 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action_category' ,'act_cat_remind', 'Reminder', 70, 0);
2777 -- Clinical Rule Action Items
2778 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_action', 'Clinical Rule Action Item', 3, 0);
2779 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_bp', 'Blood Pressure', 10, 0);
2780 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_influvacc', 'Influenza Vaccine', 20, 0);
2781 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_tobacco', 'Tobacco', 30, 0);
2782 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_wt', 'Weight', 40, 0);
2783 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_pneumovacc', 'Pneumococcal Vaccine', 60, 0);
2784 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_hemo_a1c', 'Hemoglobin A1C', 70, 0);
2785 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_urine_alb', 'Urine Microalbumin', 80, 0);
2786 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_eye', 'Opthalmic', 90, 0);
2787 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_foot', 'Podiatric', 100, 0);
2788 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_mammo', 'Mammogram', 110, 0);
2789 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_pap', 'Pap Smear', 120, 0);
2790 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_colon_cancer_screen', 'Colon Cancer Screening', 130, 0);
2791 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_prostate_cancer_screen', 'Prostate Cancer Screening', 140, 0);
2792 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_lab_inr', 'INR', 150, 0);
2793 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_action' ,'act_appointment', 'Appointment', 160, 0);
2795 -- Clinical Rule Reminder Intervals
2796 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_reminder_intervals', 'Clinical Rules Reminder Intervals', 3, 0);
2797 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_intervals' ,'month', 'Month', 10, 0);
2798 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_intervals' ,'week', 'Week', 20, 0);
2800 -- Clinical Rule Reminder Methods
2801 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_reminder_methods', 'Clinical Rules Reminder Methods', 3, 0);
2802 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_methods' ,'clinical_reminder_pre', 'Past Due Interval (Clinical Reminders)', 10, 0);
2803 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_methods' ,'patient_reminder_pre', 'Past Due Interval (Patient Reminders)', 20, 0);
2804 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_methods' ,'clinical_reminder_post', 'Soon Due Interval (Clinical Reminders)', 30, 0);
2805 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_methods' ,'patient_reminder_post', 'Soon Due Interval (Patient Reminders)', 40, 0);
2807 -- Clinical Rule Reminder Due Options
2808 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_reminder_due_opt', 'Clinical Rules Reminder Due Options', 3, 0);
2809 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_due_opt' ,'due', 'Due', 10, 0);
2810 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_due_opt' ,'soon_due', 'Due Soon', 20, 0);
2811 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_due_opt' ,'past_due', 'Past Due', 30, 0);
2812 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_due_opt' ,'not_due', 'Not Due', 30, 0);
2814 -- Clinical Rule Reminder Inactivate Options
2815 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('lists' ,'rule_reminder_inactive_opt', 'Clinical Rules Reminder Inactivation Options', 3, 0);
2816 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_inactive_opt' ,'auto', 'Automatic', 10, 0);
2817 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_inactive_opt' ,'due_status_update', 'Due Status Update', 20, 0);
2818 INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES ('rule_reminder_inactive_opt' ,'manual', 'Manual', 20, 0);
2820 -- --------------------------------------------------------
2823 -- Table structure for table `lists`
2826 DROP TABLE IF EXISTS `lists`;
2827 CREATE TABLE `lists` (
2828 `id` bigint(20) NOT NULL auto_increment,
2829 `date` datetime default NULL,
2830 `type` varchar(255) default NULL,
2831 `title` varchar(255) default NULL,
2832 `begdate` date default NULL,
2833 `enddate` date default NULL,
2834 `returndate` date default NULL,
2835 `occurrence` int(11) default '0',
2836 `classification` int(11) default '0',
2837 `referredby` varchar(255) default NULL,
2838 `extrainfo` varchar(255) default NULL,
2839 `diagnosis` varchar(255) default NULL,
2840 `activity` tinyint(4) default NULL,
2841 `comments` longtext,
2842 `pid` bigint(20) default NULL,
2843 `user` varchar(255) default NULL,
2844 `groupname` varchar(255) default NULL,
2845 `outcome` int(11) NOT NULL default '0',
2846 `destination` varchar(255) default NULL,
2847 `reinjury_id` bigint(20) NOT NULL DEFAULT 0,
2848 `injury_part` varchar(31) NOT NULL DEFAULT '',
2849 `injury_type` varchar(31) NOT NULL DEFAULT '',
2850 `injury_grade` varchar(31) NOT NULL DEFAULT '',
2851 `reaction` varchar(255) NOT NULL DEFAULT '',
2853 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2855 -- --------------------------------------------------------
2858 -- Table structure for table `log`
2861 DROP TABLE IF EXISTS `log`;
2862 CREATE TABLE `log` (
2863 `id` bigint(20) NOT NULL auto_increment,
2864 `date` datetime default NULL,
2865 `event` varchar(255) default NULL,
2866 `user` varchar(255) default NULL,
2867 `groupname` varchar(255) default NULL,
2868 `comments` longtext,
2869 `user_notes` longtext,
2870 `patient_id` bigint(20) default NULL,
2871 `success` tinyint(1) default 1,
2872 `checksum` longtext default NULL,
2873 `crt_user` varchar(255) default NULL,
2875 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2877 -- --------------------------------------------------------
2880 -- Table structure for table `notes`
2883 DROP TABLE IF EXISTS `notes`;
2884 CREATE TABLE `notes` (
2885 `id` int(11) NOT NULL default '0',
2886 `foreign_id` int(11) NOT NULL default '0',
2887 `note` varchar(255) default NULL,
2888 `owner` int(11) default NULL,
2889 `date` datetime default NULL,
2890 `revision` timestamp NOT NULL,
2892 KEY `foreign_id` (`owner`),
2893 KEY `foreign_id_2` (`foreign_id`),
2897 -- --------------------------------------------------------
2900 -- Table structure for table `onotes`
2903 DROP TABLE IF EXISTS `onotes`;
2904 CREATE TABLE `onotes` (
2905 `id` bigint(20) NOT NULL auto_increment,
2906 `date` datetime default NULL,
2908 `user` varchar(255) default NULL,
2909 `groupname` varchar(255) default NULL,
2910 `activity` tinyint(4) default NULL,
2912 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
2914 -- --------------------------------------------------------
2917 -- Table structure for table `openemr_module_vars`
2920 DROP TABLE IF EXISTS `openemr_module_vars`;
2921 CREATE TABLE `openemr_module_vars` (
2922 `pn_id` int(11) unsigned NOT NULL auto_increment,
2923 `pn_modname` varchar(64) default NULL,
2924 `pn_name` varchar(64) default NULL,
2925 `pn_value` longtext,
2926 PRIMARY KEY (`pn_id`),
2927 KEY `pn_modname` (`pn_modname`),
2928 KEY `pn_name` (`pn_name`)
2929 ) ENGINE=MyISAM AUTO_INCREMENT=235 ;
2932 -- Dumping data for table `openemr_module_vars`
2935 INSERT INTO `openemr_module_vars` VALUES (234, 'PostCalendar', 'pcNotifyEmail', '');
2936 INSERT INTO `openemr_module_vars` VALUES (233, 'PostCalendar', 'pcNotifyAdmin', '0');
2937 INSERT INTO `openemr_module_vars` VALUES (232, 'PostCalendar', 'pcCacheLifetime', '3600');
2938 INSERT INTO `openemr_module_vars` VALUES (231, 'PostCalendar', 'pcUseCache', '0');
2939 INSERT INTO `openemr_module_vars` VALUES (230, 'PostCalendar', 'pcDefaultView', 'day');
2940 INSERT INTO `openemr_module_vars` VALUES (229, 'PostCalendar', 'pcTimeIncrement', '5');
2941 INSERT INTO `openemr_module_vars` VALUES (228, 'PostCalendar', 'pcAllowUserCalendar', '1');
2942 INSERT INTO `openemr_module_vars` VALUES (227, 'PostCalendar', 'pcAllowSiteWide', '1');
2943 INSERT INTO `openemr_module_vars` VALUES (226, 'PostCalendar', 'pcTemplate', 'default');
2944 INSERT INTO `openemr_module_vars` VALUES (225, 'PostCalendar', 'pcEventDateFormat', '%Y-%m-%d');
2945 INSERT INTO `openemr_module_vars` VALUES (224, 'PostCalendar', 'pcDisplayTopics', '0');
2946 INSERT INTO `openemr_module_vars` VALUES (223, 'PostCalendar', 'pcListHowManyEvents', '15');
2947 INSERT INTO `openemr_module_vars` VALUES (222, 'PostCalendar', 'pcAllowDirectSubmit', '1');
2948 INSERT INTO `openemr_module_vars` VALUES (221, 'PostCalendar', 'pcUsePopups', '0');
2949 INSERT INTO `openemr_module_vars` VALUES (220, 'PostCalendar', 'pcDayHighlightColor', '#EEEEEE');
2950 INSERT INTO `openemr_module_vars` VALUES (219, 'PostCalendar', 'pcFirstDayOfWeek', '1');
2951 INSERT INTO `openemr_module_vars` VALUES (218, 'PostCalendar', 'pcUseInternationalDates', '0');
2952 INSERT INTO `openemr_module_vars` VALUES (217, 'PostCalendar', 'pcEventsOpenInNewWindow', '0');
2953 INSERT INTO `openemr_module_vars` VALUES (216, 'PostCalendar', 'pcTime24Hours', '0');
2955 -- --------------------------------------------------------
2958 -- Table structure for table `openemr_modules`
2961 DROP TABLE IF EXISTS `openemr_modules`;
2962 CREATE TABLE `openemr_modules` (
2963 `pn_id` int(11) unsigned NOT NULL auto_increment,
2964 `pn_name` varchar(64) default NULL,
2965 `pn_type` int(6) NOT NULL default '0',
2966 `pn_displayname` varchar(64) default NULL,
2967 `pn_description` varchar(255) default NULL,
2968 `pn_regid` int(11) unsigned NOT NULL default '0',
2969 `pn_directory` varchar(64) default NULL,
2970 `pn_version` varchar(10) default NULL,
2971 `pn_admin_capable` tinyint(1) NOT NULL default '0',
2972 `pn_user_capable` tinyint(1) NOT NULL default '0',
2973 `pn_state` tinyint(1) NOT NULL default '0',
2974 PRIMARY KEY (`pn_id`)
2975 ) ENGINE=MyISAM AUTO_INCREMENT=47 ;
2978 -- Dumping data for table `openemr_modules`
2981 INSERT INTO `openemr_modules` VALUES (46, 'PostCalendar', 2, 'PostCalendar', 'PostNuke Calendar Module', 0, 'PostCalendar', '4.0.0', 1, 1, 3);
2983 -- --------------------------------------------------------
2986 -- Table structure for table `openemr_postcalendar_categories`
2989 DROP TABLE IF EXISTS `openemr_postcalendar_categories`;
2990 CREATE TABLE `openemr_postcalendar_categories` (
2991 `pc_catid` int(11) unsigned NOT NULL auto_increment,
2992 `pc_catname` varchar(100) default NULL,
2993 `pc_catcolor` varchar(50) default NULL,
2995 `pc_recurrtype` int(1) NOT NULL default '0',
2996 `pc_enddate` date default NULL,
2997 `pc_recurrspec` text,
2998 `pc_recurrfreq` int(3) NOT NULL default '0',
2999 `pc_duration` bigint(20) NOT NULL default '0',
3000 `pc_end_date_flag` tinyint(1) NOT NULL default '0',
3001 `pc_end_date_type` int(2) default NULL,
3002 `pc_end_date_freq` int(11) NOT NULL default '0',
3003 `pc_end_all_day` tinyint(1) NOT NULL default '0',
3004 `pc_dailylimit` int(2) NOT NULL default '0',
3005 `pc_cattype` INT( 11 ) NOT NULL COMMENT 'Used in grouping categories',
3006 PRIMARY KEY (`pc_catid`),
3007 KEY `basic_cat` (`pc_catname`,`pc_catcolor`)
3008 ) ENGINE=MyISAM AUTO_INCREMENT=11 ;
3011 -- Dumping data for table `openemr_postcalendar_categories`
3014 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,0);
3015 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, 1);
3016 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, 0);
3017 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, 1);
3018 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, 1);
3019 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, 1);
3020 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, 0);
3021 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, 0);
3022 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, 1);
3024 -- --------------------------------------------------------
3027 -- Table structure for table `openemr_postcalendar_events`
3030 DROP TABLE IF EXISTS `openemr_postcalendar_events`;
3031 CREATE TABLE `openemr_postcalendar_events` (
3032 `pc_eid` int(11) unsigned NOT NULL auto_increment,
3033 `pc_catid` int(11) NOT NULL default '0',
3034 `pc_multiple` int(10) unsigned NOT NULL,
3035 `pc_aid` varchar(30) default NULL,
3036 `pc_pid` varchar(11) default NULL,
3037 `pc_title` varchar(150) default NULL,
3038 `pc_time` datetime default NULL,
3040 `pc_comments` int(11) default '0',
3041 `pc_counter` mediumint(8) unsigned default '0',
3042 `pc_topic` int(3) NOT NULL default '1',
3043 `pc_informant` varchar(20) default NULL,
3044 `pc_eventDate` date NOT NULL default '0000-00-00',
3045 `pc_endDate` date NOT NULL default '0000-00-00',
3046 `pc_duration` bigint(20) NOT NULL default '0',
3047 `pc_recurrtype` int(1) NOT NULL default '0',
3048 `pc_recurrspec` text,
3049 `pc_recurrfreq` int(3) NOT NULL default '0',
3050 `pc_startTime` time default NULL,
3051 `pc_endTime` time default NULL,
3052 `pc_alldayevent` int(1) NOT NULL default '0',
3054 `pc_conttel` varchar(50) default NULL,
3055 `pc_contname` varchar(50) default NULL,
3056 `pc_contemail` varchar(255) default NULL,
3057 `pc_website` varchar(255) default NULL,
3058 `pc_fee` varchar(50) default NULL,
3059 `pc_eventstatus` int(11) NOT NULL default '0',
3060 `pc_sharing` int(11) NOT NULL default '0',
3061 `pc_language` varchar(30) default NULL,
3062 `pc_apptstatus` varchar(15) NOT NULL default '-',
3063 `pc_prefcatid` int(11) NOT NULL default '0',
3064 `pc_facility` smallint(6) NOT NULL default '0' COMMENT 'facility id for this event',
3065 `pc_sendalertsms` VARCHAR(3) NOT NULL DEFAULT 'NO',
3066 `pc_sendalertemail` VARCHAR( 3 ) NOT NULL DEFAULT 'NO',
3067 `pc_billing_location` SMALLINT (6) NOT NULL DEFAULT '0',
3068 PRIMARY KEY (`pc_eid`),
3069 KEY `basic_event` (`pc_catid`,`pc_aid`,`pc_eventDate`,`pc_endDate`,`pc_eventstatus`,`pc_sharing`,`pc_topic`)
3070 ) ENGINE=MyISAM AUTO_INCREMENT=7 ;
3073 -- Dumping data for table `openemr_postcalendar_events`
3076 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');
3077 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');
3078 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');
3080 -- --------------------------------------------------------
3083 -- Table structure for table `openemr_postcalendar_limits`
3086 DROP TABLE IF EXISTS `openemr_postcalendar_limits`;
3087 CREATE TABLE `openemr_postcalendar_limits` (
3088 `pc_limitid` int(11) NOT NULL auto_increment,
3089 `pc_catid` int(11) NOT NULL default '0',
3090 `pc_starttime` time NOT NULL default '00:00:00',
3091 `pc_endtime` time NOT NULL default '00:00:00',
3092 `pc_limit` int(11) NOT NULL default '1',
3093 PRIMARY KEY (`pc_limitid`)
3094 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3096 -- --------------------------------------------------------
3099 -- Table structure for table `openemr_postcalendar_topics`
3102 DROP TABLE IF EXISTS `openemr_postcalendar_topics`;
3103 CREATE TABLE `openemr_postcalendar_topics` (
3104 `pc_catid` int(11) unsigned NOT NULL auto_increment,
3105 `pc_catname` varchar(100) default NULL,
3106 `pc_catcolor` varchar(50) default NULL,
3108 PRIMARY KEY (`pc_catid`),
3109 KEY `basic_cat` (`pc_catname`,`pc_catcolor`)
3110 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3112 -- --------------------------------------------------------
3115 -- Table structure for table `openemr_session_info`
3118 DROP TABLE IF EXISTS `openemr_session_info`;
3119 CREATE TABLE `openemr_session_info` (
3120 `pn_sessid` varchar(32) NOT NULL default '',
3121 `pn_ipaddr` varchar(20) default NULL,
3122 `pn_firstused` int(11) NOT NULL default '0',
3123 `pn_lastused` int(11) NOT NULL default '0',
3124 `pn_uid` int(11) NOT NULL default '0',
3126 PRIMARY KEY (`pn_sessid`)
3130 -- Dumping data for table `openemr_session_info`
3133 INSERT INTO `openemr_session_info` VALUES ('978d31441dccd350d406bfab98978f20', '127.0.0.1', 1109233952, 1109234177, 0, NULL);
3135 -- --------------------------------------------------------
3138 -- Table structure for table `patient_data`
3141 DROP TABLE IF EXISTS `patient_data`;
3142 CREATE TABLE `patient_data` (
3143 `id` bigint(20) NOT NULL auto_increment,
3144 `title` varchar(255) NOT NULL default '',
3145 `language` varchar(255) NOT NULL default '',
3146 `financial` varchar(255) NOT NULL default '',
3147 `fname` varchar(255) NOT NULL default '',
3148 `lname` varchar(255) NOT NULL default '',
3149 `mname` varchar(255) NOT NULL default '',
3150 `DOB` date default NULL,
3151 `street` varchar(255) NOT NULL default '',
3152 `postal_code` varchar(255) NOT NULL default '',
3153 `city` varchar(255) NOT NULL default '',
3154 `state` varchar(255) NOT NULL default '',
3155 `country_code` varchar(255) NOT NULL default '',
3156 `drivers_license` varchar(255) NOT NULL default '',
3157 `ss` varchar(255) NOT NULL default '',
3158 `occupation` longtext,
3159 `phone_home` varchar(255) NOT NULL default '',
3160 `phone_biz` varchar(255) NOT NULL default '',
3161 `phone_contact` varchar(255) NOT NULL default '',
3162 `phone_cell` varchar(255) NOT NULL default '',
3163 `pharmacy_id` int(11) NOT NULL default '0',
3164 `status` varchar(255) NOT NULL default '',
3165 `contact_relationship` varchar(255) NOT NULL default '',
3166 `date` datetime default NULL,
3167 `sex` varchar(255) NOT NULL default '',
3168 `referrer` varchar(255) NOT NULL default '',
3169 `referrerID` varchar(255) NOT NULL default '',
3170 `providerID` int(11) default NULL,
3171 `email` varchar(255) NOT NULL default '',
3172 `ethnoracial` varchar(255) NOT NULL default '',
3173 `race` varchar(255) NOT NULL default '',
3174 `ethnicity` varchar(255) NOT NULL default '',
3175 `interpretter` varchar(255) NOT NULL default '',
3176 `migrantseasonal` varchar(255) NOT NULL default '',
3177 `family_size` varchar(255) NOT NULL default '',
3178 `monthly_income` varchar(255) NOT NULL default '',
3179 `homeless` varchar(255) NOT NULL default '',
3180 `financial_review` datetime default NULL,
3181 `pubpid` varchar(255) NOT NULL default '',
3182 `pid` bigint(20) NOT NULL default '0',
3183 `genericname1` varchar(255) NOT NULL default '',
3184 `genericval1` varchar(255) NOT NULL default '',
3185 `genericname2` varchar(255) NOT NULL default '',
3186 `genericval2` varchar(255) NOT NULL default '',
3187 `hipaa_mail` varchar(3) NOT NULL default '',
3188 `hipaa_voice` varchar(3) NOT NULL default '',
3189 `hipaa_notice` varchar(3) NOT NULL default '',
3190 `hipaa_message` varchar(20) NOT NULL default '',
3191 `hipaa_allowsms` VARCHAR(3) NOT NULL DEFAULT 'NO',
3192 `hipaa_allowemail` VARCHAR(3) NOT NULL DEFAULT 'NO',
3193 `squad` varchar(32) NOT NULL default '',
3194 `fitness` int(11) NOT NULL default '0',
3195 `referral_source` varchar(30) NOT NULL default '',
3196 `usertext1` varchar(255) NOT NULL DEFAULT '',
3197 `usertext2` varchar(255) NOT NULL DEFAULT '',
3198 `usertext3` varchar(255) NOT NULL DEFAULT '',
3199 `usertext4` varchar(255) NOT NULL DEFAULT '',
3200 `usertext5` varchar(255) NOT NULL DEFAULT '',
3201 `usertext6` varchar(255) NOT NULL DEFAULT '',
3202 `usertext7` varchar(255) NOT NULL DEFAULT '',
3203 `usertext8` varchar(255) NOT NULL DEFAULT '',
3204 `userlist1` varchar(255) NOT NULL DEFAULT '',
3205 `userlist2` varchar(255) NOT NULL DEFAULT '',
3206 `userlist3` varchar(255) NOT NULL DEFAULT '',
3207 `userlist4` varchar(255) NOT NULL DEFAULT '',
3208 `userlist5` varchar(255) NOT NULL DEFAULT '',
3209 `userlist6` varchar(255) NOT NULL DEFAULT '',
3210 `userlist7` varchar(255) NOT NULL DEFAULT '',
3211 `pricelevel` varchar(255) NOT NULL default 'standard',
3212 `regdate` date DEFAULT NULL COMMENT 'Registration Date',
3213 `contrastart` date DEFAULT NULL COMMENT 'Date contraceptives initially used',
3214 `completed_ad` VARCHAR(3) NOT NULL DEFAULT 'NO',
3215 `ad_reviewed` date DEFAULT NULL,
3216 `vfc` varchar(255) NOT NULL DEFAULT '',
3217 `mothersname` varchar(255) NOT NULL DEFAULT '',
3218 `guardiansname` varchar(255) NOT NULL DEFAULT '',
3219 `allow_imm_reg_use` varchar(255) NOT NULL DEFAULT '',
3220 `allow_imm_info_share` varchar(255) NOT NULL DEFAULT '',
3221 `allow_health_info_ex` varchar(255) NOT NULL DEFAULT '',
3222 UNIQUE KEY `pid` (`pid`),
3224 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3226 -- --------------------------------------------------------
3229 -- Table structure for table `patient_reminders`
3232 DROP TABLE IF EXISTS `patient_reminders`;
3233 CREATE TABLE `patient_reminders` (
3234 `id` bigint(20) NOT NULL auto_increment,
3235 `active` tinyint(1) NOT NULL default 1 COMMENT '1 if active and 0 if not active',
3236 `date_inactivated` datetime DEFAULT NULL,
3237 `reason_inactivated` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_reminder_inactive_opt',
3238 `due_status` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_reminder_due_opt',
3239 `pid` bigint(20) NOT NULL COMMENT 'id from patient_data table',
3240 `category` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the category item in the rule_action_item table',
3241 `item` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the item column in the rule_action_item table',
3242 `date_created` datetime DEFAULT NULL,
3243 `date_sent` datetime DEFAULT NULL,
3244 `voice_status` tinyint(1) NOT NULL default 0 COMMENT '0 if not sent and 1 if sent',
3245 `sms_status` tinyint(1) NOT NULL default 0 COMMENT '0 if not sent and 1 if sent',
3246 `email_status` tinyint(1) NOT NULL default 0 COMMENT '0 if not sent and 1 if sent',
3247 `mail_status` tinyint(1) NOT NULL default 0 COMMENT '0 if not sent and 1 if sent',
3250 KEY (`category`,`item`)
3251 ) ENGINE=MyISAM AUTO_INCREMENT=1;
3253 -- --------------------------------------------------------
3256 -- Table structure for table `payments`
3259 DROP TABLE IF EXISTS `payments`;
3260 CREATE TABLE `payments` (
3261 `id` bigint(20) NOT NULL auto_increment,
3262 `pid` bigint(20) NOT NULL default '0',
3263 `dtime` datetime NOT NULL,
3264 `encounter` bigint(20) NOT NULL default '0',
3265 `user` varchar(255) default NULL,
3266 `method` varchar(255) default NULL,
3267 `source` varchar(255) default NULL,
3268 `amount1` decimal(12,2) NOT NULL default '0.00',
3269 `amount2` decimal(12,2) NOT NULL default '0.00',
3270 `posted1` decimal(12,2) NOT NULL default '0.00',
3271 `posted2` decimal(12,2) NOT NULL default '0.00',
3274 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3276 -- --------------------------------------------------------
3279 -- Table structure for table `pharmacies`
3282 DROP TABLE IF EXISTS `pharmacies`;
3283 CREATE TABLE `pharmacies` (
3284 `id` int(11) NOT NULL default '0',
3285 `name` varchar(255) default NULL,
3286 `transmit_method` int(11) NOT NULL default '1',
3287 `email` varchar(255) default NULL,
3291 -- --------------------------------------------------------
3294 -- Table structure for table `phone_numbers`
3297 DROP TABLE IF EXISTS `phone_numbers`;
3298 CREATE TABLE `phone_numbers` (
3299 `id` int(11) NOT NULL default '0',
3300 `country_code` varchar(5) default NULL,
3301 `area_code` char(3) default NULL,
3302 `prefix` char(3) default NULL,
3303 `number` varchar(4) default NULL,
3304 `type` int(11) default NULL,
3305 `foreign_id` int(11) default NULL,
3307 KEY `foreign_id` (`foreign_id`)
3310 -- --------------------------------------------------------
3313 -- Table structure for table `pma_bookmark`
3316 DROP TABLE IF EXISTS `pma_bookmark`;
3317 CREATE TABLE `pma_bookmark` (
3318 `id` int(11) NOT NULL auto_increment,
3319 `dbase` varchar(255) default NULL,
3320 `user` varchar(255) default NULL,
3321 `label` varchar(255) default NULL,
3324 ) ENGINE=MyISAM COMMENT='Bookmarks' AUTO_INCREMENT=10 ;
3327 -- Dumping data for table `pma_bookmark`
3330 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');
3331 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');
3332 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;');
3333 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');
3335 -- --------------------------------------------------------
3338 -- Table structure for table `pma_column_info`
3341 DROP TABLE IF EXISTS `pma_column_info`;
3342 CREATE TABLE `pma_column_info` (
3343 `id` int(5) unsigned NOT NULL auto_increment,
3344 `db_name` varchar(64) default NULL,
3345 `table_name` varchar(64) default NULL,
3346 `column_name` varchar(64) default NULL,
3347 `comment` varchar(255) default NULL,
3348 `mimetype` varchar(255) default NULL,
3349 `transformation` varchar(255) default NULL,
3350 `transformation_options` varchar(255) default NULL,
3352 UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`)
3353 ) ENGINE=MyISAM COMMENT='Column Information for phpMyAdmin' AUTO_INCREMENT=1 ;
3355 -- --------------------------------------------------------
3358 -- Table structure for table `pma_history`
3361 DROP TABLE IF EXISTS `pma_history`;
3362 CREATE TABLE `pma_history` (
3363 `id` bigint(20) unsigned NOT NULL auto_increment,
3364 `username` varchar(64) default NULL,
3365 `db` varchar(64) default NULL,
3366 `table` varchar(64) default NULL,
3367 `timevalue` timestamp NOT NULL,
3370 KEY `username` (`username`,`db`,`table`,`timevalue`)
3371 ) ENGINE=MyISAM COMMENT='SQL history' AUTO_INCREMENT=1 ;
3373 -- --------------------------------------------------------
3376 -- Table structure for table `pma_pdf_pages`
3379 DROP TABLE IF EXISTS `pma_pdf_pages`;
3380 CREATE TABLE `pma_pdf_pages` (
3381 `db_name` varchar(64) default NULL,
3382 `page_nr` int(10) unsigned NOT NULL auto_increment,
3383 `page_descr` varchar(50) default NULL,
3384 PRIMARY KEY (`page_nr`),
3385 KEY `db_name` (`db_name`)
3386 ) ENGINE=MyISAM COMMENT='PDF Relationpages for PMA' AUTO_INCREMENT=1 ;
3388 -- --------------------------------------------------------
3391 -- Table structure for table `pma_relation`
3394 DROP TABLE IF EXISTS `pma_relation`;
3395 CREATE TABLE `pma_relation` (
3396 `master_db` varchar(64) NOT NULL default '',
3397 `master_table` varchar(64) NOT NULL default '',
3398 `master_field` varchar(64) NOT NULL default '',
3399 `foreign_db` varchar(64) default NULL,
3400 `foreign_table` varchar(64) default NULL,
3401 `foreign_field` varchar(64) default NULL,
3402 PRIMARY KEY (`master_db`,`master_table`,`master_field`),
3403 KEY `foreign_field` (`foreign_db`,`foreign_table`)
3404 ) ENGINE=MyISAM COMMENT='Relation table';
3406 -- --------------------------------------------------------
3409 -- Table structure for table `pma_table_coords`
3412 DROP TABLE IF EXISTS `pma_table_coords`;
3413 CREATE TABLE `pma_table_coords` (
3414 `db_name` varchar(64) NOT NULL default '',
3415 `table_name` varchar(64) NOT NULL default '',
3416 `pdf_page_number` int(11) NOT NULL default '0',
3417 `x` float unsigned NOT NULL default '0',
3418 `y` float unsigned NOT NULL default '0',
3419 PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`)
3420 ) ENGINE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output';
3422 -- --------------------------------------------------------
3425 -- Table structure for table `pma_table_info`
3428 DROP TABLE IF EXISTS `pma_table_info`;
3429 CREATE TABLE `pma_table_info` (
3430 `db_name` varchar(64) NOT NULL default '',
3431 `table_name` varchar(64) NOT NULL default '',
3432 `display_field` varchar(64) default NULL,
3433 PRIMARY KEY (`db_name`,`table_name`)
3434 ) ENGINE=MyISAM COMMENT='Table information for phpMyAdmin';
3436 -- --------------------------------------------------------
3439 -- Table structure for table `pnotes`
3442 DROP TABLE IF EXISTS `pnotes`;
3443 CREATE TABLE `pnotes` (
3444 `id` bigint(20) NOT NULL auto_increment,
3445 `date` datetime default NULL,
3447 `pid` bigint(20) default NULL,
3448 `user` varchar(255) default NULL,
3449 `groupname` varchar(255) default NULL,
3450 `activity` tinyint(4) default NULL,
3451 `authorized` tinyint(4) default NULL,
3452 `title` varchar(255) default NULL,
3453 `assigned_to` varchar(255) default NULL,
3454 `deleted` tinyint(4) default 0 COMMENT 'flag indicates note is deleted',
3455 `message_status` VARCHAR(20) NOT NULL DEFAULT 'New',
3457 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3459 -- --------------------------------------------------------
3462 -- Table structure for table `prescriptions`
3465 DROP TABLE IF EXISTS `prescriptions`;
3466 CREATE TABLE `prescriptions` (
3467 `id` int(11) NOT NULL auto_increment,
3468 `patient_id` int(11) default NULL,
3469 `filled_by_id` int(11) default NULL,
3470 `pharmacy_id` int(11) default NULL,
3471 `date_added` date default NULL,
3472 `date_modified` date default NULL,
3473 `provider_id` int(11) default NULL,
3474 `start_date` date default NULL,
3475 `drug` varchar(150) default NULL,
3476 `drug_id` int(11) NOT NULL default '0',
3477 `form` int(3) default NULL,
3478 `dosage` varchar(100) default NULL,
3479 `quantity` varchar(31) default NULL,
3480 `size` float unsigned default NULL,
3481 `unit` int(11) default NULL,
3482 `route` int(11) default NULL,
3483 `interval` int(11) default NULL,
3484 `substitute` int(11) default NULL,
3485 `refills` int(11) default NULL,
3486 `per_refill` int(11) default NULL,
3487 `filled_date` date default NULL,
3488 `medication` int(11) default NULL,
3490 `active` int(11) NOT NULL default '1',
3492 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3494 -- --------------------------------------------------------
3497 -- Table structure for table `prices`
3500 DROP TABLE IF EXISTS `prices`;
3501 CREATE TABLE `prices` (
3502 `pr_id` varchar(11) NOT NULL default '',
3503 `pr_selector` varchar(255) NOT NULL default '' COMMENT 'template selector for drugs, empty for codes',
3504 `pr_level` varchar(31) NOT NULL default '',
3505 `pr_price` decimal(12,2) NOT NULL default '0.00' COMMENT 'price in local currency',
3506 PRIMARY KEY (`pr_id`,`pr_selector`,`pr_level`)
3509 -- --------------------------------------------------------
3512 -- Table structure for table `registry`
3515 DROP TABLE IF EXISTS `registry`;
3516 CREATE TABLE `registry` (
3517 `name` varchar(255) default NULL,
3518 `state` tinyint(4) default NULL,
3519 `directory` varchar(255) default NULL,
3520 `id` bigint(20) NOT NULL auto_increment,
3521 `sql_run` tinyint(4) default NULL,
3522 `unpackaged` tinyint(4) default NULL,
3523 `date` datetime default NULL,
3524 `priority` int(11) default '0',
3525 `category` varchar(255) default NULL,
3526 `nickname` varchar(255) default NULL,
3528 ) ENGINE=MyISAM AUTO_INCREMENT=16 ;
3531 -- Dumping data for table `registry`
3534 INSERT INTO `registry` VALUES ('New Encounter Form', 1, 'newpatient', 1, 1, 1, '2003-09-14 15:16:45', 0, 'Administrative', '');
3535 INSERT INTO `registry` VALUES ('Review of Systems Checks', 1, 'reviewofs', 9, 1, 1, '2003-09-14 15:16:45', 0, 'Clinical', '');
3536 INSERT INTO `registry` VALUES ('Speech Dictation', 1, 'dictation', 10, 1, 1, '2003-09-14 15:16:45', 0, 'Clinical', '');
3537 INSERT INTO `registry` VALUES ('SOAP', 1, 'soap', 11, 1, 1, '2005-03-03 00:16:35', 0, 'Clinical', '');
3538 INSERT INTO `registry` VALUES ('Vitals', 1, 'vitals', 12, 1, 1, '2005-03-03 00:16:34', 0, 'Clinical', '');
3539 INSERT INTO `registry` VALUES ('Review Of Systems', 1, 'ros', 13, 1, 1, '2005-03-03 00:16:30', 0, 'Clinical', '');
3540 INSERT INTO `registry` VALUES ('Fee Sheet', 1, 'fee_sheet', 14, 1, 1, '2007-07-28 00:00:00', 0, 'Administrative', '');
3541 INSERT INTO `registry` VALUES ('Misc Billing Options HCFA', 1, 'misc_billing_options', 15, 1, 1, '2007-07-28 00:00:00', 0, 'Administrative', '');
3542 INSERT INTO `registry` VALUES ('Procedure Order', 1, 'procedure_order', 16, 1, 1, '2010-02-25 00:00:00', 0, 'Administrative', '');
3544 -- --------------------------------------------------------
3547 -- Table structure for table `rule_action`
3550 DROP TABLE IF EXISTS `rule_action`;
3551 CREATE TABLE `rule_action` (
3552 `id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the id column in the clinical_rules table',
3553 `group_id` bigint(20) NOT NULL DEFAULT 1 COMMENT 'Contains group id to identify collection of targets in a rule',
3554 `category` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the category item in the rule_action_item table',
3555 `item` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the item column in the rule_action_item table',
3560 -- Standard clinical rule actions
3562 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_htn_bp_measure', 1, 'act_cat_measure', 'act_bp');
3563 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_tob_use_assess', 1, 'act_cat_assess', 'act_tobacco');
3564 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_tob_cess_inter', 1, 'act_cat_inter', 'act_tobacco');
3565 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_adult_wt_screen_fu', 1, 'act_cat_measure', 'act_wt');
3566 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_wt_assess_couns_child', 1, 'act_cat_measure', 'act_wt');
3567 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_wt_assess_couns_child', 2, 'act_cat_edu', 'act_wt');
3568 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_influenza_ge_50', 1, 'act_cat_treat', 'act_influvacc');
3569 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_pneumovacc_ge_65', 1, 'act_cat_treat', 'act_pneumovacc');
3570 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_dm_hemo_a1c', 1, 'act_cat_measure', 'act_hemo_a1c');
3571 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_dm_urine_alb', 1, 'act_cat_measure', 'act_urine_alb');
3572 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_dm_eye', 1, 'act_cat_exam', 'act_eye');
3573 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_dm_foot', 1, 'act_cat_exam', 'act_foot');
3574 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_cs_mammo', 1, 'act_cat_measure', 'act_mammo');
3575 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_cs_pap', 1, 'act_cat_exam', 'act_pap');
3576 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_cs_colon', 1, 'act_cat_assess', 'act_colon_cancer_screen');
3577 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_cs_prostate', 1, 'act_cat_assess', 'act_prostate_cancer_screen');
3578 INSERT INTO `rule_action` ( `id`, `group_id`, `category`, `item` ) VALUES ('rule_inr_monitor', 1, 'act_cat_measure', 'act_lab_inr');
3580 -- --------------------------------------------------------
3583 -- Table structure for table `rule_action_item`
3586 DROP TABLE IF EXISTS `rule_action_item`;
3587 CREATE TABLE `rule_action_item` (
3588 `category` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_action_category',
3589 `item` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_action',
3590 `clin_rem_link` varchar(255) NOT NULL DEFAULT '' COMMENT 'Custom html link in clinical reminder widget',
3591 `reminder_message` text NOT NULL DEFAULT '' COMMENT 'Custom message in patient reminder',
3592 `custom_flag` tinyint(1) NOT NULL default 0 COMMENT '1 indexed to rule_patient_data, 0 indexed within main schema',
3593 PRIMARY KEY (`category`,`item`)
3596 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_measure', 'act_bp', '', '', 0);
3597 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_assess', 'act_tobacco', '', '', 0);
3598 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_inter', 'act_tobacco', '', '', 1);
3599 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_measure', 'act_wt', '', '', 0);
3600 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_edu', 'act_wt', '', '', 1);
3601 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_treat', 'act_influvacc', '', '', 0);
3602 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_treat', 'act_pneumovacc', '', '', 0);
3603 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_measure', 'act_hemo_a1c', '', '', 1);
3604 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_measure', 'act_urine_alb', '', '', 1);
3605 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_exam', 'act_eye', '', '', 1);
3606 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_exam', 'act_foot', '', '', 1);
3607 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_measure', 'act_mammo', '', '', 1);
3608 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_exam', 'act_pap', '', '', 1);
3609 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_assess', 'act_colon_cancer_screen', '', '', 1);
3610 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_assess', 'act_prostate_cancer_screen', '', '', 1);
3611 INSERT INTO `rule_action_item` ( `category`, `item`, `clin_rem_link`, `reminder_message`, `custom_flag` ) VALUES ('act_cat_measure', 'act_lab_inr', '', '', 0);
3613 -- --------------------------------------------------------
3616 -- Table structure for table `rule_filter`
3619 DROP TABLE IF EXISTS `rule_filter`;
3620 CREATE TABLE `rule_filter` (
3621 `id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the id column in the clinical_rules table',
3622 `include_flag` tinyint(1) NOT NULL default 0 COMMENT '0 is exclude and 1 is include',
3623 `required_flag` tinyint(1) NOT NULL default 0 COMMENT '0 is required and 1 is optional',
3624 `method` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_filters',
3625 `method_detail` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options lists rule__intervals',
3626 `value` varchar(255) NOT NULL DEFAULT '',
3631 -- Standard clinical rule filters
3633 -- Hypertension: Blood Pressure Measurement
3634 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'CUSTOM::HTN');
3635 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::401.0');
3636 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::401.1');
3637 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::401.9');
3638 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::402.00');
3639 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::402.01');
3640 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::402.10');
3641 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::402.11');
3642 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::402.90');
3643 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::402.91');
3644 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::403.00');
3645 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::403.01');
3646 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::403.10');
3647 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::403.11');
3648 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::403.90');
3649 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::403.91');
3650 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.00');
3651 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.01');
3652 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.02');
3653 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.03');
3654 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.10');
3655 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.11');
3656 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.12');
3657 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.13');
3658 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.90');
3659 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.91');
3660 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.92');
3661 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::404.93');
3662 -- Tobacco Use Assessment
3664 -- Tobacco Cessation Intervention
3665 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_cess_inter', 1, 1, 'filt_database', '', 'LIFESTYLE::tobacco::current');
3666 -- Adult Weight Screening and Follow-Up
3668 -- Weight Assessment and Counseling for Children and Adolescents
3669 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_wt_assess_couns_child', 1, 1, 'filt_age_max', 'year', '18');
3670 -- Influenza Immunization for Patients >= 50 Years Old
3671 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_influenza_ge_50', 1, 1, 'filt_age_min', 'year', '50');
3672 -- Pneumonia Vaccination Status for Older Adults
3673 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_pneumovacc_ge_65', 1, 1, 'filt_age_min', 'year', '65');
3674 -- Diabetes: Hemoglobin A1C
3675 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'CUSTOM::diabetes');
3676 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250');
3677 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.0');
3678 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.00');
3679 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.01');
3680 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.02');
3681 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.03');
3682 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.10');
3683 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.11');
3684 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.12');
3685 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.13');
3686 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.20');
3687 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.21');
3688 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.22');
3689 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.23');
3690 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.30');
3691 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.31');
3692 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.32');
3693 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.33');
3694 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.4');
3695 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.40');
3696 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.41');
3697 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.42');
3698 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.43');
3699 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.50');
3700 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.51');
3701 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.52');
3702 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.53');
3703 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.60');
3704 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.61');
3705 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.62');
3706 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.63');
3707 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.7');
3708 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.70');
3709 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.71');
3710 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.72');
3711 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.73');
3712 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.80');
3713 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.81');
3714 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.82');
3715 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.83');
3716 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.9');
3717 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.90');
3718 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.91');
3719 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.92');
3720 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.93');
3721 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::357.2');
3722 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.0');
3723 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.01');
3724 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.02');
3725 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.03');
3726 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.04');
3727 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.05');
3728 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.06');
3729 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::366.41');
3730 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.0');
3731 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.00');
3732 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.01');
3733 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.02');
3734 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.03');
3735 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.04');
3736 -- Diabetes: Urine Microalbumin
3737 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'CUSTOM::diabetes');
3738 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250');
3739 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.0');
3740 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.00');
3741 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.01');
3742 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.02');
3743 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.03');
3744 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.10');
3745 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.11');
3746 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.12');
3747 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.13');
3748 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.20');
3749 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.21');
3750 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.22');
3751 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.23');
3752 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.30');
3753 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.31');
3754 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.32');
3755 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.33');
3756 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.4');
3757 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.40');
3758 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.41');
3759 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.42');
3760 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.43');
3761 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.50');
3762 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.51');
3763 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.52');
3764 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.53');
3765 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.60');
3766 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.61');
3767 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.62');
3768 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.63');
3769 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.7');
3770 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.70');
3771 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.71');
3772 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.72');
3773 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.73');
3774 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.80');
3775 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.81');
3776 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.82');
3777 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.83');
3778 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.9');
3779 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.90');
3780 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.91');
3781 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.92');
3782 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.93');
3783 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::357.2');
3784 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.0');
3785 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.01');
3786 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.02');
3787 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.03');
3788 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.04');
3789 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.05');
3790 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.06');
3791 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::366.41');
3792 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.0');
3793 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.00');
3794 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.01');
3795 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.02');
3796 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.03');
3797 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.04');
3798 -- Diabetes: Eye Exam
3799 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'CUSTOM::diabetes');
3800 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250');
3801 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.0');
3802 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.00');
3803 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.01');
3804 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.02');
3805 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.03');
3806 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.10');
3807 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.11');
3808 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.12');
3809 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.13');
3810 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.20');
3811 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.21');
3812 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.22');
3813 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.23');
3814 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.30');
3815 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.31');
3816 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.32');
3817 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.33');
3818 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.4');
3819 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.40');
3820 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.41');
3821 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.42');
3822 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.43');
3823 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.50');
3824 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.51');
3825 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.52');
3826 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.53');
3827 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.60');
3828 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.61');
3829 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.62');
3830 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.63');
3831 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.7');
3832 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.70');
3833 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.71');
3834 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.72');
3835 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.73');
3836 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.80');
3837 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.81');
3838 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.82');
3839 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.83');
3840 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.9');
3841 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.90');
3842 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.91');
3843 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.92');
3844 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.93');
3845 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::357.2');
3846 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.0');
3847 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.01');
3848 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.02');
3849 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.03');
3850 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.04');
3851 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.05');
3852 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.06');
3853 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::366.41');
3854 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.0');
3855 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.00');
3856 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.01');
3857 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.02');
3858 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.03');
3859 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.04');
3860 -- Diabetes: Foot Exam
3861 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'CUSTOM::diabetes');
3862 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250');
3863 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.0');
3864 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.00');
3865 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.01');
3866 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.02');
3867 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.03');
3868 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.10');
3869 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.11');
3870 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.12');
3871 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.13');
3872 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.20');
3873 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.21');
3874 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.22');
3875 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.23');
3876 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.30');
3877 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.31');
3878 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.32');
3879 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.33');
3880 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.4');
3881 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.40');
3882 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.41');
3883 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.42');
3884 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.43');
3885 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.50');
3886 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.51');
3887 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.52');
3888 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.53');
3889 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.60');
3890 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.61');
3891 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.62');
3892 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.63');
3893 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.7');
3894 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.70');
3895 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.71');
3896 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.72');
3897 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.73');
3898 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.80');
3899 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.81');
3900 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.82');
3901 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.83');
3902 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.9');
3903 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.90');
3904 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.91');
3905 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.92');
3906 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::250.93');
3907 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::357.2');
3908 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.0');
3909 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.01');
3910 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.02');
3911 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.03');
3912 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.04');
3913 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.05');
3914 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::362.06');
3915 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::366.41');
3916 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.0');
3917 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.00');
3918 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.01');
3919 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.02');
3920 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.03');
3921 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 1, 0, 'filt_lists', 'medical_problem', 'ICD9::648.04');
3922 -- Cancer Screening: Mammogram
3923 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_mammo', 1, 1, 'filt_age_min', 'year', '40');
3924 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_mammo', 1, 1, 'filt_sex', '', 'Female');
3925 -- Cancer Screening: Pap Smear
3926 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_pap', 1, 1, 'filt_age_min', 'year', '18');
3927 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_pap', 1, 1, 'filt_sex', '', 'Female');
3928 -- Cancer Screening: Colon Cancer Screening
3929 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_colon', 1, 1, 'filt_age_min', 'year', '50');
3930 -- Cancer Screening: Prostate Cancer Screening
3931 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_prostate', 1, 1, 'filt_age_min', 'year', '50');
3932 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_prostate', 1, 1, 'filt_sex', '', 'Male');
3934 -- Rule filters to specifically demonstrate passing of NIST criteria
3936 -- Coumadin Management - INR Monitoring
3937 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_inr_monitor', 1, 0, 'filt_lists', 'medication', 'coumadin');
3938 INSERT INTO `rule_filter` ( `id`, `include_flag`, `required_flag`, `method`, `method_detail`, `value` ) VALUES ('rule_inr_monitor', 1, 0, 'filt_lists', 'medication', 'warfarin');
3940 -- --------------------------------------------------------
3943 -- Table structure for table `rule_patient_data`
3946 DROP TABLE IF EXISTS `rule_patient_data`;
3947 CREATE TABLE `rule_patient_data` (
3948 `id` bigint(20) NOT NULL auto_increment,
3949 `date` datetime DEFAULT NULL,
3950 `pid` bigint(20) NOT NULL,
3951 `category` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the category item in the rule_action_item table',
3952 `item` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the item column in the rule_action_item table',
3953 `complete` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list yesno',
3954 `result` varchar(255) NOT NULL DEFAULT '',
3957 KEY (`category`,`item`)
3958 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
3960 -- --------------------------------------------------------
3963 -- Table structure for table `rule_reminder`
3966 DROP TABLE IF EXISTS `rule_reminder`;
3967 CREATE TABLE `rule_reminder` (
3968 `id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the id column in the clinical_rules table',
3969 `method` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_reminder_methods',
3970 `method_detail` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_reminder_intervals',
3971 `value` varchar(255) NOT NULL DEFAULT '',
3975 -- Hypertension: Blood Pressure Measurement
3976 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 'clinical_reminder_pre', 'week', '2');
3977 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 'clinical_reminder_post', 'month', '1');
3978 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 'patient_reminder_pre', 'week', '2');
3979 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_htn_bp_measure', 'patient_reminder_post', 'month', '1');
3980 -- Tobacco Use Assessment
3981 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_use_assess', 'clinical_reminder_pre', 'week', '2');
3982 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_use_assess', 'clinical_reminder_post', 'month', '1');
3983 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_use_assess', 'patient_reminder_pre', 'week', '2');
3984 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_use_assess', 'patient_reminder_post', 'month', '1');
3985 -- Tobacco Cessation Intervention
3986 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_cess_inter', 'clinical_reminder_pre', 'week', '2');
3987 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_cess_inter', 'clinical_reminder_post', 'month', '1');
3988 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_cess_inter', 'patient_reminder_pre', 'week', '2');
3989 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_tob_cess_inter', 'patient_reminder_post', 'month', '1');
3990 -- Adult Weight Screening and Follow-Up
3991 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_adult_wt_screen_fu', 'clinical_reminder_pre', 'week', '2');
3992 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_adult_wt_screen_fu', 'clinical_reminder_post', 'month', '1');
3993 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_adult_wt_screen_fu', 'patient_reminder_pre', 'week', '2');
3994 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_adult_wt_screen_fu', 'patient_reminder_post', 'month', '1');
3995 -- Weight Assessment and Counseling for Children and Adolescents
3996 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_wt_assess_couns_child', 'clinical_reminder_pre', 'week', '2');
3997 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_wt_assess_couns_child', 'clinical_reminder_post', 'month', '1');
3998 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_wt_assess_couns_child', 'patient_reminder_pre', 'week', '2');
3999 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_wt_assess_couns_child', 'patient_reminder_post', 'month', '1');
4000 -- Influenza Immunization for Patients >= 50 Years Old
4001 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_influenza_ge_50', 'clinical_reminder_pre', 'week', '2');
4002 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_influenza_ge_50', 'clinical_reminder_post', 'month', '1');
4003 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_influenza_ge_50', 'patient_reminder_pre', 'week', '2');
4004 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_influenza_ge_50', 'patient_reminder_post', 'month', '1');
4005 -- Pneumonia Vaccination Status for Older Adults
4006 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_pneumovacc_ge_65', 'clinical_reminder_pre', 'week', '2');
4007 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_pneumovacc_ge_65', 'clinical_reminder_post', 'month', '1');
4008 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_pneumovacc_ge_65', 'patient_reminder_pre', 'week', '2');
4009 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_pneumovacc_ge_65', 'patient_reminder_post', 'month', '1');
4010 -- Diabetes: Hemoglobin A1C
4011 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 'clinical_reminder_pre', 'week', '2');
4012 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 'clinical_reminder_post', 'month', '1');
4013 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 'patient_reminder_pre', 'week', '2');
4014 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_hemo_a1c', 'patient_reminder_post', 'month', '1');
4015 -- Diabetes: Urine Microalbumin
4016 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 'clinical_reminder_pre', 'week', '2');
4017 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 'clinical_reminder_post', 'month', '1');
4018 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 'patient_reminder_pre', 'week', '2');
4019 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_urine_alb', 'patient_reminder_post', 'month', '1');
4020 -- Diabetes: Eye Exam
4021 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 'clinical_reminder_pre', 'week', '2');
4022 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 'clinical_reminder_post', 'month', '1');
4023 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 'patient_reminder_pre', 'week', '2');
4024 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_eye', 'patient_reminder_post', 'month', '1');
4025 -- Diabetes: Foot Exam
4026 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 'clinical_reminder_pre', 'week', '2');
4027 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 'clinical_reminder_post', 'month', '1');
4028 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 'patient_reminder_pre', 'week', '2');
4029 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_dm_foot', 'patient_reminder_post', 'month', '1');
4030 -- Cancer Screening: Mammogram
4031 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_mammo', 'clinical_reminder_pre', 'week', '2');
4032 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_mammo', 'clinical_reminder_post', 'month', '1');
4033 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_mammo', 'patient_reminder_pre', 'week', '2');
4034 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_mammo', 'patient_reminder_post', 'month', '1');
4035 -- Cancer Screening: Pap Smear
4036 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_pap', 'clinical_reminder_pre', 'week', '2');
4037 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_pap', 'clinical_reminder_post', 'month', '1');
4038 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_pap', 'patient_reminder_pre', 'week', '2');
4039 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_pap', 'patient_reminder_post', 'month', '1');
4040 -- Cancer Screening: Colon Cancer Screening
4041 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_colon', 'clinical_reminder_pre', 'week', '2');
4042 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_colon', 'clinical_reminder_post', 'month', '1');
4043 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_colon', 'patient_reminder_pre', 'week', '2');
4044 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_colon', 'patient_reminder_post', 'month', '1');
4045 -- Cancer Screening: Prostate Cancer Screening
4046 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_prostate', 'clinical_reminder_pre', 'week', '2');
4047 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_prostate', 'clinical_reminder_post', 'month', '1');
4048 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_prostate', 'patient_reminder_pre', 'week', '2');
4049 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_cs_prostate', 'patient_reminder_post', 'month', '1');
4050 -- Coumadin Management - INR Monitoring
4051 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_inr_monitor', 'clinical_reminder_pre', 'week', '2');
4052 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_inr_monitor', 'clinical_reminder_post', 'month', '1');
4053 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_inr_monitor', 'patient_reminder_pre', 'week', '2');
4054 INSERT INTO `rule_reminder` ( `id`, `method`, `method_detail`, `value` ) VALUES ('rule_inr_monitor', 'patient_reminder_post', 'month', '1');
4056 -- --------------------------------------------------------
4059 -- Table structure for table `rule_target`
4062 DROP TABLE IF EXISTS `rule_target`;
4063 CREATE TABLE `rule_target` (
4064 `id` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to the id column in the clinical_rules table',
4065 `group_id` bigint(20) NOT NULL DEFAULT 1 COMMENT 'Contains group id to identify collection of targets in a rule',
4066 `include_flag` tinyint(1) NOT NULL default 0 COMMENT '0 is exclude and 1 is include',
4067 `required_flag` tinyint(1) NOT NULL default 0 COMMENT '0 is required and 1 is optional',
4068 `method` varchar(31) NOT NULL DEFAULT '' COMMENT 'Maps to list_options list rule_targets',
4069 `value` varchar(255) NOT NULL DEFAULT '' COMMENT 'Data is dependent on the method',
4070 `interval` bigint(20) NOT NULL DEFAULT 0 COMMENT 'Only used in interval entries',
4075 -- Standard clinical rule targets
4077 -- Hypertension: Blood Pressure Measurement
4078 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_htn_bp_measure', 1, 1, 1, 'target_interval', 'year', 1);
4079 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_htn_bp_measure', 1, 1, 1, 'target_database', '::form_vitals::bps::::::ge::1', 0);
4080 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_htn_bp_measure', 1, 1, 1, 'target_database', '::form_vitals::bpd::::::ge::1', 0);
4081 -- Tobacco Use Assessment
4082 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_tob_use_assess', 1, 1, 1, 'target_database', 'LIFESTYLE::tobacco::', 0);
4083 -- Tobacco Cessation Intervention
4084 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_tob_cess_inter', 1, 1, 1, 'target_interval', 'year', 1);
4085 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_tob_cess_inter', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_inter::act_tobacco::YES::ge::1', 0);
4086 -- Adult Weight Screening and Follow-Up
4087 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_adult_wt_screen_fu', 1, 1, 1, 'target_database', '::form_vitals::weight::::::ge::2', 0);
4088 -- Weight Assessment and Counseling for Children and Adolescents
4089 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_wt_assess_couns_child', 1, 1, 1, 'target_database', '::form_vitals::weight::::::ge::1', 0);
4090 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_wt_assess_couns_child', 2, 1, 1, 'target_database', 'CUSTOM::act_cat_edu::act_wt::YES::ge::1', 0);
4091 -- Influenza Immunization for Patients >= 50 Years Old
4092 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_influenza_ge_50', 1, 1, 1, 'target_interval', 'flu_season', 1);
4093 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_influenza_ge_50', 1, 1, 0, 'target_database', '::immunizations::immunization_id::eq::30::ge::1', 0);
4094 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_influenza_ge_50', 1, 1, 0, 'target_database', '::immunizations::immunization_id::eq::31::ge::1', 0);
4095 -- Pneumonia Vaccination Status for Older Adults
4096 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_pneumovacc_ge_65', 1, 1, 0, 'target_database', '::immunizations::immunization_id::eq::19::ge::1', 0);
4097 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_pneumovacc_ge_65', 1, 1, 0, 'target_database', '::immunizations::immunization_id::eq::20::ge::1', 0);
4098 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_pneumovacc_ge_65', 1, 1, 0, 'target_database', '::immunizations::immunization_id::eq::21::ge::1', 0);
4099 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_pneumovacc_ge_65', 1, 1, 0, 'target_database', '::immunizations::immunization_id::eq::22::ge::1', 0);
4100 -- Diabetes: Hemoglobin A1C
4101 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_hemo_a1c', 1, 1, 1, 'target_interval', 'month', 3);
4102 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_hemo_a1c', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_measure::act_hemo_a1c::YES::ge::1', 0);
4103 -- Diabetes: Urine Microalbumin
4104 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_urine_alb', 1, 1, 1, 'target_interval', 'year', 1);
4105 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_urine_alb', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_measure::act_urine_alb::YES::ge::1', 0);
4106 -- Diabetes: Eye Exam
4107 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_eye', 1, 1, 1, 'target_interval', 'year', 1);
4108 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_eye', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_exam::act_eye::YES::ge::1', 0);
4109 -- Diabetes: Foot Exam
4110 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_foot', 1, 1, 1, 'target_interval', 'year', 1);
4111 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_dm_foot', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_exam::act_foot::YES::ge::1', 0);
4112 -- Cancer Screening: Mammogram
4113 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_cs_mammo', 1, 1, 1, 'target_interval', 'year', 1);
4114 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_cs_mammo', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_measure::act_mammo::YES::ge::1', 0);
4115 -- Cancer Screening: Pap Smear
4116 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_cs_pap', 1, 1, 1, 'target_interval', 'year', 1);
4117 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_cs_pap', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_exam::act_pap::YES::ge::1', 0);
4118 -- Cancer Screening: Colon Cancer Screening
4119 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_cs_colon', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_assess::act_colon_cancer_screen::YES::ge::1', 0);
4120 -- Cancer Screening: Prostate Cancer Screening
4121 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_cs_prostate', 1, 1, 1, 'target_database', 'CUSTOM::act_cat_assess::act_prostate_cancer_screen::YES::ge::1', 0);
4123 -- Rule targets to specifically demonstrate passing of NIST criteria
4125 -- Coumadin Management - INR Monitoring
4126 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_inr_monitor', 1, 1, 1, 'target_interval', 'week', 3);
4127 INSERT INTO `rule_target` ( `id`, `group_id`, `include_flag`, `required_flag`, `method`, `value`, `interval` ) VALUES ('rule_inr_monitor', 1, 1, 1, 'target_proc', 'INR::::::::ge::1', 0);
4129 -- --------------------------------------------------------
4132 -- Table structure for table `sequences`
4135 DROP TABLE IF EXISTS `sequences`;
4136 CREATE TABLE `sequences` (
4137 `id` int(11) unsigned NOT NULL default '0'
4141 -- Dumping data for table `sequences`
4144 INSERT INTO `sequences` VALUES (1);
4146 -- --------------------------------------------------------
4149 -- Table structure for table `transactions`
4152 DROP TABLE IF EXISTS `transactions`;
4153 CREATE TABLE `transactions` (
4154 `id` bigint(20) NOT NULL auto_increment,
4155 `date` datetime default NULL,
4156 `title` varchar(255) NOT NULL DEFAULT '',
4157 `body` longtext NOT NULL DEFAULT '',
4158 `pid` bigint(20) default NULL,
4159 `user` varchar(255) NOT NULL DEFAULT '',
4160 `groupname` varchar(255) NOT NULL DEFAULT '',
4161 `authorized` tinyint(4) default NULL,
4162 `refer_date` date DEFAULT NULL,
4163 `refer_from` int(11) NOT NULL DEFAULT 0,
4164 `refer_to` int(11) NOT NULL DEFAULT 0,
4165 `refer_diag` varchar(255) NOT NULL DEFAULT '',
4166 `refer_risk_level` varchar(255) NOT NULL DEFAULT '',
4167 `refer_vitals` tinyint(1) NOT NULL DEFAULT 0,
4168 `refer_external` tinyint(1) NOT NULL DEFAULT 0,
4169 `refer_related_code` varchar(255) NOT NULL DEFAULT '',
4170 `refer_reply_date` date DEFAULT NULL,
4171 `reply_date` date DEFAULT NULL,
4172 `reply_from` varchar(255) NOT NULL DEFAULT '',
4173 `reply_init_diag` varchar(255) NOT NULL DEFAULT '',
4174 `reply_final_diag` varchar(255) NOT NULL DEFAULT '',
4175 `reply_documents` varchar(255) NOT NULL DEFAULT '',
4176 `reply_findings` text NOT NULL DEFAULT '',
4177 `reply_services` text NOT NULL DEFAULT '',
4178 `reply_recommend` text NOT NULL DEFAULT '',
4179 `reply_rx_refer` text NOT NULL DEFAULT '',
4180 `reply_related_code` varchar(255) NOT NULL DEFAULT '',
4182 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
4184 -- --------------------------------------------------------
4187 -- Table structure for table `users`
4190 DROP TABLE IF EXISTS `users`;
4191 CREATE TABLE `users` (
4192 `id` bigint(20) NOT NULL auto_increment,
4193 `username` varchar(255) default NULL,
4194 `password` longtext,
4195 `authorized` tinyint(4) default NULL,
4197 `source` tinyint(4) default NULL,
4198 `fname` varchar(255) default NULL,
4199 `mname` varchar(255) default NULL,
4200 `lname` varchar(255) default NULL,
4201 `federaltaxid` varchar(255) default NULL,
4202 `federaldrugid` varchar(255) default NULL,
4203 `upin` varchar(255) default NULL,
4204 `facility` varchar(255) default NULL,
4205 `facility_id` int(11) NOT NULL default '0',
4206 `see_auth` int(11) NOT NULL default '1',
4207 `active` tinyint(1) NOT NULL default '1',
4208 `npi` varchar(15) default NULL,
4209 `title` varchar(30) default NULL,
4210 `specialty` varchar(255) default NULL,
4211 `billname` varchar(255) default NULL,
4212 `email` varchar(255) default NULL,
4213 `url` varchar(255) default NULL,
4214 `assistant` varchar(255) default NULL,
4215 `organization` varchar(255) default NULL,
4216 `valedictory` varchar(255) default NULL,
4217 `street` varchar(60) default NULL,
4218 `streetb` varchar(60) default NULL,
4219 `city` varchar(30) default NULL,
4220 `state` varchar(30) default NULL,
4221 `zip` varchar(20) default NULL,
4222 `street2` varchar(60) default NULL,
4223 `streetb2` varchar(60) default NULL,
4224 `city2` varchar(30) default NULL,
4225 `state2` varchar(30) default NULL,
4226 `zip2` varchar(20) default NULL,
4227 `phone` varchar(30) default NULL,
4228 `fax` varchar(30) default NULL,
4229 `phonew1` varchar(30) default NULL,
4230 `phonew2` varchar(30) default NULL,
4231 `phonecell` varchar(30) default NULL,
4233 `cal_ui` tinyint(4) NOT NULL default '1',
4234 `taxonomy` varchar(30) NOT NULL DEFAULT '207Q00000X',
4235 `ssi_relayhealth` varchar(64) NULL,
4236 `calendar` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1 = appears in calendar',
4237 `abook_type` varchar(31) NOT NULL DEFAULT '',
4238 `pwd_expiration_date` date default NULL,
4239 `pwd_history1` longtext default NULL,
4240 `pwd_history2` longtext default NULL,
4241 `default_warehouse` varchar(31) NOT NULL DEFAULT '',
4242 `irnpool` varchar(31) NOT NULL DEFAULT '',
4244 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
4246 -- --------------------------------------------------------
4249 -- Table structure for table `user_settings`
4252 CREATE TABLE `user_settings` (
4253 `setting_user` bigint(20) NOT NULL DEFAULT 0,
4254 `setting_label` varchar(63) NOT NULL,
4255 `setting_value` varchar(255) NOT NULL DEFAULT '',
4256 PRIMARY KEY (`setting_user`, `setting_label`)
4260 -- Dumping data for table `user_settings`
4263 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'allergy_ps_expand', '1');
4264 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'appointments_ps_expand', '1');
4265 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'billing_ps_expand', '0');
4266 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'clinical_reminders_ps_expand', '1');
4267 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'demographics_ps_expand', '0');
4268 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'dental_ps_expand', '1');
4269 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'directives_ps_expand', '1');
4270 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'disclosures_ps_expand', '0');
4271 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'immunizations_ps_expand', '1');
4272 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'insurance_ps_expand', '0');
4273 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'medical_problem_ps_expand', '1');
4274 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'medication_ps_expand', '1');
4275 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'patient_reminders_ps_expand', '0');
4276 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'pnotes_ps_expand', '0');
4277 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'prescriptions_ps_expand', '1');
4278 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'surgery_ps_expand', '1');
4279 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'vitals_ps_expand', '1');
4280 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (0, 'gacl_protect', '0');
4281 INSERT INTO user_settings ( setting_user, setting_label, setting_value ) VALUES (1, 'gacl_protect', '1');
4283 -- --------------------------------------------------------
4286 -- Table structure for table `x12_partners`
4289 DROP TABLE IF EXISTS `x12_partners`;
4290 CREATE TABLE `x12_partners` (
4291 `id` int(11) NOT NULL default '0',
4292 `name` varchar(255) default NULL,
4293 `id_number` varchar(255) default NULL,
4294 `x12_sender_id` varchar(255) default NULL,
4295 `x12_receiver_id` varchar(255) default NULL,
4296 `x12_version` varchar(255) default NULL,
4297 `processing_format` enum('standard','medi-cal','cms','proxymed') default NULL,
4298 `x12_isa05` char(2) NOT NULL DEFAULT 'ZZ',
4299 `x12_isa07` char(2) NOT NULL DEFAULT 'ZZ',
4300 `x12_isa14` char(1) NOT NULL DEFAULT '0',
4301 `x12_isa15` char(1) NOT NULL DEFAULT 'P',
4302 `x12_gs02` varchar(15) NOT NULL DEFAULT '',
4303 `x12_per06` varchar(80) NOT NULL DEFAULT '',
4307 -------------------------------------------------------------------------------------
4308 -- Table structure for table `automatic_notification`
4311 DROP TABLE IF EXISTS `automatic_notification`;
4312 CREATE TABLE `automatic_notification` (
4313 `notification_id` int(5) NOT NULL auto_increment,
4314 `sms_gateway_type` varchar(255) NOT NULL,
4315 `next_app_date` date NOT NULL,
4316 `next_app_time` varchar(10) NOT NULL,
4317 `provider_name` varchar(100) NOT NULL,
4318 `message` text NOT NULL,
4319 `email_sender` varchar(100) NOT NULL,
4320 `email_subject` varchar(100) NOT NULL,
4321 `type` enum('SMS','Email') NOT NULL default 'SMS',
4322 `notification_sent_date` datetime NOT NULL,
4323 PRIMARY KEY (`notification_id`)
4324 ) ENGINE=InnoDB AUTO_INCREMENT=3 ;
4327 -- Dumping data for table `automatic_notification`
4330 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'),
4331 (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');
4333 -- --------------------------------------------------------
4336 -- Table structure for table `notification_log`
4339 DROP TABLE IF EXISTS `notification_log`;
4340 CREATE TABLE `notification_log` (
4341 `iLogId` int(11) NOT NULL auto_increment,
4342 `pid` int(7) NOT NULL,
4343 `pc_eid` int(11) unsigned NULL,
4344 `sms_gateway_type` varchar(50) NOT NULL,
4345 `smsgateway_info` varchar(255) NOT NULL,
4346 `message` text NOT NULL,
4347 `email_sender` varchar(255) NOT NULL,
4348 `email_subject` varchar(255) NOT NULL,
4349 `type` enum('SMS','Email') NOT NULL,
4350 `patient_info` text NOT NULL,
4351 `pc_eventDate` date NOT NULL,
4352 `pc_endDate` date NOT NULL,
4353 `pc_startTime` time NOT NULL,
4354 `pc_endTime` time NOT NULL,
4355 `dSentDateTime` datetime NOT NULL,
4356 PRIMARY KEY (`iLogId`)
4357 ) ENGINE=InnoDB AUTO_INCREMENT=5 ;
4359 -- --------------------------------------------------------
4362 -- Table structure for table `notification_settings`
4365 DROP TABLE IF EXISTS `notification_settings`;
4366 CREATE TABLE `notification_settings` (
4367 `SettingsId` int(3) NOT NULL auto_increment,
4368 `Send_SMS_Before_Hours` int(3) NOT NULL,
4369 `Send_Email_Before_Hours` int(3) NOT NULL,
4370 `SMS_gateway_username` varchar(100) NOT NULL,
4371 `SMS_gateway_password` varchar(100) NOT NULL,
4372 `SMS_gateway_apikey` varchar(100) NOT NULL,
4373 `type` varchar(50) NOT NULL,
4374 PRIMARY KEY (`SettingsId`)
4375 ) ENGINE=InnoDB AUTO_INCREMENT=2 ;
4378 -- Dumping data for table `notification_settings`
4381 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');
4383 -- -------------------------------------------------------------------
4385 CREATE TABLE chart_tracker (
4386 ct_pid int(11) NOT NULL,
4387 ct_when datetime NOT NULL,
4388 ct_userid bigint(20) NOT NULL DEFAULT 0,
4389 ct_location varchar(31) NOT NULL DEFAULT '',
4390 PRIMARY KEY (ct_pid, ct_when)
4393 CREATE TABLE ar_session (
4394 session_id int unsigned NOT NULL AUTO_INCREMENT,
4395 payer_id int(11) NOT NULL COMMENT '0=pt else references insurance_companies.id',
4396 user_id int(11) NOT NULL COMMENT 'references users.id for session owner',
4397 closed tinyint(1) NOT NULL DEFAULT 0 COMMENT '0=no, 1=yes',
4398 reference varchar(255) NOT NULL DEFAULT '' COMMENT 'check or EOB number',
4399 check_date date DEFAULT NULL,
4400 deposit_date date DEFAULT NULL,
4401 pay_total decimal(12,2) NOT NULL DEFAULT 0,
4402 created_time timestamp NOT NULL default CURRENT_TIMESTAMP,
4403 modified_time datetime NOT NULL,
4404 global_amount decimal( 12, 2 ) NOT NULL ,
4405 payment_type varchar( 50 ) NOT NULL ,
4406 description text NOT NULL ,
4407 adjustment_code varchar( 50 ) NOT NULL ,
4408 post_to_date date NOT NULL ,
4409 patient_id int( 11 ) NOT NULL ,
4410 payment_method varchar( 25 ) NOT NULL,
4411 PRIMARY KEY (session_id),
4412 KEY user_closed (user_id, closed),
4413 KEY deposit_date (deposit_date)
4416 CREATE TABLE ar_activity (
4417 pid int(11) NOT NULL,
4418 encounter int(11) NOT NULL,
4419 sequence_no int unsigned NOT NULL AUTO_INCREMENT,
4420 code varchar(9) NOT NULL COMMENT 'empty means claim level',
4421 modifier varchar(5) NOT NULL DEFAULT '',
4422 payer_type int NOT NULL COMMENT '0=pt, 1=ins1, 2=ins2, etc',
4423 post_time datetime NOT NULL,
4424 post_user int(11) NOT NULL COMMENT 'references users.id',
4425 session_id int unsigned NOT NULL COMMENT 'references ar_session.session_id',
4426 memo varchar(255) NOT NULL DEFAULT '' COMMENT 'adjustment reasons go here',
4427 pay_amount decimal(12,2) NOT NULL DEFAULT 0 COMMENT 'either pay or adj will always be 0',
4428 adj_amount decimal(12,2) NOT NULL DEFAULT 0,
4429 modified_time datetime NOT NULL,
4430 follow_up char(1) NOT NULL,
4431 follow_up_note text NOT NULL,
4432 account_code varchar(15) NOT NULL,
4433 PRIMARY KEY (pid, encounter, sequence_no),
4434 KEY session_id (session_id)
4437 CREATE TABLE `users_facility` (
4438 `tablename` varchar(64) NOT NULL,
4439 `table_id` int(11) NOT NULL,
4440 `facility_id` int(11) NOT NULL,
4441 PRIMARY KEY (`tablename`,`table_id`,`facility_id`)
4442 ) ENGINE=InnoDB COMMENT='joins users or patient_data to facility table';
4444 CREATE TABLE `lbf_data` (
4445 `form_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'references forms.form_id',
4446 `field_id` varchar(31) NOT NULL COMMENT 'references layout_options.field_id',
4447 `field_value` varchar(255) NOT NULL,
4448 PRIMARY KEY (`form_id`,`field_id`)
4449 ) ENGINE=MyISAM COMMENT='contains all data from layout-based forms';
4451 CREATE TABLE gprelations (
4452 type1 int(2) NOT NULL,
4453 id1 bigint(20) NOT NULL,
4454 type2 int(2) NOT NULL,
4455 id2 bigint(20) NOT NULL,
4456 PRIMARY KEY (type1,id1,type2,id2),
4457 KEY key2 (type2,id2)
4458 ) ENGINE=MyISAM COMMENT='general purpose relations';
4460 CREATE TABLE `procedure_type` (
4461 `procedure_type_id` bigint(20) NOT NULL AUTO_INCREMENT,
4462 `parent` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references procedure_type.procedure_type_id',
4463 `name` varchar(63) NOT NULL DEFAULT '' COMMENT 'name for this category, procedure or result type',
4464 `lab_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references users.id, 0 means default to parent',
4465 `procedure_code` varchar(31) NOT NULL DEFAULT '' COMMENT 'code identifying this procedure',
4466 `procedure_type` varchar(31) NOT NULL DEFAULT '' COMMENT 'see list proc_type',
4467 `body_site` varchar(31) NOT NULL DEFAULT '' COMMENT 'where to do injection, e.g. arm, buttok',
4468 `specimen` varchar(31) NOT NULL DEFAULT '' COMMENT 'blood, urine, saliva, etc.',
4469 `route_admin` varchar(31) NOT NULL DEFAULT '' COMMENT 'oral, injection',
4470 `laterality` varchar(31) NOT NULL DEFAULT '' COMMENT 'left, right, ...',
4471 `description` varchar(255) NOT NULL DEFAULT '' COMMENT 'descriptive text for procedure_code',
4472 `standard_code` varchar(255) NOT NULL DEFAULT '' COMMENT 'industry standard code type and code (e.g. CPT4:12345)',
4473 `related_code` varchar(255) NOT NULL DEFAULT '' COMMENT 'suggested code(s) for followup services if result is abnormal',
4474 `units` varchar(31) NOT NULL DEFAULT '' COMMENT 'default for procedure_result.units',
4475 `range` varchar(255) NOT NULL DEFAULT '' COMMENT 'default for procedure_result.range',
4476 `seq` int(11) NOT NULL default 0 COMMENT 'sequence number for ordering',
4477 PRIMARY KEY (`procedure_type_id`),
4481 CREATE TABLE `procedure_order` (
4482 `procedure_order_id` bigint(20) NOT NULL AUTO_INCREMENT,
4483 `procedure_type_id` bigint(20) NOT NULL COMMENT 'references procedure_type.procedure_type_id',
4484 `provider_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references users.id',
4485 `patient_id` bigint(20) NOT NULL COMMENT 'references patient_data.pid',
4486 `encounter_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references form_encounter.encounter',
4487 `date_collected` datetime DEFAULT NULL COMMENT 'time specimen collected',
4488 `date_ordered` date DEFAULT NULL,
4489 `order_priority` varchar(31) NOT NULL DEFAULT '',
4490 `order_status` varchar(31) NOT NULL DEFAULT '' COMMENT 'pending,routed,complete,canceled',
4491 `patient_instructions` text NOT NULL DEFAULT '',
4492 `activity` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0 if deleted',
4493 `control_id` bigint(20) NOT NULL COMMENT 'This is the CONTROL ID that is sent back from lab',
4494 PRIMARY KEY (`procedure_order_id`),
4495 KEY datepid (date_ordered, patient_id)
4498 CREATE TABLE `procedure_report` (
4499 `procedure_report_id` bigint(20) NOT NULL AUTO_INCREMENT,
4500 `procedure_order_id` bigint(20) DEFAULT NULL COMMENT 'references procedure_order.procedure_order_id',
4501 `date_collected` datetime DEFAULT NULL,
4502 `date_report` date DEFAULT NULL,
4503 `source` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references users.id, who entered this data',
4504 `specimen_num` varchar(63) NOT NULL DEFAULT '',
4505 `report_status` varchar(31) NOT NULL DEFAULT '' COMMENT 'received,complete,error',
4506 `review_status` varchar(31) NOT NULL DEFAULT 'received' COMMENT 'panding reivew status: received,reviewed',
4507 PRIMARY KEY (`procedure_report_id`),
4508 KEY procedure_order_id (procedure_order_id)
4511 CREATE TABLE `procedure_result` (
4512 `procedure_result_id` bigint(20) NOT NULL AUTO_INCREMENT,
4513 `procedure_report_id` bigint(20) NOT NULL COMMENT 'references procedure_report.procedure_report_id',
4514 `procedure_type_id` bigint(20) NOT NULL COMMENT 'references procedure_type.procedure_type_id',
4515 `date` datetime DEFAULT NULL COMMENT 'lab-provided date specific to this result',
4516 `facility` varchar(255) NOT NULL DEFAULT '' COMMENT 'lab-provided testing facility ID',
4517 `units` varchar(31) NOT NULL DEFAULT '',
4518 `result` varchar(255) NOT NULL DEFAULT '',
4519 `range` varchar(255) NOT NULL DEFAULT '',
4520 `abnormal` varchar(31) NOT NULL DEFAULT '' COMMENT 'no,yes,high,low',
4521 `comments` text NOT NULL DEFAULT '' COMMENT 'comments from the lab',
4522 `document_id` bigint(20) NOT NULL DEFAULT 0 COMMENT 'references documents.id if this result is a document',
4523 `result_status` varchar(31) NOT NULL DEFAULT '' COMMENT 'preliminary, cannot be done, final, corrected, incompete...etc.',
4524 PRIMARY KEY (`procedure_result_id`),
4525 KEY procedure_report_id (procedure_report_id)
4528 CREATE TABLE `globals` (
4529 `gl_name` varchar(63) NOT NULL,
4530 `gl_index` int(11) NOT NULL DEFAULT 0,
4531 `gl_value` varchar(255) NOT NULL DEFAULT '',
4532 PRIMARY KEY (`gl_name`, `gl_index`)
4535 CREATE TABLE code_types (
4536 ct_key varchar(15) NOT NULL COMMENT 'short alphanumeric name',
4537 ct_id int(11) UNIQUE NOT NULL COMMENT 'numeric identifier',
4538 ct_seq int(11) NOT NULL DEFAULT 0 COMMENT 'sort order',
4539 ct_mod int(11) NOT NULL DEFAULT 0 COMMENT 'length of modifier field',
4540 ct_just varchar(15) NOT NULL DEFAULT ''COMMENT 'ct_key of justify type, if any',
4541 ct_mask varchar(9) NOT NULL DEFAULT ''COMMENT 'formatting mask for code values',
4542 ct_fee tinyint(1) NOT NULL default 0 COMMENT '1 if fees are used',
4543 ct_rel tinyint(1) NOT NULL default 0 COMMENT '1 if can relate to other code types',
4544 ct_nofs tinyint(1) NOT NULL default 0 COMMENT '1 if to be hidden in the fee sheet',
4545 ct_diag tinyint(1) NOT NULL default 0 COMMENT '1 if this is a diagnosis type',
4546 PRIMARY KEY (ct_key)
4548 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);
4549 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);
4550 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);
4552 INSERT INTO list_options ( list_id, option_id, title, seq ) VALUES ('lists', 'code_types', 'Code Types', 1);
4554 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'disclosure_type','Disclosure Type', 3,0);
4555 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('disclosure_type', 'disclosure-treatment', 'Treatment', 10, 0);
4556 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('disclosure_type', 'disclosure-payment', 'Payment', 20, 0);
4557 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('disclosure_type', 'disclosure-healthcareoperations', 'Health Care Operations', 30, 0);
4559 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'smoking_status','Smoking Status', 1,0);
4560 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '1', 'Current every day smoker', 10, 0);
4561 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '2', 'Current some day smoker', 20, 0);
4562 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '3', 'Former smoker', 30, 0);
4563 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '4', 'Never smoker', 40, 0);
4564 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '5', 'Smoker, current status unknown', 50, 0);
4565 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('smoking_status', '9', 'Unknown if ever smoked', 60, 0);
4567 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'race','Race', 1,0);
4568 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);
4569 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'Asian', 'Asian',20,0);
4570 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'black_or_afri_amer', 'Black or African American',30,0);
4571 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);
4572 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('race', 'white', 'White',50,0);
4574 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'ethnicity','Ethnicity', 1,0);
4575 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethnicity', 'hisp_or_latin', 'Hispanic or Latino', 10, 0);
4576 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('ethnicity', 'not_hisp_or_latin', 'Not Hispanic or Latino', 10, 0);
4578 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('lists' ,'payment_date','Payment Date', 1,0);
4579 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_date', 'date_val', 'Date', 10, 0);
4580 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_date', 'post_to_date', 'Post To Date', 20, 0);
4581 INSERT INTO list_options ( list_id, option_id, title, seq, is_default ) VALUES ('payment_date', 'deposit_date', 'Deposit Date', 30, 0);
4582 -- --------------------------------------------------------
4585 -- Table structure for table `extended_log`
4588 DROP TABLE IF EXISTS `extended_log`;
4589 CREATE TABLE `extended_log` (
4590 `id` bigint(20) NOT NULL auto_increment,
4591 `date` datetime default NULL,
4592 `event` varchar(255) default NULL,
4593 `user` varchar(255) default NULL,
4594 `recipient` varchar(255) default NULL,
4595 `description` longtext,
4596 `patient_id` bigint(20) default NULL,
4598 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
4600 CREATE TABLE version (
4601 v_major int(11) NOT NULL DEFAULT 0,
4602 v_minor int(11) NOT NULL DEFAULT 0,
4603 v_patch int(11) NOT NULL DEFAULT 0,
4604 v_tag varchar(31) NOT NULL DEFAULT '',
4605 v_database int(11) NOT NULL DEFAULT 0
4607 INSERT INTO version (v_major, v_minor, v_patch, v_tag, v_database) VALUES (0, 0, 0, '', 0);