|
@@ -26,6 +26,7 @@
|
26
|
26
|
<thead>
|
27
|
27
|
<tr>
|
28
|
28
|
<td width="60" v-if="gatherSetting.index_number == 1">序号</td>
|
|
29
|
+ <td width="200" v-if="org_id == 0 || org_id ==10683">备注</td>
|
29
|
30
|
<td width="100" v-if="gatherSetting.name==1">姓名</td>
|
30
|
31
|
<td width="100" v-if="gatherSetting.dialysis_no==1">透析号</td>
|
31
|
32
|
<td width="100" v-if="gatherSetting.admission_number==1">住院(门诊)号</td>
|
|
@@ -43,11 +44,14 @@
|
43
|
44
|
<td width="100" v-if="gatherSetting.zuoka == 1">左卡</td>
|
44
|
45
|
<td width="100" v-if="gatherSetting.niaojimei == 1">尿激酶</td>
|
45
|
46
|
<td width="100" v-if="gatherSetting.putaosuangai == 1">葡萄糖酸钙</td>
|
|
47
|
+
|
|
48
|
+ <td width="100" v-if="org_id == 0 || org_id ==10683">肝素钠</td>
|
46
|
49
|
|
47
|
50
|
</tr>
|
48
|
51
|
</thead>
|
49
|
52
|
<tbody>
|
50
|
53
|
<tr v-for="(item,i) in list" :key="i">
|
|
54
|
+ <td width="100" v-if="org_id == 0 || org_id ==10683"> </td>
|
51
|
55
|
<td width="60" v-if="gatherSetting.index_number == 1">{{ i+1 }}</td>
|
52
|
56
|
<td width="100" v-if="gatherSetting.name==1">
|
53
|
57
|
{{item.patient.name}}
|
|
@@ -89,15 +93,21 @@
|
89
|
93
|
<span v-if="item.mode_id == 33">HFD</span>
|
90
|
94
|
<span v-if="item.mode_id == 34">HDF100</span>
|
91
|
95
|
<span v-if="item.mode_id == 35">HDF600</span>
|
92
|
|
- <span v-if="item.mode_id == 35">HDF800</span>
|
93
|
|
- <span v-if="item.mode_id == 35">HDF1000</span>
|
|
96
|
+ <span v-if="item.mode_id == 36">HDF800</span>
|
|
97
|
+ <span v-if="item.mode_id == 37">HDF1000</span>
|
|
98
|
+ <span v-if="item.mode_id == 38">HDF80</span>
|
|
99
|
+ <span v-if="item.mode_id == 39">HF16</span>
|
|
100
|
+ <span v-if="item.mode_id == 40">HD(无肝素)</span>
|
|
101
|
+ <span v-if="item.mode_id == 41">HDF17H</span>
|
|
102
|
+ <span v-if="item.mode_id == 42">HD.</span>
|
|
103
|
+ <span v-if="item.mode_id == 43">HD(2)</span>
|
94
|
104
|
</td>
|
95
|
105
|
<td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
|
96
|
106
|
<span v-if="item.schedule_date == timenow">
|
97
|
107
|
<span v-if="item.dialysis_prescription.dialysis_dialyszers!=''">{{item.dialysis_prescription.dialysis_dialyszers}}</span>
|
98
|
108
|
<span v-if="item.dialysis_prescription.dialysis_dialyszers==''">{{item.dialysis_solution.dialysis_dialyszers}}</span>
|
99
|
109
|
</span>
|
100
|
|
- <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span>
|
|
110
|
+ <span v-if="item.schedule_date < timenow">{{item.dialysis_prescription.dialysis_dialyszers}}</span>
|
101
|
111
|
<span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span>
|
102
|
112
|
</td>
|
103
|
113
|
<td width="100" v-if="gatherSetting.dialysis_irrigation ==1">
|
|
@@ -106,7 +116,7 @@
|
106
|
116
|
<span v-if="item.dialysis_prescription.dialysis_irrigation==''"> {{item.dialysis_solution.dialysis_irrigation}}</span>
|
107
|
117
|
</span>
|
108
|
118
|
|
109
|
|
- <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
|
|
119
|
+ <span v-if="item.schedule_date < timenow">{{item.dialysis_prescription.dialysis_irrigation}}</span>
|
110
|
120
|
|
111
|
121
|
<span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
|
112
|
122
|
</td>
|
|
@@ -116,7 +126,7 @@
|
116
|
126
|
<span v-if="item.dialysis_prescription.dialysis_strainer==''">{{item.dialysis_solution.dialysis_strainer}}</span>
|
117
|
127
|
</span>
|
118
|
128
|
|
119
|
|
- <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
|
|
129
|
+ <span v-if="item.schedule_date < timenow">{{item.dialysis_prescription.dialysis_strainer}}</span>
|
120
|
130
|
|
121
|
131
|
<span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
|
122
|
132
|
</td>
|
|
@@ -164,18 +174,25 @@
|
164
|
174
|
<span v-if="item.dialysis_prescription.calcium>0">{{item.dialysis_prescription.calcium}}</span>
|
165
|
175
|
</td>
|
166
|
176
|
<td width="100" v-if="gatherSetting.cuhong == 1">
|
167
|
|
- {{ item.advice_spc }}
|
|
177
|
+ <span v-if="item.schedule_date <= timenow">{{ item.advice_spc }}</span>
|
|
178
|
+ <span v-if="item.schedule_date > timenow">{{ getLongAdvice(item.long_doctor_advice,item.schedule_date) }}</span>
|
168
|
179
|
</td>
|
169
|
180
|
<td width="100" v-if="gatherSetting.zuoka == 1">
|
170
|
|
- {{ item.advice_spc_one }}
|
|
181
|
+ <span v-if="item.schedule_date <= timenow">{{ item.advice_spc_one }}</span>
|
|
182
|
+ <span v-if="item.schedule_date>timenow">{{ getLongAdviceOne(item.long_doctor_advice,item.schedule_date) }}</span>
|
171
|
183
|
</td>
|
172
|
184
|
<td width="100" v-if="gatherSetting.niaojimei == 1">
|
173
|
|
- {{ item.advice_spc_two }}
|
|
185
|
+ <span v-if="item.schedule_date<=timenow"> {{ item.advice_spc_two }}</span>
|
|
186
|
+ <span v-if="item.schedule_date > timenow"> {{getLongAdviceTwo(item.long_doctor_advice,item.schedule_date)}}</span>
|
174
|
187
|
</td>
|
175
|
188
|
<td width="100" v-if="gatherSetting.putaosuangai == 1">
|
176
|
|
- {{ item.advice_spc_three }}
|
|
189
|
+ <span v-if="item.schedule_date<=timenow"> {{ item.advice_spc_three }}</span>
|
|
190
|
+ <span v-if="item.schedule_date>timenow">{{ getLongAdviceThree(item.long_doctor_advice,item.schedule_date) }}</span>
|
|
191
|
+ </td>
|
|
192
|
+ <td width="100" v-if="org_id == 0 || org_id ==10683">
|
|
193
|
+ <span v-if="item.schedule_date<=timenow"> {{ item.advice_spc_four }}</span>
|
|
194
|
+ <span v-if="item.schedule_date>timenow">{{ getLongAdviceFour(item.long_doctor_advice,item.schedule_date) }}</span>
|
177
|
195
|
</td>
|
178
|
|
-
|
179
|
196
|
</tr>
|
180
|
197
|
</tbody>
|
181
|
198
|
</table>
|
|
@@ -289,6 +306,7 @@
|
289
|
306
|
list[i].advice_spc_one =""
|
290
|
307
|
list[i].advice_spc_two =""
|
291
|
308
|
list[i].advice_spc_three = ""
|
|
309
|
+ list[i].advice_spc_four = ""
|
292
|
310
|
for(let j=0;j<list[i].advice.length;j++){
|
293
|
311
|
if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
|
294
|
312
|
list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
|
|
@@ -306,6 +324,10 @@
|
306
|
324
|
list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
|
307
|
325
|
}
|
308
|
326
|
|
|
327
|
+ if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
|
|
328
|
+ list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
|
|
329
|
+ }
|
|
330
|
+
|
309
|
331
|
}
|
310
|
332
|
}
|
311
|
333
|
this.list = list
|
|
@@ -384,6 +406,21 @@
|
384
|
406
|
if(id == 13){
|
385
|
407
|
name ="那屈肝素钙"
|
386
|
408
|
}
|
|
409
|
+ if(id == 14){
|
|
410
|
+ name ="肝素钙注射液"
|
|
411
|
+ }
|
|
412
|
+ if(id == 15){
|
|
413
|
+ name ="甲磺酸萘莫司他"
|
|
414
|
+ }
|
|
415
|
+ if(id == 16){
|
|
416
|
+ name ="低分子量肝素钙"
|
|
417
|
+ }
|
|
418
|
+ if(id == 17){
|
|
419
|
+ name ="肝素钠"
|
|
420
|
+ }
|
|
421
|
+ if(id == 18){
|
|
422
|
+ name ="贝米肝素钠注射液"
|
|
423
|
+ }
|
387
|
424
|
return name
|
388
|
425
|
},
|
389
|
426
|
getBloodAccessOption(id){
|
|
@@ -411,6 +448,152 @@
|
411
|
448
|
return a - b; //升序
|
412
|
449
|
}
|
413
|
450
|
},
|
|
451
|
+
|
|
452
|
+ getLongAdvice(val,schedule_date){
|
|
453
|
+ var newArrList = []
|
|
454
|
+ var newArr = []
|
|
455
|
+ var advice_name = ""
|
|
456
|
+ if(val!=null && val.length>0){
|
|
457
|
+ for(let i=0;i<val.length;i++){
|
|
458
|
+ if(val[i].advice_name.indexOf("促红")!=-1){
|
|
459
|
+ newArrList.push(val[i])
|
|
460
|
+ }
|
|
461
|
+ }
|
|
462
|
+ }
|
|
463
|
+
|
|
464
|
+ if(newArrList!=null && newArrList.length>0){
|
|
465
|
+ for(let i=0;i<newArrList.length;i++){
|
|
466
|
+ if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
|
|
467
|
+ newArr.push(newArrList[i])
|
|
468
|
+ }
|
|
469
|
+ }
|
|
470
|
+ }
|
|
471
|
+
|
|
472
|
+ if(newArr!=null && newArr.length>0){
|
|
473
|
+ for(let i=0;i<newArr.length;i++){
|
|
474
|
+ advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
|
|
475
|
+ }
|
|
476
|
+ }
|
|
477
|
+ return advice_name
|
|
478
|
+ },
|
|
479
|
+ getLongAdviceOne(val,schedule_date){
|
|
480
|
+ var newArrList = []
|
|
481
|
+ var newArr = []
|
|
482
|
+ var advice_name = ""
|
|
483
|
+ if(val!=null && val.length>0){
|
|
484
|
+ for(let i=0;i<val.length;i++){
|
|
485
|
+ if(val[i].advice_name.indexOf("左卡")!=-1){
|
|
486
|
+ newArrList.push(val[i])
|
|
487
|
+ }
|
|
488
|
+ }
|
|
489
|
+ }
|
|
490
|
+
|
|
491
|
+ if(newArrList!=null && newArrList.length>0){
|
|
492
|
+ for(let i=0;i<newArrList.length;i++){
|
|
493
|
+ if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
|
|
494
|
+
|
|
495
|
+ newArr.push(newArrList[i])
|
|
496
|
+ }
|
|
497
|
+ }
|
|
498
|
+ }
|
|
499
|
+
|
|
500
|
+ if(newArr!=null && newArr.length>0){
|
|
501
|
+ for(let i=0;i<newArr.length;i++){
|
|
502
|
+ advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
|
|
503
|
+ }
|
|
504
|
+ }
|
|
505
|
+ return advice_name
|
|
506
|
+ },
|
|
507
|
+
|
|
508
|
+ getLongAdviceTwo(val,schedule_date){
|
|
509
|
+ var newArrList = []
|
|
510
|
+ var newArr = []
|
|
511
|
+ var advice_name = ""
|
|
512
|
+ if(val!=null && val.length>0){
|
|
513
|
+ for(let i=0;i<val.length;i++){
|
|
514
|
+ if(val[i].advice_name.indexOf("尿激酶")!=-1){
|
|
515
|
+ newArrList.push(val[i])
|
|
516
|
+ }
|
|
517
|
+ }
|
|
518
|
+ }
|
|
519
|
+
|
|
520
|
+ if(newArrList!=null && newArrList.length>0){
|
|
521
|
+ for(let i=0;i<newArrList.length;i++){
|
|
522
|
+ if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
|
|
523
|
+
|
|
524
|
+ newArr.push(newArrList[i])
|
|
525
|
+ }
|
|
526
|
+ }
|
|
527
|
+ }
|
|
528
|
+
|
|
529
|
+ if(newArr!=null && newArr.length>0){
|
|
530
|
+ for(let i=0;i<newArr.length;i++){
|
|
531
|
+ advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
|
|
532
|
+ }
|
|
533
|
+ }
|
|
534
|
+ return advice_name
|
|
535
|
+ },
|
|
536
|
+ getLongAdviceThree(val,schedule_date){
|
|
537
|
+ var newArrList = []
|
|
538
|
+ var newArr = []
|
|
539
|
+ var advice_name = ""
|
|
540
|
+ if(val!=null && val.length>0){
|
|
541
|
+ for(let i=0;i<val.length;i++){
|
|
542
|
+ if(val[i].advice_name.indexOf("葡萄糖酸钙")!=-1){
|
|
543
|
+ newArrList.push(val[i])
|
|
544
|
+ }
|
|
545
|
+ }
|
|
546
|
+ }
|
|
547
|
+
|
|
548
|
+ if(newArrList!=null && newArrList.length>0){
|
|
549
|
+ for(let i=0;i<newArrList.length;i++){
|
|
550
|
+ if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
|
|
551
|
+
|
|
552
|
+ newArr.push(newArrList[i])
|
|
553
|
+ }
|
|
554
|
+ }
|
|
555
|
+ }
|
|
556
|
+
|
|
557
|
+ if(newArr!=null && newArr.length>0){
|
|
558
|
+ for(let i=0;i<newArr.length;i++){
|
|
559
|
+ advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
|
|
560
|
+ }
|
|
561
|
+ }
|
|
562
|
+ return advice_name
|
|
563
|
+ },
|
|
564
|
+ getLongAdviceFour(val,schedule_date){
|
|
565
|
+ var newArrList = []
|
|
566
|
+ var newArr = []
|
|
567
|
+ var advice_name = ""
|
|
568
|
+ if(val!=null && val.length>0){
|
|
569
|
+ for(let i=0;i<val.length;i++){
|
|
570
|
+ if(val[i].advice_name.indexOf("肝素钠")!=-1){
|
|
571
|
+ newArrList.push(val[i])
|
|
572
|
+ }
|
|
573
|
+ }
|
|
574
|
+ }
|
|
575
|
+
|
|
576
|
+ if(newArrList!=null && newArrList.length>0){
|
|
577
|
+ for(let i=0;i<newArrList.length;i++){
|
|
578
|
+ if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
|
|
579
|
+
|
|
580
|
+ newArr.push(newArrList[i])
|
|
581
|
+ }
|
|
582
|
+ }
|
|
583
|
+ }
|
|
584
|
+
|
|
585
|
+ if(newArr!=null && newArr.length>0){
|
|
586
|
+ for(let i=0;i<newArr.length;i++){
|
|
587
|
+ advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
|
|
588
|
+ }
|
|
589
|
+ }
|
|
590
|
+ return advice_name
|
|
591
|
+ },
|
|
592
|
+ getweekday(date){
|
|
593
|
+ var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
|
|
594
|
+ var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
|
|
595
|
+ return week;
|
|
596
|
+ },
|
414
|
597
|
|
415
|
598
|
}
|
416
|
599
|
}
|