Change formatting of initial comment block.
[openemr.git] / contrib / forms / medical_decision / printable.php
bloba4c259c2b0d257778a3f23d5696ae5387fea8913
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");
17 <?php
19 $fres=sqlStatement("select * from patient_data where pid='".$pid."'");
21 if ($fres){
23 $patient = sqlFetchArray($fres);
27 $fres=sqlStatement("select * from form_medical_decision where id='".$id."'");
29 if ($fres){
31 $fdata = sqlFetchArray($fres);
39 <html>
41 <head>
42 <?php html_header_show();?>
44 <title>Medical decision making</title>
46 <?php include("../../acog_printable_v.css"); ?>
48 </head>
50 <body>
52 <div class="srvChapter">Medical decision making</div>
54 <div style="border: solid 2px black; background-color: white;">
56 <table width="100%" border="0" cellspacing="0" cellpadding="0">
58 <tr>
60 <td align="left" valign="top" class="fibody2"><table width="100%" border="0" cellspacing="0" cellpadding="5">
62 <tr align="left" valign="bottom">
64 <td width="40%" class="fibody2" id="bordR">Patient name: <?php echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'}; ?></td>
66 <td width="20%" class="fibody2" id="bordR">Birth date: <?php echo $patient{'DOB'}; ?></td>
68 <td width="20%" class="fibody2" id="bordR">ID No: <?php echo $patient{'id'}; ?></td>
70 <td width="20%" class="fibody2">date: <?php echo date('Y-m-d'); ?></td>
72 </tr>
74 </table> </td>
76 </tr>
78 <tr>
80 <td align="center" valign="middle" class="fibody2"><h2>Amount and complexility of data reviewed </h2></td>
82 </tr>
84 <tr>
86 <td align="left" valign="top">&nbsp;</td>
88 </tr>
90 </table>
92 <table width="100%" border="0" cellspacing="0" cellpadding="2">
94 <tr align="left" valign="top">
96 <td width="29%" class="ficaption3">Tests ordered </td>
98 <td class="ficaption3">review of records </td>
100 </tr>
102 <tr align="left" valign="top">
104 <td class="fibody3"><p>
106 <?php echo (($fdata{'test_lab'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
108 Laboratory</p>
110 <blockquote>
114 <?php echo (($fdata{'test_lab_cervical'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
116 cervical cytology</p>
120 <?php echo (($fdata{'test_lab_hpv'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
122 HPV test</p>
126 <?php echo (($fdata{'test_lab_wet_mount'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
128 wet mount</p>
132 <?php echo (($fdata{'test_lab_chlamydia'} == 'checkbox')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
134 chlamydia</p>
138 <?php echo (($fdata{'test_lab_gonorrhea'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
140 gonorrhea</p>
144 <?php echo (($fdata{'test_lab_other'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
146 other <span class="ficaption2">
148 <?php echo $fdata{'test_lab_other_data'}; ?>
150 </span></p>
152 </blockquote>
156 <?php echo (($fdata{'test_rad'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
158 Radiology / Ultrasound</p>
160 <blockquote>
164 <?php echo (($fdata{'test_rad_mammogram'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
166 mammogram</p>
170 <?php echo (($fdata{'test_rad_other'} == 'checkbox')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
172 other <span class="ficaption2">
174 <?php echo $fdata{'test_rad_other_data'}; ?>
176 </span> </p>
178 </blockquote></td>
180 <td class="fibody3"><p>
182 <?php echo (($fdata{'previous_test_results'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
184 previous test results:</p>
188 <?php echo $fdata{'previous_test_results_data'}; ?>
190 </p> <p>
192 <?php echo (($fdata{'test_results_discussion'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
194 discussion of test results with performing physician:</p>
198 <?php echo $fdata{'test_results_discussion_data'}; ?>
200 </p> <p>
202 <?php echo (($fdata{'old_records_reviewed'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
204 old records reviewed and summarized:</p>
208 <?php echo $fdata{'old_records_reviewed_data'}; ?>
210 </p> <p>
212 <?php echo (($fdata{'history_other_source'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
214 history obtained from other source:</p>
218 <?php echo $fdata{'history_other_source_data'}; ?>
220 </p> <p>
222 <?php echo (($fdata{'independent_review'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
224 independent review of image/specimen:</p>
228 <?php echo $fdata{'independent_review_data'}; ?>
230 </p></td>
232 </tr>
234 </table>
236 </div>
238 <p align="center">&nbsp;</p>
240 <h2 align="center">Diagnoses / Management option </h2>
242 <div style="border: solid 2px black; background-color: white;">
244 <table width="100%" border="0" cellspacing="0" cellpadding="2">
246 <tr>
248 <td colspan="2" align="left" valign="top" class="fibody2"> <?php echo (($fdata{'established_problem'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
250 Established problem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
252 <?php echo (($fdata{'established_problem'} == '0')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
254 New problem </td>
256 </tr>
258 <tr>
260 <td colspan="2" align="left" valign="top" class="ficaption2">Assessment and plan:</td>
262 </tr>
264 <tr>
266 <td colspan="2" align="left" valign="top" class="fibody5"><?php echo $fdata{'assessment_and_plan'}; ?></td>
268 </tr>
270 <tr>
272 <td colspan="2" align="left" valign="top" class="fibody2"><p>Risk of complications and/or morbidity/mortality:</p>
274 <blockquote>
278 <?php echo (($fdata{'md_risk'} == 'minimal')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
280 Minimal (EG, cold, aches and pains, over-the-counter medications)</p>
284 <?php echo (($fdata{'md_risk'} == 'low')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
286 low (EG, cystitis, vaginitis, prescription renewal, minor surgery without risk factors) </p>
290 <?php echo (($fdata{'md_risk'} == 'moderate')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
292 moderate (EG, breast mass, irregular bleeding, headaches, minor surgery with risk factors, major surgery without risk factors, new prescription)</p>
296 <?php echo (($fdata{'md_risk'} == 'high')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
298 high (EG, pelvic pain, rectal bleeding, multiple complaints, major surgery with risk factors, chemotherapy, emergency surgery) </p>
300 </blockquote></td>
302 </tr>
304 <tr>
306 <td colspan="2" align="left" valign="top" class="fibody2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
308 <tr>
310 <td width="20%" rowspan="3" align="left" valign="top" class="ficaption3">Patient counseled about:</td>
312 <td width="15%" align="left" valign="baseline" nowrap class="fibody3"><?php echo (($fdata{'pc_smoking'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
314 smoking cessation </td>
316 <td width="15%" align="left" valign="baseline" nowrap class="fibody3"><?php echo (($fdata{'pc_contraception'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
318 contraception</td>
320 <td width="15%" align="left" valign="bottom" nowrap>&nbsp;</td>
322 <td width="15%" align="left" valign="bottom" nowrap>&nbsp;</td>
324 </tr>
326 <tr>
328 <td align="left" valign="baseline" nowrap class="fibody3"><?php echo (($fdata{'pc_weight'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
330 weight management </td>
332 <td align="left" valign="baseline" nowrap class="fibody3"><?php echo (($fdata{'pc_safe_sex'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
334 safe sex </td>
336 <td align="left" valign="bottom" nowrap>&nbsp;</td>
338 <td align="left" valign="bottom" nowrap>&nbsp;</td>
340 </tr>
342 <tr>
344 <td align="left" valign="baseline" nowrap class="fibody3"><?php echo (($fdata{'pc_exercise'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
346 exercise</td>
348 <td align="left" valign="baseline" nowrap class="fibody3"><?php echo (($fdata{'pc_other'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
350 other</td>
352 <td align="left" valign="bottom" nowrap>&nbsp;</td>
354 <td align="left" valign="bottom" nowrap>&nbsp;</td>
356 </tr>
358 </table></td>
360 </tr>
362 <tr>
364 <td width="50%" align="left" valign="top" class="ficaption2" id="bordR"><?php echo (($fdata{'patient_education'} == '1')?'<img src="../../pic/mrkcheck.png" width="12" height="11"> ':'<img src="../../pic/mrkempty.png" width="12" height="11"> '); ?>
366 Patient education materials provided</td>
368 <td width="50%" align="left" valign="top" class="fibody2">&nbsp;</td>
370 </tr>
372 <tr>
374 <td align="left" valign="top" class="fibody2" id="bordR">&nbsp;</td>
376 <td align="left" valign="top" class="fibody2">&nbsp;</td>
378 </tr>
380 <tr>
382 <td align="left" valign="top" class="ficaption2" id="bordR">Minutes counseled:
384 <?php echo $fdata{'minutes_counseled'}; ?></td>
386 <td align="left" valign="top" class="ficaption2">Total encounter time:
388 <?php echo $fdata{'total_encounter_time'}; ?></td>
390 </tr>
392 <tr valign="bottom">
394 <td height="50" align="left" class="ficaption2" id="bordR">Signature:</td>
396 <td align="left" class="ficaption2">Date: <?php echo $fdata['date']; ?></td>
398 </tr>
400 </table>
402 </div>
404 </body>
406 </html>