Added qgit package installation to developer appliance and cvs demo scripts.
[openemr.git] / contrib / forms / medical_decision / view.php
blob7d7e5d85fc337d93bb2fd7cf69dd69dea6f86920
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 <? 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 <?
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=<? echo $id ?>" method="post" enctype="multipart/form-data" name="my_form">
70 <? 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="<?
86 echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'};
88 ?>"></td>
90 <td width="20%" class="bordR">birth date
92 <br>
94 <input name="pbdate" type="text" class="fullin" id="pbdate" value="<?
96 echo $patient{'DOB'};
98 ?>" size="12"> </td>
100 <td width="20%" class="bordR">ID No<br>
102 <input name="md_pid" type="text" class="fullin" id="md_pid" size="12" value="<?
104 echo $patient{'id'};
106 ?>"></td>
108 <td width="20%">date<br>
110 <input name="md_date" type="text" class="fullin" id="md_date" value="<?
112 echo date('Y-m-d');
114 ?>" size="12"></td>
116 </tr>
118 </table> </td>
120 </tr>
122 <tr>
124 <td align="center" valign="middle" class="fibody2"><h2>Amount and complexility of data reviewed </h2></td>
126 </tr>
128 <tr>
130 <td align="left" valign="top">&nbsp;</td>
132 </tr>
134 </table>
136 <table width="100%" border="0" cellspacing="0" cellpadding="2">
138 <tr align="left" valign="top">
140 <td width="29%" class="ficaption3">Tests ordered </td>
142 <td class="ficaption3">review of records </td>
144 </tr>
146 <tr align="left" valign="top">
148 <td class="fibody3"><p>
150 <input name="test_lab" type="checkbox" value="1" <? echo (($fdata{'test_lab'} == '1')?' checked ':''); ?>>
152 Laboratory</p>
154 <blockquote>
158 <input name="test_lab_cervical" type="checkbox" value="1" <? echo (($fdata{'test_lab_cervical'} == '1')?' checked ':''); ?>>
160 cervical cytology</p>
164 <input name="test_lab_hpv" type="checkbox" value="1" <? echo (($fdata{'test_lab_hpv'} == '1')?' checked ':''); ?>>
166 HPV test</p>
170 <input name="test_lab_wet_mount" type="checkbox" value="1" <? echo (($fdata{'test_lab_wet_mount'} == '1')?' checked ':''); ?>>
172 wet mount</p>
176 <input name="test_lab_chlamydia" type="checkbox" value="checkbox" <? echo (($fdata{'test_lab_chlamydia'} == 'checkbox')?' checked ':''); ?>>
178 chlamydia</p>
182 <input name="test_lab_gonorrhea" type="checkbox" value="1" <? echo (($fdata{'test_lab_gonorrhea'} == '1')?' checked ':''); ?>>
184 gonorrhea</p>
188 <input name="test_lab_other" type="checkbox" value="1" <? echo (($fdata{'test_lab_other'} == '1')?' checked ':''); ?>>
190 other <span class="ficaption2">
192 <input name="test_lab_other_data" type="text" class="fullin" style="width:60px" value="<? echo $fdata{'test_lab_other_data'}; ?>">
194 </span></p>
196 </blockquote>
200 <input name="test_rad" type="checkbox" value="1" <? echo (($fdata{'test_rad'} == '1')?' checked ':''); ?>>
202 Radiology / Ultrasound</p>
204 <blockquote>
208 <input name="test_rad_mammogram" type="checkbox" value="1" <? echo (($fdata{'test_rad_mammogram'} == '1')?' checked ':''); ?>>
210 mammogram</p>
214 <input name="test_rad_other" type="checkbox" value="checkbox" <? echo (($fdata{'test_rad_other'} == 'checkbox')?' checked ':''); ?>>
216 other <span class="ficaption2">
218 <input name="test_rad_other_data" type="text" class="fullin" style="width:60px" value="<? echo $fdata{'test_rad_other_data'}; ?>">
220 </span> </p>
222 </blockquote></td>
224 <td class="fibody3"><p>
226 <input name="previous_test_results" type="checkbox" value="1" <? echo (($fdata{'previous_test_results'} == '1')?' checked ':''); ?>>
228 previous test results:</p>
232 <input name="previous_test_results_data" type="text" class="fullin2" value="<? echo $fdata{'previous_test_results_data'}; ?>">
234 </p> <p>
236 <input name="test_results_discussion" type="checkbox" value="1" <? echo (($fdata{'test_results_discussion'} == '1')?' checked ':''); ?>>
238 discussion of test results with performing physician:</p>
242 <input name="test_results_discussion_data" type="text" class="fullin2" value="<? echo $fdata{'test_results_discussion_data'}; ?>">
244 </p> <p>
246 <input name="old_records_reviewed" type="checkbox" value="1" <? echo (($fdata{'old_records_reviewed'} == '1')?' checked ':''); ?>>
248 old records reviewed and summarized:</p>
252 <input name="old_records_reviewed_data" type="text" class="fullin2" value="<? echo $fdata{'old_records_reviewed_data'}; ?>">
254 </p> <p>
256 <input name="history_other_source" type="checkbox" value="1" <? echo (($fdata{'history_other_source'} == '1')?' checked ':''); ?>>
258 history obtained from other source:</p>
262 <input name="history_other_source_data" type="text" class="fullin2" value="<? echo $fdata{'history_other_source_data'}; ?>">
264 </p> <p>
266 <input name="independent_review" type="checkbox" value="1" <? echo (($fdata{'independent_review'} == '1')?' checked ':''); ?>>
268 independent review of image/specimen:</p>
272 <input name="independent_review_data" type="text" class="fullin2" value="<? echo $fdata{'independent_review_data'}; ?>">
274 </p></td>
276 </tr>
278 </table>
280 </div>
282 <p align="center">&nbsp;</p>
284 <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>
286 <div style="border: solid 2px black; background-color: white;">
288 <table width="100%" border="0" cellspacing="0" cellpadding="2">
290 <tr>
292 <td colspan="2" align="left" valign="top" class="fibody2"> <input name="established_problem" type="radio" value="1" <? echo (($fdata{'established_problem'} == '1')?' checked ':''); ?>>
294 Established problem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
296 <input name="established_problem" type="radio" value="0" <? echo (($fdata{'established_problem'} == '0')?' checked ':''); ?>>
298 New problem </td>
300 </tr>
302 <tr>
304 <td colspan="2" align="left" valign="top" class="ficaption2">Assessment and plan:</td>
306 </tr>
308 <tr>
310 <td colspan="2" align="left" valign="top" class="fibody2"><textarea name="assessment_and_plan" rows="7" wrap="PHYSICAL" class="fullin2" ><? echo $fdata{'assessment_and_plan'}; ?></textarea></td>
312 </tr>
314 <tr>
316 <td colspan="2" align="left" valign="top" class="fibody2"><p>Risk of complications and/or morbidity/mortality:</p>
318 <blockquote>
322 <input name="md_risk" type="radio" value="minimal" <? echo (($fdata{'md_risk'} == 'minimal')?' checked ':''); ?>>
324 Minimal (EG, cold, aches and pains, over-the-counter medications)</p>
328 <input name="md_risk" type="radio" value="low" <? echo (($fdata{'md_risk'} == 'low')?' checked ':''); ?>>
330 low (EG, cystitis, vaginitis, prescription renewal, minor surgery without risk factors) </p>
334 <input name="md_risk" type="radio" value="moderate" <? echo (($fdata{'md_risk'} == 'moderate')?' checked ':''); ?>>
336 moderate (EG, breast mass, irregular bleeding, headaches, minor surgery with risk factors, major surgery without risk factors, new prescription)</p>
340 <input name="md_risk" type="radio" value="high" <? echo (($fdata{'md_risk'} == 'high')?' checked ':''); ?>>
342 high (EG, pelvic pain, rectal bleeding, multiple complaints, major surgery with risk factors, chemotherapy, emergency surgery) </p>
344 </blockquote></td>
346 </tr>
348 <tr>
350 <td colspan="2" align="left" valign="top" class="fibody2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
352 <tr>
354 <td width="20%" rowspan="3" align="left" valign="top" class="ficaption3">Patient counseled about:</td>
356 <td width="15%" align="left" valign="baseline" nowrap class="fibody3"><input name="pc_smoking" type="checkbox" value="1" <? echo (($fdata{'pc_smoking'} == '1')?' checked ':''); ?>>
358 smoking cessation </td>
360 <td width="15%" align="left" valign="baseline" nowrap class="fibody3"><input name="pc_contraception" type="checkbox" value="1" <? echo (($fdata{'pc_contraception'} == '1')?' checked ':''); ?>>
362 contraception</td>
364 <td width="15%" align="left" valign="bottom" nowrap>&nbsp;</td>
366 <td width="15%" align="left" valign="bottom" nowrap>&nbsp;</td>
368 </tr>
370 <tr>
372 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_weight" type="checkbox" value="1" <? echo (($fdata{'pc_weight'} == '1')?' checked ':''); ?>>
374 weight management </td>
376 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_safe_sex" type="checkbox" value="1" <? echo (($fdata{'pc_safe_sex'} == '1')?' checked ':''); ?>>
378 safe sex </td>
380 <td align="left" valign="bottom" nowrap>&nbsp;</td>
382 <td align="left" valign="bottom" nowrap>&nbsp;</td>
384 </tr>
386 <tr>
388 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_exercise" type="checkbox" value="1" <? echo (($fdata{'pc_exercise'} == '1')?' checked ':''); ?>>
390 exercise</td>
392 <td align="left" valign="baseline" nowrap class="fibody3"><input name="pc_other" type="checkbox" value="1" <? echo (($fdata{'pc_other'} == '1')?' checked ':''); ?>>
394 other</td>
396 <td align="left" valign="bottom" nowrap>&nbsp;</td>
398 <td align="left" valign="bottom" nowrap>&nbsp;</td>
400 </tr>
402 </table></td>
404 </tr>
406 <tr>
408 <td width="50%" align="left" valign="top" class="ficaption2" id="bordR"><input name="patient_education" type="checkbox" value="1" <? echo (($fdata{'patient_education'} == '1')?' checked ':''); ?>>
410 Patient education materials provided</td>
412 <td width="50%" align="left" valign="top" class="fibody2">&nbsp;</td>
414 </tr>
416 <tr>
418 <td align="left" valign="top" class="fibody2" id="bordR">&nbsp;</td>
420 <td align="left" valign="top" class="fibody2">&nbsp;</td>
422 </tr>
424 <tr>
426 <td align="left" valign="top" class="ficaption2" id="bordR">Minutes counseled:
428 <input name="minutes_counseled" type="text" class="fullin" style="width:60px" value="<? echo $fdata{'minutes_counseled'}; ?>"></td>
430 <td align="left" valign="top" class="ficaption2">Total encounter time:
432 <input name="total_encounter_time" type="text" class="fullin" style="width:60px" value="<? echo $fdata{'total_encounter_time'}; ?>"></td>
434 </tr>
436 <tr valign="bottom">
438 <td height="50" align="left" class="ficaption2" id="bordR">Signature:</td>
440 <td align="left" class="ficaption2">Date:
442 <input name="md_date" type="text" class="fullin" id="md_date" style="width:80px" value="<?
444 echo date('Y-m-d');
446 ?>"></td>
448 </tr>
450 </table>
452 </div>
454 <table width="100%" border="0">
456 <tr><td align="left" width="120"> <a href="javascript:top.restoreSession();document.my_form.submit();" class="link_submit">[Save Data]</a> </td>
458 <td align="left" nowrap> <a href="<? echo $rootdir; ?>/patient_file/encounter/print_form.php?id=<? echo $id; ?>&formname=<? echo $formname; ?>"
460 target="_blank" class="link_submit" onclick="top.restoreSession()">[Printable form]</a> </td>
462 <td align="right"> <a href="<?php echo $GLOBALS['form_exit_url']; ?>" class="link_submit"
464 onclick="top.restoreSession()">[Don't Save]</a> </td></tr>
466 </table>
468 </form>
470 <?php
472 formFooter();
476 </body>
478 </html>