|
@@ -96,6 +96,11 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
96
|
96
|
monitor_anticoagulant_value := this.GetString("monitor_anticoagulant_value")
|
97
|
97
|
blood_pressure_monitoring_site, _ := this.GetInt64("blood_pressure_monitoring_site")
|
98
|
98
|
complication, _ := this.GetInt64("complication")
|
|
99
|
+ accumulated_blood_volume, _ := this.GetFloat("accumulated_blood_volume")
|
|
100
|
+ blood_temperature, _ := this.GetFloat("blood_temperature")
|
|
101
|
+ urea_monitoring, _ := this.GetFloat("urea_monitoring")
|
|
102
|
+ blood_thickness, _ := this.GetFloat("blood_thickness")
|
|
103
|
+ blood_monitor, _ := this.GetFloat("blood_monitor")
|
99
|
104
|
adminInfo := this.GetMobileAdminUserInfo()
|
100
|
105
|
patient, getPatientErr := service.MobileGetPatientById(adminInfo.Org.Id, patientID)
|
101
|
106
|
if getPatientErr != nil {
|
|
@@ -154,6 +159,11 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
154
|
159
|
MonitorAnticoagulantValue: monitor_anticoagulant_value,
|
155
|
160
|
BloodPressureMonitoringSite: blood_pressure_monitoring_site,
|
156
|
161
|
Complication: complication,
|
|
162
|
+ AccumulatedBloodVolume: accumulated_blood_volume,
|
|
163
|
+ BloodTemperature: blood_temperature,
|
|
164
|
+ UreaMonitoring: urea_monitoring,
|
|
165
|
+ BloodThickness: blood_thickness,
|
|
166
|
+ BloodMonitor: blood_monitor,
|
157
|
167
|
}
|
158
|
168
|
|
159
|
169
|
err := service.CreateMonitor(&record)
|
|
@@ -252,6 +262,11 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
252
|
262
|
monitor_anticoagulant_value := this.GetString("monitor_anticoagulant_value")
|
253
|
263
|
blood_pressure_monitoring_site, _ := this.GetInt64("blood_pressure_monitoring_site")
|
254
|
264
|
complication, _ := this.GetInt64("complication")
|
|
265
|
+ accumulated_blood_volume, _ := this.GetFloat("accumulated_blood_volume")
|
|
266
|
+ blood_temperature, _ := this.GetFloat("blood_temperature")
|
|
267
|
+ urea_monitoring, _ := this.GetFloat("urea_monitoring")
|
|
268
|
+ blood_thickness, _ := this.GetFloat("blood_thickness")
|
|
269
|
+ blood_monitor, _ := this.GetFloat("blood_monitor")
|
255
|
270
|
monitor, err := service.GetMonitor(adminInfo.Org.Id, patientID, id)
|
256
|
271
|
if err != nil {
|
257
|
272
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
@@ -303,6 +318,11 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
303
|
318
|
monitor.MonitorAnticoagulantValue = monitor_anticoagulant_value
|
304
|
319
|
monitor.BloodPressureMonitoringSite = blood_pressure_monitoring_site
|
305
|
320
|
monitor.Complication = complication
|
|
321
|
+ monitor.AccumulatedBloodVolume = accumulated_blood_volume
|
|
322
|
+ monitor.BloodMonitor = blood_monitor
|
|
323
|
+ monitor.UreaMonitoring = urea_monitoring
|
|
324
|
+ monitor.BloodThickness = blood_thickness
|
|
325
|
+ monitor.BloodTemperature = blood_temperature
|
306
|
326
|
err = service.UpdateMonitor(monitor)
|
307
|
327
|
if err != nil {
|
308
|
328
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeMonitorUpdate)
|