Merge branch 'master' of git://github.com/openemr/openemr
[openemr.git] / contrib / forms / routine_screening_record / printable.php
blobe671179cdf8802dae212b180384af8e5d8c0843c
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
3 "http://www.w3.org/TR/html4/loose.dtd">
5 <?php
7 include_once("../../globals.php");
9 include_once("$srcdir/api.inc");
11 include_once("$srcdir/forms.inc");
13 include_once("$srcdir/calendar.inc");formHeader("Form: Routine screening record");
19 <html>
21 <head>
22 <?php html_header_show();?>
24 <title>Form: Routine screening record</title>
26 <?php include("../../acog_printable_h.css"); ?>
27 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
29 </head>
33 <?php
35 $fres=sqlStatement("select * from patient_data where pid='".$pid."'");
37 if ($fres){
39 $patient = sqlFetchArray($fres);
43 $fres=sqlStatement("select * from form_routine_screening_record where id=$id");
45 if ($fres){
47 $fdata = sqlFetchArray($fres);
53 <body class="body_top">
55 <div class="srvChapter">Routine screening record </div>
57 <div style="border: solid 2px black; background-color:#FFFFFF;">
59 <table border="0" cellpadding="2" cellspacing="0">
61 <tr align="left" valign="bottom">
63 <td colspan="4" class="fibody2" id="bordR">Patient name: <?php echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'}; ?></td>
65 <td colspan="4" class="fibody2" id="bordR">Birth date: <?php echo $patient{'DOB'}; ?></td>
67 <td colspan="3" class="fibody2">ID No: <?php echo $patient{'id'}; ?></td>
69 </tr>
71 <tr align="center" valign="middle">
73 <td class="ficaption2" id="bordR">age</td>
75 <td width="9%" class="ficaption2" id="bordR">Cervical cytology </td>
77 <td width="9%" class="ficaption2" id="bordR">Lipid profile assessment<sup>*</sup></td>
79 <td width="9%" class="ficaption2" id="bordR">Mammo-<br>
81 graphy<sup>*</sup></td>
83 <td width="9%" class="ficaption2" id="bordR">Colorectal cancer screening <sup>*</sup></td>
85 <td width="9%" class="ficaption2" id="bordR">Bone density screening<sup>*</sup> </td>
87 <td width="9%" class="ficaption2" id="bordR">Chlamydia screening<sup>*</sup> </td>
89 <td width="9%" class="ficaption2" id="bordR">Gonor-<br>
91 rhea screening <sup>*</sup> </td>
93 <td width="9%" class="ficaption2" id="bordR">Urinalysis</td>
95 <td width="9%" class="ficaption2" id="bordR">Fasting glucose test<sup>*</sup> </td>
97 <td width="9%" class="ficaption2">Thyroid stimulating hormone screening </td>
99 </tr>
101 <tr align="center" valign="middle">
103 <td class="fibody2" id="bordR">13-18</td>
105 <td class="fibody2" id="bordR">ANNUALLY BEGINNING
107 APPROXIMATELY 3 YEARS
109 AFTER INITIATION OF
111 SEXUAL INTERCOURSE</td>
113 <td class="fibody2" id="bordR">&nbsp; </td>
115 <td class="fibody2" id="bordR">&nbsp; </td>
117 <td class="fibody2" id="bordR">&nbsp; </td>
119 <td class="fibody2" id="bordR">&nbsp; </td>
121 <td class="fibody2" id="bordR"> SEXUALLY ACTIVE WOMEN
123 UNDER AGE 25</td>
125 <td class="fibody2" id="bordR">SEXUALLY ACTIVE
127 ADOLES-<br>
129 CENTS</td>
131 <td class="fibody2" id="bordR">&nbsp;</td>
133 <td class="fibody2" id="bordR">&nbsp;</td>
135 <td class="fibody2">&nbsp;</td>
137 </tr>
139 <tr align="center" valign="middle">
141 <td class="fibody2" id="bordR">19-39</td>
143 <td class="fibody2" id="bordR">ANNUALLY BEGINNING NO LATER THAN AGE 21 YEARS</td>
145 <td class="fibody2" id="bordR">&nbsp; </td>
147 <td class="fibody2" id="bordR">&nbsp; </td>
149 <td class="fibody2" id="bordR">&nbsp; </td>
151 <td class="fibody2" id="bordR">&nbsp; </td>
153 <td class="fibody2" id="bordR"> SEXUALLY ACTIVE WOMEN<br>
155 UNDER AGE 25</td>
157 <td class="fibody2" id="bordR">&nbsp; </td>
159 <td class="fibody2" id="bordR">&nbsp;</td>
161 <td class="fibody2" id="bordR">&nbsp;</td>
163 <td class="fibody2">&nbsp;</td>
165 </tr>
167 <tr align="center" valign="middle">
169 <td class="fibody2" id="bordR">40-64</td>
171 <td class="fibody2" id="bordR">EVERY 23 YEARS AFTER 3
173 CONSECuTIVE NEGATIVE TEST
175 RESULTS IF NO HISTORY OF
177 CIN 2 OR 3,
179 IMMUNOSUP-<br>
181 PRESSION,
183 HIV INFECTION, OR DES
185 EXPOSURE IN UTERO</td>
187 <td class="fibody2" id="bordR">EVERY 5 YEARS
189 BEGINNING
191 AT AGE 45</td>
193 <td class="fibody2" id="bordR">EVERY 12 YEARS UNTIL
195 AGE 50; YEARLY
197 BEGINNING AT AGE 50</td>
199 <td class="fibody2" id="bordR"> BEGINNING AT AGE 50
201 YEARLY FOBT OR FLEXIBLE
203 SIGMOIDOSCOPY EVERY
205 5 YEARS OR YEARLY FOBT
207 PLUS FLEXIBLE
209 SIGMOIDOSCOPY EVERY 5
211 YEARS OR DCBE EVERY 5
213 YEARS OR COLONOSCOPY
215 EVERY 10 YEARS</td>
217 <td class="fibody2" id="bordR">&nbsp; </td>
219 <td class="fibody2" id="bordR">&nbsp; </td>
221 <td class="fibody2" id="bordR">&nbsp; </td>
223 <td class="fibody2" id="bordR">&nbsp;</td>
225 <td class="fibody2" id="bordR">EVERY 3 YEARS
227 AFTER AGE 45</td>
229 <td class="fibody2">EVERY 5 YEARS
231 BEGINNING AT AGE 50</td>
233 </tr>
235 <tr align="center" valign="middle">
237 <td class="fibody2" id="bordR">65 and older </td>
239 <td class="fibody2" id="bordR">EVERY 23 YEARS AFTER 3<br>
241 CONSECUTIVE NEGATIVE TEST
243 RESULTS IF NO HISTORY OF
245 CIN 2 OR 3,
247 IMMUNOSUP-<br>
249 PRESSION,
251 HIV INFECTION, OR DES
253 EXPOSURE IN UTERO</td>
255 <td class="fibody2" id="bordR">EVERY 5 YEARS</td>
257 <td class="fibody2" id="bordR">YEARLY OR AS
259 APPROPRIATE</td>
261 <td class="fibody2" id="bordR"> YEARLY FOBT OR FLEXIBLE
263 SIGMOIDOSCOPY EVERY
265 5 YEARS OR YEARLY FOBT
267 PLUS FLEXIBLE
269 SIGMOIDOSCOPY EVERY
271 YEARS OR DCBE EVERY
273 YEARS OR COLONOSCOPY
275 EVERY 10 YEARS</td>
277 <td class="fibody2" id="bordR"> IN THE ABSENCE OF
279 NEW RISK FACTORS,
281 SUBSEQUENT SCREENING
283 NOT MORE FREQUENTLY
285 THAN EVERY 2 YEARS</td>
287 <td class="fibody2" id="bordR">&nbsp; </td>
289 <td class="fibody2" id="bordR">&nbsp; </td>
291 <td class="fibody2" id="bordR">YEARLY OR AS
293 APPROPRIATE</td>
295 <td class="fibody2" id="bordR">EVERY 3 YEARS</td>
297 <td class="fibody2">EVERY 5 YEARS</td>
299 </tr>
301 <tr align="left" valign="bottom">
303 <td colspan="11" class="fibody2" style="border-bottom: 2px solid black;">&nbsp;</td>
305 </tr>
307 <?php
309 $factors = array("cervical", "lipid", "mammo", "colorectal",
311 "bone", "chlamyd", "gonor", "urinal", "glucose", "thyroid");
313 $rsi = 1;
315 while ($rsi < 9){
317 $chunks = explode("|~", $fdata["record_$rsi"]);
319 list($cervical_date, $cervical_res) = explode('|', $chunks[0]);
321 list($lipid_date, $lipid_res) = explode('|', $chunks[1]);
323 list($mammo_date,$mammo_res) = explode('|', $chunks[2]);
325 list($colorectal_date,$colorectal_res) = explode('|', $chunks[3]);
327 list($bone_date,$bone_res) = explode('|', $chunks[4]);
329 list($chlamyd_date,$chlamyd_res) = explode('|', $chunks[5]);
331 list($gonor_date,$gonor_res) = explode('|', $chunks[6]);
333 list($urinal_date,$urinal_res) = explode('|', $chunks[7]);
335 list($glucose_date,$glucose_res) = explode('|', $chunks[8]);
337 list($thyroid_date,$thyroid_res) = explode('|', $chunks[9]);
343 print <<<EOL
345 <tr align="left" valign="bottom">
347 <td class="fibody2" id="bordR">Date</td>
349 <td class="fibody3" id="bordR">${cervical_date} &nbsp;</td>
351 <td class="fibody3" id="bordR">${lipid_date} &nbsp;</td>
353 <td class="fibody3" id="bordR">${mammo_date} &nbsp;</td>
355 <td class="fibody3" id="bordR">${colorectal_date} &nbsp;</td>
357 <td class="fibody3" id="bordR">${bone_date} &nbsp;</td>
359 <td class="fibody3" id="bordR">${chlamyd_date} &nbsp;</td>
361 <td class="fibody3" id="bordR">${gonor_date} &nbsp;</td>
363 <td class="fibody3" id="bordR">${urinal_date} &nbsp;</td>
365 <td class="fibody3" id="bordR">${glucose_date} &nbsp;</td>
367 <td class="fibody3">${thyroid_date} &nbsp;</td>
369 </tr>
371 <tr align="left" valign="bottom">
373 <td class="fibody2" id="bordR">result</td>
375 <td class="fibody5" id="bordR">${cervical_res} &nbsp;</td>
377 <td class="fibody5" id="bordR">${lipid_res} &nbsp;</td>
379 <td class="fibody5" id="bordR">${mammo_res} &nbsp;</td>
381 <td class="fibody5" id="bordR">${colorectal_res} &nbsp;</td>
383 <td class="fibody5" id="bordR">${bone_res} &nbsp;</td>
385 <td class="fibody5" id="bordR">${chlamyd_res} &nbsp;</td>
387 <td class="fibody5" id="bordR">${gonor_res} &nbsp;</td>
389 <td class="fibody5" id="bordR">${urinal_res} &nbsp;</td>
391 <td class="fibody5" id="bordR">${glucose_res} &nbsp;</td>
393 <td class="fibody5">${thyroid_res} &nbsp;</td>
395 </tr>
397 EOL;
399 $rsi++;
405 </table>
407 </div>
409 <p><sup>*</sup>This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)</p>
411 </body>
413 </html>