DialysisPrescription.vue 21KB

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