Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

DialysisPrescription.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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('置换量')">
  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" 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" class="unit">{{ replacement_total != "0" ? "ml" : "" }}</span>
  19. </li>
  20. <li v-if="isShow('透析液配方')">
  21. <label>透析液配方 : </label>
  22. <span class="content">{{ dialysate_formulation }}</span>
  23. </li>
  24. <li v-if="isShow('透析液温度')">
  25. <label>透析液温度 : </label>
  26. <span class="content">{{
  27. dialysate_temperature != "0" ? dialysate_temperature : ""
  28. }}</span>
  29. <span class="unit">{{
  30. dialysate_temperature != "0" ? "℃" : ""
  31. }}</span>
  32. </li>
  33. <li v-if="isShow('抗凝剂')">
  34. <label>抗凝剂 : </label>
  35. <span class="content">{{ anticoagulant }}</span>
  36. </li>
  37. <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
  38. <label>总量: </label>
  39. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
  40. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
  41. <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>
  42. <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>
  43. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  44. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
  45. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
  46. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
  47. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  48. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  49. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  50. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
  51. </li>
  52. <li v-if="isShow('透析器/灌流器')">
  53. <label>透析器/灌流器 : </label>
  54. <span class="content">{{ dialyzer_perfusion_apparatus }}</span>
  55. <span class="unit"></span>
  56. </li>
  57. <li v-if="isShow('透析前使用特殊药物')">
  58. <label>透析前使用特殊药物: </label>
  59. <span class="content">{{ special_medicine }}</span>
  60. <span class="unit"></span>
  61. </li>
  62. <li v-if="isShow('体液过多其他症状')">
  63. <label>体液过多其他症状 : </label>
  64. <span class="content">{{ body_fluid_other }}</span>
  65. <span class="unit"></span>
  66. </li>
  67. </ul>
  68. <ul>
  69. <li v-if="isShow('目标超滤量')">
  70. <label>目标超滤量 : </label>
  71. <span class="content">{{
  72. target_ultrafiltration != "0" ? target_ultrafiltration : ""
  73. }}</span>
  74. <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" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
  75. <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" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
  76. </li>
  77. <li v-if="isShow('葡萄糖')">
  78. <label>葡萄糖 : </label>
  79. <span class="content">{{ glucose != "0" ? glucose : "" }}</span>
  80. <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
  81. </li>
  82. <li v-if="isShow('钾')">
  83. <label>钾 : </label>
  84. <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
  85. <span class="unit">{{ kalium != "0" ? "mmol/L" : "" }}</span>
  86. </li>
  87. <li v-if="isShow('血流量')">
  88. <label>血流量 : </label>
  89. <span class="content">{{
  90. blood_flow_volume != "0" ? blood_flow_volume : ""
  91. }}</span>
  92. <span class="unit">{{
  93. blood_flow_volume != "0" ? "ml/min" : ""
  94. }}</span>
  95. </li>
  96. <li v-if=" isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
  97. <label>首剂 : </label>
  98. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
  99. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
  100. <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>
  101. <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>
  102. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  103. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
  104. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
  105. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
  106. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
  107. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  108. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  109. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
  110. </li>
  111. <li v-if="isShow('钙')">
  112. <label>钙: </label>
  113. <span class="content">{{ calcium != "0" ? calcium : "" }}</span>
  114. <span class="unit">{{ calcium != "0" ? "mmol/L" : "" }}</span>
  115. </li>
  116. <li v-if="isShow('体液过多症状')">
  117. <label>体液过多症状 : </label>
  118. <span class="content">{{ body_fluid }}</span>
  119. <span class="unit"></span>
  120. </li>
  121. <li v-if="isShow('透析前使用其他特殊药物')">
  122. <label>透析前使用其他特殊药物: </label>
  123. <span class="content">{{ special_medicine_other }}</span>
  124. <span class="unit"></span>
  125. </li>
  126. <li
  127. v-if="
  128. isShow('钙名称') &&
  129. getValueStr('anticoagulant', 'anticoagulant') == 5
  130. "
  131. >
  132. <label>钙名称: </label>
  133. <span class="content">{{
  134. getValueStr(
  135. "anticoagulant_gaimingcheng",
  136. "anticoagulant_gaimingcheng"
  137. )
  138. }}</span>
  139. </li>
  140. <li v-if="isShow('血流量')">
  141. <label>血流量 : </label>
  142. <span class="content">{{
  143. blood_flow_volume != "0" ? blood_flow_volume : ""
  144. }}</span>
  145. <span class="unit">{{
  146. blood_flow_volume != "0" ? "ml/min" : ""
  147. }}</span>
  148. </li>
  149. </ul>
  150. <ul>
  151. <li v-if="isShow('钠')">
  152. <label>钠 : </label>
  153. <span class="content">{{ sodium != "0" ? sodium : "" }}</span>
  154. <span class="unit">{{ sodium != "0" ? "mmol/L" : "" }}</span>
  155. </li>
  156. <li v-if="isShow('透析时长')">
  157. <label>透析时长 : </label>
  158. <span class="content">{{
  159. dialysis_duration != "0" ? dialysis_duration : ""
  160. }}</span>
  161. </li>
  162. <li v-if="isShow('碳酸氢盐')">
  163. <label>碳酸氢盐 : </label>
  164. <span class="content">{{
  165. bicarbonate != "0" ? bicarbonate : ""
  166. }}</span>
  167. <span class="unit">{{ bicarbonate != "0" ? "mmol/L" : "" }}</span>
  168. </li>
  169. <li v-if="isShow('透析液流量')">
  170. <label>透析液流量 : </label>
  171. <span class="content">{{
  172. dialysate_flow != "0" ? dialysate_flow : ""
  173. }}</span>
  174. <span class="unit">{{ dialysate_flow != "0" ? "ml/min" : "" }}</span>
  175. </li>
  176. <li v-if="isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5">
  177. <label>维持 : </label>
  178. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
  179. <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
  180. <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>
  181. <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>
  182. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  183. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
  184. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
  185. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
  186. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  187. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  188. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  189. <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
  190. </li>
  191. <li
  192. v-if="
  193. isShow('钙剂量') &&
  194. getValueStr('anticoagulant', 'anticoagulant') == 5
  195. "
  196. >
  197. <label>钙剂量: </label>
  198. <span class="content">{{
  199. getValueStr("anticoagulant_gaijiliang", "anticoagulant_gaijiliang")
  200. }}</span>
  201. <span
  202. class="unit"
  203. v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
  204. >{{ "ml" }}</span
  205. >
  206. </li>
  207. <li v-if="isShow('实际超滤量')">
  208. <label>实际超滤量: </label>
  209. <span class="content">{{
  210. ultrafiltration != "0" ? ultrafiltration : ""
  211. }}</span>
  212. <span class="unit">{{ ultrafiltration != "0" ? "L" : "" }}</span>
  213. </li>
  214. <li v-if="isShow('电导度')">
  215. <label>电导度 : </label>
  216. <span class="content">{{
  217. conductivity != "0" ? conductivity : ""
  218. }}</span>
  219. <span class="unit">{{ conductivity != "0" ? "mS/m" : "" }}</span>
  220. </li>
  221. <li v-if="isShow('置换液')">
  222. <label
  223. v-if="this.$store.getters.xt_user.template_info.template_id != 6"
  224. >置换液:
  225. </label>
  226. <label
  227. v-if="this.$store.getters.xt_user.template_info.template_id == 6"
  228. >置换方式:
  229. </label>
  230. <span class="content">{{
  231. displace_liqui != "0" ? displace_liqui : ""
  232. }}</span>
  233. <span v-if="this.$store.getters.xt_user.template_info.template_id != 21" class="unit">{{ displace_liqui != "0" ? "L" : "" }}</span>
  234. <span v-if="this.$store.getters.xt_user.template_info.template_id == 21" class="unit">{{ displace_liqui != "0" ? "ml" : "" }}</span>
  235. </li>
  236. <li v-if="isShow('血管通路')">
  237. <label>血管通路: </label>
  238. <span class="content">{{ blood_access }}</span>
  239. <span class="unit"></span>
  240. </li>
  241. <li v-if="isShow('目标KT/V')">
  242. <label>目标KT/V: </label>
  243. <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
  244. </li>
  245. <li v-if="isShow('目标KT/V')">
  246. <label>目标KT/V: </label>
  247. <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
  248. </li>
  249. <li v-if="isShow('抗凝提前停止')">
  250. <label>抗凝提前停止 : </label>
  251. <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>
  252. <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>
  253. <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>
  254. <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min == 0 "></span>
  255. <span class="unit"></span>
  256. </li>
  257. </ul>
  258. </div>
  259. </div>
  260. </template>
  261. <script>
  262. import { getDataConfig } from '@/utils/data'
  263. import store from '@/store'
  264. export default {
  265. name: 'DialysisPrescription',
  266. data() {
  267. return {
  268. title: '透析处方',
  269. perfusion_apparatus_map: {},
  270. dialysateFormulationMap: {},
  271. blood_access_part: [],
  272. blood_access_part_opera: []
  273. }
  274. },
  275. props: {
  276. prescription: {
  277. type: Object
  278. },
  279. solution: {
  280. type: Object
  281. },
  282. device_number_map: {
  283. type: Object
  284. }
  285. },
  286. computed: {
  287. target_ultrafiltration: function() {
  288. var v = this.getValueStr(
  289. 'target_ultrafiltration',
  290. 'target_ultrafiltration'
  291. )
  292. return v.length == 0 ? '0' : v
  293. },
  294. dialysis_mode: function() {
  295. var mode = this.getValueStr('mode_id', 'mode_id')
  296. if (mode.length == 0) {
  297. return ''
  298. }
  299. if (this.$store.getters.treatment_mode[mode] != undefined) {
  300. return this.$store.getters.treatment_mode[mode].name
  301. }
  302. return ''
  303. },
  304. perfusion_apparatus: function() {
  305. var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
  306. if (v.length == 0) {
  307. return ''
  308. }
  309. if (this.perfusion_apparatus_map[v] != undefined) {
  310. return this.perfusion_apparatus_map[v].name
  311. }
  312. return ''
  313. },
  314. displace_liqui: function() {
  315. var v = this.getValueStr('displace_liqui', 'displace_liqui')
  316. return v.length == 0 ? '0' : v
  317. },
  318. anticoagulant_shouji: function() {
  319. var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
  320. return v.length == 0 ? '0' : v
  321. },
  322. kalium: function() {
  323. var v = this.getValueStr('kalium', 'kalium')
  324. return v.length == 0 ? '0' : v
  325. },
  326. replacement_total: function() {
  327. var v = this.getValueStr('replacement_total', 'replacement_total')
  328. return v.length == 0 ? '0' : v
  329. },
  330. bicarbonate: function() {
  331. var v = this.getValueStr('bicarbonate', 'bicarbonate')
  332. return v.length == 0 ? '0' : v
  333. },
  334. dialysate_flow: function() {
  335. var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
  336. return v.length == 0 ? '0' : v
  337. },
  338. dialysis_duration: function() {
  339. var dialysis_duration_hour = this.getValueStr(
  340. 'dialysis_duration_hour',
  341. 'dialysis_duration_hour'
  342. )
  343. var dialysis_duration_minute = this.getValueStr(
  344. 'dialysis_duration_minute',
  345. 'dialysis_duration_minute'
  346. )
  347. if (
  348. dialysis_duration_hour.length == 0 &&
  349. dialysis_duration_minute.length == 0
  350. ) {
  351. return '0'
  352. } else {
  353. var time =
  354. dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
  355. return time.length == 0 ? '0' : time
  356. }
  357. },
  358. blood_flow_volume: function() {
  359. var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
  360. return v.length == 0 ? '0' : v
  361. },
  362. replacement_way: function() {
  363. return this.getValueStr('replacement_way', 'replacement_way')
  364. },
  365. anticoagulant_weichi: function() {
  366. var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
  367. return v.length == 0 ? '0' : v
  368. },
  369. sodium: function() {
  370. var v = this.getValueStr('sodium', 'sodium')
  371. return v.length == 0 ? '0' : v
  372. },
  373. glucose: function() {
  374. var v = this.getValueStr('glucose', 'glucose')
  375. return v.length == 0 ? '0' : v
  376. },
  377. dialysate_temperature: function() {
  378. var v = this.getValueStr(
  379. 'dialysate_temperature',
  380. 'dialysate_temperature'
  381. )
  382. return v.length == 0 ? '0' : v
  383. },
  384. dialyzer: function() {
  385. var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
  386. if (v.length == 0) {
  387. return ''
  388. }
  389. if (this.device_number_map[v] != undefined) {
  390. return this.device_number_map[v].name
  391. }
  392. return ''
  393. },
  394. dialysate_formulation: function() {
  395. var v = this.getValueStr(
  396. 'dialysate_formulation',
  397. 'dialysate_formulation'
  398. )
  399. if (v.length == 0) {
  400. return ''
  401. }
  402. if (v in this.dialysateFormulationMap) {
  403. return this.dialysateFormulationMap[v].name
  404. }
  405. return ''
  406. },
  407. prescription_dewatering: function() {
  408. var v = this.getValueStr('prescription_dewatering', 'dewater')
  409. return v.length == 0 ? '0' : v
  410. },
  411. anticoagulant: function() {
  412. var v = this.getValueStr('anticoagulant', 'anticoagulant')
  413. if (v.length == 0) {
  414. return ''
  415. }
  416. if (this.$store.getters.anticoagulants_confit[v] != undefined) {
  417. return this.$store.getters.anticoagulants_confit[v].name
  418. }
  419. return ''
  420. },
  421. anticoagulant_zongliang: function() {
  422. var v = this.getValueStr(
  423. 'anticoagulant_zongliang',
  424. 'anticoagulant_zongliang'
  425. )
  426. return v.length == 0 ? '0' : v
  427. },
  428. calcium: function() {
  429. var v = this.getValueStr('calcium', 'calcium')
  430. return v.length == 0 ? '0' : v
  431. },
  432. conductivity: function() {
  433. var v = this.getValueStr('conductivity', 'conductivity')
  434. return v.length == 0 ? '0' : v
  435. },
  436. dialyzer_perfusion_apparatus: function() {
  437. return this.getValueStr(
  438. 'dialyzer_perfusion_apparatus',
  439. 'dialyzer_perfusion_apparatus'
  440. )
  441. },
  442. body_fluid: function() {
  443. var id = this.getValueStr('body_fluid', 'body_fluid')
  444. if (id == 0) {
  445. return ''
  446. }
  447. var bodyFluidOptions = this.$store.getters.body_fluid
  448. for (let i = 0; i < bodyFluidOptions.length; i++) {
  449. if (bodyFluidOptions[i].id == id) {
  450. return bodyFluidOptions[i].name
  451. }
  452. }
  453. },
  454. special_medicine: function() {
  455. var id = this.getValueStr('special_medicine', 'special_medicine')
  456. if (id == 0) {
  457. return ''
  458. }
  459. var special_medicine = this.$store.getters.special_medicine
  460. for (let i = 0; i < special_medicine.length; i++) {
  461. if (special_medicine[i].id == id) {
  462. return special_medicine[i].name
  463. }
  464. }
  465. },
  466. special_medicine_other: function() {
  467. return this.getValueStr(
  468. 'special_medicine_other',
  469. 'special_medicine_other'
  470. )
  471. },
  472. blood_access: function() {
  473. var id = this.getValueStr('blood_access', 'blood_access')
  474. console.log('id', id)
  475. if (id == 0) {
  476. return ''
  477. }
  478. // var blood_access = this.$store.getters.blood_access_internal_fistula;
  479. var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
  480. for (let i = 0; i < blood_access.length; i++) {
  481. if (blood_access[i].id == id) {
  482. return blood_access[i].name
  483. }
  484. }
  485. },
  486. displace_liqui: function() {
  487. var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
  488. var displace_liqui_value = this.getValueStr(
  489. 'displace_liqui_value',
  490. 'displace_liqui_value'
  491. )
  492. var displace_liqui_part = ''
  493. var displace_liqui = this.$store.getters.displace_liqui
  494. for (let i = 0; i < displace_liqui.length; i++) {
  495. if (displace_liqui[i].id == id) {
  496. displace_liqui_part = displace_liqui[i].name
  497. }
  498. }
  499. return displace_liqui_part + displace_liqui_value
  500. },
  501. ultrafiltration: function() {
  502. var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
  503. return v.length == 0 ? '0' : v
  504. },
  505. body_fluid_other: function() {
  506. return this.getValueStr('body_fluid_other', 'body_fluid_others')
  507. },
  508. target_ktv: function() {
  509. var v = this.getValueStr('target_ktv', 'target_ktv')
  510. return v.length == 0 ? '0' : v
  511. }
  512. },
  513. created() {
  514. var perfusion_apparatus = this.$store.getters.perfusion_apparatus
  515. var map = {}
  516. for (let index = 0; index < perfusion_apparatus.length; index++) {
  517. const p = perfusion_apparatus[index]
  518. map[p.id] = p
  519. }
  520. this.perfusion_apparatus_map = map
  521. var dialysateFormulationOptions = getDataConfig(
  522. 'hemodialysis',
  523. 'dialysate_formulation'
  524. )
  525. for (var index in dialysateFormulationOptions) {
  526. this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
  527. dialysateFormulationOptions[index]
  528. }
  529. },
  530. methods: {
  531. getValueStr(pkey, skey) {
  532. if (
  533. (this.prescription == null || this.prescription.id == '') &&
  534. (this.solution == null || this.solution.id == '')
  535. ) {
  536. return ''
  537. } else if (this.prescription != null && this.prescription.id != '') {
  538. if (
  539. this.prescription[pkey] == null ||
  540. this.prescription[pkey] == undefined
  541. ) {
  542. return ''
  543. }
  544. return this.prescription[pkey] + ''
  545. } else {
  546. if (this.solution[skey] == null || this.solution[skey] == undefined) {
  547. return ''
  548. }
  549. return this.solution[skey] + ''
  550. }
  551. },
  552. isShow(name) {
  553. var filedList = store.getters.xt_user.fileds
  554. for (let i = 0; i < filedList.length; i++) {
  555. if (
  556. filedList[i].module == 1 &&
  557. filedList[i].filed_name_cn == name &&
  558. filedList[i].is_show == 1
  559. ) {
  560. return true
  561. }
  562. }
  563. return false
  564. }
  565. }
  566. }
  567. </script>
  568. <style rel="stylesheet/scss" lang="scss" scoped></style>