123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- <!--
- 住院病案首页
- -->
- <div class="os-main">
- <ul class="info-list">
- <li class="il-item">
- <h3 class="os-tit-o"><i class="icon i-pat-info"></i><span class="os-t-o-name">患者信息</span></h3>
- <ul class="os-base-info" ms-if="data['姓名'].length > 0 || data['性别'].length > 0">
- <li ms-if="data['姓名'].length > 0"><label>姓 名:</label><span ms-text="data['姓名']"></span></li>
- <li ms-if="data['性别'].length > 0"><label>性 别:</label><span ms-text="data['性别']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['出生日期'].length > 0 || data['婚姻状态'].length > 0">
- <li ms-if="data['出生日期'].length > 0"><label>出生日期:</label><span ms-text="data['出生日期'] | date('yyyy-MM-dd')"></span></li>
- <li ms-if="data['婚姻状态'].length > 0"><label>婚姻状况:</label><span ms-text="data['婚姻状态']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['血型'].length > 0 || data['Rh血型'].length > 0">
- <li ms-if="data['血型'].length > 0"><label>血 型:</label><span ms-text="data['血型']"></span></li>
- <li ms-if="data['Rh血型'].length > 0"><label>Rh:</label><span ms-text="data['Rh血型']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="(data['新生儿体重'] || data['新生儿入院体重'])">
- <li><label>新生儿体重:</label><span>{{data['新生儿体重']}}g</span></li>
- <li><label>新生儿入院体重:</label><span>{{data['新生儿入院体重']}}g</span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['过敏药物'].length > 0">
- <li><label>过敏药物:</label><span ms-text="data['过敏药物']"></span></li>
- </ul>
- </li>
- <li class="il-item">
- <h3 class="os-tit-o"><i class="icon i-hos-sum"></i><span class="os-t-o-name">住院概要</span></h3>
- <ul class="os-base-info" ms-if="data['入院日期'].length > 0">
- <li><label>入院日期:</label><span ms-text="data['入院日期'] | date('yyyy-MM-dd')"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['入院途径'].length > 0">
- <li><label>入院途径:</label><span ms-text="data['入院途径']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['入院科室'].length > 0">
- <li><label>入院科室:</label><span ms-text="data['入院科室']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['转科科室'].length > 0">
- <li><label>转科科室:</label><span ms-text="data['转科科室']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['出院日期'].length > 0">
- <li><label>出院日期:</label><span ms-text="data['出院日期'] | date('yyyy-MM-dd')"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['出院科室'].length > 0">
- <li><label>出院科室:</label><span ms-text="data['出院科室']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['主要诊断'].length > 0">
- <li><label>主要诊断:</label><span ms-text="data['主要诊断']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['病例诊断'].length > 0">
- <li><label>病例诊断:</label><span ms-text="data['病例诊断']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['门(急)诊诊断'].length > 0">
- <li><label>门(急)诊诊断:</label><span ms-text="data['门(急)诊诊断']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['其他诊断'].length > 0">
- <li><label>其他诊断:</label><span ms-text="data['其他诊断']"></span></li>
- </ul>
- </li>
- <li class="il-item il-i-table" ms-if="data['手术信息'] && data['手术信息'].length > 0">
- <h3 class="os-tit-o"><i class="icon i-ope-rec"></i><span class="os-t-o-name">手术记录</span></h3>
- <table class="hp-table" cellpadding="0" cellspacing="0" border="0">
- <thead>
- <tr>
- <th style="width: 15%">日期</th>
- <th style="width: 50%">手术名称</th>
- <th style="width: 15%">切口愈合等级</th>
- <th style="width: 20%">麻醉方式</th>
- </tr>
- </thead>
- <tbody>
- <tr ms-repeat="data['手术信息']">
- <td>{{el['日期'] | date('yyyy-MM-dd')}}</td>
- <td>{{el['名称']}}</td>
- <td>{{el['切口愈合等级']}}</td>
- <td>{{el['麻醉方式']}}</td>
- </tr>
- </tbody>
- </table>
- </li>
- <!--<li class="il-item">
- <h3 class="os-tit-o"><i class="icon i-dia-rec"></i><span class="os-t-o-name">症状记录</span></h3>
- <ul class="hp-list">
- <li><span>发病时间</span><span>症状记录</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- </ul>
- </li>
- <li class="il-item">
- <h3 class="os-tit-o"><i class="icon i-zdjl"></i><span class="os-t-o-name">诊断记录</span></h3>
- <ul class="hp-list">
- <li><span>发病时间</span><span>症状记录</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- <li><span>2017-03-27 10:55</span><span>马来酸非尼拉敏盐酸萘甲菲林</span></li>
- </ul>
- </li>-->
- <li class="il-item" ms-if="data['科主任'].length > 0 || data['主任(副主任)医师'].length > 0 || data['主治医师'].length > 0 || data['住院医师'].length > 0 ||data['责任护士'].length > 0 || data['进修医师'].length > 0">
- <h3 class="os-tit-o"><i class="icon i-doc-info"></i><span class="os-t-o-name">医生信息</span></h3>
- <ul class="os-base-info" ms-if="data['科主任'].length > 0 || data['主任(副主任)医师'].length > 0">
- <li ms-if="data['科主任'].length > 0"><label>科 主 任:</label><span ms-text="data['科主任']"></span></li>
- <li ms-if="data['主任(副主任)医师'].length > 0"><label>主任(副主任)医师:</label><span ms-text="data['主任(副主任)医师']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['主治医师'].length > 0 || data['住院医师'].length > 0">
- <li ms-if="data['主治医师'].length > 0"><label>主治医师:</label><span ms-text="data['主治医师']"></span></li>
- <li ms-if="data['住院医师'].length > 0"><label>住院医师:</label><span ms-text="data['住院医师']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['责任护士'].length > 0 || data['进修医师'].length > 0">
- <li ms-if="data['责任护士'].length > 0"><label>责任护士:</label><span ms-text="data['责任护士']"></span></li>
- <li ms-if="data['进修医师'].length > 0"><label>进修医师:</label><span ms-text="data['进修医师']"></span></li>
- </ul>
- </li>
- </ul>
- <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
- </div>
- <script>
- function dsXmlToJson0211_2(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "病人信息": $xmlDom.find('recordTarget patient'),
- "病案信息": $xmlDom.find('component section entry')
- } ;
- return {
- data:{
- // "医疗付费方式": $nodes["病案信息"].find('payStyle').text(),
- "住院次数": $nodes["病案信息"].find('residence serial').text(),
- "病案号":$nodes["病案信息"].find('residence code').text(),
- "姓名": $nodes["病人信息"].find('name').text() || " ",
- "性别": $nodes["病人信息"].find('sex').text() || " ",
- "年龄": $nodes["病人信息"].find('age').text() || " ",
- "不足一周岁的年龄": "",
- "新生儿出生体重": "",
- "新生儿入院体重": "",
- "国籍": $nodes["病人信息"].find('country').text(),
- "民族": $nodes["病人信息"].find('nation').text(),
- "婚姻状态": $nodes["病人信息"].find('marriage').text(),
- "职业": $nodes["病人信息"].find('work').text(),
- "籍贯": "",
- "出生地": $nodes["病人信息"].find('birthAdd').text(),
- "出生日期": $nodes["病人信息"].find('birthDate').text(),
- "户口地址": $nodes["病人信息"].find('registeredAddress').text(),
- "邮编": $nodes["病人信息"].find('postalCode').text(),
- "身份证号": $nodes["病人信息"].find('idno').text(),
- "单位": $nodes["病人信息"].find('organization').text(),
- "单位电话": "",
- "单位邮编": "",
- "联系人姓名": $xmlDom.find('contactPerson name').text(),
- "联系人关系": $xmlDom.find('contactPerson type').text(),
- "地址": $nodes["病人信息"].find('address').text(),
- "电话": $nodes["病人信息"].find('telephone').text(),
- "入院日期": $nodes["病案信息"].find('inTime').attr('value'),
- "入院科室": $nodes["病案信息"].find('inDept').text(),
- "转科科室": $nodes["病案信息"].find('moveDept').text(),
- "出院日期": $nodes["病案信息"].find('outTime').attr('value'),
- "出院科室": $nodes["病案信息"].find('outDept').text(),
- "实际住院天数": $nodes["病案信息"].find('inHospitalDay').text(),
- "入院途径": $nodes["病案信息"].find('inClass').text(),
- "门(急)诊诊断": $nodes["病案信息"].find('clinicDiagnosis').text(),
- "主要诊断": "",
- "其他诊断": "",
- "病例诊断": "",
- "病理号": $nodes["病案信息"].find('pathologyDiagnosis').attr('extension'),
- "疾病编码": "",
- "损伤、中毒的外部原因": "",
- "药物过敏标志": "",
- "过敏药物": $nodes["病案信息"].find('allergyDrugs').text(),
- "死亡患者尸检": $nodes["病案信息"].find('autopsy').text(),
- "血型": $nodes["病案信息"].find('bloodType').text(),
- "Rh血型": $nodes["病案信息"].find('bloodRh').text(),
- "科主任": $xmlDom.find('deptOfficer name').text(),
- "主任(副主任)医师": $xmlDom.find('directorDoctor name').text(),
- "主治医师": $xmlDom.find('inChargeDoctor name').text(),
- "住院医师": $xmlDom.find('residentDoctor name').text(),
- "责任护士": "",
- "进修医师": $xmlDom.find('learningDoctor name').text(),
- "实习医师": $xmlDom.find('intern name').text(),
- "编码员": $xmlDom.find('cataloger name').text(),
- "质控医师": $xmlDom.find('qcDoctor name').text(),
- "质控护士": $xmlDom.find('qcNurse name').text(),
- "质控医师签名时间": $xmlDom.find('qcDoctor time').attr('value'),
- "病案质量": $nodes["病案信息"].find('quality').text(),
- "手术信息":
- (function() {
- var $operations = $nodes["病案信息"].find('operation item');
- if($operations.length == 0) {
- // return [{
- // "编码": " ","日期": " ","名称": " ","手术级别": " ","手术医师": " ",
- // "Ⅰ助": " ","Ⅱ助": " ","切口愈合等级": " ","麻醉方式": " ","麻醉医师": " "
- // }]
- return [];
- }
- return _.map($operations,function(el) {
- var $el = $(el);
- return {
- "编码": $el.find('oper').attr('code'),
- "日期": $el.find('time').text(),
- "名称": $el.find('oper').text(),
- "手术级别": " ",
- "手术医师": $el.find('surgeon').text(),
- "Ⅰ助": $el.find('assistant1').text(),
- "Ⅱ助": $el.find('assistant2').text(),
- "切口愈合等级": $el.find('incisionAndHeal').text(),
- "麻醉方式": $el.find('anesthesia').text(),
- "麻醉医师": " "
- }
- });
- })()
- ,
- "总费用": $nodes["病案信息"].find('fee total').text(),
- "床位费": $nodes["病案信息"].find('fee bed').text(),
- "护理费": $nodes["病案信息"].find('fee tend').text(),
- "西药费": $nodes["病案信息"].find('fee westmedicine').text(),
- "中成药费": $nodes["病案信息"].find('fee cnmedicine1').text(),
- "中草药费": $nodes["病案信息"].find('fee cnmedicine2').text(),
- "放射费": $nodes["病案信息"].find('fee radiation').text(),
- "化验费": $nodes["病案信息"].find('fee assay').text(),
- "输氧费": $nodes["病案信息"].find('fee oxygen').text(),
- "输血费": $nodes["病案信息"].find('fee blood').text(),
- "诊疗费": $nodes["病案信息"].find('fee diagnosis').text(),
- "治疗费": $nodes["病案信息"].find('fee treatment').text(),
- "手术费": $nodes["病案信息"].find('fee operation').text(),
- "接生费": $nodes["病案信息"].find('fee deliver').text(),
- "检查费": $nodes["病案信息"].find('fee check').text(),
- "麻醉费": $nodes["病案信息"].find('fee anaes').text(),
- "婴儿费": $nodes["病案信息"].find('fee baby').text(),
- "陪床费": $nodes["病案信息"].find('fee extraBed').text(),
- "其它费用1": $nodes["病案信息"].find('fee other1').text(),
- "其它费用2": $nodes["病案信息"].find('fee other2').text(),
- "其它费用3": $nodes["病案信息"].find('fee other3').text(),
- "其它费用4": $nodes["病案信息"].find('fee other4').text()
- }
- }
- }
- function dsXmlToJson0211_1(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "病人信息": $xmlDom.find('recordTarget patient'),
- "病案信息": $xmlDom.find('component section entry')
- } ;
- return {
- data:{
- // "医疗付费方式": $nodes["病案信息"].find('payStyle').text(),
- "住院次数": $nodes["病案信息"].find('residence serial').text(),
- "病案号":$nodes["病案信息"].find('residence code').text(),
- "姓名": $nodes["病人信息"].find('name').text() || " ",
- "性别": $nodes["病人信息"].find('sex').text() || " ",
- "年龄": $nodes["病人信息"].find('age').text() || " ",
- "不足一周岁的年龄": "",
- "新生儿出生体重": "",
- "新生儿入院体重": "",
- "国籍": $nodes["病人信息"].find('country').text(),
- "民族": $nodes["病人信息"].find('nation').text(),
- "婚姻状态": $nodes["病人信息"].find('marriage').text(),
- "职业": $nodes["病人信息"].find('work').text(),
- "籍贯": "",
- "出生地": $nodes["病人信息"].find('birthAdd').text(),
- "出生日期": $nodes["病人信息"].find('birthDate').text(),
- "户口地址": $nodes["病人信息"].find('registeredAddress').text(),
- "邮编": $nodes["病人信息"].find('postalCode').text(),
- "身份证号": $nodes["病人信息"].find('idno').text(),
- "单位": $nodes["病人信息"].find('organization').text(),
- "单位电话": "",
- "单位邮编": "",
- "联系人姓名": $xmlDom.find('contactPerson name').text(),
- "联系人关系": $xmlDom.find('contactPerson type').text(),
- "地址": $nodes["病人信息"].find('address').text(),
- "电话": $nodes["病人信息"].find('telephone').text(),
- "入院日期": $nodes["病案信息"].find('inTime').attr('value'),
- "入院科室": $nodes["病案信息"].find('inDept').text(),
- "转科科室": $nodes["病案信息"].find('moveDept').text(),
- "出院日期": $nodes["病案信息"].find('outTime').attr('value'),
- "出院科室": $nodes["病案信息"].find('outDept').text(),
- "实际住院天数": $nodes["病案信息"].find('inHospitalDay').text(),
- "入院途径": $nodes["病案信息"].find('inClass').text(),
- "门(急)诊诊断": $nodes["病案信息"].find('clinicDiagnosis').text(),
- "主要诊断": "",
- "其他诊断": "",
- "病例诊断": "",
- "病理号": $nodes["病案信息"].find('pathologyDiagnosis').attr('extension'),
- "疾病编码": "",
- "损伤、中毒的外部原因": "",
- "药物过敏标志": "",
- "过敏药物": $nodes["病案信息"].find('allergyDrugs').text(),
- "死亡患者尸检": $nodes["病案信息"].find('autopsy').text(),
- "血型": $nodes["病案信息"].find('bloodType').text(),
- "Rh血型": $nodes["病案信息"].find('bloodRh').text(),
- "科主任": $xmlDom.find('deptOfficer name').text(),
- "主任(副主任)医师": $xmlDom.find('directorDoctor name').text(),
- "主治医师": $xmlDom.find('inChargeDoctor name').text(),
- "住院医师": $xmlDom.find('residentDoctor name').text(),
- "责任护士": "",
- "进修医师": $xmlDom.find('learningDoctor name').text(),
- "实习医师": $xmlDom.find('intern name').text(),
- "编码员": $xmlDom.find('cataloger name').text(),
- "质控医师": $xmlDom.find('qcDoctor name').text(),
- "质控护士": $xmlDom.find('qcNurse name').text(),
- "质控医师签名时间": $xmlDom.find('qcDoctor time').attr('value'),
- "病案质量": $nodes["病案信息"].find('quality').text(),
- "手术信息":
- (function() {
- var $operations = $nodes["病案信息"].find('operation item');
- if($operations.length == 0) {
- // return [{
- // "编码": " ","日期": " ","名称": " ","手术级别": " ","手术医师": " ",
- // "Ⅰ助": " ","Ⅱ助": " ","切口愈合等级": " ","麻醉方式": " ","麻醉医师": " "
- // }]
- return [];
- }
- return _.map($operations,function(el) {
- var $el = $(el);
- return {
- "编码": $el.find('oper').attr('code'),
- "日期": $el.find('time').text(),
- "名称": $el.find('oper').text(),
- "手术级别": " ",
- "手术医师": $el.find('surgeon').text(),
- "Ⅰ助": $el.find('assistant1').text(),
- "Ⅱ助": $el.find('assistant2').text(),
- "切口愈合等级": $el.find('incisionAndHeal').text(),
- "麻醉方式": $el.find('anesthesia').text(),
- "麻醉医师": " "
- }
- });
- })()
- ,
- "总费用": $nodes["病案信息"].find('fee total').text(),
- "床位费": $nodes["病案信息"].find('fee bed').text(),
- "护理费": $nodes["病案信息"].find('fee tend').text(),
- "西药费": $nodes["病案信息"].find('fee westmedicine').text(),
- "中成药费": $nodes["病案信息"].find('fee cnmedicine1').text(),
- "中草药费": $nodes["病案信息"].find('fee cnmedicine2').text(),
- "放射费": $nodes["病案信息"].find('fee radiation').text(),
- "化验费": $nodes["病案信息"].find('fee assay').text(),
- "输氧费": $nodes["病案信息"].find('fee oxygen').text(),
- "输血费": $nodes["病案信息"].find('fee blood').text(),
- "诊疗费": $nodes["病案信息"].find('fee diagnosis').text(),
- "治疗费": $nodes["病案信息"].find('fee treatment').text(),
- "手术费": $nodes["病案信息"].find('fee operation').text(),
- "接生费": $nodes["病案信息"].find('fee deliver').text(),
- "检查费": $nodes["病案信息"].find('fee check').text(),
- "麻醉费": $nodes["病案信息"].find('fee anaes').text(),
- "婴儿费": $nodes["病案信息"].find('fee baby').text(),
- "陪床费": $nodes["病案信息"].find('fee extraBed').text(),
- "其它费用1": $nodes["病案信息"].find('fee other1').text(),
- "其它费用2": $nodes["病案信息"].find('fee other2').text(),
- "其它费用3": $nodes["病案信息"].find('fee other3').text(),
- "其它费用4": $nodes["病案信息"].find('fee other4').text()
- }
- }
- }
- </script>
|