MySQL5.5 code fix for .sql files; changed TYPE= to ENGINE=
[openemr.git] / contrib / forms / medical_decision / view.php
blob04f8c58c40dc6ce69c18182805f2fe34f546ec4c
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");
19 <html>
21 <head>
22 <?php html_header_show();?>
24 <title>Medical decision making</title>
26 <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
28 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
30 <link rel=stylesheet href="../../acog.css" type="text/css">
32 <script language="JavaScript" src="../../acog.js" type="text/JavaScript"></script>
34 <script language="JavaScript" type="text/JavaScript">
36 window.onload = initialize;
38 </script>
40 </head>
42 <body <?echo $top_bg_line;?>>
46 <div class="srvChapter">Medical decision making <a href="#" onMouseOver="toolTip('The <b>Medical Decision Making</b> section provides space to document minutes counseled, total encounter time, and other services needed to determine the correct level of medical decision making. <br><br><b>Amount and complexility of data reviewed</b><br>Minimal/none = 1 box, limited = 2 boxes, moderate = 3 boxes, extensive = 4+ boxes<br><br>The following items (if checked) count as 2 boxes:<li>OLD RECORDS REVIEWED AND SUMMARIZED</li><li>HISTORY OBTAINED FROM OTHER SOURCE</li><li>INDEPENDENT REVIEW OF IMAGE/SPECIMEN</li>', 300)" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></div>
48 <?php
50 $fres=sqlStatement("select * from patient_data where pid='".$pid."'");
52 if ($fres){
54 $patient = sqlFetchArray($fres);
58 $fres=sqlStatement("select * from form_medical_decision where id=$id");
60 if ($fres){
62 $fdata = sqlFetchArray($fres);
68 <form action="<?echo $rootdir;?>/forms/medical_decision/save.php?mode=update&id=<?php echo $id ?>" method="post" enctype="multipart/form-data" name="my_form">
70 <?php include("../../acog_menu.inc"); ?>
72 <div style="border: solid 2px black; background-color: white;">
74 <table width="100%" border="0" cellspacing="0" cellpadding="0">
76 <tr>
78 <td align="left" valign="top" class="fibody2"><table width="100%" border="0" cellspacing="0" cellpadding="5">
80 <tr align="left" valign="bottom" class="fibody">
82 <td width="40%" class="bordR">Patient name <br>
84 <input name="pname" type="text" class="fullin" id="pname" value="<?php
87 echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'};
89 ?>"></td>
91 <td width="20%" class="bordR">birth date
93 <br>
95 <input name="pbdate" type="text" class="fullin" id="pbdate" value="<?php
98 echo $patient{'DOB'};
100 ?>" size="12"> </td>
102 <td width="20%" class="bordR">ID No<br>
104 <input name="md_pid" type="text" class="fullin" id="md_pid" size="12" value="<?php
107 echo $patient{'id'};
109 ?>"></td>
111 <td width="20%">date<br>
113 <input name="md_date" type="text" class="fullin" id="md_date" value="<?php
116 echo date('Y-m-d');
118 ?>" size="12"></td>
120 </tr>
122 </table> </td>
124 </tr>
126 <tr>
128 <td align="center" valign="middle" class="fibody2"><h2>Amount and complexility of data reviewed </h2></td>
130 </tr>
132 <tr>
134 <td align="left" valign="top">&nbsp;</td>
136 </tr>
138 </table>
140 <table width="100%" border="0" cellspacing="0" cellpadding="2">
142 <tr align="left" valign="top">
144 <td width="29%" class="ficaption3">Tests ordered </td>
146 <td class="ficaption3">review of records </td>
148 </tr>
150 <tr align="left" valign="top">
152 <td class="fibody3"><p>
154 <input name="test_lab" type="checkbox" value="1" <?php echo (($fdata{'test_lab'} == '1')?' checked ':''); ?>>
156 Laboratory</p>
158 <blockquote>
162 <input name="test_lab_cervical" type="checkbox" value="1" <?php echo (($fdata{'test_lab_cervical'} == '1')?' checked ':''); ?>>
164 cervical cytology</p>
168 <input name="test_lab_hpv" type="checkbox" value="1" <?php echo (($fdata{'test_lab_hpv'} == '1')?' checked ':''); ?>>
170 HPV test</p>
174 <input name="test_lab_wet_mount" type="checkbox" value="1" <?php echo (($fdata{'test_lab_wet_mount'} == '1')?' checked ':''); ?>>
176 wet mount</p>
180 <input name="test_lab_chlamydia" type="checkbox" value="checkbox" <?php echo (($fdata{'test_lab_chlamydia'} == 'checkbox')?' checked ':''); ?>>
182 chlamydia</p>
186 <input name="test_lab_gonorrhea" type="checkbox" value="1" <?php echo (($fdata{'test_lab_gonorrhea'} == '1')?' checked ':''); ?>>
188 gonorrhea</p>
192 <input name="test_lab_other" type="checkbox" value="1" <?php echo (($fdata{'test_lab_other'} == '1')?' checked ':''); ?>>
194 other <span class="ficaption2">
196 <input name="test_lab_other_data" type="text" class="fullin" style="width:60px" value="<?php echo $fdata{'test_lab_other_data'}; ?>">
198 </span></p>
200 </blockquote>
204 <input name="test_rad" type="checkbox" value="1" <?php echo (($fdata{'test_rad'} == '1')?' checked ':''); ?>>
206 Radiology / Ultrasound</p>
208 <blockquote>
212 <input name="test_rad_mammogram" type="checkbox" value="1" <?php echo (($fdata{'test_rad_mammogram'} == '1')?' checked ':''); ?>>
214 mammogram</p>
218 <input name="test_rad_other" type="checkbox" value="checkbox" <?php echo (($fdata{'test_rad_other'} == 'checkbox')?' checked ':''); ?>>
220 other <span class="ficaption2">
222 <input name="test_rad_other_data" type="text" class="fullin" style="width:60px" value="<?php echo $fdata{'test_rad_other_data'}; ?>">
224 </span> </p>
226 </blockquote></td>
228 <td class="fibody3"><p>
230 <input name="previous_test_results" type="checkbox" value="1" <?php echo (($fdata{'previous_test_results'} == '1')?' checked ':''); ?>>
232 previous test results:</p>
236 <input name="previous_test_results_data" type="text" class="fullin2" value="<?php echo $fdata{'previous_test_results_data'}; ?>">
238 </p> <p>
240 <input name="test_results_discussion" type="checkbox" value="1" <?php echo (($fdata{'test_results_discussion'} == '1')?' checked ':''); ?>>
242 discussion of test results with performing physician:</p>
246 <input name="test_results_discussion_data" type="text" class="fullin2" value="<?php echo $fdata{'test_results_discussion_data'}; ?>">
248 </p> <p>
250 <input name="old_records_reviewed" type="checkbox" value="1" <?php echo (($fdata{'old_records_reviewed'} == '1')?' checked ':''); ?>>
252 old records reviewed and summarized:</p>
256 <input name="old_records_reviewed_data" type="text" class="fullin2" value="<?php echo $fdata{'old_records_reviewed_data'}; ?>">
258 </p> <p>
260 <input name="history_other_source" type="checkbox" value="1" <?php echo (($fdata{'history_other_source'} == '1')?' checked ':''); ?>>
262 history obtained from other source:</p>
266 <input name="history_other_source_data" type="text" class="fullin2" value="<?php echo $fdata{'history_other_source_data'}; ?>">
268 </p> <p>
270 <input name="independent_review" type="checkbox" value="1" <?php echo (($fdata{'independent_review'} == '1')?' checked ':''); ?>>
272 independent review of image/specimen:</p>
276 <input name="independent_review_data" type="text" class="fullin2" value="<?php echo $fdata{'independent_review_data'}; ?>">
278 </p></td>
280 </tr>
282 </table>
284 </div>
286 <p align="center">&nbsp;</p>
288 <h2 align="center">Diagnoses / Management option <a href="#" onMouseOver="toolTip('<b>Diagnoses/management options</b><p><b>MINIMAL:</b> Minor problem; established problem, stable/improved<br><b>MULTIPLE:</b> New problem, no additional workup planned<br><b>LIMITED:</b> Established problem, worsening<br><b>EXTENSIVE:</b> New problem, additional workup planned</p>', 300)" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></h2>
290 <div style="border: solid 2px black; background-color: white;">
292 <table width="100%" border="0" cellspacing="0" cellpadding="2">
294 <tr>
296 <td colspan="2" align="left" valign="top" class="fibody2"> <input name="established_problem" type="radio" value="1" <?php echo (($fdata{'established_problem'} == '1')?' checked ':''); ?>>
298 Established problem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
300 <input name="established_problem" type="radio" value="0" <?php echo (($fdata{'established_problem'} == '0')?' checked ':''); ?>>
302 New problem </td>
304 </tr>
306 <tr>
308 <td colspan="2" align="left" valign="top" class="ficaption2">Assessment and plan:</td>
310 </tr>
312 <tr>
314 <td colspan="2" align="left" valign="top" class="fibody2"><textarea name="assessment_and_plan" rows="7" wrap="PHYSICAL" class="fullin2" ><?php echo $fdata{'assessment_and_plan'}; ?></textarea></td>
316 </tr>
318 <tr>
320 <td colspan="2" align="left" valign="top" class="fibody2"><p>Risk of complications and/or morbidity/mortality:</p>
322 <blockquote>
326 <input name="md_risk" type="radio" value="minimal" <?php echo (($fdata{'md_risk'} == 'minimal')?' checked ':''); ?>>
328 Minimal (EG, cold, aches and pains, over-the-counter medications)</p>
332 <input name="md_risk" type="radio" value="low" <?php echo (($fdata{'md_risk'} == 'low')?' checked ':''); ?>>
334 low (EG, cystitis, vaginitis, prescription renewal, minor surgery without risk factors) </p>
338 <input name="md_risk" type="radio" value="moderate" <?php echo (($fdata{'md_risk'} == 'moderate')?' checked ':''); ?>>
340 moderate (EG, breast mass, irregular bleeding, headaches, minor surgery with risk factors, major surgery without risk factors, new prescription)</p>
344 <input name="md_risk" type="radio" value="high" <?php echo (($fdata{'md_risk'} == 'high')?' checked ':''); ?>>
346 high (EG, pelvic pain, rectal bleeding, multiple complaints, major surgery with risk factors, chemotherapy, emergency surgery) </p>
348 </blockquote></td>
350 </tr>
352 <tr>
354 <td colspan="2" align="left" valign="top" class="fibody2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
356 <tr>
358 <td width="20%" rowspan="3" align="left" valign="top" class="ficaption3">Patient counseled about:</td>
360 <td width="15%" align="left" valign="baseline" nowrap class="fibody3"><input name="pc_smoking" type="checkbox" value="1" <?php echo (($fdata{'pc_smoking'} == '1')?' checked ':''); ?>>
362 smoking cessation </td>
364 <td width="15%" align="left" valign="baseline" nowrap class="fibody3"><input name="pc_contraception" type="checkbox" value="1" <?php echo (($fdata{'pc_contraception'} == '1')?' checked ':''); ?>>
366 contraception</td>
368 <td width="15%" align="left" valign="bottom" nowrap>&nbsp;</td>
370 <td width="15%" align="left" valign="bottom" nowrap>&nbsp;</td>
372 </tr>
374 <tr>
376 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_weight" type="checkbox" value="1" <?php echo (($fdata{'pc_weight'} == '1')?' checked ':''); ?>>
378 weight management </td>
380 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_safe_sex" type="checkbox" value="1" <?php echo (($fdata{'pc_safe_sex'} == '1')?' checked ':''); ?>>
382 safe sex </td>
384 <td align="left" valign="bottom" nowrap>&nbsp;</td>
386 <td align="left" valign="bottom" nowrap>&nbsp;</td>
388 </tr>
390 <tr>
392 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_exercise" type="checkbox" value="1" <?php echo (($fdata{'pc_exercise'} == '1')?' checked ':''); ?>>
394 exercise</td>
396 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_other" type="checkbox" value="1" <?php echo (($fdata{'pc_other'} == '1')?' checked ':''); ?>>
398 other</td>
400 <td align="left" valign="bottom" nowrap>&nbsp;</td>
402 <td align="left" valign="bottom" nowrap>&nbsp;</td>
404 </tr>
406 </table></td>
408 </tr>
410 <tr>
412 <td width="50%" align="left" valign="top" class="ficaption2" id="bordR"><input name="patient_education" type="checkbox" value="1" <?php echo (($fdata{'patient_education'} == '1')?' checked ':''); ?>>
414 Patient education materials provided</td>
416 <td width="50%" align="left" valign="top" class="fibody2">&nbsp;</td>
418 </tr>
420 <tr>
422 <td align="left" valign="top" class="fibody2" id="bordR">&nbsp;</td>
424 <td align="left" valign="top" class="fibody2">&nbsp;</td>
426 </tr>
428 <tr>
430 <td align="left" valign="top" class="ficaption2" id="bordR">Minutes counseled:
432 <input name="minutes_counseled" type="text" class="fullin" style="width:60px" value="<?php echo $fdata{'minutes_counseled'}; ?>"></td>
434 <td align="left" valign="top" class="ficaption2">Total encounter time:
436 <input name="total_encounter_time" type="text" class="fullin" style="width:60px" value="<?php echo $fdata{'total_encounter_time'}; ?>"></td>
438 </tr>
440 <tr valign="bottom">
442 <td height="50" align="left" class="ficaption2" id="bordR">Signature:</td>
444 <td align="left" class="ficaption2">Date:
446 <input name="md_date" type="text" class="fullin" id="md_date" style="width:80px" value="<?php
449 echo date('Y-m-d');
451 ?>"></td>
453 </tr>
455 </table>
457 </div>
459 <table width="100%" border="0">
461 <tr><td align="left" width="120"> <a href="javascript:top.restoreSession();document.my_form.submit();" class="link_submit">[Save Data]</a> </td>
463 <td align="left" nowrap> <a href="<?php echo $rootdir; ?>/patient_file/encounter/print_form.php?id=<?php echo $id; ?>&formname=<?php echo $formname; ?>"
465 target="_blank" class="link_submit" onclick="top.restoreSession()">[Printable form]</a> </td>
467 <td align="right"> <a href="<?php echo $GLOBALS['form_exit_url']; ?>" class="link_submit"
469 onclick="top.restoreSession()">[Don't Save]</a> </td></tr>
471 </table>
473 </form>
475 <?php
477 formFooter();
481 </body>
483 </html>