0211.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <!--
  2. 住院病案首页
  3. -->
  4. <div class="os-main">
  5. <ul class="info-list">
  6. <li class="il-item">
  7. <h3 class="os-tit-o"><i class="icon i-pat-info"></i><span class="os-t-o-name">患者信息</span></h3>
  8. <ul class="os-base-info" ms-if="data['姓名'].length > 0 || data['性别'].length > 0">
  9. <li ms-if="data['姓名'].length > 0"><label>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</label><span ms-text="data['姓名']"></span></li>
  10. <li ms-if="data['性别'].length > 0"><label>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:</label><span ms-text="data['性别']"></span></li>
  11. </ul>
  12. <ul class="os-base-info" ms-if="data['出生日期'].length > 0 || data['婚姻状态'].length > 0">
  13. <li ms-if="data['出生日期'].length > 0"><label>出生日期:</label><span ms-text="data['出生日期'] | date('yyyy-MM-dd')"></span></li>
  14. <li ms-if="data['婚姻状态'].length > 0"><label>婚姻状况:</label><span ms-text="data['婚姻状态']"></span></li>
  15. </ul>
  16. <ul class="os-base-info" ms-if="data['血型'].length > 0 || data['Rh血型'].length > 0">
  17. <li ms-if="data['血型'].length > 0"><label>血&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型:</label><span ms-text="data['血型']"></span></li>
  18. <li ms-if="data['Rh血型'].length > 0"><label>Rh:</label><span ms-text="data['Rh血型']"></span></li>
  19. </ul>
  20. <ul class="os-base-info" ms-if="(data['新生儿体重'] || data['新生儿入院体重'])">
  21. <li><label>新生儿体重:</label><span>{{data['新生儿体重']}}g</span></li>
  22. <li><label>新生儿入院体重:</label><span>{{data['新生儿入院体重']}}g</span></li>
  23. </ul>
  24. <ul class="os-base-info" ms-if="data['过敏药物'].length > 0">
  25. <li><label>过敏药物:</label><span ms-text="data['过敏药物']"></span></li>
  26. </ul>
  27. </li>
  28. <li class="il-item">
  29. <h3 class="os-tit-o"><i class="icon i-hos-sum"></i><span class="os-t-o-name">住院概要</span></h3>
  30. <ul class="os-base-info" ms-if="data['入院日期'].length > 0">
  31. <li><label>入院日期:</label><span ms-text="data['入院日期'] | date('yyyy-MM-dd')"></span></li>
  32. </ul>
  33. <ul class="os-base-info" ms-if="data['入院途径'].length > 0">
  34. <li><label>入院途径:</label><span ms-text="data['入院途径']"></span></li>
  35. </ul>
  36. <ul class="os-base-info" ms-if="data['入院科室'].length > 0">
  37. <li><label>入院科室:</label><span ms-text="data['入院科室']"></span></li>
  38. </ul>
  39. <ul class="os-base-info" ms-if="data['转科科室'].length > 0">
  40. <li><label>转科科室:</label><span ms-text="data['转科科室']"></span></li>
  41. </ul>
  42. <ul class="os-base-info" ms-if="data['出院日期'].length > 0">
  43. <li><label>出院日期:</label><span ms-text="data['出院日期'] | date('yyyy-MM-dd')"></span></li>
  44. </ul>
  45. <ul class="os-base-info" ms-if="data['出院科室'].length > 0">
  46. <li><label>出院科室:</label><span ms-text="data['出院科室']"></span></li>
  47. </ul>
  48. <ul class="os-base-info" ms-if="data['主要诊断'].length > 0">
  49. <li><label>主要诊断:</label><span ms-text="data['主要诊断']"></span></li>
  50. </ul>
  51. <ul class="os-base-info" ms-if="data['病例诊断'].length > 0">
  52. <li><label>病例诊断:</label><span ms-text="data['病例诊断']"></span></li>
  53. </ul>
  54. <ul class="os-base-info" ms-if="data['门(急)诊诊断'].length > 0">
  55. <li><label>门(急)诊诊断:</label><span ms-text="data['门(急)诊诊断']"></span></li>
  56. </ul>
  57. <ul class="os-base-info" ms-if="data['其他诊断'].length > 0">
  58. <li><label>其他诊断:</label><span ms-text="data['其他诊断']"></span></li>
  59. </ul>
  60. </li>
  61. <li class="il-item il-i-table" ms-if="data['手术信息'] && data['手术信息'].length > 0">
  62. <h3 class="os-tit-o"><i class="icon i-ope-rec"></i><span class="os-t-o-name">手术记录</span></h3>
  63. <table class="hp-table" cellpadding="0" cellspacing="0" border="0">
  64. <thead>
  65. <tr>
  66. <th style="width: 15%">日期</th>
  67. <th style="width: 50%">手术名称</th>
  68. <th style="width: 15%">切口愈合等级</th>
  69. <th style="width: 20%">麻醉方式</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <tr ms-repeat="data['手术信息']">
  74. <td>{{el['日期'] | date('yyyy-MM-dd')}}</td>
  75. <td>{{el['名称']}}</td>
  76. <td>{{el['切口愈合等级']}}</td>
  77. <td>{{el['麻醉方式']}}</td>
  78. </tr>
  79. </tbody>
  80. </table>
  81. </li>
  82. <!--<li class="il-item">
  83. <h3 class="os-tit-o"><i class="icon i-dia-rec"></i><span class="os-t-o-name">症状记录</span></h3>
  84. <ul class="hp-list">
  85. <li><span>发病时间</span><span>症状记录</span></li>
  86. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  87. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  88. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  89. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  90. </ul>
  91. </li>
  92. <li class="il-item">
  93. <h3 class="os-tit-o"><i class="icon i-zdjl"></i><span class="os-t-o-name">诊断记录</span></h3>
  94. <ul class="hp-list">
  95. <li><span>发病时间</span><span>症状记录</span></li>
  96. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  97. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  98. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  99. <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
  100. </ul>
  101. </li>-->
  102. <li class="il-item" ms-if="data['科主任'].length > 0 || data['主任(副主任)医师'].length > 0 || data['主治医师'].length > 0 || data['住院医师'].length > 0 ||data['责任护士'].length > 0 || data['进修医师'].length > 0">
  103. <h3 class="os-tit-o"><i class="icon i-doc-info"></i><span class="os-t-o-name">医生信息</span></h3>
  104. <ul class="os-base-info" ms-if="data['科主任'].length > 0 || data['主任(副主任)医师'].length > 0">
  105. <li ms-if="data['科主任'].length > 0"><label>科&nbsp;&nbsp;主&nbsp;&nbsp;任:</label><span ms-text="data['科主任']"></span></li>
  106. <li ms-if="data['主任(副主任)医师'].length > 0"><label>主任(副主任)医师:</label><span ms-text="data['主任(副主任)医师']"></span></li>
  107. </ul>
  108. <ul class="os-base-info" ms-if="data['主治医师'].length > 0 || data['住院医师'].length > 0">
  109. <li ms-if="data['主治医师'].length > 0"><label>主治医师:</label><span ms-text="data['主治医师']"></span></li>
  110. <li ms-if="data['住院医师'].length > 0"><label>住院医师:</label><span ms-text="data['住院医师']"></span></li>
  111. </ul>
  112. <ul class="os-base-info" ms-if="data['责任护士'].length > 0 || data['进修医师'].length > 0">
  113. <li ms-if="data['责任护士'].length > 0"><label>责任护士:</label><span ms-text="data['责任护士']"></span></li>
  114. <li ms-if="data['进修医师'].length > 0"><label>进修医师:</label><span ms-text="data['进修医师']"></span></li>
  115. </ul>
  116. </li>
  117. </ul>
  118. <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
  119. </div>
  120. <script>
  121. function dsXmlToJson0211_2(xmlStr) {
  122. var $xmlDom = $(xmlStr),
  123. $nodes = {
  124. "病人信息": $xmlDom.find('recordTarget patient'),
  125. "病案信息": $xmlDom.find('component section entry')
  126. } ;
  127. return {
  128. data:{
  129. // "医疗付费方式": $nodes["病案信息"].find('payStyle').text(),
  130. "住院次数": $nodes["病案信息"].find('residence serial').text(),
  131. "病案号":$nodes["病案信息"].find('residence code').text(),
  132. "姓名": $nodes["病人信息"].find('name').text() || "&nbsp;",
  133. "性别": $nodes["病人信息"].find('sex').text() || "&nbsp;",
  134. "年龄": $nodes["病人信息"].find('age').text() || "&nbsp;",
  135. "不足一周岁的年龄": "",
  136. "新生儿出生体重": "",
  137. "新生儿入院体重": "",
  138. "国籍": $nodes["病人信息"].find('country').text(),
  139. "民族": $nodes["病人信息"].find('nation').text(),
  140. "婚姻状态": $nodes["病人信息"].find('marriage').text(),
  141. "职业": $nodes["病人信息"].find('work').text(),
  142. "籍贯": "",
  143. "出生地": $nodes["病人信息"].find('birthAdd').text(),
  144. "出生日期": $nodes["病人信息"].find('birthDate').text(),
  145. "户口地址": $nodes["病人信息"].find('registeredAddress').text(),
  146. "邮编": $nodes["病人信息"].find('postalCode').text(),
  147. "身份证号": $nodes["病人信息"].find('idno').text(),
  148. "单位": $nodes["病人信息"].find('organization').text(),
  149. "单位电话": "",
  150. "单位邮编": "",
  151. "联系人姓名": $xmlDom.find('contactPerson name').text(),
  152. "联系人关系": $xmlDom.find('contactPerson type').text(),
  153. "地址": $nodes["病人信息"].find('address').text(),
  154. "电话": $nodes["病人信息"].find('telephone').text(),
  155. "入院日期": $nodes["病案信息"].find('inTime').attr('value'),
  156. "入院科室": $nodes["病案信息"].find('inDept').text(),
  157. "转科科室": $nodes["病案信息"].find('moveDept').text(),
  158. "出院日期": $nodes["病案信息"].find('outTime').attr('value'),
  159. "出院科室": $nodes["病案信息"].find('outDept').text(),
  160. "实际住院天数": $nodes["病案信息"].find('inHospitalDay').text(),
  161. "入院途径": $nodes["病案信息"].find('inClass').text(),
  162. "门(急)诊诊断": $nodes["病案信息"].find('clinicDiagnosis').text(),
  163. "主要诊断": "",
  164. "其他诊断": "",
  165. "病例诊断": "",
  166. "病理号": $nodes["病案信息"].find('pathologyDiagnosis').attr('extension'),
  167. "疾病编码": "",
  168. "损伤、中毒的外部原因": "",
  169. "药物过敏标志": "",
  170. "过敏药物": $nodes["病案信息"].find('allergyDrugs').text(),
  171. "死亡患者尸检": $nodes["病案信息"].find('autopsy').text(),
  172. "血型": $nodes["病案信息"].find('bloodType').text(),
  173. "Rh血型": $nodes["病案信息"].find('bloodRh').text(),
  174. "科主任": $xmlDom.find('deptOfficer name').text(),
  175. "主任(副主任)医师": $xmlDom.find('directorDoctor name').text(),
  176. "主治医师": $xmlDom.find('inChargeDoctor name').text(),
  177. "住院医师": $xmlDom.find('residentDoctor name').text(),
  178. "责任护士": "",
  179. "进修医师": $xmlDom.find('learningDoctor name').text(),
  180. "实习医师": $xmlDom.find('intern name').text(),
  181. "编码员": $xmlDom.find('cataloger name').text(),
  182. "质控医师": $xmlDom.find('qcDoctor name').text(),
  183. "质控护士": $xmlDom.find('qcNurse name').text(),
  184. "质控医师签名时间": $xmlDom.find('qcDoctor time').attr('value'),
  185. "病案质量": $nodes["病案信息"].find('quality').text(),
  186. "手术信息":
  187. (function() {
  188. var $operations = $nodes["病案信息"].find('operation item');
  189. if($operations.length == 0) {
  190. // return [{
  191. // "编码": "&nbsp;","日期": "&nbsp;","名称": "&nbsp;","手术级别": " ","手术医师": " ",
  192. // "Ⅰ助": " ","Ⅱ助": " ","切口愈合等级": " ","麻醉方式": " ","麻醉医师": " "
  193. // }]
  194. return [];
  195. }
  196. return _.map($operations,function(el) {
  197. var $el = $(el);
  198. return {
  199. "编码": $el.find('oper').attr('code'),
  200. "日期": $el.find('time').text(),
  201. "名称": $el.find('oper').text(),
  202. "手术级别": " ",
  203. "手术医师": $el.find('surgeon').text(),
  204. "Ⅰ助": $el.find('assistant1').text(),
  205. "Ⅱ助": $el.find('assistant2').text(),
  206. "切口愈合等级": $el.find('incisionAndHeal').text(),
  207. "麻醉方式": $el.find('anesthesia').text(),
  208. "麻醉医师": " "
  209. }
  210. });
  211. })()
  212. ,
  213. "总费用": $nodes["病案信息"].find('fee total').text(),
  214. "床位费": $nodes["病案信息"].find('fee bed').text(),
  215. "护理费": $nodes["病案信息"].find('fee tend').text(),
  216. "西药费": $nodes["病案信息"].find('fee westmedicine').text(),
  217. "中成药费": $nodes["病案信息"].find('fee cnmedicine1').text(),
  218. "中草药费": $nodes["病案信息"].find('fee cnmedicine2').text(),
  219. "放射费": $nodes["病案信息"].find('fee radiation').text(),
  220. "化验费": $nodes["病案信息"].find('fee assay').text(),
  221. "输氧费": $nodes["病案信息"].find('fee oxygen').text(),
  222. "输血费": $nodes["病案信息"].find('fee blood').text(),
  223. "诊疗费": $nodes["病案信息"].find('fee diagnosis').text(),
  224. "治疗费": $nodes["病案信息"].find('fee treatment').text(),
  225. "手术费": $nodes["病案信息"].find('fee operation').text(),
  226. "接生费": $nodes["病案信息"].find('fee deliver').text(),
  227. "检查费": $nodes["病案信息"].find('fee check').text(),
  228. "麻醉费": $nodes["病案信息"].find('fee anaes').text(),
  229. "婴儿费": $nodes["病案信息"].find('fee baby').text(),
  230. "陪床费": $nodes["病案信息"].find('fee extraBed').text(),
  231. "其它费用1": $nodes["病案信息"].find('fee other1').text(),
  232. "其它费用2": $nodes["病案信息"].find('fee other2').text(),
  233. "其它费用3": $nodes["病案信息"].find('fee other3').text(),
  234. "其它费用4": $nodes["病案信息"].find('fee other4').text()
  235. }
  236. }
  237. }
  238. function dsXmlToJson0211_1(xmlStr) {
  239. var $xmlDom = $(xmlStr),
  240. $nodes = {
  241. "病人信息": $xmlDom.find('recordTarget patient'),
  242. "病案信息": $xmlDom.find('component section entry')
  243. } ;
  244. return {
  245. data:{
  246. // "医疗付费方式": $nodes["病案信息"].find('payStyle').text(),
  247. "住院次数": $nodes["病案信息"].find('residence serial').text(),
  248. "病案号":$nodes["病案信息"].find('residence code').text(),
  249. "姓名": $nodes["病人信息"].find('name').text() || "&nbsp;",
  250. "性别": $nodes["病人信息"].find('sex').text() || "&nbsp;",
  251. "年龄": $nodes["病人信息"].find('age').text() || "&nbsp;",
  252. "不足一周岁的年龄": "",
  253. "新生儿出生体重": "",
  254. "新生儿入院体重": "",
  255. "国籍": $nodes["病人信息"].find('country').text(),
  256. "民族": $nodes["病人信息"].find('nation').text(),
  257. "婚姻状态": $nodes["病人信息"].find('marriage').text(),
  258. "职业": $nodes["病人信息"].find('work').text(),
  259. "籍贯": "",
  260. "出生地": $nodes["病人信息"].find('birthAdd').text(),
  261. "出生日期": $nodes["病人信息"].find('birthDate').text(),
  262. "户口地址": $nodes["病人信息"].find('registeredAddress').text(),
  263. "邮编": $nodes["病人信息"].find('postalCode').text(),
  264. "身份证号": $nodes["病人信息"].find('idno').text(),
  265. "单位": $nodes["病人信息"].find('organization').text(),
  266. "单位电话": "",
  267. "单位邮编": "",
  268. "联系人姓名": $xmlDom.find('contactPerson name').text(),
  269. "联系人关系": $xmlDom.find('contactPerson type').text(),
  270. "地址": $nodes["病人信息"].find('address').text(),
  271. "电话": $nodes["病人信息"].find('telephone').text(),
  272. "入院日期": $nodes["病案信息"].find('inTime').attr('value'),
  273. "入院科室": $nodes["病案信息"].find('inDept').text(),
  274. "转科科室": $nodes["病案信息"].find('moveDept').text(),
  275. "出院日期": $nodes["病案信息"].find('outTime').attr('value'),
  276. "出院科室": $nodes["病案信息"].find('outDept').text(),
  277. "实际住院天数": $nodes["病案信息"].find('inHospitalDay').text(),
  278. "入院途径": $nodes["病案信息"].find('inClass').text(),
  279. "门(急)诊诊断": $nodes["病案信息"].find('clinicDiagnosis').text(),
  280. "主要诊断": "",
  281. "其他诊断": "",
  282. "病例诊断": "",
  283. "病理号": $nodes["病案信息"].find('pathologyDiagnosis').attr('extension'),
  284. "疾病编码": "",
  285. "损伤、中毒的外部原因": "",
  286. "药物过敏标志": "",
  287. "过敏药物": $nodes["病案信息"].find('allergyDrugs').text(),
  288. "死亡患者尸检": $nodes["病案信息"].find('autopsy').text(),
  289. "血型": $nodes["病案信息"].find('bloodType').text(),
  290. "Rh血型": $nodes["病案信息"].find('bloodRh').text(),
  291. "科主任": $xmlDom.find('deptOfficer name').text(),
  292. "主任(副主任)医师": $xmlDom.find('directorDoctor name').text(),
  293. "主治医师": $xmlDom.find('inChargeDoctor name').text(),
  294. "住院医师": $xmlDom.find('residentDoctor name').text(),
  295. "责任护士": "",
  296. "进修医师": $xmlDom.find('learningDoctor name').text(),
  297. "实习医师": $xmlDom.find('intern name').text(),
  298. "编码员": $xmlDom.find('cataloger name').text(),
  299. "质控医师": $xmlDom.find('qcDoctor name').text(),
  300. "质控护士": $xmlDom.find('qcNurse name').text(),
  301. "质控医师签名时间": $xmlDom.find('qcDoctor time').attr('value'),
  302. "病案质量": $nodes["病案信息"].find('quality').text(),
  303. "手术信息":
  304. (function() {
  305. var $operations = $nodes["病案信息"].find('operation item');
  306. if($operations.length == 0) {
  307. // return [{
  308. // "编码": "&nbsp;","日期": "&nbsp;","名称": "&nbsp;","手术级别": " ","手术医师": " ",
  309. // "Ⅰ助": " ","Ⅱ助": " ","切口愈合等级": " ","麻醉方式": " ","麻醉医师": " "
  310. // }]
  311. return [];
  312. }
  313. return _.map($operations,function(el) {
  314. var $el = $(el);
  315. return {
  316. "编码": $el.find('oper').attr('code'),
  317. "日期": $el.find('time').text(),
  318. "名称": $el.find('oper').text(),
  319. "手术级别": " ",
  320. "手术医师": $el.find('surgeon').text(),
  321. "Ⅰ助": $el.find('assistant1').text(),
  322. "Ⅱ助": $el.find('assistant2').text(),
  323. "切口愈合等级": $el.find('incisionAndHeal').text(),
  324. "麻醉方式": $el.find('anesthesia').text(),
  325. "麻醉医师": " "
  326. }
  327. });
  328. })()
  329. ,
  330. "总费用": $nodes["病案信息"].find('fee total').text(),
  331. "床位费": $nodes["病案信息"].find('fee bed').text(),
  332. "护理费": $nodes["病案信息"].find('fee tend').text(),
  333. "西药费": $nodes["病案信息"].find('fee westmedicine').text(),
  334. "中成药费": $nodes["病案信息"].find('fee cnmedicine1').text(),
  335. "中草药费": $nodes["病案信息"].find('fee cnmedicine2').text(),
  336. "放射费": $nodes["病案信息"].find('fee radiation').text(),
  337. "化验费": $nodes["病案信息"].find('fee assay').text(),
  338. "输氧费": $nodes["病案信息"].find('fee oxygen').text(),
  339. "输血费": $nodes["病案信息"].find('fee blood').text(),
  340. "诊疗费": $nodes["病案信息"].find('fee diagnosis').text(),
  341. "治疗费": $nodes["病案信息"].find('fee treatment').text(),
  342. "手术费": $nodes["病案信息"].find('fee operation').text(),
  343. "接生费": $nodes["病案信息"].find('fee deliver').text(),
  344. "检查费": $nodes["病案信息"].find('fee check').text(),
  345. "麻醉费": $nodes["病案信息"].find('fee anaes').text(),
  346. "婴儿费": $nodes["病案信息"].find('fee baby').text(),
  347. "陪床费": $nodes["病案信息"].find('fee extraBed').text(),
  348. "其它费用1": $nodes["病案信息"].find('fee other1').text(),
  349. "其它费用2": $nodes["病案信息"].find('fee other2').text(),
  350. "其它费用3": $nodes["病案信息"].find('fee other3').text(),
  351. "其它费用4": $nodes["病案信息"].find('fee other4').text()
  352. }
  353. }
  354. }
  355. </script>