|
@@ -86,6 +86,7 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
86
|
86
|
blood_oxygen_saturation := this.GetString("blood_oxygen_saturation")
|
87
|
87
|
result := this.GetString("result")
|
88
|
88
|
monitoringNurse, _ := this.GetInt64("monitoring_nurse")
|
|
89
|
+ heparin, _ := this.GetFloat("heparin")
|
89
|
90
|
|
90
|
91
|
adminInfo := this.GetMobileAdminUserInfo()
|
91
|
92
|
patient, getPatientErr := service.MobileGetPatientById(adminInfo.Org.Id, patientID)
|
|
@@ -136,6 +137,7 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
136
|
137
|
BloodOxygenSaturation: blood_oxygen_saturation,
|
137
|
138
|
Creator: adminInfo.AdminUser.Id,
|
138
|
139
|
Modify: 0,
|
|
140
|
+ Heparin: heparin,
|
139
|
141
|
}
|
140
|
142
|
|
141
|
143
|
err := service.CreateMonitor(&record)
|
|
@@ -224,6 +226,7 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
224
|
226
|
monitoringNurse, _ := this.GetInt64("monitoring_nurse")
|
225
|
227
|
conductivity, _ := this.GetFloat("conductivity")
|
226
|
228
|
displacement_flow_quantity, _ := this.GetFloat("displacement_flow_quantity")
|
|
229
|
+ heparin, _ := this.GetFloat("heparin")
|
227
|
230
|
|
228
|
231
|
adminInfo := this.GetMobileAdminUserInfo()
|
229
|
232
|
|
|
@@ -279,6 +282,7 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
279
|
282
|
monitor.DisplacementFlowQuantity = displacement_flow_quantity
|
280
|
283
|
monitor.BloodOxygenSaturation = blood_oxygen_saturation
|
281
|
284
|
monitor.Modify = adminInfo.AdminUser.Id
|
|
285
|
+ monitor.Heparin = heparin
|
282
|
286
|
|
283
|
287
|
err = service.UpdateMonitor(monitor)
|
284
|
288
|
if err != nil {
|