PageRenderTime 47ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/forms/routine_screening_record/new.php

https://github.com/md-tech/openemr
PHP | 233 lines | 230 code | 3 blank | 0 comment | 8 complexity | 68156100b66ef4586321a39eca9d7aa9 MD5 | raw file
  1. <?php
  2. include_once("../../globals.php");
  3. include_once("$srcdir/api.inc");
  4. include_once("$srcdir/forms.inc");
  5. include_once("$srcdir/calendar.inc");
  6. $frmn = 'form_routine_screening_record';
  7. $ftitle = 'Routine screening record';
  8. $old = sqlStatement("select form_id, formdir from forms where (form_name='${ftitle}') and (pid=$pid) order by date desc limit 1");
  9. if ($old) {
  10. $dt = sqlFetchArray($old);
  11. $fid = $dt{'form_id'};
  12. if ($fid && ($fid != 0) && ($fid != '')){
  13. $fdir = $dt{'formdir'};
  14. unset($dt);
  15. $dt = formFetch($frmn, $fid);
  16. $newid = formSubmit($frmn, array_slice($dt,7), $id, $userauthorized);
  17. addForm($encounter, $ftitle, $newid, $fdir, $pid, $userauthorized);
  18. $id = $newid;
  19. formJump("${rootdir}/patient_file/encounter/view_form.php?formname=${fdir}&id=${newid}");
  20. exit;
  21. }
  22. }
  23. ?>
  24. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  25. "http://www.w3.org/TR/html4/loose.dtd">
  26. <html>
  27. <head>
  28. <?php html_header_show();?>
  29. <title>Form: Routine screening record</title>
  30. <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
  31. <link rel="stylesheet" href="../../acog.css" type="text/css">
  32. <script language="JavaScript" src="../../acog.js" type="text/JavaScript"></script>
  33. <script language="JavaScript" type="text/JavaScript">
  34. window.onload = initialize;
  35. </script>
  36. </head>
  37. <?php
  38. $fres=sqlStatement("select * from patient_data where pid='".$pid."'");
  39. if ($fres){
  40. $patient = sqlFetchArray($fres);
  41. }
  42. ?>
  43. <body class="body_top">
  44. <form action="<?php echo $rootdir;?>/forms/routine_screening_record/save.php?mode=new" method="post" enctype="multipart/form-data" name="my_form">
  45. <?php include("../../acog_menu.inc"); ?>
  46. <div class="srvChapter">Routine screening record <a href="#" onMouseOver="toolTip('The <strong>Routine Screening Record</strong> includes those screening tests recommended by ACOG for routine use and provides reminders for recommended frequency of services.', 300)" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></div>
  47. <div style="border: solid 2px black; background-color:#FFFFFF;">
  48. <table border="0" cellpadding="2" cellspacing="0">
  49. <tr align="left" valign="bottom">
  50. <td colspan="4" class="fibody2" id="bordR">patient name:
  51. <input name="pname" type="text" class="fullin" id="pname" style="width: 74%" value="<?php
  52. echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'};
  53. ?>"></td>
  54. <td colspan="4" class="fibody2" id="bordR">Birth date:
  55. <input name="pbdate" type="text" class="fullin" id="pbdate" style="width: 65%" value="<?php
  56. echo $patient{'DOB'};
  57. ?>"></td>
  58. <td colspan="3" class="fibody2">ID No:
  59. <input name="rs_pid" type="text" class="fullin" id="rs_pid" style="width:80%" value="<?php
  60. echo $patient{'id'};
  61. ?>"></td>
  62. </tr>
  63. <tr align="center" valign="middle">
  64. <td class="ficaption2" id="bordR">age</td>
  65. <td width="9%" class="ficaption2" id="bordR">Cervical cytology </td>
  66. <td width="9%" class="ficaption2" id="bordR">Lipid profile assessment<a href="#" onMouseOver="toolTip('This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></td>
  67. <td width="9%" class="ficaption2" id="bordR">Mammo-<br>
  68. graphy<a href="#" onMouseOver="toolTip('This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></td>
  69. <td width="9%" class="ficaption2" id="bordR">Colorectal cancer screening <a href="#" onMouseOver="toolTip('This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></td>
  70. <td width="9%" class="ficaption2" id="bordR">Bone density screening <a href="#" onMouseOver="toolTip('This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)')" onMouseOut="toolTip();"> <img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></td>
  71. <td width="9%" class="ficaption2" id="bordR">Chlamydia screening <a href="#" onMouseOver="toolTip('This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a> </td>
  72. <td width="9%" class="ficaption2" id="bordR">Gonor-<br>
  73. rhea screening <a href="#" onMouseOver="toolTip('This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a> </td>
  74. <td width="9%" class="ficaption2" id="bordR">Urinalysis</td>
  75. <td width="9%" class="ficaption2" id="bordR">Fasting glucose test <a href="#" onMouseOver="toolTip('This test may be appropriate for other patients based on risk (see High-Risk Laboratory Record and Table of High-Risk Factors)')" onMouseOut="toolTip();"><img src="../../pic/mark_q.png" width="13" height="13" border="0" align="texttop"></a></td>
  76. <td width="9%" class="ficaption2">Thyroid stimulating hormone screening </td>
  77. </tr>
  78. <tr align="center" valign="middle">
  79. <td class="fibody2" id="bordR">13-18</td>
  80. <td class="fibody2" id="bordR">ANNUALLY BEGINNING
  81. APPROXIMATELY 3 YEARS
  82. AFTER INITIATION OF
  83. SEXUAL INTERCOURSE</td>
  84. <td class="fibody2" id="bordR">&nbsp; </td>
  85. <td class="fibody2" id="bordR">&nbsp; </td>
  86. <td class="fibody2" id="bordR">&nbsp; </td>
  87. <td class="fibody2" id="bordR">&nbsp; </td>
  88. <td class="fibody2" id="bordR"> SEXUALLY ACTIVE WOMEN
  89. UNDER AGE 25</td>
  90. <td class="fibody2" id="bordR">SEXUALLY ACTIVE
  91. ADOLES-<br>
  92. CENTS</td>
  93. <td class="fibody2" id="bordR">&nbsp;</td>
  94. <td class="fibody2" id="bordR">&nbsp;</td>
  95. <td class="fibody2">&nbsp;</td>
  96. </tr>
  97. <tr align="center" valign="middle">
  98. <td class="fibody2" id="bordR">19-39</td>
  99. <td class="fibody2" id="bordR">ANNUALLY BEGINNING NO LATER THAN AGE 21 YEARS</td>
  100. <td class="fibody2" id="bordR">&nbsp; </td>
  101. <td class="fibody2" id="bordR">&nbsp; </td>
  102. <td class="fibody2" id="bordR">&nbsp; </td>
  103. <td class="fibody2" id="bordR">&nbsp; </td>
  104. <td class="fibody2" id="bordR"> SEXUALLY ACTIVE WOMEN<br>
  105. UNDER AGE 25</td>
  106. <td class="fibody2" id="bordR">&nbsp; </td>
  107. <td class="fibody2" id="bordR">&nbsp;</td>
  108. <td class="fibody2" id="bordR">&nbsp;</td>
  109. <td class="fibody2">&nbsp;</td>
  110. </tr>
  111. <tr align="center" valign="middle">
  112. <td class="fibody2" id="bordR">40-64</td>
  113. <td class="fibody2" id="bordR">EVERY 23 YEARS AFTER 3
  114. CONSECuTIVE NEGATIVE TEST
  115. RESULTS IF NO HISTORY OF
  116. CIN 2 OR 3,
  117. IMMUNOSUP-<br>
  118. PRESSION,
  119. HIV INFECTION, OR DES
  120. EXPOSURE IN UTERO</td>
  121. <td class="fibody2" id="bordR">EVERY 5 YEARS
  122. BEGINNING
  123. AT AGE 45</td>
  124. <td class="fibody2" id="bordR">EVERY 12 YEARS UNTIL
  125. AGE 50; YEARLY
  126. BEGINNING AT AGE 50</td>
  127. <td class="fibody2" id="bordR"> BEGINNING AT AGE 50
  128. YEARLY FOBT OR FLEXIBLE
  129. SIGMOIDOSCOPY EVERY
  130. 5 YEARS OR YEARLY FOBT
  131. PLUS FLEXIBLE
  132. SIGMOIDOSCOPY EVERY 5
  133. YEARS OR DCBE EVERY 5
  134. YEARS OR COLONOSCOPY
  135. EVERY 10 YEARS</td>
  136. <td class="fibody2" id="bordR">&nbsp; </td>
  137. <td class="fibody2" id="bordR">&nbsp; </td>
  138. <td class="fibody2" id="bordR">&nbsp; </td>
  139. <td class="fibody2" id="bordR">&nbsp;</td>
  140. <td class="fibody2" id="bordR">EVERY 3 YEARS
  141. AFTER AGE 45</td>
  142. <td class="fibody2">EVERY 5 YEARS
  143. BEGINNING AT AGE 50</td>
  144. </tr>
  145. <tr align="center" valign="middle">
  146. <td class="fibody2" id="bordR">65 and older </td>
  147. <td class="fibody2" id="bordR">EVERY 23 YEARS AFTER 3<br>
  148. CONSECUTIVE NEGATIVE TEST
  149. RESULTS IF NO HISTORY OF
  150. CIN 2 OR 3,
  151. IMMUNOSUP-<br>
  152. PRESSION,
  153. HIV INFECTION, OR DES
  154. EXPOSURE IN UTERO</td>
  155. <td class="fibody2" id="bordR">EVERY 5 YEARS</td>
  156. <td class="fibody2" id="bordR">YEARLY OR AS
  157. APPROPRIATE</td>
  158. <td class="fibody2" id="bordR"> YEARLY FOBT OR FLEXIBLE
  159. SIGMOIDOSCOPY EVERY
  160. 5 YEARS OR YEARLY FOBT
  161. PLUS FLEXIBLE
  162. SIGMOIDOSCOPY EVERY
  163. YEARS OR DCBE EVERY
  164. YEARS OR COLONOSCOPY
  165. EVERY 10 YEARS</td>
  166. <td class="fibody2" id="bordR"> IN THE ABSENCE OF
  167. NEW RISK FACTORS,
  168. SUBSEQUENT SCREENING
  169. NOT MORE FREQUENTLY
  170. THAN EVERY 2 YEARS</td>
  171. <td class="fibody2" id="bordR">&nbsp; </td>
  172. <td class="fibody2" id="bordR">&nbsp; </td>
  173. <td class="fibody2" id="bordR">YEARLY OR AS
  174. APPROPRIATE</td>
  175. <td class="fibody2" id="bordR">EVERY 3 YEARS</td>
  176. <td class="fibody2">EVERY 5 YEARS</td>
  177. </tr>
  178. <tr align="left" valign="bottom">
  179. <td colspan="11" class="fibody2" style="border-bottom: 2px solid black;">&nbsp;</td>
  180. </tr>
  181. <?php
  182. $rsi = 1;
  183. while ($rsi < 9){
  184. print <<<EOL
  185. <tr align="left" valign="bottom">
  186. <td class="fibody2" id="bordR">Date</td>
  187. <td class="fibody3" id="bordR"><input name="cervical_date_${rsi}" type="text" class="fullin2"></td>
  188. <td class="fibody3" id="bordR"><input name="lipid_date_${rsi}" type="text" class="fullin2"></td>
  189. <td class="fibody3" id="bordR"><input name="mammo_date_${rsi}" type="text" class="fullin2"></td>
  190. <td class="fibody3" id="bordR"><input name="colorectal_date_${rsi}" type="text" class="fullin2"></td>
  191. <td class="fibody3" id="bordR"><input name="bone_date_${rsi}" type="text" class="fullin2"></td>
  192. <td class="fibody3" id="bordR"><input name="chlamyd_date_${rsi}" type="text" class="fullin2"></td>
  193. <td class="fibody3" id="bordR"><input name="gonor_date_${rsi}" type="text" class="fullin2"></td>
  194. <td class="fibody3" id="bordR"><input name="urinal_date_${rsi}" type="text" class="fullin2"></td>
  195. <td class="fibody3" id="bordR"><input name="glucose_date_${rsi}" type="text" class="fullin2"></td>
  196. <td class="fibody3"><input name="thyroid_date_${rsi}" type="text" class="fullin2"></td>
  197. </tr>
  198. <tr align="left" valign="bottom">
  199. <td class="fibody2" id="bordR">result</td>
  200. <td class="fibody5" id="bordR"><input name="cervical_res_${rsi}" type="text" class="fullin2"></td>
  201. <td class="fibody5" id="bordR"><input name="lipid_res_${rsi}" type="text" class="fullin2"></td>
  202. <td class="fibody5" id="bordR"><input name="mammo_res_${rsi}" type="text" class="fullin2"></td>
  203. <td class="fibody5" id="bordR"><input name="colorectal_res_${rsi}" type="text" class="fullin2"></td>
  204. <td class="fibody5" id="bordR"><input name="bone_res_${rsi}" type="text" class="fullin2"></td>
  205. <td class="fibody5" id="bordR"><input name="chlamyd_res_${rsi}" type="text" class="fullin2"></td>
  206. <td class="fibody5" id="bordR"><input name="gonor_res_${rsi}" type="text" class="fullin2"></td>
  207. <td class="fibody5" id="bordR"><input name="urinal_res_${rsi}" type="text" class="fullin2"></td>
  208. <td class="fibody5" id="bordR"><input name="glucose_res_${rsi}" type="text" class="fullin2"></td>
  209. <td class="fibody5"><input name="thyroid_res_${rsi}" type="text" class="fullin2"></td>
  210. </tr>
  211. EOL;
  212. $rsi++;
  213. }
  214. ?>
  215. </table>
  216. </div>
  217. <p>&nbsp;</p>
  218. <table width="100%" border="0">
  219. <tr>
  220. <td align="left"> <a href="javascript:top.restoreSession();document.my_form.submit();" class="link_submit">[Save Data]</a> </td>
  221. <td align="right"> <a href="<?php echo $GLOBALS['form_exit_url']; ?>" class="link_submit"
  222. onclick="top.restoreSession()">[Don't Save]</a> </td>
  223. </tr>
  224. </table>
  225. </form>
  226. <?php
  227. formFooter();
  228. ?>
  229. </body>
  230. </html>