|
@@ -382,14 +382,13 @@ func (this *StaffScheduleApiController) UpdateDialysisPrescription() {
|
382
|
382
|
if errcode == gorm.ErrRecordNotFound {
|
383
|
383
|
orgId := this.GetMobileAdminUserInfo().Org.Id
|
384
|
384
|
prescription := models.DialysisPrescription{
|
385
|
|
- DialyzerPerfusionApparatus: dialyzer_perfusion_apparatus,
|
386
|
|
- DialysisDialyszers: dialyzer_perfusion_apparatus,
|
387
|
|
- PatientId: patient_id,
|
388
|
|
- UserOrgId: orgId,
|
389
|
|
- Status: 1,
|
390
|
|
- RecordDate: start_time,
|
391
|
|
- CreatedTime: time.Now().Unix(),
|
392
|
|
- ModeId: mode_id,
|
|
385
|
+ DialysisDialyszers: dialyzer_perfusion_apparatus,
|
|
386
|
+ PatientId: patient_id,
|
|
387
|
+ UserOrgId: orgId,
|
|
388
|
+ Status: 1,
|
|
389
|
+ RecordDate: start_time,
|
|
390
|
+ CreatedTime: time.Now().Unix(),
|
|
391
|
+ ModeId: mode_id,
|
393
|
392
|
}
|
394
|
393
|
err := service.CreateDialysisPrescription(&prescription)
|
395
|
394
|
|
|
@@ -402,9 +401,8 @@ func (this *StaffScheduleApiController) UpdateDialysisPrescription() {
|
402
|
401
|
})
|
403
|
402
|
} else if errcode == nil {
|
404
|
403
|
prescription := models.DialysisPrescription{
|
405
|
|
- DialyzerPerfusionApparatus: dialyzer_perfusion_apparatus,
|
406
|
|
- DialysisDialyszers: dialyzer_perfusion_apparatus,
|
407
|
|
- ModeId: mode_id,
|
|
404
|
+ DialysisDialyszers: dialyzer_perfusion_apparatus,
|
|
405
|
+ ModeId: mode_id,
|
408
|
406
|
}
|
409
|
407
|
err := service.UpdateDialysisPrescriptionOne(prescription, patient_id, start_time, mode_id)
|
410
|
408
|
if err != nil {
|