|
@@ -2596,7 +2596,8 @@ func (c *DialysisApiController) PostAssessmentBeforeDislysis() {
|
2596
|
2596
|
//lastDialysisPrescribe, _ = service.MobileGetLastDialysisPrescribe(adminUserInfo.Org.Id, id,schedual.ModeId)
|
2597
|
2597
|
// 获取透析模版
|
2598
|
2598
|
dialysisPrescribe, _ = service.MobileGetDialysisPrescribe(adminUserInfo.CurrentOrgId, patient, recordDate.Unix())
|
2599
|
|
- dialysisSolution, _ = service.MobileGetDialysisSolution(adminUserInfo.CurrentOrgId, patient)
|
|
2599
|
+ // 获取透析模版
|
|
2600
|
+ dialysisSolution, _ = service.MobileGetDialysisSolutionByModeIdSix(adminUserInfo.CurrentOrgId, patient, schedual.ModeId)
|
2600
|
2601
|
|
2601
|
2602
|
if dialysisPrescribe == nil && dialysisSolution != nil {
|
2602
|
2603
|
mode_id = dialysisSolution.ModeId
|
|
@@ -2650,7 +2651,9 @@ func (c *DialysisApiController) PostAssessmentBeforeDislysis() {
|
2650
|
2651
|
newprescribe.DialyzerPerfusionApparatus = dialysisSolution.DialyzerPerfusionApparatus
|
2651
|
2652
|
newprescribe.BodyFluidOther = dialysisSolution.BodyFluidOther
|
2652
|
2653
|
newprescribe.TargetKtv = dialysisSolution.TargetKtv
|
2653
|
|
-
|
|
2654
|
+ newprescribe.DialysisStrainer = dialysisSolution.DialysisStrainer
|
|
2655
|
+ newprescribe.DialysisIrrigation = dialysisSolution.DialysisIrrigation
|
|
2656
|
+ newprescribe.DialysisDialyszers = dialysisSolution.DialysisDialyszers
|
2654
|
2657
|
newprescribe.CreatedTime = time.Now().Unix()
|
2655
|
2658
|
newprescribe.UpdatedTime = time.Now().Unix()
|
2656
|
2659
|
newprescribe.RecordDate = recordDate.Unix()
|
|
@@ -2722,6 +2725,9 @@ func (c *DialysisApiController) PostAssessmentBeforeDislysis() {
|
2722
|
2725
|
newprescribe.DialyzerPerfusionApparatus = lastDialysisPrescribe.DialyzerPerfusionApparatus
|
2723
|
2726
|
newprescribe.BodyFluidOther = lastDialysisPrescribe.BodyFluidOther
|
2724
|
2727
|
newprescribe.TargetKtv = lastDialysisPrescribe.TargetKtv
|
|
2728
|
+ newprescribe.DialysisStrainer = lastDialysisPrescribe.DialysisStrainer
|
|
2729
|
+ newprescribe.DialysisIrrigation = lastDialysisPrescribe.DialysisIrrigation
|
|
2730
|
+ newprescribe.DialysisDialyszers = lastDialysisPrescribe.DialysisDialyszers
|
2725
|
2731
|
newprescribe.CreatedTime = time.Now().Unix()
|
2726
|
2732
|
newprescribe.UpdatedTime = time.Now().Unix()
|
2727
|
2733
|
newprescribe.RecordDate = recordDate.Unix()
|
|
@@ -2953,7 +2959,9 @@ func (c *DialysisApiController) PostAssessmentBeforeDislysis() {
|
2953
|
2959
|
newprescribe.DialyzerPerfusionApparatus = dialysisSolution.DialyzerPerfusionApparatus
|
2954
|
2960
|
newprescribe.BodyFluidOther = dialysisSolution.BodyFluidOther
|
2955
|
2961
|
newprescribe.TargetKtv = dialysisSolution.TargetKtv
|
2956
|
|
-
|
|
2962
|
+ newprescribe.DialysisStrainer = dialysisSolution.DialysisStrainer
|
|
2963
|
+ newprescribe.DialysisIrrigation = dialysisSolution.DialysisIrrigation
|
|
2964
|
+ newprescribe.DialysisDialyszers = dialysisSolution.DialysisDialyszers
|
2957
|
2965
|
newprescribe.CreatedTime = time.Now().Unix()
|
2958
|
2966
|
newprescribe.UpdatedTime = time.Now().Unix()
|
2959
|
2967
|
newprescribe.RecordDate = recordDate.Unix()
|
|
@@ -3030,6 +3038,9 @@ func (c *DialysisApiController) PostAssessmentBeforeDislysis() {
|
3030
|
3038
|
newprescribe.DewaterAmount = dewater_amount
|
3031
|
3039
|
newprescribe.TargetUltrafiltration = dewater_amount
|
3032
|
3040
|
newprescribe.Chaptalization = lastDialysisPrescribe.Chaptalization
|
|
3041
|
+ newprescribe.DialysisStrainer = lastDialysisPrescribe.DialysisStrainer
|
|
3042
|
+ newprescribe.DialysisIrrigation = lastDialysisPrescribe.DialysisIrrigation
|
|
3043
|
+ newprescribe.DialysisDialyszers = lastDialysisPrescribe.DialysisDialyszers
|
3033
|
3044
|
newprescribe.Status = 1
|
3034
|
3045
|
|
3035
|
3046
|
err := service.AddSigleRecord(&newprescribe)
|