0215.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!--
  2. 临时医嘱
  3. -->
  4. <div class="os-main">
  5. <div class="lto-con" ms-repeat="data['临时医嘱']">
  6. <p style="padding-top: 15px;"></p>
  7. <p class="lto-info" ms-if="el['下嘱时间'].length>0"><span>下嘱时间:</span>{{el['下嘱时间'] | date('yyyy-MM-dd HH:mm:ss')}}</p>
  8. <p class="lto-info" ms-if="el['医嘱内容'].length>0"><span>医嘱内容:</span>{{el['医嘱内容']}}</p>
  9. <p class="lto-info" ms-if="el['下嘱医生'].length>0"><span>下嘱医生:</span>{{el['下嘱医生']}}</p>
  10. <p class="lto-info" ms-if="el['检验护士'].length>0"><span>检验护士:</span>{{el['检验护士']}}</p>
  11. </div>
  12. <p class="p-bottom">详情内容以医院出具纸质病例为准</p>
  13. </div>
  14. <script>
  15. function dsXmlToJson0215_2(xmlStr) {
  16. var $xmlDom = $(xmlStr),
  17. $nodes = {
  18. "临时医嘱子项" :$xmlDom.find('component section entry order item')
  19. } ;
  20. return {
  21. data:{
  22. "临时医嘱": (function() {
  23. var $items = $nodes["临时医嘱子项"];
  24. if($items.length==0) {
  25. return [{
  26. "医嘱内容": "&nbsp;",
  27. "频次": "&nbsp;",
  28. "下嘱医生": "&nbsp;",
  29. "检验护士": "&nbsp;",
  30. "下嘱时间": "&nbsp;",
  31. "执行护士": "&nbsp;",
  32. "执行时间": "&nbsp;"
  33. }];
  34. }
  35. return _.map($items,function(el) {
  36. var $el = $(el);
  37. return {
  38. "医嘱内容": $el.find('orderName').text(),
  39. "频次": $el.find('freq').text(),
  40. "下嘱医生": $el.find('orderDoctor').text(),
  41. "检验护士": $el.find('checkNurse').text(),
  42. "下嘱时间": $el.find('orderTime').text(),
  43. "执行护士": $el.find('execNurse').text(),
  44. "执行时间": $el.find('execTime').text()
  45. }
  46. })
  47. })()
  48. }
  49. }
  50. }
  51. function dsXmlToJson0215_1(xmlStr) {
  52. var $xmlDom = $(xmlStr),
  53. $nodes = {
  54. "临时医嘱子项" :$xmlDom.find('item')
  55. } ;
  56. return {
  57. data:{
  58. "临时医嘱": (function() {
  59. var $items = $nodes["临时医嘱子项"];
  60. if($items.length==0) {
  61. return [{
  62. "医嘱内容": "&nbsp;",
  63. // "频次": " ",
  64. "下嘱医生": "&nbsp;",
  65. "检验护士": "&nbsp;",
  66. "下嘱时间": "&nbsp;",
  67. "执行护士": "&nbsp;",
  68. "执行时间": "&nbsp;"
  69. }];
  70. }
  71. return _.map($items,function(el) {
  72. var $el = $(el);
  73. return {
  74. "医嘱内容": $el.attr('std_code'),
  75. // "频次": $el.attr('freq').text(),
  76. "下嘱医生": $el.attr('order_doctor'),
  77. "检验护士": $el.attr('check_nurse'),
  78. "下嘱时间": $el.attr('order_time'),
  79. "执行护士": $el.attr('exec_nurse'),
  80. "执行时间": $el.attr('exec_time')
  81. }
  82. })
  83. })()
  84. }
  85. }
  86. }
  87. </script>