123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <!--
- 门诊处方
- -->
- <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 ms-if="data['就诊日期']"><label>开方时间:</label><span ms-text="data['就诊日期']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['主治医生']">
- <li ms-if="data['主治医生']"><label>开方医生:</label><span ms-text="data['主治医生']"></span></li>
- </ul>
- <ul class="os-base-info" ms-if="data['科室'] || data['医院']">
- <li><label>科室/医院:</label>
- <span ms-if="data['科室'] && data['医院']"><span ms-text="data['科室']"></span> <span ms-text="data['斜杠']"></span> <span ms-text="data['医院']"></span></span>
- <span ms-if="data['科室'] && !(data['医院'])" ms-text="data['科室']"></span>
- <span ms-if="!(data['科室']) && data['医院']" ms-text="data['医院']"></span>
- </li>
- </ul>
- </li>
- </ul>
- <ul class="info-list-t" ms-if="data['诊断'].length >0">
- <h3 class="os-tit-o"><i class="icon i-visiting-result"></i><span class="os-t-o-name">临床诊断</span></h3>
- <li class="il-t-item">
- <p><span ms-repeat="data['诊断']"><span ms-text="el['诊断名称']"></span> </span></p>
- </li>
- </ul>
- <ul class="info-list-t">
- <h3 class="os-tit-o o-t-o-nb"><i class="icon Rp"></i><span class="os-t-o-name">Rp</span></h3>
- <li class="il-t-item list-mt" ms-repeat="data['门诊用药记录']" ms-repeat-item="el['用药子项']">
- <h4 class="os-tit-f" ms-if="item['药品名称']" ms-text="item['药品名称']"></h4>
- <ul class="os-base-info pl0" ms-if="el['用药方法'] || item['次剂量'] || el['频率']">
- <li><label>用法:</label><span class="pd-r" ms-if="el['用药方法']" ms-text="el['用药方法']"></span><span ms-if="item['次剂量']" class="pd-r"><span ms-if="item['次剂量']">每次</span><span ms-text="item['次剂量']"></span></span><span class="pd-r" ms-if="el['频率']" ms-text="el['频率']"></span></li>
- </ul>
- <ul class="os-base-info pl0" ms-if="item['药品规格'] || item['总剂量']">
- <li ms-if="item['总剂量']" class="flex1"><label>总量:</label><span ms-text="item['总剂量']"></span></li>
- <li ms-if="item['药品规格']" class="flex2"><label>规格:</label><span ms-text="item['药品规格']"></span></li>
- </ul>
- </li>
- </ul>
- <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
- </div>
- <script>
- dataCode = ['0101'];//新增数据请求
- function dsXmlToJson0141_2(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "用药记录" :$xmlDom.find('component section entry')
- } ;
- var resultData = [];
- return {
- data:{
- "门诊用药记录": _.map($nodes["用药记录"].find('group'),function(el) {
- var $ele = $(el);
- var $freq = $ele.find("freq");//频率
- var $method = $ele.find("method");//方法
- var $medicineArr = $ele.find("medicine");//用药子项
- return {
- "频率": $freq.text(),
- "用药方法":$method.text(),
- "用药子项": (function() {
- return _.map($medicineArr, function(secEl){
- var $eleItem = $(secEl);
- return {
- "药品名称": $eleItem.find('value').text().trim() ? $eleItem.find('value').text().trim(): $eleItem.find('custome').text().trim(),
- "药品规格": $eleItem.find('spec').text().trim(),
- "总剂量":$eleItem.find('totalQuantity').text()? parseFloat($eleItem.find('totalQuantity').text()).toFixed(0)+ $eleItem.find('totalUnit').text():'' ,
- "次剂量":$eleItem.find('doseQuantity').text()? parseFloat($eleItem.find('doseQuantity').text()).toFixed(2)+ $eleItem.find('doseUnit').text():''
- }
- })
- })()
- }
- })
- }
- }
- }
- function dsXmlToJson0141_1(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "用药记录" :$xmlDom
- } ;
- var resultData = [];
- return {
- data:{
- "门诊用药记录": _.map($nodes["用药记录"].find('group'),function(el) {
- var $ele = $(el);
- var $freq = $ele.attr("freq");//频率
- var $method = $ele.attr("method");//方法
- var $medicineArr = $ele.find("medicine");//用药子项
- return {
- "频率": $freq,
- "用药方法":$method,
- "用药子项": (function() {
- return _.map($medicineArr, function(secEl){
- var $eleItem = $(secEl);
- return {
- "药品名称": $eleItem.text().trim(),
- "药品规格": $eleItem.attr('spec').trim(),
- "总剂量":$eleItem.attr('total_quantity')? parseFloat($eleItem.attr('total_quantity')).toFixed(0)+ $eleItem.attr('total_unit'):'' ,
- "次剂量":$eleItem.attr('dose_quantity')? parseFloat($eleItem.attr('dose_quantity')).toFixed(2)+ $eleItem.attr('dose_unit'):''
- }
- })
- })()
- }
- })
- }
- }
- }
-
- function dsXmlToJson0101_2(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "基本诊疗信息" :$xmlDom.find('component section'),
- "病人基本信息":$xmlDom.find('recordTarget patient')
- } ;
- return {
- data:{
- "斜杠":'/',
- "就诊日期": $nodes["基本诊疗信息"].find('entry treatTime').text(),
- "主治医生": $nodes["基本诊疗信息"].find('entry doctor name').text(),
- "科室": $nodes["基本诊疗信息"].find('entry dept').text(),
- "医院": $xmlDom.find('org').text(),
- "诊断": (function() {
- var arr = _.map($nodes["基本诊疗信息"].find('diagnosis item'),function(el) {
- var $ele = $(el);
- return {
- "诊断名称": $ele.find('icd').text(),
- }
- });
- return arr;
- })()
- }
- }
- }
-
- function dsXmlToJson0101_1(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "基本诊疗信息" :$xmlDom
- } ;
- return {
- data:{
- "科室": $nodes["基本诊疗信息"].find('dept').text(),
- "主治医生": $nodes["基本诊疗信息"].find('doctor').text(),
- "诊断": (function() {
- var arr = [];
- arr = _.map($nodes["基本诊疗信息"].find('diagnosis item'),function(el) {
- var $ele = $(el);
- return {
- "诊断名称": $ele.text(),
- }
- })
- return arr;
- })()
- }
- }
- }
- </script>
|