123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <!--
- 住院诊疗基本信息
- -->
- <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['住院科室'].trim()">
- <li><label>住院科室:</label><span ms-text="data['住院科室']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['住院次数'].trim()">
- <li><label>住院次数:</label><span ms-text="data['住院次数']"></span></li>
- </ul>
- </li>
- </ul>
- <ul class="info-list-t" ms-if="(data['症状'] && data['症状'].length > 0) && (!!data['症状'][0]['症状名称'].trim() || !!data['症状'][0]['发病日期'].trim())">
- <li style="padding-left: 10px;">
- <h3 class="os-tit-o"><i class="icon i-dia-basis"></i><span class="os-t-o-name">症状</span></h3>
- </li>
- <li class="il-t-item" ms-repeat="data['症状']">
- <span ms-if="el['症状名称'].trim()">
- <h4 class="os-tit-th">症状名称:</h4>
- <p ms-html="el['症状名称']"></p>
- </span>
- <span ms-if="el['发病日期'].trim()">
- <h4 class="os-tit-th">发病日期:</h4>
- <p ms-html="el['发病日期']"></p>
- </span>
- </li>
- </ul>
- <ul class="info-list-t" ms-if="(data['入院诊断'] && data['入院诊断'].length > 0) && (!!data['入院诊断'][0]['入院诊断名称'].trim() || !!data['入院诊断'][0]['确诊日期'].trim())">
- <li style="padding-left: 10px;">
- <h3 class="os-tit-o"><i class="icon i-dia-basis"></i><span class="os-t-o-name">入院诊断</span></h3>
- </li>
- <li class="il-t-item" ms-repeat="data['入院诊断']">
- <span ms-if="el['入院诊断名称'] && el['入院诊断名称'].length > 0">
- <h4 class="os-tit-th">入院诊断名称:</h4>
- <p ms-html="el['入院诊断名称']"></p>
- </span>
- <span ms-if="el['确诊日期'] && el['确诊日期'].length > 0">
- <h4 class="os-tit-th">确诊日期:</h4>
- <p ms-html="el['确诊日期']"></p>
- </span>
- </li>
- </ul>
- <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
- </div>
- <script>
- function dsXmlToJson0201_2(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "住院基本诊疗信息" :$xmlDom.find('component section')
- } ;
- return {
- data:{
- "住院科室": $nodes["住院基本诊疗信息"].find('entry in dept').text() || " ",
- "住院次数": $nodes["住院基本诊疗信息"].find('entry residence serial').text() || " ",
- "症状": (function() {
- var $items = $nodes["住院基本诊疗信息"].find('entry symptom item');
- if($items.length==0) {
- return [{"症状名称": "", "发病日期": ""}];
- }
- return _.map($items,function(el) {
- var $el = $(el);
- return {
- "症状名称": $el.text(),
- "发病日期": $nodes["住院基本诊疗信息"].find('entry onsettime').text()
- }
- })
- })(),
- "入院诊断":
- (function() {
- var $items = $nodes["住院基本诊疗信息"].find('entry indiagnosis item');
- if($items.length == 0) {
- return [{"入院诊断名称": "", "确诊日期":""}]
- }
- return _.map($items,function(el) {
- var $el = $(el);
- return {
- "入院诊断名称": $el.find('icd').text(),
- "确诊日期": ""
- }
- });
- })()
- }
- }
- }
- function dsXmlToJson0201_1(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "住院基本诊疗信息" :$xmlDom
- } ;
- return {
- data:{
- "住院科室": $nodes["住院基本诊疗信息"].find('indept').text() || " ",
- "住院次数": $nodes["住院基本诊疗信息"].find('residence').attr('serial') || " ",
- "症状": (function() {
- return [{"症状名称": "", "发病日期": ""}];
- })(),
- "入院诊断": (function() {
- var $items = $nodes["住院基本诊疗信息"].find('indiagnosis item');
- if($items.length == 0) {
- return [{"入院诊断名称": "", "确诊日期":""}]
- }
- return _.map($items,function(el) {
- var $el = $(el);
- return {
- "入院诊断名称": $el.find('icd').text(),
- "确诊日期": ""
- }
- });
- })()
- }
- }
- }
- </script>
|