|
@@ -1354,6 +1354,7 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
1354
|
1354
|
epo_count, _ := c.GetFloat("epo_count", 0)
|
1355
|
1355
|
|
1356
|
1356
|
max_ultrafiltration_rate, _ := c.GetFloat("max_ultrafiltration_rate")
|
|
1357
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
1357
|
1358
|
appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.Org.Id, adminUserInfo.AdminUser.Id, adminUserInfo.App.Id)
|
1358
|
1359
|
|
1359
|
1360
|
//template, _ := service.GetOrgInfoTemplate(adminUserInfo.Org.Id)
|
|
@@ -1459,6 +1460,7 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
1459
|
1460
|
Epo: epo,
|
1460
|
1461
|
EpoCount: epo_count,
|
1461
|
1462
|
MaxUltrafiltrationRate: max_ultrafiltration_rate,
|
|
1463
|
+ AdminUserId: admin_user_id,
|
1462
|
1464
|
}
|
1463
|
1465
|
|
1464
|
1466
|
//查询最近透析准备表里是否存在 透析器 灌流器
|
|
@@ -2082,6 +2084,11 @@ func (this *DialysisAPIController) StartDialysis() {
|
2082
|
2084
|
difficult_puncture_nurse, _ := this.GetInt64("difficult_puncture_nurse")
|
2083
|
2085
|
new_fistula_nurse, _ := this.GetInt64("new_fistula_nurse")
|
2084
|
2086
|
quality_nurse_id, _ := this.GetInt64("quality_nurse_id")
|
|
2087
|
+ puncture_needle := this.GetString("puncture_needle")
|
|
2088
|
+ puncture_way := this.GetString("puncture_way")
|
|
2089
|
+ dialysis_dialyszers := this.GetString("dialysis_dialyszers")
|
|
2090
|
+ dialysis_irrigation := this.GetString("dialysis_irrigation")
|
|
2091
|
+ blood_access_id, _ := this.GetInt64("blood_access_id")
|
2085
|
2092
|
zone_id, _ := this.GetInt64("zone_id")
|
2086
|
2093
|
|
2087
|
2094
|
if patientID <= 0 || len(recordDateStr) == 0 || nurseID <= 0 || bedID <= 0 {
|
|
@@ -2267,6 +2274,11 @@ func (this *DialysisAPIController) StartDialysis() {
|
2267
|
2274
|
NewFistulaNurse: new_fistula_nurse,
|
2268
|
2275
|
ZoneId: zone_id,
|
2269
|
2276
|
QualityNurseId: quality_nurse_id,
|
|
2277
|
+ PunctureNeedle: puncture_needle,
|
|
2278
|
+ PunctureWay: puncture_way,
|
|
2279
|
+ DialysisIrrigation: dialysis_irrigation,
|
|
2280
|
+ DialysisDialyszers: dialysis_dialyszers,
|
|
2281
|
+ BloodAccessId: blood_access_id,
|
2270
|
2282
|
}
|
2271
|
2283
|
//查询该床位是否有人用了
|
2272
|
2284
|
_, errorscode := service.GetDialysisOrderByBedId(adminUserInfo.Org.Id, schedulestartTime, bedID, schedual_type)
|
|
@@ -2533,6 +2545,7 @@ func (c *DialysisAPIController) PostSolution() {
|
2533
|
2545
|
max_ultrafiltration_rate, _ := c.GetFloat("max_ultrafiltration_rate")
|
2534
|
2546
|
pre_impulse := c.GetString("pre_impulse")
|
2535
|
2547
|
impulse, _ := strconv.ParseFloat(pre_impulse, 64)
|
|
2548
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
2536
|
2549
|
if mode_id > 0 {
|
2537
|
2550
|
service.ModifyScheduleMode(mode_id, patient.ID, recordDate.Unix(), adminUserInfo.Org.Id)
|
2538
|
2551
|
}
|
|
@@ -2639,6 +2652,7 @@ func (c *DialysisAPIController) PostSolution() {
|
2639
|
2652
|
EpoCount: epo_count,
|
2640
|
2653
|
MaxUltrafiltrationRate: max_ultrafiltration_rate,
|
2641
|
2654
|
PreImpulse: impulse,
|
|
2655
|
+ AdminUserId: admin_user_id,
|
2642
|
2656
|
}
|
2643
|
2657
|
|
2644
|
2658
|
_, dialysisPrescription := service.FindDialysisPrescriptionByReordDate(id, recordDate.Unix(), adminUserInfo.Org.Id)
|
|
@@ -3029,6 +3043,11 @@ func (this *DialysisAPIController) ModifyStartDialysisOrder() {
|
3029
|
3043
|
quality_nurse_id, _ := this.GetInt64("quality_nurse_id")
|
3030
|
3044
|
patient_id, _ := this.GetInt64("patient_id")
|
3031
|
3045
|
record_date, _ := this.GetInt64("record_date")
|
|
3046
|
+ puncture_needle := this.GetString("puncture_needle")
|
|
3047
|
+ puncture_way := this.GetString("puncture_way")
|
|
3048
|
+ dialysis_dialyszers := this.GetString("dialysis_dialyszers")
|
|
3049
|
+ dialysis_irrigation := this.GetString("dialysis_irrigation")
|
|
3050
|
+ blood_access_id, _ := this.GetInt64("blood_access_id")
|
3032
|
3051
|
if record_id == 0 {
|
3033
|
3052
|
this.ErrorLog("id:%v", record_id)
|
3034
|
3053
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
@@ -3175,6 +3194,11 @@ func (this *DialysisAPIController) ModifyStartDialysisOrder() {
|
3175
|
3194
|
DifficultPunctureNurse: difficult_puncture_nurse,
|
3176
|
3195
|
NewFistulaNurse: new_fistula_nurse,
|
3177
|
3196
|
QualityNurseId: quality_nurse_id,
|
|
3197
|
+ PunctureNeedle: puncture_needle,
|
|
3198
|
+ PunctureWay: puncture_way,
|
|
3199
|
+ DialysisDialyszers: dialysis_dialyszers,
|
|
3200
|
+ DialysisIrrigation: dialysis_irrigation,
|
|
3201
|
+ BloodAccessId: blood_access_id,
|
3178
|
3202
|
}
|
3179
|
3203
|
|
3180
|
3204
|
updateErr := service.ModifyStartDialysisOrder(dialysisRecord)
|