|
@@ -2722,13 +2722,16 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
|
2722
|
2722
|
newprescribe.ID = dialysisPrescription.ID
|
2723
|
2723
|
|
2724
|
2724
|
if dialysisPrescription.ID == 0 {
|
2725
|
|
- if adminUserInfo.Org.Id == 10340 {
|
|
2725
|
+ if adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 10679 {
|
2726
|
2726
|
newprescribe.Sodium = 138
|
2727
|
2727
|
newprescribe.Bicarbonate = 31.1
|
2728
|
2728
|
newprescribe.DialysateFlow = 500
|
2729
|
2729
|
newprescribe.PrescribingNumber = 1
|
2730
|
2730
|
|
2731
|
2731
|
}
|
|
2732
|
+ if adminUserInfo.Org.Id == 10579 {
|
|
2733
|
+ newprescribe.Modifier = 0
|
|
2734
|
+ }
|
2732
|
2735
|
err := service.AddSigleRecord(&newprescribe)
|
2733
|
2736
|
//记录日志
|
2734
|
2737
|
byterequest, _ := json.Marshal(newprescribe)
|
|
@@ -2887,11 +2890,14 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
|
2887
|
2890
|
_, dialysisPrescription := service.FindDialysisPrescriptionByReordDate(id, theAssessmentDateTime, adminUserInfo.Org.Id)
|
2888
|
2891
|
newprescribe.ID = dialysisPrescription.ID
|
2889
|
2892
|
if dialysisPrescription.ID == 0 {
|
2890
|
|
- if adminUserInfo.Org.Id == 10340 {
|
|
2893
|
+ if adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 10679 {
|
2891
|
2894
|
newprescribe.Sodium = 138
|
2892
|
2895
|
newprescribe.Bicarbonate = 31.1
|
2893
|
2896
|
newprescribe.DialysateFlow = 500
|
2894
|
2897
|
}
|
|
2898
|
+ if adminUserInfo.Org.Id == 10579 {
|
|
2899
|
+ newprescribe.Modifier = 0
|
|
2900
|
+ }
|
2895
|
2901
|
err := service.AddSigleRecord(&newprescribe)
|
2896
|
2902
|
|
2897
|
2903
|
//记录日志
|
|
@@ -2937,7 +2943,12 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
|
2937
|
2943
|
appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.Org.Id, adminUserInfo.AdminUser.Id, adminUserInfo.App.Id)
|
2938
|
2944
|
//
|
2939
|
2945
|
if appRole.UserType == 2 || appRole.UserType == 1 {
|
2940
|
|
- newprescribe.PrescriptionDoctor = adminUserInfo.AdminUser.Id
|
|
2946
|
+ if adminUserInfo.Org.Id == 10579 {
|
|
2947
|
+ newprescribe.Modifier = 0
|
|
2948
|
+ } else {
|
|
2949
|
+ newprescribe.PrescriptionDoctor = adminUserInfo.AdminUser.Id
|
|
2950
|
+ }
|
|
2951
|
+
|
2941
|
2952
|
if adminUserInfo.Org.Id == 9882 {
|
2942
|
2953
|
newprescribe.Creater = adminUserInfo.AdminUser.Id
|
2943
|
2954
|
}
|
|
@@ -3042,11 +3053,14 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
|
3042
|
3053
|
_, dialysisPrescription := service.FindDialysisPrescriptionByReordDate(id, theAssessmentDateTime, adminUserInfo.Org.Id)
|
3043
|
3054
|
newprescribe.ID = dialysisPrescription.ID
|
3044
|
3055
|
if dialysisPrescription.ID == 0 {
|
3045
|
|
- if adminUserInfo.Org.Id == 10340 {
|
|
3056
|
+ if adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 10679 {
|
3046
|
3057
|
newprescribe.Sodium = 138
|
3047
|
3058
|
newprescribe.Bicarbonate = 31.1
|
3048
|
3059
|
newprescribe.DialysateFlow = 500
|
3049
|
3060
|
}
|
|
3061
|
+ if adminUserInfo.Org.Id == 10579 {
|
|
3062
|
+ newprescribe.Modifier = 0
|
|
3063
|
+ }
|
3050
|
3064
|
err := service.AddSigleRecord(&newprescribe)
|
3051
|
3065
|
//记录日志
|
3052
|
3066
|
byterequest, _ := json.Marshal(newprescribe)
|
|
@@ -3162,11 +3176,14 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
|
3162
|
3176
|
}
|
3163
|
3177
|
|
3164
|
3178
|
if dialysisPrescription.ID == 0 {
|
3165
|
|
- if adminUserInfo.Org.Id == 10340 {
|
|
3179
|
+ if adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 10679 {
|
3166
|
3180
|
newprescribe.Sodium = 138
|
3167
|
3181
|
newprescribe.Bicarbonate = 31.1
|
3168
|
3182
|
newprescribe.DialysateFlow = 500
|
3169
|
3183
|
}
|
|
3184
|
+ if adminUserInfo.Org.Id == 10579 {
|
|
3185
|
+ newprescribe.Modifier = 0
|
|
3186
|
+ }
|
3170
|
3187
|
err := service.AddSigleRecord(&newprescribe)
|
3171
|
3188
|
|
3172
|
3189
|
//获取key,清空redis
|
|
@@ -3206,6 +3223,9 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
|
3206
|
3223
|
newprescribe.Creater = adminUserInfo.AdminUser.Id
|
3207
|
3224
|
}
|
3208
|
3225
|
}
|
|
3226
|
+ if adminUserInfo.Org.Id == 10579 {
|
|
3227
|
+ newprescribe.Modifier = 0
|
|
3228
|
+ }
|
3209
|
3229
|
err := service.UpDateDialysisPrescription(&newprescribe)
|
3210
|
3230
|
|
3211
|
3231
|
//记录日志
|