|
@@ -46,6 +46,9 @@ export default{
|
46
|
46
|
},
|
47
|
47
|
groupPrescriptionList:{
|
48
|
48
|
type:Array
|
|
49
|
+ },
|
|
50
|
+ afterList:{
|
|
51
|
+ type:Array
|
49
|
52
|
}
|
50
|
53
|
},
|
51
|
54
|
data(){
|
|
@@ -77,6 +80,8 @@ export default{
|
77
|
80
|
console.log("patinet==========================",this.patient)
|
78
|
81
|
console.log("longAdvice-----------------------",this.longAdvice)
|
79
|
82
|
console.log("除非==========================",this.prescription)
|
|
83
|
+ console.log("berforList---------------------",this.berforList)
|
|
84
|
+ console.log("afterList---------------------",this.afterList)
|
80
|
85
|
var hd_total =0
|
81
|
86
|
var hdArr =[]
|
82
|
87
|
var hdf_total =0
|
|
@@ -643,25 +648,50 @@ export default{
|
643
|
648
|
dialysisIrrigationStr = JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
|
644
|
649
|
|
645
|
650
|
|
646
|
|
- // 医嘱
|
647
|
|
- if(this.longAdvice!=null && this.longAdvice.length>0){
|
648
|
|
- for(let i=0;i<this.longAdvice.length;i++){
|
649
|
|
- this.longAdvice[i].advice_type_name = ""
|
650
|
|
- if(this.longAdvice[i].advice_type == 1){
|
651
|
|
- this.longAdvice[i].advice_type_name = "长期医嘱"
|
|
651
|
+ // 医嘱
|
|
652
|
+ if(this.longAdvice!=null && this.longAdvice.length>0){
|
|
653
|
+ for(let i=0;i<this.longAdvice.length;i++){
|
|
654
|
+ this.longAdvice[i].advice_type_name = ""
|
|
655
|
+ if(this.longAdvice[i].advice_type == 1){
|
|
656
|
+ this.longAdvice[i].advice_type_name = "长期医嘱"
|
|
657
|
+ }
|
|
658
|
+ if(this.longAdvice[i].stop_state == 1){
|
|
659
|
+ this.longAdvice[i].stop_state_name = "停用"
|
|
660
|
+ }
|
|
661
|
+ if(this.longAdvice[i].stop_state == 2){
|
|
662
|
+ this.longAdvice[i].stop_state_name = "未停用"
|
|
663
|
+ }
|
652
|
664
|
}
|
653
|
|
- if(this.longAdvice[i].stop_state == 1){
|
654
|
|
- this.longAdvice[i].stop_state_name = "停用"
|
655
|
|
- }
|
656
|
|
- if(this.longAdvice[i].stop_state == 2){
|
657
|
|
- this.longAdvice[i].stop_state_name = "未停用"
|
|
665
|
+ }
|
|
666
|
+
|
|
667
|
+ //抗凝剂
|
|
668
|
+
|
|
669
|
+ var anticoagulant_str =""
|
|
670
|
+ if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
|
|
671
|
+
|
|
672
|
+ for(let i=0;i<this.groupPrescriptionList.length;i++){
|
|
673
|
+ anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
|
658
|
674
|
}
|
659
|
675
|
}
|
660
|
|
- }
|
|
676
|
+
|
|
677
|
+ //透前
|
|
678
|
+ var befor_total =0
|
|
679
|
+ var cha_weight = 0
|
|
680
|
+ var pingjun_weight = 0
|
|
681
|
+ if(this.berforList!=null){
|
|
682
|
+ befor_total = this.berforList.length
|
|
683
|
+ for(let i=0;i<this.berforList.length;i++){
|
|
684
|
+ cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
|
|
685
|
+ }
|
|
686
|
+ }
|
|
687
|
+
|
|
688
|
+ pingjun_weight = (cha_weight/befor_total).toFixed(2)
|
|
689
|
+
|
|
690
|
+
|
661
|
691
|
|
662
|
692
|
|
663
|
693
|
|
664
|
|
- const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
|
|
694
|
+ const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
|
665
|
695
|
<tr>
|
666
|
696
|
<th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
|
667
|
697
|
</tr>
|
|
@@ -689,13 +719,13 @@ export default{
|
689
|
719
|
</p>
|
690
|
720
|
|
691
|
721
|
<p style='font-weight: bold;'>抗凝方式:</p>
|
692
|
|
- <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
|
|
722
|
+ <p >${anticoagulant_str}</p>
|
693
|
723
|
</td>
|
694
|
724
|
</tr>
|
695
|
725
|
<tr>
|
696
|
726
|
<td style="align-items: center;padding: 5px;">透析情况</td>
|
697
|
727
|
<td style='padding:5px'>
|
698
|
|
- <p>透析间期平均体重增加:2.90kg;</p>
|
|
728
|
+ <p>透析间期平均体重增加:${pingjun_weight}kg;</p>
|
699
|
729
|
<p>凝血:透析器-0度(1次);</p>
|
700
|
730
|
<p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
|
701
|
731
|
<p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
|
|
@@ -771,8 +801,8 @@ export default{
|
771
|
801
|
</td>
|
772
|
802
|
</tr>
|
773
|
803
|
</table>`
|
774
|
|
- // this.text = contents
|
775
|
|
- this.content = contents
|
|
804
|
+
|
|
805
|
+ this.content = contents
|
776
|
806
|
},
|
777
|
807
|
mounted(){
|
778
|
808
|
this.$nextTick(() =>{
|
|
@@ -910,6 +940,128 @@ export default{
|
910
|
940
|
getTime (time) {
|
911
|
941
|
return uParseTime(time, '{y}-{m}-{d}')
|
912
|
942
|
},
|
|
943
|
+ getAnticoagulantName(val){
|
|
944
|
+ var anticoagulant_name = ""
|
|
945
|
+ if(val == 1){
|
|
946
|
+ anticoagulant_name = "无肝素"
|
|
947
|
+ }
|
|
948
|
+ if(val == 2){
|
|
949
|
+ anticoagulant_name = "普通肝素"
|
|
950
|
+ }
|
|
951
|
+ if(val == 3){
|
|
952
|
+ anticoagulant_name = "低分子肝素"
|
|
953
|
+ }
|
|
954
|
+ if(val == 4){
|
|
955
|
+ anticoagulant_name = "阿加曲班"
|
|
956
|
+ }
|
|
957
|
+ if(val == 5){
|
|
958
|
+ anticoagulant_name = "枸橼酸钠"
|
|
959
|
+ }
|
|
960
|
+ if(val == 6){
|
|
961
|
+ anticoagulant_name = "低分子肝素钙"
|
|
962
|
+ }
|
|
963
|
+ if(val == 7){
|
|
964
|
+ anticoagulant_name = "低分子肝素钠"
|
|
965
|
+ }
|
|
966
|
+ if(val == 8){
|
|
967
|
+ anticoagulant_name = "依诺肝素"
|
|
968
|
+ }
|
|
969
|
+ if(val == 9){
|
|
970
|
+ anticoagulant_name = "达肝素"
|
|
971
|
+ }
|
|
972
|
+ if(val == 10){
|
|
973
|
+ anticoagulant_name = "体外抗凝"
|
|
974
|
+ }
|
|
975
|
+ if(val == 11){
|
|
976
|
+ anticoagulant_name = "那屈肝素"
|
|
977
|
+ }
|
|
978
|
+ if(val == 12){
|
|
979
|
+ anticoagulant_name = "无抗凝剂"
|
|
980
|
+ }
|
|
981
|
+ if(val == 13){
|
|
982
|
+ anticoagulant_name = "那屈肝素钙"
|
|
983
|
+ }
|
|
984
|
+ if(val == 14){
|
|
985
|
+ anticoagulant_name = "肝素钙注射液"
|
|
986
|
+ }
|
|
987
|
+ if(val == 15){
|
|
988
|
+ anticoagulant_name = "甲磺酸萘莫司他"
|
|
989
|
+ }
|
|
990
|
+ if(val == 16){
|
|
991
|
+ anticoagulant_name = "低分子量肝素钙"
|
|
992
|
+ }
|
|
993
|
+ if(val == 17){
|
|
994
|
+ anticoagulant_name = "肝素钠"
|
|
995
|
+ }
|
|
996
|
+ if(val == 18){
|
|
997
|
+ anticoagulant_name = "贝米肝素钠注射液"
|
|
998
|
+ }
|
|
999
|
+ if(val == 19){
|
|
1000
|
+ anticoagulant_name = "低分子量肝素钠"
|
|
1001
|
+ }
|
|
1002
|
+ return anticoagulant_name
|
|
1003
|
+ },
|
|
1004
|
+ getAnticoagulantUnit(val){
|
|
1005
|
+ var anticoagulant_name = ""
|
|
1006
|
+ if(val == 1){
|
|
1007
|
+ anticoagulant_name = "mg"
|
|
1008
|
+ }
|
|
1009
|
+ if(val == 2){
|
|
1010
|
+ anticoagulant_name = "IU"
|
|
1011
|
+ }
|
|
1012
|
+ if(val == 3){
|
|
1013
|
+ anticoagulant_name = "IU"
|
|
1014
|
+ }
|
|
1015
|
+ if(val == 4){
|
|
1016
|
+ anticoagulant_name = "mg"
|
|
1017
|
+ }
|
|
1018
|
+ if(val == 5){
|
|
1019
|
+ anticoagulant_name = "ml/h"
|
|
1020
|
+ }
|
|
1021
|
+ if(val == 6){
|
|
1022
|
+ anticoagulant_name = "IU"
|
|
1023
|
+ }
|
|
1024
|
+ if(val == 7){
|
|
1025
|
+ anticoagulant_name = "IU"
|
|
1026
|
+ }
|
|
1027
|
+ if(val == 8){
|
|
1028
|
+ anticoagulant_name = "IU/h"
|
|
1029
|
+ }
|
|
1030
|
+ if(val == 9){
|
|
1031
|
+ anticoagulant_name = "IU/h"
|
|
1032
|
+ }
|
|
1033
|
+ if(val == 10){
|
|
1034
|
+ anticoagulant_name = "mg/h"
|
|
1035
|
+ }
|
|
1036
|
+ if(val == 11){
|
|
1037
|
+ anticoagulant_name = "mg/h"
|
|
1038
|
+ }
|
|
1039
|
+ if(val == 12){
|
|
1040
|
+ anticoagulant_name = "mg/h"
|
|
1041
|
+ }
|
|
1042
|
+ if(val == 13){
|
|
1043
|
+ anticoagulant_name = "mg/h"
|
|
1044
|
+ }
|
|
1045
|
+ if(val == 14){
|
|
1046
|
+ anticoagulant_name = "iu/h"
|
|
1047
|
+ }
|
|
1048
|
+ if(val == 15){
|
|
1049
|
+ anticoagulant_name = "mg/h"
|
|
1050
|
+ }
|
|
1051
|
+ if(val == 16){
|
|
1052
|
+ anticoagulant_name = "iu/h"
|
|
1053
|
+ }
|
|
1054
|
+ if(val == 17){
|
|
1055
|
+ anticoagulant_name = "mg/h"
|
|
1056
|
+ }
|
|
1057
|
+ if(val == 18){
|
|
1058
|
+ anticoagulant_name = "iu/h"
|
|
1059
|
+ }
|
|
1060
|
+ if(val == 19){
|
|
1061
|
+ anticoagulant_name = "iu/h"
|
|
1062
|
+ }
|
|
1063
|
+ return anticoagulant_name
|
|
1064
|
+ }
|
913
|
1065
|
}
|
914
|
1066
|
|
915
|
1067
|
}
|