UTF8 encoding support
[openemr.git] / contrib / forms / high_risk_screening_record / view.php
blob1862c8c3a8f10c9d25a3be632c9b63adcfd23130
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>Form: High risk screening record</title>
26 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
28 <link rel=stylesheet href="../../acog.css" type="text/css">
30 <script language="JavaScript" src="../../acog.js" type="text/JavaScript"></script>
32 <script language="JavaScript" type="text/JavaScript">
34 window.onload = initialize;
36 </script>
38 </head>
42 <?
44 $fres=sqlStatement("select * from patient_data where pid='".$pid."'");
46 if ($fres){
48 $patient = sqlFetchArray($fres);
52 $fres=sqlStatement("select * from form_high_risk_screening_record where id=$id");
54 if ($fres){
56 $fdata = sqlFetchArray($fres);
62 <body <?echo $top_bg_line;?>>
66 <form action="<?echo $rootdir;?>/forms/high_risk_screening_record/save.php?mode=update&id=<? echo $id; ?>" method="post" enctype="multipart/form-data" name="my_form">
68 <? include("../../acog_menu.inc"); ?>
70 <div class="srvChapter">High risk screening record <a href="#" onMouseOver="toolTip('See Table of High-Risk Factors.')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></div>
72 <div style="border: solid 2px black; background-color:#FFFFFF;">
74 <table border="0" cellpadding="2" cellspacing="0">
76 <tr align="left" valign="bottom">
78 <td colspan="6" class="fibody2" id="bordR">patient name:
80 <input name="pname" type="text" class="fullin" id="pname" style="width: 70%" value="<?
82 echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'};
84 ?>"></td>
86 <td colspan="5" class="fibody2" id="bordR">Birth date:
88 <input name="pbdate" type="text" class="fullin" id="pbdate" style="width: 65%" value="<?
90 echo $patient{'DOB'};
92 ?>"></td>
94 <td colspan="4" class="fibody2">ID No:
96 <input name="hr_pid" type="text" class="fullin" id="hr_pid" style="width:80%" value="<?
98 echo $patient{'id'};
100 ?>"></td>
102 </tr>
104 <tr align="center" valign="middle">
106 <td class="ficaption2" id="bordR">&nbsp;</td>
108 <td width="6%" class="ficaption2" id="bordR">HEMO-<br>
110 GLOBIN<br>
112 TEST</td>
114 <td width="6%" class="ficaption2" id="bordR">BONE DENSITY<br>
116 SCREENING</td>
118 <td width="6%" class="ficaption2" id="bordR">BACTERI-<br>
120 URIA&nbsp;TEST</td>
122 <td width="6%" class="ficaption2" id="bordR">STD<br>
124 TESTING</td>
126 <td width="6%" class="ficaption2" id="bordR">HIV test <a href="#" onMouseOver="toolTip('Check state requirements before recording results.')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></td>
128 <td width="6%" class="ficaption2" id="bordR">Genetic testing </td>
130 <td width="6%" class="ficaption2" id="bordR">Rubella titer </td>
132 <td width="6%" class="ficaption2" id="bordR">TB skin test </td>
134 <td width="6%" class="ficaption2" id="bordR">Lipid profile assessment </td>
136 <td width="6%" class="ficaption2" id="bordR">Mammo-<br>
138 graphy</td>
140 <td width="6%" class="ficaption2" id="bordR">Fasting<br>
142 GLUCOSE TEST</td>
144 <td width="6%" class="ficaption2" id="bordR">TSH<br>
146 TEST</td>
148 <td width="6%" class="ficaption2" id="bordR">COLORECTAL<br>
150 CANCER<br>
152 SCREENING</td>
154 <td width="6%" class="ficaption2">HEPATITIS C<br>
156 VIRUS TEST</td>
158 </tr>
162 $rsi = 1;
164 while ($rsi < 13){
166 list(
168 $hemoglobin, $bone_density, $bacteriuria, $std, $hiv, $genetic, $rubella, $tb_skin,
170 $lipid, $mammography, $fasting_glucose, $tsh, $cancer, $hepatitis_c
172 ) = explode("|~",$fdata["record_".$rsi]);
174 list( $hemoglobin_date, $hemoglobin_res) = explode(';', $hemoglobin);
176 list( $bone_density_date, $bone_density_res) = explode(';', $bone_density);
178 list( $bacteriuria_date, $bacteriuria_res) = explode(';', $bacteriuria);
180 list( $std_date, $std_res) = explode(';', $std);
182 list( $hiv_date, $hiv_res) = explode(';', $hiv);
184 list( $genetic_date, $genetic_res) = explode(';', $genetic);
186 list( $rubella_date, $rubella_res) = explode(';', $rubella);
188 list( $tb_skin_date, $tdb_skin_res) = explode(';', $tdb_skin);
190 list( $lipid_date, $lipid_res) = explode(';', $lipid);
192 list( $mammography_date, $mammography_res) = explode(';', $mammography);
194 list( $fasting_glucose_date, $fasting_glucose_res) = explode(';', $fasting_glucose);
196 list( $tsh_date, $tsh_res) = explode(';', $tsh);
198 list( $cancer_date, $cancer_res) = explode(';', $cancer);
200 list( $hepatitis_c_date, $hepatitis_c_res) = explode(';', $hepatitis_c);
204 print <<<EOL
206 <tr align="left" valign="bottom">
208 <td class="fibody3" id="bordR">Date:</td>
210 <td class="fibody3" id="bordR"><input name="hemoglobin_date_${rsi}" type="text" value="${hemoglobin_date}" class="fullin2"></td>
212 <td class="fibody3" id="bordR"><input name="bone_density_date_${rsi}" type="text" value="${bone_density_date}" class="fullin2"></td>
214 <td class="fibody3" id="bordR"><input name="bacteriuria_date_${rsi}" type="text" value="${bacteriuria_date}" class="fullin2"></td>
216 <td class="fibody3" id="bordR"><input name="std_date_${rsi}" type="text" value="${std_date}" class="fullin2"></td>
218 <td class="fibody3" id="bordR"><input name="hiv_date_${rsi}" type="text" value="${hiv_date}" class="fullin2"></td>
220 <td class="fibody3" id="bordR"><input name="genetic_date_${rsi}" type="text" value="${genetic_date}" class="fullin2"></td>
222 <td class="fibody3" id="bordR"><input name="rubella_date_${rsi}" type="text" value="${rubella_date}" class="fullin2"></td>
224 <td class="fibody3" id="bordR"><input name="tb_skin_date_${rsi}" type="text" value="${tb_skin_date}" class="fullin2"></td>
226 <td class="fibody3" id="bordR"><input name="lipid_date_${rsi}" type="text" value="${lipid_date}" class="fullin2"></td>
228 <td class="fibody3" id="bordR"><input name="mammography_date_${rsi}" type="text" value="${mammography_date}" class="fullin2"></td>
230 <td class="fibody3" id="bordR"><input name="fasting_glucose_date_${rsi}" type="text" value="${fasting_glucose_date}" class="fullin2"></td>
232 <td class="fibody3" id="bordR"><input name="tsh_date_${rsi}" type="text" value="${tsh_date}" class="fullin2"></td>
234 <td class="fibody3" id="bordR"><input name="cancer_date_${rsi}" type="text" value="${cancer_date}" class="fullin2"></td>
236 <td class="fibody3"><input name="hepatitis_c_date_${rsi}" type="text" value="${hepatitis_c_date}" class="fullin2"></td>
238 </tr>
240 <tr align="left" valign="bottom">
242 <td class="fibody2" id="bordR">Result:</td>
244 <td class="fibody2" id="bordR"><input name="hemoglobin_res_${rsi}" type="text" value="${hemoglobin_res}" class="fullin2"></td>
246 <td class="fibody2" id="bordR"><input name="bone_density_res_${rsi}" type="text" value="${bone_density_res}" class="fullin2"></td>
248 <td class="fibody2" id="bordR"><input name="bacteriuria_res_${rsi}" type="text" value="${bacteriuria_res}" class="fullin2"></td>
250 <td class="fibody2" id="bordR"><input name="std_res_${rsi}" type="text" value="${std_res}" class="fullin2"></td>
252 <td class="fibody2" id="bordR"><input name="hiv_res_${rsi}" type="text" value="${hiv_res}" class="fullin2"></td>
254 <td class="fibody2" id="bordR"><input name="genetic_res_${rsi}" type="text" value="${genetic_res}" class="fullin2"></td>
256 <td class="fibody2" id="bordR"><input name="rubella_res_${rsi}" type="text" value="${rubella_res}" class="fullin2"></td>
258 <td class="fibody2" id="bordR"><input name="tb_skin_res_${rsi}" type="text" value="${tb_skin_res}" class="fullin2"></td>
260 <td class="fibody2" id="bordR"><input name="lipid_res_${rsi}" type="text" value="${lipid_res}" class="fullin2"></td>
262 <td class="fibody2" id="bordR"><input name="mammography_res_${rsi}" type="text" value="${mammography_res}" class="fullin2"></td>
264 <td class="fibody2" id="bordR"><input name="fasting_glucose_res_${rsi}" type="text" value="${fasting_glucose_res}" class="fullin2"></td>
266 <td class="fibody2" id="bordR"><input name="tsh_res_${rsi}" type="text" value="${tsh_res}" class="fullin2"></td>
268 <td class="fibody2" id="bordR"><input name="cancer_res_${rsi}" type="text" value="${cancer_res}" class="fullin2"></td>
270 <td class="fibody2"><input name="hepatitis_c_res_${rsi}" type="text" value="${hepatitis_c_res}" class="fullin2"></td>
272 </tr>
274 EOL;
276 $rsi++;
282 </table>
284 </div>
286 <p>&nbsp;</p>
288 <table width="100%" border="0">
290 <tr>
292 <td align="left" width="120"> <a href="javascript:top.restoreSession();document.my_form.submit();" class="link_submit">[Save Data]</a> </td>
294 <td align="left" nowrap> <a href="<? echo $rootdir; ?>/patient_file/encounter/print_form.php?id=<? echo $id; ?>&formname=<? echo $formname; ?>" target="_blank" class="link_submit"
296 onclick="top.restoreSession()">[Printable form]</a> </td>
298 <td align="right"> <a href="<?php echo $GLOBALS['form_exit_url']; ?>" class="link_submit"
300 onclick="top.restoreSession()">[Don't Save]</a> </td>
302 </tr>
304 </table>
306 </form>
308 <?php
310 formFooter();
314 </body>
316 </html>