DialysisPrescription.vue 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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" 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" 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 ">{{ 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)">{{ 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 " >{{ 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)" >{{ 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 ">{{ 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)">{{ 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. </ul>
  305. </div>
  306. <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>
  307. </div>
  308. </template>
  309. <script>
  310. import { getDataConfig } from '@/utils/data'
  311. import store from '@/store'
  312. export default {
  313. name: 'DialysisPrescription',
  314. data() {
  315. return {
  316. title: '透析处方',
  317. perfusion_apparatus_map: {},
  318. dialysateFormulationMap: {},
  319. blood_access_part: [],
  320. blood_access_part_opera: []
  321. }
  322. },
  323. props: {
  324. prescription: {
  325. type: Object
  326. },
  327. solution: {
  328. type: Object
  329. },
  330. device_number_map: {
  331. type: Object
  332. },
  333. preparestock:{
  334. type:Array
  335. }
  336. },
  337. computed: {
  338. note: function () {
  339. return this.getValueStr('remark', 'remark')
  340. },
  341. target_ultrafiltration: function() {
  342. var v = this.getValueStr(
  343. 'target_ultrafiltration',
  344. 'target_ultrafiltration'
  345. )
  346. return v.length == 0 ? '0' : v
  347. },
  348. dialysis_mode: function() {
  349. var mode = this.getValueStr('mode_id', 'mode_id')
  350. if (mode.length == 0) {
  351. return ''
  352. }
  353. if (this.$store.getters.treatment_mode[mode] != undefined) {
  354. return this.$store.getters.treatment_mode[mode].name
  355. }
  356. return ''
  357. },
  358. perfusion_apparatus: function() {
  359. var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
  360. if (v.length == 0) {
  361. return ''
  362. }
  363. if (this.perfusion_apparatus_map[v] != undefined) {
  364. return this.perfusion_apparatus_map[v].name
  365. }
  366. return ''
  367. },
  368. displace_liqui: function() {
  369. var v = this.getValueStr('displace_liqui', 'displace_liqui')
  370. return v.length == 0 ? '0' : v
  371. },
  372. anticoagulant_shouji: function() {
  373. var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
  374. return v.length == 0 ? '0' : v
  375. },
  376. kalium: function() {
  377. var v = this.getValueStr('kalium', 'kalium')
  378. return v.length == 0 ? '0' : v
  379. },
  380. replacement_total: function() {
  381. var v = this.getValueStr('replacement_total', 'replacement_total')
  382. return v.length == 0 ? '0' : v
  383. },
  384. bicarbonate: function() {
  385. var v = this.getValueStr('bicarbonate', 'bicarbonate')
  386. return v.length == 0 ? '0' : v
  387. },
  388. dialysate_flow: function() {
  389. var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
  390. return v.length == 0 ? '0' : v
  391. },
  392. dialysis_duration: function() {
  393. var dialysis_duration_hour = this.getValueStr(
  394. 'dialysis_duration_hour',
  395. 'dialysis_duration_hour'
  396. )
  397. var dialysis_duration_minute = this.getValueStr(
  398. 'dialysis_duration_minute',
  399. 'dialysis_duration_minute'
  400. )
  401. if (
  402. dialysis_duration_hour.length == 0 &&
  403. dialysis_duration_minute.length == 0
  404. ) {
  405. return '0'
  406. } else {
  407. var time =
  408. dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
  409. return time.length == 0 ? '0' : time
  410. }
  411. },
  412. blood_flow_volume: function() {
  413. var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
  414. return v.length == 0 ? '0' : v
  415. },
  416. replacement_way: function() {
  417. return this.getValueStr('replacement_way', 'replacement_way')
  418. },
  419. anticoagulant_weichi: function() {
  420. var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
  421. return v.length == 0 ? '0' : v
  422. },
  423. sodium: function() {
  424. var v = this.getValueStr('sodium', 'sodium')
  425. return v.length == 0 ? '0' : v
  426. },
  427. glucose: function() {
  428. var v = this.getValueStr('glucose', 'glucose')
  429. return v.length == 0 ? '0' : v
  430. },
  431. dialysate_temperature: function() {
  432. var v = this.getValueStr(
  433. 'dialysate_temperature',
  434. 'dialysate_temperature'
  435. )
  436. return v.length == 0 ? '0' : v
  437. },
  438. dialyzer: function() {
  439. var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
  440. if (v.length == 0) {
  441. return ''
  442. }
  443. if (this.device_number_map[v] != undefined) {
  444. return this.device_number_map[v].name
  445. }
  446. return ''
  447. },
  448. dialysate_formulation: function() {
  449. var v = this.getValueStr(
  450. 'dialysate_formulation',
  451. 'dialysate_formulation'
  452. )
  453. if (v.length == 0) {
  454. return ''
  455. }
  456. if (v in this.dialysateFormulationMap) {
  457. return this.dialysateFormulationMap[v].name
  458. }
  459. return ''
  460. },
  461. prescription_dewatering: function() {
  462. var v = this.getValueStr('prescription_dewatering', 'dewater')
  463. return v.length == 0 ? '0' : v
  464. },
  465. anticoagulant: function() {
  466. var v = this.getValueStr('anticoagulant', 'anticoagulant')
  467. if (v.length == 0) {
  468. return ''
  469. }
  470. if (this.$store.getters.anticoagulants_confit[v] != undefined) {
  471. return this.$store.getters.anticoagulants_confit[v].name
  472. }
  473. return ''
  474. },
  475. anticoagulant_zongliang: function() {
  476. var v = this.getValueStr(
  477. 'anticoagulant_zongliang',
  478. 'anticoagulant_zongliang'
  479. )
  480. return v.length == 0 ? '0' : v
  481. },
  482. calcium: function() {
  483. var v = this.getValueStr('calcium', 'calcium')
  484. return v.length == 0 ? '0' : v
  485. },
  486. conductivity: function() {
  487. var v = this.getValueStr('conductivity', 'conductivity')
  488. return v.length == 0 ? '0' : v
  489. },
  490. dialyzer_perfusion_apparatus: function() {
  491. return this.getValueStr(
  492. 'dialyzer_perfusion_apparatus',
  493. 'dialyzer_perfusion_apparatus'
  494. )
  495. },
  496. dialysis_dialyszers:function(){
  497. var str = this.getValueStr('dialysis_dialyszers','dialysis_dialyszers')
  498. console.log("str",str)
  499. var arr = str.split(",")
  500. if (arr.length >0) {
  501. for(let i=0;i<arr.length;i++){
  502. for(let j=0;j<this.preparestock.length;j++){
  503. if(arr[i] == this.preparestock[j].specification_name){
  504. if(this.preparestock[j].commdity_code!=""){
  505. arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
  506. }
  507. }
  508. }
  509. }
  510. }
  511. console.log("arr00000",arr)
  512. var strs = arr.join(',')
  513. console.log("strs",strs)
  514. return strs
  515. },
  516. dialysis_irrigation:function(){
  517. var str = this.getValueStr('dialysis_irrigation','dialysis_irrigation')
  518. console.log("str",str)
  519. var arr = str.split(",")
  520. if (arr.length >0) {
  521. for(let i=0;i<arr.length;i++){
  522. for(let j=0;j<this.preparestock.length;j++){
  523. if(arr[i] == this.preparestock[j].specification_name){
  524. if(this.preparestock[j].commdity_code!=""){
  525. arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
  526. }
  527. }
  528. }
  529. }
  530. }
  531. console.log("arr00000",arr)
  532. var strs = arr.join(',')
  533. console.log("strs",strs)
  534. return strs
  535. // return this.getValueStr('dialysis_irrigation','dialysis_irrigation')
  536. },
  537. body_fluid: function() {
  538. var id = this.getValueStr('body_fluid', 'body_fluid')
  539. if (id == 0) {
  540. return ''
  541. }
  542. var bodyFluidOptions = this.$store.getters.body_fluid
  543. for (let i = 0; i < bodyFluidOptions.length; i++) {
  544. if (bodyFluidOptions[i].id == id) {
  545. return bodyFluidOptions[i].name
  546. }
  547. }
  548. },
  549. special_medicine: function() {
  550. var id = this.getValueStr('special_medicine', 'special_medicine')
  551. if (id == 0) {
  552. return ''
  553. }
  554. var special_medicine = this.$store.getters.special_medicine
  555. for (let i = 0; i < special_medicine.length; i++) {
  556. if (special_medicine[i].id == id) {
  557. return special_medicine[i].name
  558. }
  559. }
  560. },
  561. special_medicine_other: function() {
  562. return this.getValueStr(
  563. 'special_medicine_other',
  564. 'special_medicine_other'
  565. )
  566. },
  567. blood_access: function() {
  568. var id = this.getValueStr('blood_access', 'blood_access')
  569. console.log('id', id)
  570. if (id == 0) {
  571. return ''
  572. }
  573. // var blood_access = this.$store.getters.blood_access_internal_fistula;
  574. var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
  575. for (let i = 0; i < blood_access.length; i++) {
  576. if (blood_access[i].id == id) {
  577. return blood_access[i].name
  578. }
  579. }
  580. },
  581. displace_liqui: function() {
  582. var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
  583. var displace_liqui_value = this.getValueStr(
  584. 'displace_liqui_value',
  585. 'displace_liqui_value'
  586. )
  587. var displace_liqui_part = ''
  588. var displace_liqui = this.$store.getters.displace_liqui
  589. for (let i = 0; i < displace_liqui.length; i++) {
  590. if (displace_liqui[i].id == id) {
  591. displace_liqui_part = displace_liqui[i].name
  592. }
  593. }
  594. return displace_liqui_part + displace_liqui_value
  595. },
  596. ultrafiltration: function() {
  597. var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
  598. return v.length == 0 ? '0' : v
  599. },
  600. body_fluid_other: function() {
  601. return this.getValueStr('body_fluid_other', 'body_fluid_others')
  602. },
  603. target_ktv: function() {
  604. var v = this.getValueStr('target_ktv', 'target_ktv')
  605. return v.length == 0 ? '0' : v
  606. },
  607. antioxidant_commodity_name:function(){
  608. return this.getValueStr('antioxidant_commodity_name','antioxidant_commodity_name')
  609. },
  610. displace_speed:function(){
  611. return this.getValueStr('displace_speed','displace_speed')
  612. },
  613. },
  614. created() {
  615. var perfusion_apparatus = this.$store.getters.perfusion_apparatus
  616. var map = {}
  617. for (let index = 0; index < perfusion_apparatus.length; index++) {
  618. const p = perfusion_apparatus[index]
  619. map[p.id] = p
  620. }
  621. this.perfusion_apparatus_map = map
  622. var dialysateFormulationOptions = getDataConfig(
  623. 'hemodialysis',
  624. 'dialysate_formulation'
  625. )
  626. for (var index in dialysateFormulationOptions) {
  627. this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
  628. dialysateFormulationOptions[index]
  629. }
  630. },
  631. methods: {
  632. getValueStr(pkey, skey) {
  633. if (
  634. (this.prescription == null || this.prescription.id == '') &&
  635. (this.solution == null || this.solution.id == '')
  636. ) {
  637. return ''
  638. } else if (this.prescription != null && this.prescription.id != '') {
  639. if (
  640. this.prescription[pkey] == null ||
  641. this.prescription[pkey] == undefined
  642. ) {
  643. return ''
  644. }
  645. return this.prescription[pkey] + ''
  646. } else {
  647. if (this.solution[skey] == null || this.solution[skey] == undefined) {
  648. return ''
  649. }
  650. return this.solution[skey] + ''
  651. }
  652. },
  653. isShow(name) {
  654. var filedList = store.getters.xt_user.fileds
  655. for (let i = 0; i < filedList.length; i++) {
  656. if (
  657. filedList[i].module == 1 &&
  658. filedList[i].filed_name_cn == name &&
  659. filedList[i].is_show == 1
  660. ) {
  661. return true
  662. }
  663. }
  664. return false
  665. },
  666. getIllness(id){
  667. var illnessList = getDataConfig('hemodialysis','illness')
  668. var name = ""
  669. for(let i=0;i<illnessList.length;i++){
  670. if(id == illnessList[i].id){
  671. name = illnessList[i].name
  672. }
  673. }
  674. return name
  675. }
  676. }
  677. }
  678. </script>
  679. <style rel="stylesheet/scss" lang="scss" scoped></style>