Ob/Gyn forms contributed by Douglas Crosdale
[openemr.git] / contrib / forms / physician_history / table.sql
blobce8b591ae2a386523ef071350dbc10e62ebd4649
1 CREATE TABLE IF NOT EXISTS `form_physician_history` (
2 id bigint(20) NOT NULL auto_increment,
3 date datetime default NULL,
4 pid bigint(20) default NULL,
5 user varchar(255) default NULL,
6 groupname varchar(255) default NULL,
7 authorized tinyint(4) default NULL,
8 activity tinyint(4) default NULL,
10 /* Physician History */
12 established tinyint(1),
13 consultation tinyint(1),
14 report_sent tinyint(1),
15 report_sent_date varchar(32),
16 primary_care varchar(255),
17 other_physician varchar(255),
18 who_sent varchar(255),
19 chief_complaint longtext,
20 hpi longtext,
21 current_prescription longtext,
22 current_nonprescription longtext,
24 /* Changes since last visit */
25 ph_lvch_ill tinyint(1),
26 ph_lvch_surg tinyint(1),
27 ph_lvch_newmed tinyint(1),
28 ph_lvch_famhist tinyint(1),
29 ph_lvch_newallerg tinyint(1),
30 ph_lvch_gynhist tinyint(1),
31 ph_lvch_obsthist tinyint(1),
32 ph_lvch_notes longtext,
34 ph_allergies_none tinyint(1),
35 ph_allergies_data longtext,
37 cancer_scr_cytology tinyint(1),
38 cancer_scr_cytology_date varchar(32),
39 cancer_scr_hpv  tinyint(1),
40 cancer_scr_hpv_date varchar(32),
41 cancer_scr_notes longtext,
43 last_mammogram varchar(32),
44 last_mammogram_notes longtext,
46 last_colorectal varchar(32),
47 last_colorectal_notes longtext,
49 /* Gynecologic history */
50 gh_imp varchar(32),
51 gh_age_at_menarche varchar(255),
52 gh_length_of_flow varchar(255),
53 gh_interval_periods varchar(255),
54 gh_recent_changes varchar(255),
55 gh_sexually_active tinyint(1),
56 gh_had_sex tinyint(1),
57 gh_partners tinyint,
58 gh_partners_are varchar(6),
59 gh_method_contraception varchar(255),
60 gh_contraceptive_history varchar(255),
62 /* Obstetric history */
63 oh_pregnancies tinyint,
64 oh_abortions tinyint,
65 oh_miscarriages tinyint,
66 oh_premature_births tinyint,
67 oh_live_births tinyint,
68 oh_living_children tinyint,
69 oh_ch_rec_0 longtext, /* compound record: date, width, sex, weeks, delivery, notes : separated by |~ */
70 oh_ch_rec_1 longtext, /* compound record: date, width, sex, weeks, delivery, notes : separated by |~ */
71 oh_ch_rec_2 longtext, /* compound record: date, width, sex, weeks, delivery, notes : separated by |~ */
72 oh_ch_rec_3 longtext, /* compound record: date, width, sex, weeks, delivery, notes : separated by |~ */
73 oh_complications longtext,
74 oh_diabetes tinyint(1),
75 oh_hipertension tinyint(1),
76 oh_preemclampsia tinyint(1),
77 oh_depression tinyint(1),
78 oh_depression_treated longtext,
80 /* Past history */
81 ph_noncontrib tinyint(1),
82 ph_nochange_since tinyint(1),
83 ph_nochange_since_date varchar(32),
84 ph_surgeries longtext,
85 ph_illnesses longtext,
86 ph_injuries longtext,
87 ph_immunizations_tuberculosis longtext,
89 /* Family history */
90 fh_noncontrib tinyint(1),
91 fh_nochange_since tinyint(1),
92 fh_nochange_since_date varchar(32),
93 fh_mother tinyint(1),
94 fh_mother_dec_cause varchar(255),
95 fh_mother_dec_age tinyint,
96 fh_father tinyint(1),
97 fh_father_dec_cause varchar(255),
98 fh_father_dec_age tinyint,
99 fh_sibl_living tinyint,
100 fh_sibl_deceased tinyint,
101 fh_sibl_cause varchar(255),
102 fh_children_living tinyint,
103 fh_children_deceased tinyint,
104 fh_children_cause varchar(255),
105 fhd_diabetes tinyint(1),
106 fhd_cancer tinyint(1),
107 fhd_osteoporosis tinyint(1),
108 fhd_heart tinyint(1),
109 fhd_hipertension tinyint(1),
110 fhd_other tinyint(1),
111 fhd_hyperlipidemia tinyint(1),
112 fhd_deepvenous tinyint(1),
113 fhd_diabetes_who varchar(255),
114 fhd_cancer_who varchar(255),
115 fhd_osteoporosis_who varchar(255),
116 fhd_heart_who varchar(255),
117 fhd_hipertension_who varchar(255),
118 fhd_other_who varchar(255),
119 fhd_hyperlipidemia_who varchar(255),
120 fhd_deepvenous_who varchar(255),
122 /* Social history */
123 sh_noncontrib tinyint(1),
124 sh_nochange_since tinyint(1),
125 sh_nochange_since_date varchar(32),
126 sh_tobacco tinyint(1),
127 sh_alcohol tinyint(1),
128 sh_drugs tinyint(1),
129 sh_misuse tinyint(1),
130 sh_partner_violence tinyint(1),
131 sh_sexual_abuse tinyint(1),
132 sh_health_hazards tinyint(1),
133 sh_seat_belt tinyint(1),
134 sh_diet tinyint(1),
135 sh_folic_acid tinyint(1),
136 sh_calcium tinyint(1),
137 sh_reg_exercise tinyint(1),
138 sh_caffeine tinyint(1),
139 sh_advance tinyint(1),
140 sh_organ_donation tinyint(1),
141 sh_other tinyint(1),
142 sh_nochanges_since2 tinyint(1),
143 sh_nochanges_since2_date varchar(32),
144 sh_notes_1 varchar(255),
145 sh_notes_2 varchar(255),
146 sh_notes_3 varchar(255),
147 sh_notes_4 varchar(255),
148 sh_notes_5 varchar(255),
149 sh_notes_6 varchar(255),
150 sh_notes_7 varchar(255),
151 sh_notes_8 varchar(255),
152 sh_notes_9 varchar(255),
153 sh_notes_10 varchar(255),
154 sh_notes_11 varchar(255),
155 sh_notes_12 varchar(255),
156 sh_notes_13 varchar(255),
157 sh_notes_14 varchar(255),
158 sh_notes_15 varchar(255),
159 sh_notes_16 varchar(255),
160 ros_const_negative tinyint(1) DEFAULT 0,
161 ros_const_weight_loss tinyint(1) DEFAULT 0,
162 ros_const_weight_gain tinyint(1) DEFAULT 0,
163 ros_const_fever tinyint(1) DEFAULT 0,
164 ros_const_fatigue tinyint(1) DEFAULT 0,
165 ros_const_other tinyint(1) DEFAULT 0,
166 ros_const_tallest_height varchar(32),
167 ros_eyes_negative tinyint(1) DEFAULT 0,
168 ros_eyes_vision_change tinyint(1) DEFAULT 0,
169 ros_eyes_glasses tinyint(1) DEFAULT 0,
170 ros_eyes_other tinyint(1) DEFAULT 0,
171 ros_ear_negative tinyint(1) DEFAULT 0,
172 ros_ear_ulcers tinyint(1) DEFAULT 0,
173 ros_ear_sinusitis tinyint(1) DEFAULT 0,
174 ros_ear_headache tinyint(1) DEFAULT 0,
175 ros_ear_hearing_loss tinyint(1) DEFAULT 0,
176 ros_ear_other tinyint(1) DEFAULT 0,
177 ros_cv_negative tinyint(1) DEFAULT 0,
178 ros_cv_orthopnea tinyint(1) DEFAULT 0,
179 ros_cv_chest_pain tinyint(1) DEFAULT 0,
180 ros_cv_difficulty_breathing tinyint(1) DEFAULT 0,
181 ros_cv_edema tinyint(1) DEFAULT 0,
182 ros_cv_palpitation tinyint(1) DEFAULT 0,
183 ros_cv_other tinyint(1) DEFAULT 0,
184 ros_resp_negative tinyint(1) DEFAULT 0,
185 ros_resp_wheezing tinyint(1) DEFAULT 0,
186 ros_hemoptysis tinyint(1) DEFAULT 0,
187 ros_resp_shortness tinyint(1) DEFAULT 0,
188 ros_resp_cough tinyint(1) DEFAULT 0,
189 ros_resp_other tinyint(1) DEFAULT 0,
190 ros_gastr_negative tinyint(1) DEFAULT 0,
191 ros_gastr_diarrhea tinyint(1) DEFAULT 0,
192 ros_gastr_bloody_stool tinyint(1) DEFAULT 0,
193 ros_gastr_nausea tinyint(1) DEFAULT 0,
194 ros_gastr_constipation tinyint(1) DEFAULT 0,
195 ros_gastr_flatulence tinyint(1) DEFAULT 0,
196 ros_gastr_pain tinyint(1) DEFAULT 0,
197 ros_gastr_fecal tinyint(1) DEFAULT 0,
198 ros_gastr_other tinyint(1) DEFAULT 0,
199 ros_genit_negative tinyint(1) DEFAULT 0,
200 ros_genit_hematuria tinyint(1) DEFAULT 0,
201 ros_genit_dysuria tinyint(1) DEFAULT 0,
202 ros_genit_urgency tinyint(1) DEFAULT 0,
203 ros_genit_frequency tinyint(1) DEFAULT 0,
204 ros_genit_incomplete_emptying tinyint(1) DEFAULT 0,
205 ros_genit_incontinence tinyint(1) DEFAULT 0,
206 ros_genit_dyspareunia tinyint(1) DEFAULT 0,
207 ros_genit_abnormal_periods tinyint(1) DEFAULT 0,
208 ros_genit_pms tinyint(1) DEFAULT 0,
209 ros_genit_abnormal_bleeding tinyint(1) DEFAULT 0,
210 ros_genit_abnormal_discharge tinyint(1) DEFAULT 0,
211 ros_genit_other tinyint(1) DEFAULT 0,
212 ros_muscul_negative tinyint(1) DEFAULT 0,
213 ros_muscul_weakness tinyint(1) DEFAULT 0,
214 ros_muscul_pain tinyint(1) DEFAULT 0,
215 ros_muscul_other tinyint(1) DEFAULT 0,
216 ros_skin_negative tinyint(1) DEFAULT 0,
217 ros_skin_rash tinyint(1) DEFAULT 0,
218 ros_skin_ulcers tinyint(1) DEFAULT 0,
219 ros_skin_dry tinyint(1) DEFAULT 0,
220 ros_skin_pigmented tinyint(1) DEFAULT 0,
221 ros_skin_other tinyint(1) DEFAULT 0,
222 ros_breast_negative tinyint(1) DEFAULT 0,
223 ros_breast_mastalgia tinyint(1) DEFAULT 0,
224 ros_breast_discharge tinyint(1) DEFAULT 0,
225 ros_breast_masses tinyint(1) DEFAULT 0,
226 ros_breast_other tinyint(1) DEFAULT 0,
227 ros_neuro_negative tinyint(1) DEFAULT 0,
228 ros_neuro_syncope tinyint(1) DEFAULT 0,
229 ros_neuro_seizures tinyint(1) DEFAULT 0,
230 ros_neuro_numbness tinyint(1) DEFAULT 0,
231 ros_neuro_trouble_walking tinyint(1) DEFAULT 0,
232 ros_neuro_memory tinyint(1) DEFAULT 0,
233 ros_neuro_other tinyint(1) DEFAULT 0,
234 ros_psych_negative tinyint(1) DEFAULT 0,
235 ros_psych_depression tinyint(1) DEFAULT 0,
236 ros_psych_crying tinyint(1) DEFAULT 0,
237 ros_psych_anxiety tinyint(1) DEFAULT 0,
238 ros_psych_other tinyint(1) DEFAULT 0,
239 ros_endo_negative tinyint(1) DEFAULT 0,
240 ros_endo_diabetes tinyint(1) DEFAULT 0,
241 ros_endo_hipothyroid tinyint(1) DEFAULT 0,
242 ros_endo_hiperthyroid tinyint(1) DEFAULT 0,
243 ros_endo_flashes tinyint(1) DEFAULT 0,
244 ros_endo_hair_loss tinyint(1) DEFAULT 0,
245 ros_endo_intolerance tinyint(1) DEFAULT 0,
246 ros_endo_other tinyint(1) DEFAULT 0,
247 ros_hemato_negative tinyint(1) DEFAULT 0,
248 ros_hemato_bruises tinyint(1) DEFAULT 0,
249 ros_hemato_bleeding tinyint(1) DEFAULT 0,
250 ros_hemato_adenopathy tinyint(1) DEFAULT 0,
251 ros_hemato_other tinyint(1) DEFAULT 0,
253 /* Review of systems */
261 PRIMARY KEY (id)
262 ) TYPE=MyISAM;