|
@@ -14,24 +14,24 @@ export default{
|
14
|
14
|
patient: {
|
15
|
15
|
type: Object,
|
16
|
16
|
},
|
17
|
|
- // prescriptionList:{
|
18
|
|
- // type:Array
|
19
|
|
- // },
|
20
|
|
- // berforList:{
|
21
|
|
- // type:Array
|
22
|
|
- // },
|
23
|
|
- // monitorList:{
|
24
|
|
- // type:Array
|
25
|
|
- // },
|
26
|
|
- // dryweightList:{
|
27
|
|
- // type:Array
|
28
|
|
- // },
|
29
|
|
- // inpectionList:{
|
30
|
|
- // type:Array
|
31
|
|
- // },
|
32
|
|
- // dialysisOrder:{
|
33
|
|
- // type:Array
|
34
|
|
- // },
|
|
17
|
+ prescription:{
|
|
18
|
+ type:Array
|
|
19
|
+ },
|
|
20
|
+ berforList:{
|
|
21
|
+ type:Array
|
|
22
|
+ },
|
|
23
|
+ monitorList:{
|
|
24
|
+ type:Array
|
|
25
|
+ },
|
|
26
|
+ dryweightList:{
|
|
27
|
+ type:Array
|
|
28
|
+ },
|
|
29
|
+ inpectionList:{
|
|
30
|
+ type:Array
|
|
31
|
+ },
|
|
32
|
+ dialysisOrderList :{
|
|
33
|
+ type:Array
|
|
34
|
+ },
|
35
|
35
|
start_date:{
|
36
|
36
|
type:String
|
37
|
37
|
},
|
|
@@ -43,6 +43,9 @@ export default{
|
43
|
43
|
},
|
44
|
44
|
longAdvice:{
|
45
|
45
|
type:Array
|
|
46
|
+ },
|
|
47
|
+ groupPrescriptionList:{
|
|
48
|
+ type:Array
|
46
|
49
|
}
|
47
|
50
|
},
|
48
|
51
|
data(){
|
|
@@ -50,26 +53,14 @@ export default{
|
50
|
53
|
content:'',
|
51
|
54
|
ceshi:111111,
|
52
|
55
|
show:true,
|
53
|
|
- tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
|
54
|
|
- {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''},
|
55
|
|
- ],
|
|
56
|
+ // tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
|
|
57
|
+ // {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''},
|
|
58
|
+ // ],
|
56
|
59
|
Inspect:[{id:1,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
|
57
|
60
|
right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]},
|
58
|
61
|
{id:2,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
|
59
|
62
|
right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]}
|
60
|
63
|
],
|
61
|
|
- name:"",
|
62
|
|
- gander:"",
|
63
|
|
- age:0,
|
64
|
|
- dialysis_no:"",
|
65
|
|
- prescriptionList:[],
|
66
|
|
- berforList:[],
|
67
|
|
- monitorList:[],
|
68
|
|
- dryweightList:[],
|
69
|
|
- inpectionList:[],
|
70
|
|
- dialysisOrderList:[],
|
71
|
|
- patient:{},
|
72
|
|
- patient2:{},
|
73
|
64
|
text:'',
|
74
|
65
|
|
75
|
66
|
}
|
|
@@ -85,7 +76,575 @@ export default{
|
85
|
76
|
beforeMount(){
|
86
|
77
|
console.log("patinet==========================",this.patient)
|
87
|
78
|
console.log("longAdvice-----------------------",this.longAdvice)
|
88
|
|
- if(this.longAdvice!=null && this.longAdvice.length>0){
|
|
79
|
+ console.log("除非==========================",this.prescription)
|
|
80
|
+ var hd_total =0
|
|
81
|
+ var hdArr =[]
|
|
82
|
+ var hdf_total =0
|
|
83
|
+ var hdfArr=[]
|
|
84
|
+ var hdhp_total = 0
|
|
85
|
+ var hdhpArr = []
|
|
86
|
+ var hp_total = 0
|
|
87
|
+ var hpArr= []
|
|
88
|
+ var hf_total = 0
|
|
89
|
+ var hfArr = []
|
|
90
|
+ var scuf_total =0
|
|
91
|
+ var scufArr = []
|
|
92
|
+ var iuf_total =0
|
|
93
|
+ var iufArr = []
|
|
94
|
+ var hfhd_total =0
|
|
95
|
+ var hfhdArr = []
|
|
96
|
+
|
|
97
|
+ var hfhdhp_total =0
|
|
98
|
+ var hfhdhpArr = []
|
|
99
|
+
|
|
100
|
+ var phf_total =0
|
|
101
|
+ var phfArr = []
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+ var hdfhp_total =0
|
|
105
|
+ var hdfhpArr = []
|
|
106
|
+ var crrt_total =0
|
|
107
|
+ var crrtArr = []
|
|
108
|
+ var iufhd_total =0
|
|
109
|
+ var iufhdArr = []
|
|
110
|
+ var uf_total =0
|
|
111
|
+ var ufArr = []
|
|
112
|
+ var hdjia_total =0
|
|
113
|
+ var hdjiaArr = []
|
|
114
|
+ var ihdf_total =0
|
|
115
|
+ var ihdfArr = []
|
|
116
|
+ var hdgaotong_total =0
|
|
117
|
+ var hdgaotongArr = []
|
|
118
|
+ var cvvh_total =0
|
|
119
|
+ var cvvhArr = []
|
|
120
|
+
|
|
121
|
+ var cvvhd_total =0
|
|
122
|
+ var cvvhdArr = []
|
|
123
|
+
|
|
124
|
+ var cvvhdf_total =0
|
|
125
|
+ var cvvhdfArr = []
|
|
126
|
+ var petotal =0
|
|
127
|
+ var peArr=[]
|
|
128
|
+ var hpdtotal =0
|
|
129
|
+ var hpdArr=[]
|
|
130
|
+
|
|
131
|
+ var hdptotal=0
|
|
132
|
+ var hdpArr =[]
|
|
133
|
+
|
|
134
|
+ var hfdtotal=0
|
|
135
|
+ var hfdArr =[]
|
|
136
|
+
|
|
137
|
+ var hdf100total=0
|
|
138
|
+ var hdf100Arr =[]
|
|
139
|
+
|
|
140
|
+ var hdf600total=0
|
|
141
|
+ var hdf600Arr =[]
|
|
142
|
+
|
|
143
|
+ var hdf100total=0
|
|
144
|
+ var hdf100Arr =[]
|
|
145
|
+
|
|
146
|
+ var hdf800total=0
|
|
147
|
+ var hdf800Arr =[]
|
|
148
|
+
|
|
149
|
+ var hdf1000total=0
|
|
150
|
+ var hdf1000Arr =[]
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+ var hdf80total=0
|
|
154
|
+ var hdf80Arr =[]
|
|
155
|
+
|
|
156
|
+ var hf16total=0
|
|
157
|
+ var hf16Arr =[]
|
|
158
|
+
|
|
159
|
+ var hdwugantotal=0
|
|
160
|
+ var hdwuganArr =[]
|
|
161
|
+
|
|
162
|
+ var hdf17total=0
|
|
163
|
+ var hdf17Arr =[]
|
|
164
|
+
|
|
165
|
+ var hddiantotal=0
|
|
166
|
+ var hddianArr =[]
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+ var hd2total=0
|
|
170
|
+ var hd2Arr =[]
|
|
171
|
+
|
|
172
|
+ var total_count = 0
|
|
173
|
+
|
|
174
|
+ var total_min = 0
|
|
175
|
+ var total_hour = 0
|
|
176
|
+ var total_hour_str =""
|
|
177
|
+
|
|
178
|
+ var dialyzerPerfusionApparatus = []
|
|
179
|
+ var dialyzerArr = []
|
|
180
|
+ var dialysisStrainerArr = []
|
|
181
|
+ var dialysisIrrigationArr = []
|
|
182
|
+
|
|
183
|
+ var kaliumArr= []
|
|
184
|
+ var sodiumArr= []
|
|
185
|
+ var calciumArr= []
|
|
186
|
+ var bicarbonateArr = []
|
|
187
|
+ var prescriptionSodiumArr = []
|
|
188
|
+
|
|
189
|
+ if(this.dialysisOrderList!=null&&this.dialysisOrderList.length>0){
|
|
190
|
+ total_count = this.dialysisOrderList.length
|
|
191
|
+ }
|
|
192
|
+ total_count = this.dialysisOrderList.length
|
|
193
|
+
|
|
194
|
+ if(this.prescription!=null && this.prescription.length>0){
|
|
195
|
+ for(let i=0;i< this.prescription.length;i++){
|
|
196
|
+ if( this.prescription[i].dialyzer_perfusion_apparatus!=""){
|
|
197
|
+ dialyzerPerfusionApparatus.push( this.prescription[i].dialyzer_perfusion_apparatus)
|
|
198
|
+ }
|
|
199
|
+ if(this.prescription[i].dialysis_dialyszers!=""){
|
|
200
|
+ dialyzerArr.push( this.prescription[i].dialysis_dialyszers)
|
|
201
|
+ }
|
|
202
|
+ if(this.prescription[i].dialysis_strainer!=""){
|
|
203
|
+ dialysisStrainerArr.push( this.prescription[i].dialysis_strainer)
|
|
204
|
+ }
|
|
205
|
+ if(this.prescription[i].dialysis_irrigation!=""){
|
|
206
|
+ dialysisIrrigationArr.push( this.prescription[i].dialysis_irrigation)
|
|
207
|
+ }
|
|
208
|
+ if( this.prescription[i].kalium!=""){
|
|
209
|
+ kaliumArr.push(this.prescription[i].kalium)
|
|
210
|
+ }
|
|
211
|
+ if( this.prescription[i].sodium!=""){
|
|
212
|
+ sodiumArr.push(this.prescription[i].kalium)
|
|
213
|
+ }
|
|
214
|
+ if( this.prescription[i].calcium!=""){
|
|
215
|
+ calciumArr.push(this.prescription[i].calcium)
|
|
216
|
+ }
|
|
217
|
+ if( this.prescription[i].bicarbonate!=""){
|
|
218
|
+ bicarbonateArr.push(this.prescription[i].bicarbonate)
|
|
219
|
+ }
|
|
220
|
+ if( this.prescription[i].prescription_sodium!=""){
|
|
221
|
+ prescriptionSodiumArr.push(this.prescription[i].prescription_sodium)
|
|
222
|
+ }
|
|
223
|
+
|
|
224
|
+ total_min += parseInt(this.prescription[i].dialysis_duration_hour *60)+ parseInt(this.prescription[i].dialysis_duration_minute)
|
|
225
|
+
|
|
226
|
+ if(this.prescription[i].mode_id == 1){
|
|
227
|
+ hdArr.push(this.prescription[i])
|
|
228
|
+ }
|
|
229
|
+ if(this.prescription[i].mode_id == 2){
|
|
230
|
+ hdfArr.push(this.prescription[i])
|
|
231
|
+ }
|
|
232
|
+ if(this.prescription[i].mode_id == 3){
|
|
233
|
+ hdhpArr.push(this.prescription[i])
|
|
234
|
+ }
|
|
235
|
+ if(this.prescription[i].mode_id == 4){
|
|
236
|
+ hpArr.push(this.prescription[i])
|
|
237
|
+ }
|
|
238
|
+ if(this.prescription[i].mode_id == 5){
|
|
239
|
+ hfArr.push(this.prescription[i])
|
|
240
|
+ }
|
|
241
|
+ if(this.prescription[i].mode_id == 6){
|
|
242
|
+ scufArr.push(this.prescription[i])
|
|
243
|
+ }
|
|
244
|
+ if(this.prescription[i].mode_id == 7){
|
|
245
|
+ iufArr.push(this.prescription[i])
|
|
246
|
+ }
|
|
247
|
+ if(this.prescription[i].mode_id == 8){
|
|
248
|
+ hfhdArr.push(this.prescription[i])
|
|
249
|
+ }
|
|
250
|
+ if(this.prescription[i].mode_id == 9){
|
|
251
|
+ hfhdhpArr.push(this.prescription[i])
|
|
252
|
+ }
|
|
253
|
+ if(this.prescription[i].mode_id == 10){
|
|
254
|
+ phfArr.push(this.prescription[i])
|
|
255
|
+ }
|
|
256
|
+ if(this.prescription[i].mode_id == 11){
|
|
257
|
+ hfArr.push(this.prescription[i])
|
|
258
|
+ }
|
|
259
|
+ if(this.prescription[i].mode_id == 12){
|
|
260
|
+ hdfhpArr.push(this.prescription[i])
|
|
261
|
+ }
|
|
262
|
+ if(this.prescription[i].mode_id == 13){
|
|
263
|
+ crrtArr.push(this.prescription[i])
|
|
264
|
+ }
|
|
265
|
+ if(this.prescription[i].mode_id == 19){
|
|
266
|
+ iufhdArr.push(this.prescription[i])
|
|
267
|
+ }
|
|
268
|
+ if(this.prescription[i].mode_id == 20){
|
|
269
|
+ ufArr.push(this.prescription[i])
|
|
270
|
+ }
|
|
271
|
+ if(this.prescription[i].mode_id == 21){
|
|
272
|
+ hdjiaArr.push(this.prescription[i])
|
|
273
|
+ }
|
|
274
|
+ if(this.prescription[i].mode_id == 24){
|
|
275
|
+ ihdfArr.push(this.prescription[i])
|
|
276
|
+ }
|
|
277
|
+ if(this.prescription[i].mode_id == 25){
|
|
278
|
+ hdgaotongArr.push(this.prescription[i])
|
|
279
|
+ }
|
|
280
|
+ if(this.prescription[i].mode_id == 26){
|
|
281
|
+ cvvhArr.push(this.prescription[i])
|
|
282
|
+ }
|
|
283
|
+ if(this.prescription[i].mode_id == 27){
|
|
284
|
+ cvvhdArr.push(this.prescription[i])
|
|
285
|
+ }
|
|
286
|
+ if(this.prescription[i].mode_id == 28){
|
|
287
|
+ cvvhdfArr.push(this.prescription[i])
|
|
288
|
+ }
|
|
289
|
+ if(this.prescription[i].mode_id == 29){
|
|
290
|
+ peArr.push(this.prescription[i])
|
|
291
|
+ }
|
|
292
|
+ if(this.prescription[i].mode_id == 31){
|
|
293
|
+ hpdArr.push(this.prescription[i])
|
|
294
|
+ }
|
|
295
|
+ if(this.prescription[i].mode_id == 32){
|
|
296
|
+ hdpArr.push(this.prescription[i])
|
|
297
|
+ }
|
|
298
|
+ if(this.prescription[i].mode_id == 33){
|
|
299
|
+ hfdArr.push(this.prescription[i])
|
|
300
|
+ }
|
|
301
|
+ if(this.prescription[i].mode_id == 34){
|
|
302
|
+ hdf100Arr.push(this.prescription[i])
|
|
303
|
+ }
|
|
304
|
+ if(this.prescription[i].mode_id == 35){
|
|
305
|
+ hdf600Arr.push(this.prescription[i])
|
|
306
|
+ }
|
|
307
|
+ if(this.prescription[i].mode_id == 36){
|
|
308
|
+ hdf800Arr.push(this.prescription[i])
|
|
309
|
+ }
|
|
310
|
+ if(this.prescription[i].mode_id == 37){
|
|
311
|
+ hdf1000Arr.push(this.prescription[i])
|
|
312
|
+ }
|
|
313
|
+ if(this.prescription[i].mode_id == 38){
|
|
314
|
+ hdf80Arr.push(this.prescription[i])
|
|
315
|
+ }
|
|
316
|
+ if(this.prescription[i].mode_id == 39){
|
|
317
|
+ hf16Arr.push(this.prescription[i])
|
|
318
|
+ }
|
|
319
|
+ console.log("hf16Arr--------------------",hf16Arr)
|
|
320
|
+ if(this.prescription[i].mode_id == 40){
|
|
321
|
+ hdwuganArr.push(this.prescription[i])
|
|
322
|
+ }
|
|
323
|
+ if(this.prescription[i].mode_id == 41){
|
|
324
|
+ hdf17Arr.push(this.prescription[i])
|
|
325
|
+ }
|
|
326
|
+ if(this.prescription[i].mode_id == 42){
|
|
327
|
+ hddianArr.push(this.prescription[i])
|
|
328
|
+ }
|
|
329
|
+ if( this.prescription[i].mode_id == 43){
|
|
330
|
+ hd2Arr.push(thisprescription[i])
|
|
331
|
+ }
|
|
332
|
+
|
|
333
|
+ }
|
|
334
|
+ }
|
|
335
|
+
|
|
336
|
+ total_hour = ((total_min/60)/total_count).toFixed(2)
|
|
337
|
+ total_hour_str = total_hour +"小时/次"
|
|
338
|
+
|
|
339
|
+ hd_total = hdArr.length
|
|
340
|
+
|
|
341
|
+ var hd_str = ""
|
|
342
|
+ if(hd_total>0){
|
|
343
|
+ hd_str = "HD"+ "("+hd_total+")" +"次"
|
|
344
|
+ }
|
|
345
|
+
|
|
346
|
+ hdf_total = hdfArr.length
|
|
347
|
+
|
|
348
|
+ var hdf_str =""
|
|
349
|
+ if(hdf_total>0){
|
|
350
|
+ hdf_str = "HDF"+ "("+hd_total+")" +"次"
|
|
351
|
+ }
|
|
352
|
+
|
|
353
|
+ hdhp_total = hdhpArr.length
|
|
354
|
+ var hdhp_str =""
|
|
355
|
+ if(hdhp_total>0){
|
|
356
|
+ hdhp_str = "HD+HP"+"("+ hdhp_total+")"+"次"
|
|
357
|
+ }
|
|
358
|
+ hp_total = hpArr.length
|
|
359
|
+ var hp_str= ""
|
|
360
|
+ if(hp_total>0){
|
|
361
|
+ hp_str = "HP"+"("+hdptotal+")"+"次"
|
|
362
|
+ }
|
|
363
|
+
|
|
364
|
+ hf_total = hfArr.length
|
|
365
|
+ var hf_str = ""
|
|
366
|
+ if(hf_total>0){
|
|
367
|
+ hf_str = "HF "+"("+hf_total+")"+"次"
|
|
368
|
+ }
|
|
369
|
+ var scuf_str = ""
|
|
370
|
+ scuf_total = scufArr.length
|
|
371
|
+ if(scuf_total>0){
|
|
372
|
+ scuf_str = "SCUF"+"("+scuf_total+")"+"次"
|
|
373
|
+ }
|
|
374
|
+ iuf_total = iufArr.length
|
|
375
|
+ var iuf_str= ""
|
|
376
|
+ if(iuf_total>0){
|
|
377
|
+ iuf_str = "IUF"+"("+iuf_total+")"+"次"
|
|
378
|
+ }
|
|
379
|
+ hfhd_total = hfhdArr.length
|
|
380
|
+ var hfhd_str= ""
|
|
381
|
+ if(hfhd_total>0){
|
|
382
|
+ hfhd_str = "HFHD"+"("+hfhd_total+")"+"次"
|
|
383
|
+ }
|
|
384
|
+
|
|
385
|
+ hfhdhp_total = hfhdhpArr.length
|
|
386
|
+ var hfhdhp_str =""
|
|
387
|
+ if(hfhdhp_total>0){
|
|
388
|
+ hfhdhp_str = "HFHD+HP"+"("+hfhdhp_total+")"+"次"
|
|
389
|
+ }
|
|
390
|
+ phf_total = phfArr.length
|
|
391
|
+ var phf_str= ""
|
|
392
|
+ if(phf_total>0){
|
|
393
|
+ phf_str = "PHF"+ "(" +phf_total+")" + "次"
|
|
394
|
+ }
|
|
395
|
+ hdfhp_total = hdfhpArr.length
|
|
396
|
+ var hdfhp_str =""
|
|
397
|
+ if(hdfhp_total>0){
|
|
398
|
+ hdfhp_str = "HDFHP"+ "("+ hdfhp_total+")"+"次"
|
|
399
|
+ }
|
|
400
|
+ crrt_total = crrtArr.length
|
|
401
|
+ var crrt_str =""
|
|
402
|
+ if(crrt_total>0){
|
|
403
|
+ crrt_str = "CRRT"+"("+crrt_total+")"+"次"
|
|
404
|
+ }
|
|
405
|
+ iuf_total = iufhdArr.length
|
|
406
|
+ var iuf_str = ""
|
|
407
|
+ if(iuf_total>0){
|
|
408
|
+ iuf_str = "IUF"+"("+iuf_total+")"+"次"
|
|
409
|
+ }
|
|
410
|
+ uf_total = ufArr.length
|
|
411
|
+ var uf_str= ""
|
|
412
|
+ if(uf_total>0){
|
|
413
|
+ uf_str = "UF"+"("+uf_total+")" +"次"
|
|
414
|
+ }
|
|
415
|
+
|
|
416
|
+ hdjia_total = hdjiaArr.length
|
|
417
|
+ var hdjia_str =""
|
|
418
|
+ if(hdjia_total>0){
|
|
419
|
+ hdjia_str = "HD+"+"("+hdjia_total+")"+"次"
|
|
420
|
+ }
|
|
421
|
+
|
|
422
|
+ ihdf_total = ihdfArr.length
|
|
423
|
+ var ihdf_str = ""
|
|
424
|
+ if(ihdf_total>0){
|
|
425
|
+ ihdf_str = "IHDF"+"("+ihdf_total+")" +"次"
|
|
426
|
+ }
|
|
427
|
+ hdgaotong_total = hdgaotongArr
|
|
428
|
+ var hdgaotong_str = ""
|
|
429
|
+ if(hdgaotong_total>0){
|
|
430
|
+ hdgaotong_str = "HD高通"+"("+hdgaotong_total+")"+"次"
|
|
431
|
+ }
|
|
432
|
+ cvvh_total = cvvhArr.length
|
|
433
|
+ var cvvh_str =""
|
|
434
|
+ if(cvvh_total>0){
|
|
435
|
+ cvvh_str = "CVVH"+"("+cvvh_total+")" + "次"
|
|
436
|
+ }
|
|
437
|
+ cvvhd_total = cvvhdArr.length
|
|
438
|
+ var cvvhd_str = ""
|
|
439
|
+ if(cvvhd_total>0){
|
|
440
|
+ cvvhd_str = "CVVHD"+"("+cvvhd_total+")"+"次"
|
|
441
|
+ }
|
|
442
|
+ cvvhdf_total =cvvhdfArr.length
|
|
443
|
+ var cvvhdf_str = ""
|
|
444
|
+ if(cvvhdf_total>0){
|
|
445
|
+ cvvhdf_str="CVVHDF"+"("+cvvhdf_total+")"+"次"
|
|
446
|
+ }
|
|
447
|
+ petotal = peArr.length
|
|
448
|
+ var pe_str =""
|
|
449
|
+ if(petotal>0){
|
|
450
|
+ pe_str = "PE"+"("+petotal+")"+"次"
|
|
451
|
+ }
|
|
452
|
+ hpdtotal = hpdArr.length
|
|
453
|
+ var hpd_str =""
|
|
454
|
+ if(hpdtotal>0){
|
|
455
|
+ hpd_str = "HDP"+"("+hpdtotal+")"+"次"
|
|
456
|
+ }
|
|
457
|
+ hfdtotal = hfdArr.length
|
|
458
|
+ var hfd_str =""
|
|
459
|
+ if(hfdtotal>0){
|
|
460
|
+ hfd_str ="HFD"+"("+hfdtotal+")" +"次"
|
|
461
|
+ }
|
|
462
|
+ hdf100total = hdf1000Arr.length
|
|
463
|
+ var hdf100str = ""
|
|
464
|
+ if(hdf100total>0){
|
|
465
|
+ hdf100str = "HDF100"+"("+hdf100total+")"+"次"
|
|
466
|
+ }
|
|
467
|
+ hdf600total = hdf600Arr.length
|
|
468
|
+ var hdf600str = ""
|
|
469
|
+ if(hdf600total>0){
|
|
470
|
+ hdf600str = "HDF600"+"("+hdf600tota+")"+"次"
|
|
471
|
+ }
|
|
472
|
+ hdf100total = hdf1000Arr.length
|
|
473
|
+ var hdf1000str = ""
|
|
474
|
+ if(hdf100total>0){
|
|
475
|
+ hdf1000str = "HDF1000"+"("+hdf100total+")"+"次"
|
|
476
|
+ }
|
|
477
|
+ hdf80total = hdf80Arr.length
|
|
478
|
+ var hdf80str = ""
|
|
479
|
+ if(hdf80total>0){
|
|
480
|
+ hdf80str ="HDF80"+"("+hdf80str+")" +"次"
|
|
481
|
+ }
|
|
482
|
+ hf16total = hf16Arr.length
|
|
483
|
+ var hf16str = ""
|
|
484
|
+ if(hf16total>0){
|
|
485
|
+ hf16str = "HF16"+"("+ hf16total +")"+"次"
|
|
486
|
+ }
|
|
487
|
+ hdwugantotal = hdwuganArr.length
|
|
488
|
+ var hdwuganstr = ""
|
|
489
|
+ if(hdwugantotal>0){
|
|
490
|
+ hdwuganstr = "HD无肝素"+"("+hdwugantotal+")"+"次"
|
|
491
|
+ }
|
|
492
|
+ hdf17total = hdf17Arr.length
|
|
493
|
+ var hdf17str = ""
|
|
494
|
+ if(hdf17total>0){
|
|
495
|
+ hdf17str = "HDF17"+"("+hdf17total+")" + "次"
|
|
496
|
+ }
|
|
497
|
+ hddiantotal = hddianArr.length
|
|
498
|
+ var hddianstr = ""
|
|
499
|
+ if(hddiantotal>0){
|
|
500
|
+ hddianstr = "HD."+"("+hddiantotal+")" + "次"
|
|
501
|
+ }
|
|
502
|
+ var hd2str = ""
|
|
503
|
+ hd2total = hd2Arr.length
|
|
504
|
+ if(hd2total>0){
|
|
505
|
+ hd2str = "HD2"+"("+hd2total+")"+"次"
|
|
506
|
+ }
|
|
507
|
+
|
|
508
|
+ let dialyzerPerfusionApparatusObj={}
|
|
509
|
+ let dialyzerPerfusionApparatusStr = ""
|
|
510
|
+
|
|
511
|
+ let dialyzerArrObj = {}
|
|
512
|
+ let dialyzer_str = ""
|
|
513
|
+
|
|
514
|
+ let dialysisStrainerObj = {}
|
|
515
|
+ let dialysisStrainerStr = ""
|
|
516
|
+
|
|
517
|
+ let dialysisIrrigationObj = {}
|
|
518
|
+ let dialysisIrrigationStr = ""
|
|
519
|
+
|
|
520
|
+ let kaliumObj = {}
|
|
521
|
+ let kaliumStr =""
|
|
522
|
+ let kalium =""
|
|
523
|
+
|
|
524
|
+ if(kaliumArr!=null && kaliumArr.length>0){
|
|
525
|
+ kaliumArr.forEach(item => {
|
|
526
|
+ kaliumObj[item] = (kaliumObj[item] + 1) || 1
|
|
527
|
+ })
|
|
528
|
+ }
|
|
529
|
+
|
|
530
|
+ if(kaliumObj!=""){
|
|
531
|
+ kaliumStr = JSON.stringify(kaliumObj).replace(/^{|}$/g, '')
|
|
532
|
+ }
|
|
533
|
+
|
|
534
|
+ if(kaliumStr!=""){
|
|
535
|
+ var str = kaliumStr.split(":")[0]
|
|
536
|
+ kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
|
|
537
|
+ }
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+ let sodiumObj = {}
|
|
543
|
+ let sodiumStr =""
|
|
544
|
+
|
|
545
|
+ let sodium = ""
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+ if(sodiumArr!=null && sodiumArr.length>0){
|
|
549
|
+ sodiumArr.forEach(item => {
|
|
550
|
+ sodiumObj[item] = (sodiumObj[item] + 1) || 1
|
|
551
|
+ })
|
|
552
|
+ }
|
|
553
|
+
|
|
554
|
+ if(sodiumObj!=""){
|
|
555
|
+ sodiumStr = JSON.stringify(sodiumObj).replace(/^{|}$/g, '')
|
|
556
|
+ }
|
|
557
|
+
|
|
558
|
+ if(sodiumStr!=""){
|
|
559
|
+ var str = sodiumStr.split(":")[0]
|
|
560
|
+ sodium = "钠:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +sodiumStr.split(":")[1]+")"
|
|
561
|
+ }
|
|
562
|
+
|
|
563
|
+ let calciumObj = {}
|
|
564
|
+ let calciumStr =""
|
|
565
|
+ let calcium =""
|
|
566
|
+
|
|
567
|
+ if(calciumArr!=null && calciumArr.length>0){
|
|
568
|
+ calciumArr.forEach(item => {
|
|
569
|
+ calciumObj[item] = (calciumObj[item] + 1) || 1
|
|
570
|
+ })
|
|
571
|
+ }
|
|
572
|
+
|
|
573
|
+ if(calciumObj!=""){
|
|
574
|
+ calciumStr = JSON.stringify(calciumObj).replace(/^{|}$/g, '')
|
|
575
|
+ }
|
|
576
|
+
|
|
577
|
+ if(calciumStr!=""){
|
|
578
|
+ var str = calciumStr.split(":")[0]
|
|
579
|
+ calcium = "钙:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +calciumStr.split(":")[1]+")"
|
|
580
|
+ }
|
|
581
|
+
|
|
582
|
+ let bicarbonateObj = {}
|
|
583
|
+ let bicarbonateStr =""
|
|
584
|
+ let bicarbonate = ""
|
|
585
|
+
|
|
586
|
+ if(bicarbonateArr!=null && bicarbonateArr.length>0){
|
|
587
|
+ bicarbonateArr.forEach(item => {
|
|
588
|
+ bicarbonateObj[item] = (bicarbonateObj[item] + 1) || 1
|
|
589
|
+ })
|
|
590
|
+ }
|
|
591
|
+
|
|
592
|
+ if(bicarbonateObj!=""){
|
|
593
|
+
|
|
594
|
+ bicarbonateStr = JSON.stringify(bicarbonateObj).replace(/^{|}$/g, '')
|
|
595
|
+ }
|
|
596
|
+
|
|
597
|
+ if(bicarbonateStr!=""){
|
|
598
|
+ var str = bicarbonateStr.split(":")[0]
|
|
599
|
+ bicarbonate = "碳酸氢根:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +bicarbonateStr.split(":")[1]+")"
|
|
600
|
+
|
|
601
|
+ }
|
|
602
|
+
|
|
603
|
+ if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
|
|
604
|
+ dialyzerPerfusionApparatus.forEach(item => {
|
|
605
|
+ dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
|
|
606
|
+ })
|
|
607
|
+ }
|
|
608
|
+
|
|
609
|
+ if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
|
|
610
|
+ dialyzerPerfusionApparatus.forEach(item => {
|
|
611
|
+ dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
|
|
612
|
+ })
|
|
613
|
+ }
|
|
614
|
+
|
|
615
|
+ if(dialyzerPerfusionApparatusObj!=""){
|
|
616
|
+ dialyzerPerfusionApparatusStr = JSON.stringify(dialyzerPerfusionApparatusObj).replace(/^{|}$/g, '')
|
|
617
|
+ }
|
|
618
|
+
|
|
619
|
+ if(dialyzerArr!=null && dialyzerArr.length>0){
|
|
620
|
+ dialyzerArr.forEach(item => {
|
|
621
|
+ dialyzerArrObj[item] = (dialyzerArrObj[item] + 1) || 1
|
|
622
|
+ })
|
|
623
|
+ }
|
|
624
|
+
|
|
625
|
+ dialyzer_str = JSON.stringify(dialyzerArrObj).replace(/^{|}$/g, '')
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+ if(dialysisStrainerArr!=null && dialysisStrainerArr.length>0){
|
|
629
|
+ dialysisStrainerArr.forEach(item => {
|
|
630
|
+ dialysisStrainerObj[item] = (dialysisStrainerObj[item] + 1) || 1
|
|
631
|
+ })
|
|
632
|
+ }
|
|
633
|
+
|
|
634
|
+ dialysisStrainerStr = JSON.stringify(dialysisStrainerObj).replace(/^{|}$/g, '')
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+ if(dialysisIrrigationArr!=null && dialysisIrrigationArr.length>0){
|
|
638
|
+ dialysisIrrigationArr.forEach(item => {
|
|
639
|
+ dialysisIrrigationObj[item] = (dialysisIrrigationObj[item] + 1) || 1
|
|
640
|
+ })
|
|
641
|
+ }
|
|
642
|
+
|
|
643
|
+ dialysisIrrigationStr = JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+ // 医嘱
|
|
647
|
+ if(this.longAdvice!=null && this.longAdvice.length>0){
|
89
|
648
|
for(let i=0;i<this.longAdvice.length;i++){
|
90
|
649
|
this.longAdvice[i].advice_type_name = ""
|
91
|
650
|
if(this.longAdvice[i].advice_type == 1){
|
|
@@ -97,8 +656,10 @@ export default{
|
97
|
656
|
if(this.longAdvice[i].stop_state == 2){
|
98
|
657
|
this.longAdvice[i].stop_state_name = "未停用"
|
99
|
658
|
}
|
100
|
|
- }
|
101
|
|
- }
|
|
659
|
+ }
|
|
660
|
+ }
|
|
661
|
+
|
|
662
|
+
|
102
|
663
|
|
103
|
664
|
const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
|
104
|
665
|
<tr>
|
|
@@ -113,9 +674,20 @@ export default{
|
113
|
674
|
<tr>
|
114
|
675
|
<td style="align-items: center;padding: 5px;">透析处方</td>
|
115
|
676
|
<td style='padding:5px'>
|
116
|
|
- <p style='font-weight: bold;'>总次数: ;</p>
|
117
|
|
- <p style='margin-bottom: 10px;' >其中;</p>
|
118
|
|
- <p style='margin-bottom: 10px;'></p>
|
|
677
|
+ <p style='font-weight: bold;'>总次数:${total_count}次 ;</p>
|
|
678
|
+ <p style='margin-bottom: 10px;' >其中;
|
|
679
|
+ ${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvhd_str}${pe_str}
|
|
680
|
+ ${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str}
|
|
681
|
+ </p>
|
|
682
|
+ <p style='font-weight: bold;'>透析器:</p>
|
|
683
|
+ <p style='margin-bottom: 10px;'>
|
|
684
|
+ ${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisStrainerStr}${dialysisIrrigationStr}
|
|
685
|
+ </p>
|
|
686
|
+ <p style='font-weight: bold;'>透析液处方:</p>
|
|
687
|
+ <p style='margin-bottom: 10px;'>
|
|
688
|
+ ${kalium}${sodium}${calcium}${bicarbonate}
|
|
689
|
+ </p>
|
|
690
|
+
|
119
|
691
|
<p style='font-weight: bold;'>抗凝方式:</p>
|
120
|
692
|
<p >低分子肝素,剂量:3500.00~3500.00IU;</p>
|
121
|
693
|
</td>
|
|
@@ -331,10 +903,7 @@ export default{
|
331
|
903
|
}
|
332
|
904
|
this.$emit('new_content',this.content)
|
333
|
905
|
})
|
334
|
|
- console.log("name:",this.name)
|
335
|
|
- console.log("gander:",this.gander)
|
336
|
|
- console.log("age:",this.age)
|
337
|
|
- console.log("dialysis_no:",this.dialysis_no)
|
|
906
|
+
|
338
|
907
|
|
339
|
908
|
},
|
340
|
909
|
methods: {
|