血透系统PC前端

DialysisPrescription.vue 19KB

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