|
@@ -377,12 +377,14 @@ func (this *StaffScheduleApiController) UpdateDialysisPrescription() {
|
377
|
377
|
start_time, _ := this.GetInt64("start_time")
|
378
|
378
|
mode_id, _ := this.GetInt64("mode_id")
|
379
|
379
|
dialyzer_perfusion_apparatus := this.GetString("dialyzer_perfusion_apparatus")
|
|
380
|
+ dialysis_irrigation := this.GetString("dialysis_irrigation")
|
380
|
381
|
//更改透析模式
|
381
|
382
|
_, errcode := service.GetDialyisSolution(patient_id, start_time)
|
382
|
383
|
if errcode == gorm.ErrRecordNotFound {
|
383
|
384
|
orgId := this.GetMobileAdminUserInfo().Org.Id
|
384
|
385
|
prescription := models.DialysisPrescription{
|
385
|
386
|
DialysisDialyszers: dialyzer_perfusion_apparatus,
|
|
387
|
+ DialysisIrrigation: dialysis_irrigation,
|
386
|
388
|
PatientId: patient_id,
|
387
|
389
|
UserOrgId: orgId,
|
388
|
390
|
Status: 1,
|
|
@@ -402,6 +404,7 @@ func (this *StaffScheduleApiController) UpdateDialysisPrescription() {
|
402
|
404
|
} else if errcode == nil {
|
403
|
405
|
prescription := models.DialysisPrescription{
|
404
|
406
|
DialysisDialyszers: dialyzer_perfusion_apparatus,
|
|
407
|
+ DialysisIrrigation: dialysis_irrigation,
|
405
|
408
|
ModeId: mode_id,
|
406
|
409
|
}
|
407
|
410
|
err := service.UpdateDialysisPrescriptionOne(prescription, patient_id, start_time, mode_id)
|