|
@@ -67,11 +67,11 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
67
|
67
|
BPType, _ := this.GetInt("bp_type")
|
68
|
68
|
bloodFlowVolume, _ := this.GetFloat("blood_flow_volume")
|
69
|
69
|
venousPressure, _ := this.GetFloat("venous_pressure")
|
70
|
|
- venousPressureType,_ := this.GetInt64("venous_pressure_type",1)
|
|
70
|
+ venousPressureType, _ := this.GetInt64("venous_pressure_type", 1)
|
71
|
71
|
arterialPressure, _ := this.GetFloat("arterial_pressure")
|
72
|
|
- arterialPressureType, _ := this.GetInt64("arterial_pressure_type",1)
|
73
|
|
- transmembranePressure, _ := this.GetFloat("transmembrane_pressure",0)
|
74
|
|
- transmembranePressureType,_ := this.GetInt64("transmembrane_pressure_type",1)
|
|
72
|
+ arterialPressureType, _ := this.GetInt64("arterial_pressure_type", 1)
|
|
73
|
+ transmembranePressure, _ := this.GetFloat("transmembrane_pressure", 0)
|
|
74
|
+ transmembranePressureType, _ := this.GetInt64("transmembrane_pressure_type", 1)
|
75
|
75
|
ultrafiltrationRate, _ := this.GetFloat("ultrafiltration_rate")
|
76
|
76
|
ultrafiltrationVolume, _ := this.GetFloat("ultrafiltration_volume")
|
77
|
77
|
sodiumConcentration, _ := this.GetFloat("sodium_concentration")
|
|
@@ -89,7 +89,7 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
89
|
89
|
monitoringNurse, _ := this.GetInt64("monitoring_nurse")
|
90
|
90
|
heparin, _ := this.GetFloat("heparin")
|
91
|
91
|
dialysate_flow, _ := this.GetFloat("dialysate_flow")
|
92
|
|
-
|
|
92
|
+ urr := this.GetString("urr")
|
93
|
93
|
adminInfo := this.GetMobileAdminUserInfo()
|
94
|
94
|
patient, getPatientErr := service.MobileGetPatientById(adminInfo.Org.Id, patientID)
|
95
|
95
|
if getPatientErr != nil {
|
|
@@ -142,6 +142,7 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
142
|
142
|
Modify: 0,
|
143
|
143
|
Heparin: heparin,
|
144
|
144
|
DialysateFlow: dialysate_flow,
|
|
145
|
+ Urr: urr,
|
145
|
146
|
}
|
146
|
147
|
|
147
|
148
|
err := service.CreateMonitor(&record)
|
|
@@ -211,11 +212,11 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
211
|
212
|
BPType, _ := this.GetInt("bp_type")
|
212
|
213
|
bloodFlowVolume, _ := this.GetFloat("blood_flow_volume")
|
213
|
214
|
venousPressure, _ := this.GetFloat("venous_pressure")
|
214
|
|
- venousPressureType,_ := this.GetInt64("venous_pressure_type",1)
|
|
215
|
+ venousPressureType, _ := this.GetInt64("venous_pressure_type", 1)
|
215
|
216
|
arterialPressure, _ := this.GetFloat("arterial_pressure")
|
216
|
|
- arterialPressureType, _ := this.GetInt64("arterial_pressure",1)
|
|
217
|
+ arterialPressureType, _ := this.GetInt64("arterial_pressure", 1)
|
217
|
218
|
transmembranePressure, _ := this.GetFloat("transmembrane_pressure")
|
218
|
|
- transmembranePressureType,_ := this.GetInt64("transmembrane_pressure_type",1)
|
|
219
|
+ transmembranePressureType, _ := this.GetInt64("transmembrane_pressure_type", 1)
|
219
|
220
|
ultrafiltrationRate, _ := this.GetFloat("ultrafiltration_rate")
|
220
|
221
|
ultrafiltrationVolume, _ := this.GetFloat("ultrafiltration_volume")
|
221
|
222
|
sodiumConcentration, _ := this.GetFloat("sodium_concentration")
|
|
@@ -233,7 +234,7 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
233
|
234
|
displacement_flow_quantity, _ := this.GetFloat("displacement_flow_quantity")
|
234
|
235
|
heparin, _ := this.GetFloat("heparin")
|
235
|
236
|
dialysate_flow, _ := this.GetFloat("dialysate_flow")
|
236
|
|
-
|
|
237
|
+ urr := this.GetString("urr")
|
237
|
238
|
adminInfo := this.GetMobileAdminUserInfo()
|
238
|
239
|
|
239
|
240
|
monitor, err := service.GetMonitor(adminInfo.Org.Id, patientID, id)
|
|
@@ -281,7 +282,7 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
281
|
282
|
monitor.Modify = adminInfo.AdminUser.Id
|
282
|
283
|
monitor.Heparin = heparin
|
283
|
284
|
monitor.DialysateFlow = dialysate_flow
|
284
|
|
-
|
|
285
|
+ monitor.Urr = urr
|
285
|
286
|
err = service.UpdateMonitor(monitor)
|
286
|
287
|
if err != nil {
|
287
|
288
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeMonitorUpdate)
|