0121.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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-ess-info"></i><span class="os-t-o-name">基本信息</span></h3>
  8. <ul class="os-base-info" ms-if="data['检验项目']">
  9. <li><label>检验项目:</label><span ms-text="data['检验项目']"></span></li>
  10. </ul>
  11. <ul class="os-base-info" ms-if="data['标本类型']">
  12. <li><label>标本类型:</label><span ms-text="data['标本类型']"></span></li>
  13. </ul>
  14. <ul class="os-base-info" ms-if="data['报告日期']">
  15. <li><label>报告时间:</label><span ms-text="data['报告日期']"></span></li>
  16. </ul>
  17. <ul class="os-base-info" ms-if="data['医院']">
  18. <li><label>医&#x3000;&#x3000;院:</label><span ms-text="data['医院']"></span></li>
  19. </ul>
  20. </li>
  21. </ul>
  22. <ul class="info-list" ms-if="data['检验结果'].length >0">
  23. <li class="il-item il-i-table">
  24. <h3 class="os-tit-o"><i class="icon i-test-results"></i><span class="os-t-o-name">检验结果</span></h3>
  25. <table class="id-table" cellpadding="0" cellspacing="0" border="0">
  26. <thead>
  27. <tr>
  28. <th style="width: 30%;text-align: center;font-weight: bold;">项目名称</th>
  29. <th style="width: 20%;text-align: center;font-weight: bold;">检验结果</th>
  30. <th style="width: 30%;text-align: center;font-weight: bold;">参考值</th>
  31. <th style="width: 20%;text-align: center;font-weight: bold;">单位</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <tr ms-repeat="data['检验结果']">
  36. <td ms-text="el['项目名称']"></td>
  37. <td ms-text="el['结果']"></td>
  38. <td ms-text="el['参考值']"></td>
  39. <td ms-text="el['单位']"></td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </li>
  44. </ul>
  45. <ul class="info-list-t">
  46. <h3 class="os-tit-o"><i class="icon i-inspectors"></i><span class="os-t-o-name">检验人员</span></h3>
  47. <li class="il-t-item pl0">
  48. <ul class="os-base-info" ms-if="data['检验时间']">
  49. <li><label>检验时间:</label><span ms-text="data['检验时间']"></span></li>
  50. </ul>
  51. <ul class="os-base-info" ms-if="data['申请科室'] || data['申请医生']">
  52. <li ms-if="data['申请科室']"><label>申请科室:</label><span ms-text="data['申请科室']"></span></li>
  53. <li ms-if="data['申请医生']"><label>申请医生:</label><span ms-text="data['申请医生']"></span></li>
  54. </ul>
  55. <ul class="os-base-info" ms-if="data['检验医生'] || data['审核者']">
  56. <li ms-if="data['检验医生']"><label>检&nbsp;&nbsp;验&nbsp;&nbsp;员:</label><span ms-text="data['检验医生']"></span></li>
  57. <li ms-if="data['审核者']"><label>复&nbsp;&nbsp;核&nbsp;&nbsp;人:</label><span ms-text="data['审核者']"></span></li>
  58. </ul>
  59. </li>
  60. </ul>
  61. <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
  62. </div>
  63. <script>
  64. function dsXmlToJson0121_2(xmlStr) {
  65. var $xmlDom = $(xmlStr),
  66. $nodes = {
  67. "检验的专业类型名称" :$xmlDom.find('component section')
  68. } ;
  69. return {
  70. data:{
  71. "医院": $xmlDom.find('org').text(),
  72. "标本类型": $nodes["检验的专业类型名称"].find('entry classcode').text(),
  73. "检验项目": $nodes["检验的专业类型名称"].attr('displayname'),
  74. "检验结果": _.map($nodes["检验的专业类型名称"].find('entry observation'),function(el) {
  75. var $ele = $(el),
  76. $referRange = $ele.find('referenceRange observationRange');
  77. return {
  78. "项目名称": $ele.find('code').attr('displayname'),
  79. "结果": $ele.find('>value').text(),
  80. "参考值": (function() {
  81. var $low = $referRange.find('low'),
  82. $high = $referRange.find('high'),
  83. low = $.trim($low.find('value').text()),
  84. high = $.trim($high.find('value').text());
  85. if(low && high) {
  86. return low + '~' + high;
  87. } else {
  88. return low || high || "";
  89. }
  90. })(),
  91. "单位": $referRange.find('low unit').text(),
  92. }
  93. }),
  94. "检验时间": $nodes["检验的专业类型名称"].find('entry performer time').text(),
  95. "检验医生": $nodes["检验的专业类型名称"].find('entry performer name').text(),
  96. "审核者": $xmlDom.find('authenticator name').text(),
  97. "申请医生":$xmlDom.find('participant name').text(),
  98. "申请科室":$xmlDom.find('participant dept').text(),
  99. }
  100. }
  101. }
  102. function dsXmlToJson0121_1(xmlStr) {
  103. var $xmlDom = $(xmlStr),
  104. $nodes = {
  105. "检验的专业类型名称" :$xmlDom.find('component section')
  106. } ;
  107. return {
  108. data:{
  109. "医院": $xmlDom.find('org').text(),
  110. "标本类型": $nodes["检验的专业类型名称"].find('entry classcode').text(),
  111. "检验项目": $nodes["检验的专业类型名称"].attr('displayname'),
  112. "检验结果": _.map($nodes["检验的专业类型名称"].find('entry observation'),function(el) {
  113. var $ele = $(el),
  114. $referRange = $ele.find('referenceRange observationRange');
  115. return {
  116. "项目名称": $ele.find('code').attr('displayname'),
  117. "结果": $ele.find('>value').text(),
  118. "参考值": (function() {
  119. var $low = $referRange.find('low'),
  120. $high = $referRange.find('high'),
  121. low = $.trim($low.find('value').text()),
  122. high = $.trim($high.find('value').text());
  123. if(low && high) {
  124. return low + '~' + high;
  125. } else {
  126. return low || high || "";
  127. }
  128. })(),
  129. "单位": $referRange.find('low unit').text(),
  130. }
  131. }),
  132. "检验时间": $nodes["检验的专业类型名称"].find('entry performer time').text(),
  133. "检验医生": $nodes["检验的专业类型名称"].find('entry performer name').text(),
  134. "审核者": $xmlDom.find('authenticator name').text(),
  135. "申请医生":$xmlDom.find('participant name').text(),
  136. "申请科室":$xmlDom.find('participant dept').text(),
  137. }
  138. }
  139. }
  140. </script>