DialysisPrescription.vue 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="DetailsTit">
  4. <span>{{ title }}</span>
  5. </h2>
  6. <div class="plate">
  7. <ul>
  8. <li v-if="isShow('透析模式')">
  9. <label>透析模式 : </label>
  10. <span class="content">{{ dialysis_mode }}</span>
  11. </li>
  12. <li v-if="isShow('置换量') && (dialysis_mode == 'HDF' || dialysis_mode == 'HF' || dialysis_mode =='HDF+HP')">
  13. <label>置换量 : </label>
  14. <span class="content">{{
  15. replacement_total != "0" ? replacement_total : ""
  16. }}</span>
  17. <span v-if="this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 40" class="unit">{{ replacement_total != "0" ? "L" : "" }}</span>
  18. <span v-if="this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 40" class="unit">{{ replacement_total != "0" ? "ml" : "" }}</span>
  19. </li>
  20. <li v-if="isShow('置换速度')">
  21. <label>置换速度 : </label>
  22. <span class="content">{{displace_speed }}</span>
  23. <span class="unit">ml/min</span>
  24. </li>
  25. <li v-if="isShow('透析液配方')">
  26. <label>透析液配方 : </label>
  27. <span class="content">{{ dialysate_formulation }}</span>
  28. </li>
  29. <li v-if="isShow('透析液温度')">
  30. <label>透析液温度 : </label>
  31. <span class="content">{{
  32. dialysate_temperature != "0" ? dialysate_temperature : ""
  33. }}</span>
  34. <span class="unit">{{
  35. dialysate_temperature != "0" ? "℃" : ""
  36. }}</span>
  37. </li>
  38. <li v-if="isShow('抗凝剂')">
  39. <label>抗凝剂 : </label>
  40. <span class="content">{{ anticoagulant }}</span>
  41. </li>
  42. <li v-if="isShow('抗凝剂商品名称') && this.$store.getters.xt_user.template_info.template_id != 24">
  43. <label>抗凝剂商品名称 : </label>
  44. <span class="content">{{ antioxidant_commodity_name }}</span>
  45. </li>
  46. <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
  47. <label>总量: </label>
  48. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
  49. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
  50. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  51. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
  52. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  53. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
  54. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
  55. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
  56. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  57. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  58. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  59. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  60. </li>
  61. <li v-if="isShow('透析器/灌流器')">
  62. <label>透析器/灌流器 : </label>
  63. <span class="content">{{ dialyzer_perfusion_apparatus }}</span>
  64. <span class="unit"></span>
  65. </li>
  66. <li v-if="isShow('透析器')">
  67. <label>透析器 : </label>
  68. <span class="content">{{ dialysis_dialyszers }}</span>
  69. <span class="unit"></span>
  70. </li>
  71. <li v-if="isShow('灌流器')">
  72. <label>灌流器 : </label>
  73. <span class="content">{{ dialysis_irrigation }}</span>
  74. <span class="unit"></span>
  75. </li>
  76. <li v-if="isShow('透析前使用特殊药物')">
  77. <label>透析前使用特殊药物: </label>
  78. <span class="content">{{ special_medicine }}</span>
  79. <span class="unit"></span>
  80. </li>
  81. <li v-if="isShow('体液过多其他症状')">
  82. <label>体液过多其他症状 : </label>
  83. <span class="content">{{ body_fluid_other }}</span>
  84. <span class="unit"></span>
  85. </li>
  86. </ul>
  87. <ul>
  88. <li v-if="isShow('目标超滤量')">
  89. <label>目标超滤量 : </label>
  90. <span class="content">{{
  91. target_ultrafiltration != "0" ? target_ultrafiltration : ""
  92. }}</span>
  93. <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
  94. <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
  95. </li>
  96. <li v-if="isShow('葡萄糖')">
  97. <label>葡萄糖 : </label>
  98. <span class="content">{{ glucose != "0" ? glucose : "" }}</span>
  99. <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
  100. </li>
  101. <li v-if="isShow('钾')">
  102. <label>钾 : </label>
  103. <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
  104. <span class="unit">{{ kalium != "0" ? "mmol/L" : "" }}</span>
  105. </li>
  106. <li v-if="isShow('血流量')">
  107. <label>血流量 : </label>
  108. <span class="content">{{
  109. blood_flow_volume != "0" ? blood_flow_volume : ""
  110. }}</span>
  111. <span class="unit">{{
  112. blood_flow_volume != "0" ? "ml/min" : ""
  113. }}</span>
  114. </li>
  115. <li v-if=" isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
  116. <label>首剂 : </label>
  117. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
  118. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
  119. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  120. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
  121. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  122. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
  123. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
  124. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
  125. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
  126. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  127. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  128. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  129. </li>
  130. <li v-if="isShow('钙')">
  131. <label>钙: </label>
  132. <span class="content">{{ calcium != "0" ? calcium : "" }}</span>
  133. <span class="unit">{{ calcium != "0" ? "mmol/L" : "" }}</span>
  134. </li>
  135. <li v-if="isShow('体液过多症状')">
  136. <label>体液过多症状 : </label>
  137. <span class="content">{{ body_fluid }}</span>
  138. <span class="unit"></span>
  139. </li>
  140. <li v-if="isShow('透析前使用其他特殊药物')">
  141. <label>透析前使用其他特殊药物: </label>
  142. <span class="content">{{ special_medicine_other }}</span>
  143. <span class="unit"></span>
  144. </li>
  145. <li
  146. v-if="
  147. isShow('钙名称') &&
  148. getValueStr('anticoagulant', 'anticoagulant') == 5
  149. "
  150. >
  151. <label>钙名称: </label>
  152. <span class="content">{{
  153. getValueStr(
  154. "anticoagulant_gaimingcheng",
  155. "anticoagulant_gaimingcheng"
  156. )
  157. }}</span>
  158. </li>
  159. <!-- <li v-if="isShow('血流量')">-->
  160. <!-- <label>血流量 : </label>-->
  161. <!-- <span class="content">{{-->
  162. <!-- blood_flow_volume != "0" ? blood_flow_volume : ""-->
  163. <!-- }}</span>-->
  164. <!-- <span class="unit">{{-->
  165. <!-- blood_flow_volume != "0" ? "ml/min" : ""-->
  166. <!-- }}</span>-->
  167. <!-- </li>-->
  168. </ul>
  169. <ul>
  170. <li v-if="isShow('钠')">
  171. <label>钠 : </label>
  172. <span class="content">{{ sodium != "0" ? sodium : "" }}</span>
  173. <span class="unit">{{ sodium != "0" ? "mmol/L" : "" }}</span>
  174. </li>
  175. <li v-if="isShow('透析时长')">
  176. <label>透析时长 : </label>
  177. <span class="content">{{
  178. dialysis_duration != "0" ? dialysis_duration : ""
  179. }}</span>
  180. </li>
  181. <li v-if="isShow('碳酸氢盐')">
  182. <label>碳酸氢盐 : </label>
  183. <span class="content">{{
  184. bicarbonate != "0" ? bicarbonate : ""
  185. }}</span>
  186. <span class="unit">{{ bicarbonate != "0" ? "mmol/L" : "" }}</span>
  187. </li>
  188. <li v-if="isShow('透析液流量')">
  189. <label>透析液流量 : </label>
  190. <span class="content">{{
  191. dialysate_flow != "0" ? dialysate_flow : ""
  192. }}</span>
  193. <span class="unit">{{ dialysate_flow != "0" ? "ml/min" : "" }}</span>
  194. </li>
  195. <li v-if="isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5">
  196. <label>维持 : </label>
  197. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
  198. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
  199. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  200. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
  201. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  202. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
  203. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
  204. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
  205. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  206. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  207. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  208. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  209. </li>
  210. <li
  211. v-if="
  212. isShow('钙剂量') &&
  213. getValueStr('anticoagulant', 'anticoagulant') == 5
  214. "
  215. >
  216. <label>钙剂量: </label>
  217. <span class="content">{{
  218. getValueStr("anticoagulant_gaijiliang", "anticoagulant_gaijiliang")
  219. }}</span>
  220. <span
  221. class="unit"
  222. v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
  223. >{{ "ml" }}</span
  224. >
  225. </li>
  226. <li v-if="isShow('实际超滤量')">
  227. <label>实际超滤量: </label>
  228. <span class="content">{{
  229. ultrafiltration != "0" ? ultrafiltration : ""
  230. }}</span>
  231. <span class="unit">{{ ultrafiltration != "0" ? "L" : "" }}</span>
  232. </li>
  233. <li v-if="isShow('电导度')">
  234. <label>电导度 : </label>
  235. <span class="content">{{
  236. conductivity != "0" ? conductivity : ""
  237. }}</span>
  238. <span class="unit">{{ conductivity != "0" ? "mS/m" : "" }}</span>
  239. </li>
  240. <li v-if="isShow('置换液') && dialysis_mode == 'HDF'">
  241. <label
  242. v-if="this.$store.getters.xt_user.template_info.template_id != 6"
  243. >置换液:
  244. </label>
  245. <label
  246. v-if="this.$store.getters.xt_user.template_info.template_id == 6"
  247. >置换方式:
  248. </label>
  249. <span class="content">{{
  250. displace_liqui != "0" ? displace_liqui : ""
  251. }}</span>
  252. <span v-if="this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29" class="unit">{{ displace_liqui != "0" ? "L" : "" }}</span>
  253. <span v-if="this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29" class="unit">{{ displace_liqui != "0" ? "ml" : "" }}</span>
  254. </li>
  255. <li v-if="isShow('血管通路')">
  256. <label>血管通路: </label>
  257. <span class="content">{{ blood_access }}</span>
  258. <span class="unit"></span>
  259. </li>
  260. <li v-if="isShow('目标KT/V')">
  261. <label>目标KT/V: </label>
  262. <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
  263. </li>
  264. <li v-if="isShow('目标KT/V')">
  265. <label>目标KT/V: </label>
  266. <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
  267. </li>
  268. <li v-if="isShow('抗凝提前停止')">
  269. <label>抗凝提前停止 : </label>
  270. <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour > 0 && this.prescription.anticoagulant_stop_time_min > 0 ">{{this.prescription.anticoagulant_stop_time_hour }}小时{{this.prescription.anticoagulant_stop_time_min }}分钟</span>
  271. <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour > 0 && this.prescription.anticoagulant_stop_time_min == 0 ">{{this.prescription.anticoagulant_stop_time_hour }}小时</span>
  272. <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min > 0 ">{{this.prescription.anticoagulant_stop_time_min }}分钟</span>
  273. <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min == 0 "></span>
  274. <span class="unit"></span>
  275. </li>
  276. <li v-if="isShow('病情')">
  277. <label>病情: </label>
  278. <span class="content">{{getIllness(this.prescription.illness)}}</span>
  279. </li>
  280. <li v-if="isShow('葡萄糖')">
  281. <label>葡萄糖: </label>
  282. <span class="content">{{this.prescription.amylaceum}}</span>
  283. </li>
  284. <li v-if="isShow('单超时长')">
  285. <label>单超时长(h): </label>
  286. <span class="content">{{this.prescription.single_time}}</span>
  287. </li>
  288. <li v-if="isShow('单超脱水')">
  289. <label>单超脱水(L): </label>
  290. <span class="content">{{this.prescription.single_water}}</span>
  291. </li>
  292. <li v-if="isShow('置换流量')">
  293. <label>置换流量(L/h): </label>
  294. <span class="content">{{this.prescription.replacement_flow}}</span>
  295. </li>
  296. <li v-if="isShow('血浆分离器')">
  297. <label>血浆分离器: </label>
  298. <span class="content">{{this.prescription.plasma_separator}}</span>
  299. </li>
  300. <li v-if="isShow('胆红素吸附柱')">
  301. <label>胆红素吸附柱: </label>
  302. <span class="content">{{this.prescription.bilirubin_adsorption_column}}</span>
  303. </li>
  304. <li v-if="isShow('吸氧')">
  305. <label>吸氧:</label>
  306. <span class="content">
  307. <span v-if="this.prescription.oxygen_uptake == 1">需</span>
  308. <span v-if="this.prescription.oxygen_uptake == 2">无</span>
  309. </span>
  310. </li>
  311. <li v-if="isShow('吸氧')">
  312. <label>吸氧流量(L/分):</label>
  313. <span class="content">
  314. <span>{{this.prescription.oxygen_flow}}</span>
  315. </span>
  316. </li>
  317. <li v-if="isShow('吸氧')">
  318. <label>吸氧时长(h):</label>
  319. <span class="content">
  320. <span>{{this.prescription.oxygen_time}}</span>
  321. </span>
  322. </li>
  323. </ul>
  324. </div>
  325. <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>
  326. </div>
  327. </template>
  328. <script>
  329. import { getDataConfig } from '@/utils/data'
  330. import store from '@/store'
  331. export default {
  332. name: 'DialysisPrescription',
  333. data() {
  334. return {
  335. title: '透析处方',
  336. perfusion_apparatus_map: {},
  337. dialysateFormulationMap: {},
  338. blood_access_part: [],
  339. blood_access_part_opera: []
  340. }
  341. },
  342. props: {
  343. prescription: {
  344. type: Object
  345. },
  346. solution: {
  347. type: Object
  348. },
  349. device_number_map: {
  350. type: Object
  351. },
  352. preparestock:{
  353. type:Array
  354. }
  355. },
  356. computed: {
  357. note: function () {
  358. return this.getValueStr('remark', 'remark')
  359. },
  360. target_ultrafiltration: function() {
  361. var v = this.getValueStr(
  362. 'target_ultrafiltration',
  363. 'target_ultrafiltration'
  364. )
  365. return v.length == 0 ? '0' : v
  366. },
  367. dialysis_mode: function() {
  368. var mode = this.getValueStr('mode_id', 'mode_id')
  369. if (mode.length == 0) {
  370. return ''
  371. }
  372. if (this.$store.getters.treatment_mode[mode] != undefined) {
  373. return this.$store.getters.treatment_mode[mode].name
  374. }
  375. return ''
  376. },
  377. perfusion_apparatus: function() {
  378. var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
  379. if (v.length == 0) {
  380. return ''
  381. }
  382. if (this.perfusion_apparatus_map[v] != undefined) {
  383. return this.perfusion_apparatus_map[v].name
  384. }
  385. return ''
  386. },
  387. displace_liqui: function() {
  388. var v = this.getValueStr('displace_liqui', 'displace_liqui')
  389. return v.length == 0 ? '0' : v
  390. },
  391. anticoagulant_shouji: function() {
  392. var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
  393. return v.length == 0 ? '0' : v
  394. },
  395. kalium: function() {
  396. var v = this.getValueStr('kalium', 'kalium')
  397. return v.length == 0 ? '0' : v
  398. },
  399. replacement_total: function() {
  400. var v = this.getValueStr('replacement_total', 'replacement_total')
  401. return v.length == 0 ? '0' : v
  402. },
  403. bicarbonate: function() {
  404. var v = this.getValueStr('bicarbonate', 'bicarbonate')
  405. return v.length == 0 ? '0' : v
  406. },
  407. dialysate_flow: function() {
  408. var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
  409. return v.length == 0 ? '0' : v
  410. },
  411. dialysis_duration: function() {
  412. var dialysis_duration_hour = this.getValueStr(
  413. 'dialysis_duration_hour',
  414. 'dialysis_duration_hour'
  415. )
  416. var dialysis_duration_minute = this.getValueStr(
  417. 'dialysis_duration_minute',
  418. 'dialysis_duration_minute'
  419. )
  420. if (
  421. dialysis_duration_hour.length == 0 &&
  422. dialysis_duration_minute.length == 0
  423. ) {
  424. return '0'
  425. } else {
  426. var time =
  427. dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
  428. return time.length == 0 ? '0' : time
  429. }
  430. },
  431. blood_flow_volume: function() {
  432. var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
  433. return v.length == 0 ? '0' : v
  434. },
  435. replacement_way: function() {
  436. return this.getValueStr('replacement_way', 'replacement_way')
  437. },
  438. anticoagulant_weichi: function() {
  439. var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
  440. return v.length == 0 ? '0' : v
  441. },
  442. sodium: function() {
  443. var v = this.getValueStr('sodium', 'sodium')
  444. return v.length == 0 ? '0' : v
  445. },
  446. glucose: function() {
  447. var v = this.getValueStr('glucose', 'glucose')
  448. return v.length == 0 ? '0' : v
  449. },
  450. dialysate_temperature: function() {
  451. var v = this.getValueStr(
  452. 'dialysate_temperature',
  453. 'dialysate_temperature'
  454. )
  455. return v.length == 0 ? '0' : v
  456. },
  457. dialyzer: function() {
  458. var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
  459. if (v.length == 0) {
  460. return ''
  461. }
  462. if (this.device_number_map[v] != undefined) {
  463. return this.device_number_map[v].name
  464. }
  465. return ''
  466. },
  467. dialysate_formulation: function() {
  468. var v = this.getValueStr(
  469. 'dialysate_formulation',
  470. 'dialysate_formulation'
  471. )
  472. if (v.length == 0) {
  473. return ''
  474. }
  475. if (v in this.dialysateFormulationMap) {
  476. return this.dialysateFormulationMap[v].name
  477. }
  478. return ''
  479. },
  480. prescription_dewatering: function() {
  481. var v = this.getValueStr('prescription_dewatering', 'dewater')
  482. return v.length == 0 ? '0' : v
  483. },
  484. anticoagulant: function() {
  485. var v = this.getValueStr('anticoagulant', 'anticoagulant')
  486. if (v.length == 0) {
  487. return ''
  488. }
  489. if (this.$store.getters.anticoagulants_confit[v] != undefined) {
  490. return this.$store.getters.anticoagulants_confit[v].name
  491. }
  492. return ''
  493. },
  494. anticoagulant_zongliang: function() {
  495. var v = this.getValueStr(
  496. 'anticoagulant_zongliang',
  497. 'anticoagulant_zongliang'
  498. )
  499. return v.length == 0 ? '0' : v
  500. },
  501. calcium: function() {
  502. var v = this.getValueStr('calcium', 'calcium')
  503. return v.length == 0 ? '0' : v
  504. },
  505. conductivity: function() {
  506. var v = this.getValueStr('conductivity', 'conductivity')
  507. return v.length == 0 ? '0' : v
  508. },
  509. dialyzer_perfusion_apparatus: function() {
  510. return this.getValueStr(
  511. 'dialyzer_perfusion_apparatus',
  512. 'dialyzer_perfusion_apparatus'
  513. )
  514. },
  515. dialysis_dialyszers:function(){
  516. var str = this.getValueStr('dialysis_dialyszers','dialysis_dialyszers')
  517. console.log("str",str)
  518. var arr = str.split(",")
  519. if (arr.length >0) {
  520. for(let i=0;i<arr.length;i++){
  521. for(let j=0;j<this.preparestock.length;j++){
  522. if(arr[i] == this.preparestock[j].specification_name){
  523. if(this.preparestock[j].commdity_code!=""){
  524. arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
  525. }
  526. }
  527. }
  528. }
  529. }
  530. console.log("arr00000",arr)
  531. var strs = arr.join(',')
  532. console.log("strs",strs)
  533. return strs
  534. },
  535. dialysis_irrigation:function(){
  536. var str = this.getValueStr('dialysis_irrigation','dialysis_irrigation')
  537. console.log("str",str)
  538. var arr = str.split(",")
  539. if (arr.length >0) {
  540. for(let i=0;i<arr.length;i++){
  541. for(let j=0;j<this.preparestock.length;j++){
  542. if(arr[i] == this.preparestock[j].specification_name){
  543. if(this.preparestock[j].commdity_code!=""){
  544. arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
  545. }
  546. }
  547. }
  548. }
  549. }
  550. console.log("arr00000",arr)
  551. var strs = arr.join(',')
  552. console.log("strs",strs)
  553. return strs
  554. // return this.getValueStr('dialysis_irrigation','dialysis_irrigation')
  555. },
  556. body_fluid: function() {
  557. var id = this.getValueStr('body_fluid', 'body_fluid')
  558. if (id == 0) {
  559. return ''
  560. }
  561. var bodyFluidOptions = this.$store.getters.body_fluid
  562. for (let i = 0; i < bodyFluidOptions.length; i++) {
  563. if (bodyFluidOptions[i].id == id) {
  564. return bodyFluidOptions[i].name
  565. }
  566. }
  567. },
  568. special_medicine: function() {
  569. var id = this.getValueStr('special_medicine', 'special_medicine')
  570. if (id == 0) {
  571. return ''
  572. }
  573. var special_medicine = this.$store.getters.special_medicine
  574. for (let i = 0; i < special_medicine.length; i++) {
  575. if (special_medicine[i].id == id) {
  576. return special_medicine[i].name
  577. }
  578. }
  579. },
  580. special_medicine_other: function() {
  581. return this.getValueStr(
  582. 'special_medicine_other',
  583. 'special_medicine_other'
  584. )
  585. },
  586. blood_access: function() {
  587. var id = this.getValueStr('blood_access', 'blood_access')
  588. console.log('id', id)
  589. if (id == 0) {
  590. return ''
  591. }
  592. // var blood_access = this.$store.getters.blood_access_internal_fistula;
  593. var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
  594. for (let i = 0; i < blood_access.length; i++) {
  595. if (blood_access[i].id == id) {
  596. return blood_access[i].name
  597. }
  598. }
  599. },
  600. displace_liqui: function() {
  601. var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
  602. var displace_liqui_value = this.getValueStr(
  603. 'displace_liqui_value',
  604. 'displace_liqui_value'
  605. )
  606. var displace_liqui_part = ''
  607. var displace_liqui = this.$store.getters.displace_liqui
  608. for (let i = 0; i < displace_liqui.length; i++) {
  609. if (displace_liqui[i].id == id) {
  610. displace_liqui_part = displace_liqui[i].name
  611. }
  612. }
  613. return displace_liqui_part + displace_liqui_value
  614. },
  615. ultrafiltration: function() {
  616. var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
  617. return v.length == 0 ? '0' : v
  618. },
  619. body_fluid_other: function() {
  620. return this.getValueStr('body_fluid_other', 'body_fluid_others')
  621. },
  622. target_ktv: function() {
  623. var v = this.getValueStr('target_ktv', 'target_ktv')
  624. return v.length == 0 ? '0' : v
  625. },
  626. antioxidant_commodity_name:function(){
  627. return this.getValueStr('antioxidant_commodity_name','antioxidant_commodity_name')
  628. },
  629. displace_speed:function(){
  630. return this.getValueStr('displace_speed','displace_speed')
  631. },
  632. },
  633. created() {
  634. var perfusion_apparatus = this.$store.getters.perfusion_apparatus
  635. var map = {}
  636. for (let index = 0; index < perfusion_apparatus.length; index++) {
  637. const p = perfusion_apparatus[index]
  638. map[p.id] = p
  639. }
  640. this.perfusion_apparatus_map = map
  641. var dialysateFormulationOptions = getDataConfig(
  642. 'hemodialysis',
  643. 'dialysate_formulation'
  644. )
  645. for (var index in dialysateFormulationOptions) {
  646. this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
  647. dialysateFormulationOptions[index]
  648. }
  649. },
  650. methods: {
  651. getValueStr(pkey, skey) {
  652. if (
  653. (this.prescription == null || this.prescription.id == '') &&
  654. (this.solution == null || this.solution.id == '')
  655. ) {
  656. return ''
  657. } else if (this.prescription != null && this.prescription.id != '') {
  658. if (
  659. this.prescription[pkey] == null ||
  660. this.prescription[pkey] == undefined
  661. ) {
  662. return ''
  663. }
  664. return this.prescription[pkey] + ''
  665. } else {
  666. if (this.solution[skey] == null || this.solution[skey] == undefined) {
  667. return ''
  668. }
  669. return this.solution[skey] + ''
  670. }
  671. },
  672. isShow(name) {
  673. var filedList = store.getters.xt_user.fileds
  674. for (let i = 0; i < filedList.length; i++) {
  675. if (
  676. filedList[i].module == 1 &&
  677. filedList[i].filed_name_cn == name &&
  678. filedList[i].is_show == 1
  679. ) {
  680. return true
  681. }
  682. }
  683. return false
  684. },
  685. getIllness(id){
  686. var illnessList = getDataConfig('hemodialysis','illness')
  687. var name = ""
  688. for(let i=0;i<illnessList.length;i++){
  689. if(id == illnessList[i].id){
  690. name = illnessList[i].name
  691. }
  692. }
  693. return name
  694. }
  695. }
  696. }
  697. </script>
  698. <style rel="stylesheet/scss" lang="scss" scoped></style>