12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <!--
- 长期医嘱
- -->
- <div class="os-main">
- <div class="lto-con" ms-repeat="data['长期医嘱']">
- <h3 class="lto-tit"><span ms-text="el['下嘱时间'] | date('yyyy-MM-dd HH:mm:ss')"></span>~<span ms-text="el['停嘱时间'] | date('yyyy-MM-dd HH:mm:ss')"></span></h3>
- <p class="lto-info" ms-if="el['医嘱内容'].length>0"><span>医嘱内容:</span>{{el['医嘱内容']}}</p>
- <p class="lto-info"><span>频 次:</span>{{el['频次']}}</p>
- <p class="lto-info" ms-if="el['下嘱医生'].length>0"><span>下嘱医生:</span>{{el['下嘱医生']}}</p>
- </div>
- <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
- </div>
- <script>
- function dsXmlToJson0214_2(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "长期医嘱子项" :$xmlDom.find('component section entry order item')
- } ;
- return {
- data:{
- "长期医嘱": (function() {
- var $items = $nodes["长期医嘱子项"];
- if($items.length==0) {
- return [{
- "医嘱内容": "",
- "频次": " ",
- "下嘱医生": " ",
- "检验护士": " ",
- "下嘱时间": " ",
- "停嘱时间": " ",
- "停嘱医生": " ",
- "停嘱护士": " "}];
- }
- return _.map($items,function(el) {
- var $el = $(el);
- return {
- "医嘱内容": $el.find('orderName').text(),
- "频次": $el.find('freq').text(),
- "下嘱医生": $el.find('orderDoctor').text(),
- "检验护士": $el.find('checkNurse').text(),
- "下嘱时间": $el.find('orderTime').text(),
- "停嘱时间": $el.find('stopTime').text(),
- "停嘱医生": $el.find('stopDoctor').text(),
- "停嘱护士": $el.find('stopNurse').text()
- }
- })
- })()
- }
- }
- }
- function dsXmlToJson0214_1(xmlStr) {
- var $xmlDom = $(xmlStr),
- $nodes = {
- "长期医嘱子项" :$xmlDom
- } ;
- return {
- data:{
- "长期医嘱": (function() {
- var $items = $nodes["长期医嘱子项"].find('item');
- if($items.length==0) {
- return [{
- "医嘱内容": "",
- "频次": " ",
- "下嘱医生": " ",
- "检验护士": " ",
- "下嘱时间": " ",
- "停嘱时间": " ",
- "停嘱医生": " ",
- "停嘱护士": " "}];
- }
- return _.map($items,function(el) {
- var $el = $(el);
- return {
- "医嘱内容": $el.attr('order_name'),
- "频次": $el.attr('freq'),
- "下嘱医生": $el.attr('order_doctor'),
- "检验护士": $el.attr('check_nurse'),
- "下嘱时间": $el.attr('order_time'),
- "停嘱时间": $el.attr('stop_time'),
- "停嘱医生": $el.attr('stop_doctor'),
- "停嘱护士": $el.attr('stop_nurse')
- }
- })
- })()
- }
- }
- }
- </script>
|