|
@@ -562,17 +562,17 @@ func (c *CheckWeightApiController) SavePatientInfoDialysis() {
|
562
|
562
|
}
|
563
|
563
|
}
|
564
|
564
|
|
565
|
|
- // if dialysisPrescribe != nil {
|
566
|
|
- // dialysisPrescribe.UpdatedTime = time.Now().Unix()
|
567
|
|
- // dialysisPrescribe.RecordDate = theAssessmentDateTime
|
568
|
|
- // dialysisPrescribe.DewaterAmount = dewater_amount
|
569
|
|
- // dialysisPrescribe.TargetUltrafiltration = dewater_amount
|
570
|
|
- // dialysisPrescribe.Status = 1
|
571
|
|
- // updateErr := service.UpDateDialysisPrescription(dialysisPrescribe)
|
572
|
|
- // if updateErr != nil {
|
573
|
|
- // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCommitFail)
|
574
|
|
- // }
|
575
|
|
- // }
|
|
565
|
+ if dialysisPrescribe != nil && dialysisPrescribe.TargetUltrafiltration == 0 {
|
|
566
|
+ dialysisPrescribe.UpdatedTime = time.Now().Unix()
|
|
567
|
+ dialysisPrescribe.RecordDate = theAssessmentDateTime
|
|
568
|
+ dialysisPrescribe.DewaterAmount = dewater_amount
|
|
569
|
+ dialysisPrescribe.TargetUltrafiltration = dewater_amount
|
|
570
|
+ dialysisPrescribe.Status = 1
|
|
571
|
+ updateErr := service.UpDateDialysisPrescription(dialysisPrescribe)
|
|
572
|
+ if updateErr != nil {
|
|
573
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCommitFail)
|
|
574
|
+ }
|
|
575
|
+ }
|
576
|
576
|
|
577
|
577
|
theEvaluation, getPEErr := service.MobileGetPredialysisEvaluation(adminUserInfo.Org.Id, id, theAssessmentDateTime)
|
578
|
578
|
if getPEErr != nil {
|