123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <!--
- 检验详情
- -->
- <div class="os-main">
- <ul class="info-list">
- <li class="il-item">
- <h3 class="os-tit-o"><i class="icon i-ess-info"></i><span class="os-t-o-name">基本信息</span></h3>
- <ul class="os-base-info" ms-if="data['检验项目']">
- <li><label>检验项目:</label><span ms-text="data['检验项目']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['标本类型']">
- <li><label>标本类型:</label><span ms-text="data['标本类型']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['报告日期']">
- <li><label>报告时间:</label><span ms-text="data['报告日期']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['医院']">
- <li><label>医  院:</label><span ms-text="data['医院']"></span></li>
- </ul>
- </li>
- </ul>
- <ul class="info-list" ms-if="data['检验结果'].length >0">
- <li class="il-item il-i-table">
- <h3 class="os-tit-o"><i class="icon i-test-results"></i><span class="os-t-o-name">检验结果</span></h3>
- <table class="id-table" cellpadding="0" cellspacing="0" border="0">
- <thead>
- <tr>
- <th style="width: 30%;text-align: center;font-weight: bold;">项目名称</th>
- <th style="width: 20%;text-align: center;font-weight: bold;">检验结果</th>
- <th style="width: 30%;text-align: center;font-weight: bold;">参考值</th>
- <th style="width: 20%;text-align: center;font-weight: bold;">单位</th>
- </tr>
- </thead>
- <tbody>
- <tr ms-repeat="data['检验结果']">
- <td ms-text="el['项目名称']"></td>
- <td ms-text="el['结果']"></td>
- <td ms-text="el['参考值']"></td>
- <td ms-text="el['单位']"></td>
- </tr>
- </tbody>
- </table>
- </li>
- </ul>
- <ul class="info-list-t">
- <h3 class="os-tit-o"><i class="icon i-inspectors"></i><span class="os-t-o-name">检验人员</span></h3>
- <li class="il-t-item pl0">
- <ul class="os-base-info" ms-if="data['检验时间']">
- <li><label>检验时间:</label><span ms-text="data['检验时间']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['申请科室'] || data['申请医生']">
- <li ms-if="data['申请科室']"><label>申请科室:</label><span ms-text="data['申请科室']"></span></li>
- <li ms-if="data['申请医生']"><label>申请医生:</label><span ms-text="data['申请医生']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['检验医生'] || data['审核者']">
- <li ms-if="data['检验医生']"><label>检 验 员:</label><span ms-text="data['检验医生']"></span></li>
- <li ms-if="data['审核者']"><label>复 核 人:</label><span ms-text="data['审核者']"></span></li>
- </ul>
- </li>
- </ul>
- <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
- </div>
- <script>
- function dsXmlToJson0221_2(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "检验的专业类型名称" :$xmlDom.find('component section')
- } ;
-
- return {
- data:{
- "医院": $xmlDom.find('org').text(),
- "标本类型": $nodes["检验的专业类型名称"].find('entry classcode').text(),
- "检验项目": $nodes["检验的专业类型名称"].attr('displayname'),
- "检验结果": _.map($nodes["检验的专业类型名称"].find('entry observation'),function(el) {
- var $ele = $(el),
- $referRange = $ele.find('referenceRange observationRange');
- return {
- "项目名称": $ele.find('code').attr('displayname'),
- "结果": $ele.find('>value').text(),
- "参考值": (function() {
- var $low = $referRange.find('low'),
- $high = $referRange.find('high'),
- low = $.trim($low.find('value').text()),
- high = $.trim($high.find('value').text());
- if(low && high) {
- return low + '~' + high;
- } else {
- return low || high || "";
- }
- })(),
- "单位": $referRange.find('low unit').text(),
- }
- }),
- "检验时间": $nodes["检验的专业类型名称"].find('entry performer time').text(),
- "检验医生": $nodes["检验的专业类型名称"].find('entry performer name').text(),
- "审核者": $xmlDom.find('authenticator name').text(),
- "申请医生":$xmlDom.find('participant name').text(),
- "申请科室":$xmlDom.find('participant dept').text(),
- }
- }
- }
- function dsXmlToJson0221_1(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "检验的专业类型名称" :$xmlDom.find('component section')
- } ;
-
- return {
- data:{
- "医院": $xmlDom.find('org').text(),
- "标本类型": $nodes["检验的专业类型名称"].find('entry classcode').text(),
- "检验项目": $nodes["检验的专业类型名称"].attr('displayname'),
- "检验结果": _.map($nodes["检验的专业类型名称"].find('entry observation'),function(el) {
- var $ele = $(el),
- $referRange = $ele.find('referenceRange observationRange');
- return {
- "项目名称": $ele.find('code').attr('displayname'),
- "结果": $ele.find('>value').text(),
- "参考值": (function() {
- var $low = $referRange.find('low'),
- $high = $referRange.find('high'),
- low = $.trim($low.find('value').text()),
- high = $.trim($high.find('value').text());
- if(low && high) {
- return low + '~' + high;
- } else {
- return low || high || "";
- }
- })(),
- "单位": $referRange.find('low unit').text(),
- }
- }),
- "检验时间": $nodes["检验的专业类型名称"].find('entry performer time').text(),
- "检验医生": $nodes["检验的专业类型名称"].find('entry performer name').text(),
- "审核者": $xmlDom.find('authenticator name').text(),
- "申请医生":$xmlDom.find('participant name').text(),
- "申请科室":$xmlDom.find('participant dept').text(),
- }
- }
- }
- </script>
|