edit.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>TODO supply a title</title>
  5. {include file="../application/manage/view/commons/headers.html" }
  6. <script >
  7. // 保存信息
  8. function save(){
  9. var data=$("#myform").serialize();
  10. $.ajax({
  11. url:"/manage/exam/save",
  12. data:data,type:"get",
  13. success:function(rs){
  14. if(rs=="update_ok"){
  15. alert("更新成功!");
  16. }else{
  17. alert("保存失败!");
  18. }
  19. },error:function(e,e1,e2){
  20. alert(e2);
  21. }
  22. });
  23. }
  24. $(function(){
  25. $("#imgFrame").height($(window).height()-100)
  26. })
  27. </script>
  28. </head>
  29. <body>
  30. <div id="tt" class="easyui-tabs" style="width:100%;height:auto;">
  31. <div title="检查影像" style="padding:20px;display:none;">
  32. <iframe id="imgFrame" src="http://47.104.4.5:3000/{if isset($exam) && !empty($exam.study_id) }{$exam.study_id}{/if}" width="100%" height="100%" ></iframe>
  33. </div>
  34. <div title="检查内容" data-options="closable:true" style="overflow:auto;padding:20px;display:none;">
  35. <form id="myform" action="" method="get" ><input name="id" type="hidden" value="{if isset($exam) }{$exam.id}{/if}" />
  36. <table class="editform" width="99%" border="0" style="margin: 5px auto;" cellpadding="1" cellspacing="1" >
  37. <tr>
  38. <th width="105" height="38" align="right" >属性&nbsp;</th>
  39. <th width="40%" >信息</th>
  40. <th width="105" height="38" align="right" >属性&nbsp;</th>
  41. <th width="40%" >信息</th>
  42. </tr>
  43. <tr>
  44. <th height="32" align="right" >患者:</th>
  45. <td>
  46. <input name="patient_id" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.patient_id}{/if}" />
  47. {if isset($exam) && isset($exam.patient_id_name) }{$exam.patient_id_name}{/if}
  48. </td>
  49. <th height="32" align="right" >病历号:</th>
  50. <td>
  51. <input name="patient_num" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.patient_num}{/if}" />
  52. </td>
  53. </tr>
  54. <tr>
  55. <th height="32" align="right" >检查科室:</th>
  56. <td>
  57. <input name="dept_id" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.dept_id}{/if}" />
  58. {if isset($exam) && isset($exam.dept_id_name) }{$exam.dept_id_name}{/if}
  59. <br />(执行科室)
  60. </td>
  61. <th height="32" align="right" >科室检查号:</th>
  62. <td>
  63. <input name="accession_num" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.accession_num}{/if}" />
  64. </td>
  65. </tr>
  66. <tr>
  67. <th height="32" align="right" >检查类型:</th>
  68. <td>
  69. <input name="exam_class" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.exam_class}{/if}" />
  70. {if isset($exam) && isset($exam.exam_class_name) }{$exam.exam_class_name}{/if}
  71. </td>
  72. <th height="32" align="right" >检查子类:</th>
  73. <td>
  74. <input name="exam_sub_class" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.exam_sub_class}{/if}" />
  75. {if isset($exam) && isset($exam.exam_sub_class_name) }{$exam.exam_sub_class_name}{/if}
  76. </td>
  77. </tr>
  78. <tr>
  79. <th height="32" align="right" >检查项目:</th>
  80. <td>
  81. <input name="exam_project" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.exam_project}{/if}" />
  82. {if isset($exam) && isset($exam.exam_project_name) }{$exam.exam_project_name}{/if}
  83. </td>
  84. <th height="32" align="right" >检查日期:</th>
  85. <td>
  86. <input name="exam_datetime" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.exam_datetime}{/if}" />
  87. </td>
  88. </tr>
  89. <tr>
  90. <th height="32" align="right" >检查设备:</th>
  91. <td>
  92. <input name="device" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.device}{/if}" />
  93. {if isset($exam) && isset($exam.device_name) }{$exam.device_name}{/if}
  94. </td>
  95. <th height="32" align="right" >检查部位:</th>
  96. <td>
  97. <input name="body_part" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.body_part}{/if}" />
  98. {if isset($exam) && isset($exam.body_part_name) }{$exam.body_part_name}{/if}
  99. </td>
  100. </tr>
  101. <tr>
  102. <th height="32" align="right" >住院号:</th>
  103. <td>
  104. <input name="hopitalized_no" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.hopitalized_no}{/if}" />
  105. </td>
  106. <th height="32" align="right" >床位号:</th>
  107. <td>
  108. <input name="bed_no" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.bed_no}{/if}" />
  109. </td>
  110. </tr>
  111. <tr>
  112. <th height="32" align="right" >送诊科室:</th>
  113. <td>
  114. <input name="clin_dept_id" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.clin_dept_id}{/if}" />
  115. {if isset($exam) && isset($exam.clin_dept_id_name) }{$exam.clin_dept_id_name}{/if}
  116. </td>
  117. <th height="32" align="right" >技师:</th>
  118. <td>
  119. <input name="technician" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.technician}{/if}" />
  120. {if isset($exam) && isset($exam.technician_name) }{$exam.technician_name}{/if}
  121. </td>
  122. </tr>
  123. <tr>
  124. <th height="32" align="right" >检查费用:</th>
  125. <td>
  126. <input name="charge" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.charge}{/if}" />
  127. </td>
  128. <th height="32" align="right" >实际费用:</th>
  129. <td>
  130. <input name="cost" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.cost}{/if}" />
  131. </td>
  132. </tr>
  133. <tr>
  134. <th height="32" align="right" >检查方法:</th>
  135. <td>
  136. <input name="exam_method" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.exam_method}{/if}" />
  137. </td>
  138. <th height="32" align="right" >送诊医生:</th>
  139. <td>
  140. <input name="clin_doctors" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.clin_doctors}{/if}" />
  141. {if isset($exam) && isset($exam.clin_doctors_name) }{$exam.clin_doctors_name}{/if}
  142. </td>
  143. </tr>
  144. <tr>
  145. <th height="32" align="right" >主诉:</th>
  146. <td>
  147. <input name="illness_desc" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.illness_desc}{/if}" />
  148. </td>
  149. <th height="32" align="right" >体征:</th>
  150. <td>
  151. <input name="phys_sign" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.phys_sign}{/if}" />
  152. </td>
  153. </tr>
  154. <tr>
  155. <th height="32" align="right" >临床诊断:</th>
  156. <td>
  157. <input name="clin_diag" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.clin_diag}{/if}" />
  158. </td>
  159. <th height="32" align="right" >临床症状:</th>
  160. <td>
  161. <input name="clin_symp" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.clin_symp}{/if}" />
  162. </td>
  163. </tr>
  164. <tr>
  165. <th height="32" align="right" >医院:</th>
  166. <td>
  167. <input name="institution_id" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.institution_id}{/if}" />
  168. {if isset($exam) && isset($exam.institution_id_name) }{$exam.institution_id_name}{/if}
  169. </td>
  170. <th height="32" align="right" >病人来源:</th>
  171. <td>
  172. <input name="patient_source" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.patient_source}{/if}" />(1门诊 2住院 3外来)
  173. </td>
  174. </tr>
  175. <tr>
  176. <th height="32" align="right" >申请时间:</th>
  177. <td>
  178. <input name="req_datetime" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.req_datetime}{/if}" />
  179. </td>
  180. <th height="32" align="right" >申请医生:</th>
  181. <td>
  182. <input name="req_doctor" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.req_doctor}{/if}" />
  183. {if isset($exam) && isset($exam.req_doctor_name) }{$exam.req_doctor_name}{/if}
  184. <br />
  185. (医生id)
  186. </td>
  187. </tr>
  188. <tr>
  189. <th height="32" align="right" >登记人员:</th>
  190. <td>
  191. <input name="register" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($exam) }{$exam.register}{/if}" />
  192. {if isset($exam) && isset($exam.register_name) }{$exam.register_name}{/if}
  193. </td>
  194. <th height="32" align="right" >注册登记时间:</th>
  195. <td>
  196. <input name="register_datetime" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.register_datetime}{/if}" />
  197. </td>
  198. </tr>
  199. <tr>
  200. <th height="32" align="right" >诊断状态:</th>
  201. <td>
  202. <input name="exam_status" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.exam_status}{/if}" /><br />
  203. (1、登记 2、开始检查3、检查完毕 4、申请 5、驳回 6、接收、7、初步报告 8、审核报告 9、确诊)
  204. </td>
  205. <th height="32" align="right" >支付状态:</th>
  206. <td>
  207. <input name="pay_status" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.pay_status}{/if}" />(支付状态)
  208. </td>
  209. </tr>
  210. <tr>
  211. <th height="32" align="right" >studyuid:</th>
  212. <td>
  213. <input name="studyuid" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) && !empty($exam.studyuid) }{$exam.studyuid}{/if}" />(studykey)
  214. </td>
  215. <th height="32" align="right" >联系方式:</th>
  216. <td>
  217. <input name="phone" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.phone}{/if}" />
  218. </td>
  219. </tr>
  220. <tr>
  221. <th height="32" align="right" >其他说明:</th>
  222. <td colspan="3" >
  223. <textarea name="remark" class="easyui-textbox" data-options="multiline:true" cols="55" rows="3" style="width:90%;height:60px;" >{if isset($exam) }{$exam.remark}{/if}</textarea>
  224. </td>
  225. </tr>
  226. <tr>
  227. <th height="32" align="right" >创建时间:</th>
  228. <td>
  229. <input name="exam_status" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($exam) }{$exam.exam_status}{/if}" />(数据的创建时间)
  230. </td>
  231. <th height="32" align="right" >记录状态:</th>
  232. <td>
  233. <input type="radio" name="status" id="status_1" value="1" {if isset($exam) && $exam.status=="1" } checked="checked" {/if} ><label for="status_1" >可用</label>
  234. <input type="radio" name="status" id="status_2" value="0" {if isset($exam) && $exam.status=="0" } checked="checked" {/if} ><label for="status_2" >不可用</label>
  235. <br />(数据的可用状态)
  236. </td>
  237. </tr>
  238. <tr>
  239. <th height="32" >&nbsp;</th>
  240. <td colspan="3" >
  241. <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-save'" icon="icon-save" onclick="save()" >保存</a>
  242. </td>
  243. </tr>
  244. <tr >
  245. <th height="32" >&nbsp;</th>
  246. <td colspan="3" >
  247. &nbsp;
  248. </td>
  249. </tr>
  250. </table>
  251. </form>
  252. </div>
  253. <div title="报告内容" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
  254. <table class="editform" width="99%" border="0" style="margin: 5px auto;" cellpadding="1" cellspacing="1" >
  255. <tr>
  256. <th width="105" height="38" align="right" >属性&nbsp;</th>
  257. <th width="40%" >信息</th>
  258. <th width="105" height="38" align="right" >属性&nbsp;</th>
  259. <th width="40%" >信息</th>
  260. </tr>
  261. <tr>
  262. <th height="32" align="right" >报告ID:</th>
  263. <td>
  264. <input name="report_id" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($report) }{$report.id}{/if}" />
  265. </td>
  266. <th height="32" align="right" >报告时间:</th>
  267. <td>
  268. <input name="report_datetime" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($report) }{$report.report_datetime}{/if}" />
  269. </td>
  270. </tr>
  271. <tr>
  272. <th height="32" align="right" >检查所见:</th>
  273. <td>
  274. {if isset($report) }{$report.impression}{/if}
  275. </td>
  276. <th height="32" align="right" >意见建议:</th>
  277. <td>
  278. {if isset($report) }{$report.description}{/if}
  279. </td>
  280. </tr>
  281. <tr>
  282. <th height="32" align="right" >缩略图地址:</th>
  283. <td>
  284. <input name="img_url" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($report) }{$report.img_url}{/if}" />
  285. </td>
  286. <th height="32" align="right" >二维码:</th>
  287. <td>
  288. <input name="qr_code" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($report) }{$report.qr_code}{/if}" />(网址)
  289. </td>
  290. </tr>
  291. <tr>
  292. <th height="32" align="right" >建档时间:</th>
  293. <td cols="3" >
  294. <input name="createdAt" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($report) }{$report.createdAt}{/if}" />
  295. </td>
  296. </tr>
  297. <tr>
  298. <th height="32" align="right" >报告医生:</th>
  299. <td>
  300. <input name="report_doctor_id" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($report) }{$report.report_doctor_id}{/if}" />
  301. {if isset($report) && isset($report.report_doctor_id_name) }{$report.report_doctor_id_name}{/if}
  302. </td>
  303. <th height="32" align="right" >审核医生:</th>
  304. <td>
  305. <input name="review_doctor_id" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($report) }{$report.review_doctor_id}{/if}" />
  306. {if isset($report) && isset($report.review_doctor_id_name) }{$report.review_doctor_id_name}{/if}
  307. </td>
  308. </tr>
  309. <tr>
  310. <th height="32" align="right" >确认医生:</th>
  311. <td>
  312. <input name="confirm_doctor_id" type="text" class="easyui-textbox" size="15" style="width:200px;" value="{if isset($report) }{$report.confirm_doctor_id}{/if}" />
  313. {if isset($report) && isset($report.confirm_doctor_id_name) }{$report.confirm_doctor_id_name}{/if}
  314. </td>
  315. <th height="32" align="right" >报告结果:</th>
  316. <td>
  317. <input name="report_result" id="report_result_0" type="radio" {if isset($report) && isset($report.report_result) && $report.report_result=="0" }checked="checked"{/if} />阴性
  318. <input name="report_result" id="report_result_1" type="radio" {if isset($report) && isset($report.report_result) && $report.report_result=="1" }checked="checked"{/if} />阳性
  319. </td>
  320. </tr>
  321. <tr>
  322. <th height="32" align="right" >审核时间:</th>
  323. <td>
  324. <input name="review_datetime" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($report) }{$report.review_datetime}{/if}" />
  325. </td>
  326. <th height="32" align="right" >确认时间:</th>
  327. <td>
  328. <input name="confirm_datetime" type="text" class="easyui-textbox" style="width:300px;" size="35" value="{if isset($report) }{$report.confirm_datetime}{/if}" />
  329. </td>
  330. </tr>
  331. </table>
  332. </div>
  333. <div title="报告历史" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
  334. {if isset($report_record) && $report_record neq null}
  335. <table width="90%" align="center" border="0" >
  336. <tr>
  337. <th>序号</th>
  338. <th>操作类型</th>
  339. <th>检查所见</th>
  340. <th>意见建议</th>
  341. <th>操作医生</th>
  342. <th>时间</th>
  343. </tr>
  344. {foreach $report_record as $key=>$val}
  345. <tr>
  346. <td>{$key+1}</td>
  347. <td>{$val["type"]}</td>
  348. <td>{$val["impression"]}</td>
  349. <td>{$val["description"]}</td>
  350. <td>{$val["doctor_id_name"]}({$val["doctor_id"]})</td>
  351. <td>{$val["createdAt"]}</td>
  352. </tr>
  353. {/foreach}
  354. </table>
  355. {/if}
  356. </div>
  357. </div>
  358. </body>
  359. </html>