|
@@ -67,10 +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
|
|
- venousPressureUnit := this.GetString("venous_pressure_unit")
|
|
70
|
+ venousPressureType,_ := this.GetInt64("venous_pressure_type",1)
|
71
|
71
|
arterialPressure, _ := this.GetFloat("arterial_pressure")
|
72
|
|
- transmembranePressure, _ := this.GetFloat("transmembrane_pressure")
|
73
|
|
- transmembranePressureUnit := this.GetString("transmembrane_pressure_unit")
|
|
72
|
+ arterialPressureType, _ := this.GetInt64("arterial_pressure_type",1)
|
|
73
|
+ transmembranePressure, _ := this.GetFloat("transmembrane_pressure",0)
|
|
74
|
+ transmembranePressureType,_ := this.GetInt64("transmembrane_pressure_type",1)
|
74
|
75
|
ultrafiltrationRate, _ := this.GetFloat("ultrafiltration_rate")
|
75
|
76
|
ultrafiltrationVolume, _ := this.GetFloat("ultrafiltration_volume")
|
76
|
77
|
sodiumConcentration, _ := this.GetFloat("sodium_concentration")
|
|
@@ -114,10 +115,11 @@ func (this *DialysisAPIController) AddMonitorRecord() {
|
114
|
115
|
BloodPressureType: int64(BPType),
|
115
|
116
|
BloodFlowVolume: bloodFlowVolume,
|
116
|
117
|
VenousPressure: venousPressure,
|
117
|
|
- VenousPressureUnit: venousPressureUnit,
|
|
118
|
+ VenousPressureType: venousPressureType,
|
118
|
119
|
ArterialPressure: arterialPressure,
|
|
120
|
+ ArterialPressureType: arterialPressureType,
|
119
|
121
|
TransmembranePressure: transmembranePressure,
|
120
|
|
- TransmembranePressureUnit: transmembranePressureUnit,
|
|
122
|
+ TransmembranePressureType: transmembranePressureType,
|
121
|
123
|
UltrafiltrationRate: ultrafiltrationRate,
|
122
|
124
|
UltrafiltrationVolume: ultrafiltrationVolume,
|
123
|
125
|
SodiumConcentration: sodiumConcentration,
|
|
@@ -209,10 +211,11 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
209
|
211
|
BPType, _ := this.GetInt("bp_type")
|
210
|
212
|
bloodFlowVolume, _ := this.GetFloat("blood_flow_volume")
|
211
|
213
|
venousPressure, _ := this.GetFloat("venous_pressure")
|
212
|
|
- venousPressureUnit := this.GetString("venous_pressure_unit")
|
|
214
|
+ venousPressureType,_ := this.GetInt64("venous_pressure_type",1)
|
213
|
215
|
arterialPressure, _ := this.GetFloat("arterial_pressure")
|
|
216
|
+ arterialPressureType, _ := this.GetInt64("arterial_pressure",1)
|
214
|
217
|
transmembranePressure, _ := this.GetFloat("transmembrane_pressure")
|
215
|
|
- transmembranePressureUnit := this.GetString("transmembrane_pressure_unit")
|
|
218
|
+ transmembranePressureType,_ := this.GetInt64("transmembrane_pressure_type",1)
|
216
|
219
|
ultrafiltrationRate, _ := this.GetFloat("ultrafiltration_rate")
|
217
|
220
|
ultrafiltrationVolume, _ := this.GetFloat("ultrafiltration_volume")
|
218
|
221
|
sodiumConcentration, _ := this.GetFloat("sodium_concentration")
|
|
@@ -264,10 +267,11 @@ func (this *DialysisAPIController) EditMonitorRecord() {
|
264
|
267
|
monitor.BloodPressureType = int64(BPType)
|
265
|
268
|
monitor.BloodFlowVolume = bloodFlowVolume
|
266
|
269
|
monitor.VenousPressure = venousPressure
|
267
|
|
- monitor.VenousPressureUnit = venousPressureUnit
|
|
270
|
+ monitor.VenousPressureType = venousPressureType
|
268
|
271
|
monitor.ArterialPressure = arterialPressure
|
|
272
|
+ monitor.ArterialPressureType = arterialPressureType
|
269
|
273
|
monitor.TransmembranePressure = transmembranePressure
|
270
|
|
- monitor.TransmembranePressureUnit = transmembranePressureUnit
|
|
274
|
+ monitor.TransmembranePressureType = transmembranePressureType
|
271
|
275
|
monitor.UltrafiltrationRate = ultrafiltrationRate
|
272
|
276
|
monitor.UltrafiltrationVolume = ultrafiltrationVolume
|
273
|
277
|
monitor.SodiumConcentration = sodiumConcentration
|