Ver código fonte

修改静脉压单位

张保健 4 anos atrás
pai
commit
f0992a5655

+ 6 - 4
controllers/dialysis_api_controller.go Ver arquivo

@@ -3945,13 +3945,14 @@ func (c *DialysisApiController) CreateMonitor() {
3945 3945
 	blood_pressure_type, _ := c.GetInt64("blood_pressure_type", 0)
3946 3946
 	blood_flow_volume, _ := c.GetFloat("blood_flow_volume", 0)
3947 3947
 	venous_pressure, _ := c.GetFloat("venous_pressure", 0)
3948
-	venous_pressure_unit := c.GetString("venous_pressure_unit")
3948
+	venous_pressure_type,_ := c.GetInt64("venous_pressure_type",1)
3949 3949
 	transmembrane_pressure, _ := c.GetFloat("transmembrane_pressure", 0)
3950
-	transmembrane_pressure_unit := c.GetString("transmembrane_pressure_unit")
3950
+	transmembrane_pressure_type,_:= c.GetInt64("transmembrane_pressure_type",1)
3951 3951
 	ultrafiltration_rate, _ := c.GetFloat("ultrafiltration_rate", 0)
3952 3952
 	ultrafiltration_volume, _ := c.GetFloat("ultrafiltration_volume", 0)
3953 3953
 	sodium_concentration, _ := c.GetFloat("sodium_concentration", 0)
3954 3954
 	arterial_pressure, _ := c.GetFloat("arterial_pressure", 0)
3955
+	arterial_pressure_type, _ := c.GetInt64("arterial_pressure_type", 1)
3955 3956
 	dialysate_temperature, _ := c.GetFloat("dialysate_temperature", 0)
3956 3957
 	temperature, _ := c.GetFloat("temperature", 0)
3957 3958
 	replacement_rate, _ := c.GetFloat("replacement_rate", 0)
@@ -3996,13 +3997,14 @@ func (c *DialysisApiController) CreateMonitor() {
3996 3997
 		BloodPressureType:         blood_pressure_type,
3997 3998
 		BloodFlowVolume:           blood_flow_volume,
3998 3999
 		VenousPressure:            venous_pressure,
3999
-		VenousPressureUnit:        venous_pressure_unit,
4000
+		VenousPressureType:        venous_pressure_type,
4000 4001
 		TransmembranePressure:     transmembrane_pressure,
4001
-		TransmembranePressureUnit: transmembrane_pressure_unit,
4002
+		TransmembranePressureType: transmembrane_pressure_type,
4002 4003
 		UltrafiltrationRate:       ultrafiltration_rate,
4003 4004
 		UltrafiltrationVolume:     ultrafiltration_volume,
4004 4005
 		SodiumConcentration:       sodium_concentration,
4005 4006
 		ArterialPressure:          arterial_pressure,
4007
+		ArterialPressureType:      arterial_pressure_type,
4006 4008
 		DialysateTemperature:      dialysate_temperature,
4007 4009
 		Temperature:               temperature,
4008 4010
 		ReplacementRate:           replacement_rate,

+ 9 - 0
controllers/dialysis_record_api_controller.go Ver arquivo

@@ -375,10 +375,13 @@ type EditMonitorParamObject struct {
375 375
 	BreathingRated           float64 `json:"breathing_rated"`
376 376
 	BloodFlowVolume          float64 `json:"blood_flow_volume"`
377 377
 	VenousPressure           float64 `json:"venous_pressure"`
378
+	VenousPressureType       int64 `json:"venous_pressure_type"`
378 379
 	TransmembranePressure    float64 `json:"transmembrane_pressure"`
380
+	TransmembranePressureType int64 `json:"transmembrane_pressure_type"`
379 381
 	UltrafiltrationVolume    float64 `json:"ultrafiltration_volume"`
380 382
 	UltrafiltrationRate      float64 `json:"ultrafiltration_rate"`
381 383
 	ArterialPressure         float64 `json:"arterial_pressure"`
384
+	ArterialPressureType     int64 `json:"arterial_pressure_type"`
382 385
 	SodiumConcentration      float64 `json:"sodium_concentration"`
383 386
 	DialysateTemperature     float64 `json:"dialysate_temperature"`
384 387
 	Temperature              float64 `json:"temperature"`
@@ -475,8 +478,11 @@ func (this *DialysisRecordAPIController) EditMonitor() {
475 478
 			DiastolicBloodPressure:   monitorParam.DiastolicBP,
476 479
 			BloodFlowVolume:          monitorParam.BloodFlowVolume,
477 480
 			VenousPressure:           monitorParam.VenousPressure,
481
+			VenousPressureType:       monitorParam.VenousPressureType,
478 482
 			ArterialPressure:         monitorParam.ArterialPressure,
483
+			ArterialPressureType:     monitorParam.ArterialPressureType,
479 484
 			TransmembranePressure:    monitorParam.TransmembranePressure,
485
+			TransmembranePressureType: monitorParam.TransmembranePressureType,
480 486
 			UltrafiltrationRate:      monitorParam.UltrafiltrationRate,
481 487
 			UltrafiltrationVolume:    monitorParam.UltrafiltrationVolume,
482 488
 			SodiumConcentration:      monitorParam.SodiumConcentration,
@@ -538,8 +544,11 @@ func (this *DialysisRecordAPIController) EditMonitor() {
538 544
 		monitor.DiastolicBloodPressure = monitorParam.DiastolicBP
539 545
 		monitor.BloodFlowVolume = monitorParam.BloodFlowVolume
540 546
 		monitor.VenousPressure = monitorParam.VenousPressure
547
+		monitor.VenousPressureType = monitorParam.VenousPressureType
541 548
 		monitor.ArterialPressure = monitorParam.ArterialPressure
549
+		monitor.ArterialPressureType = monitorParam.ArterialPressureType
542 550
 		monitor.TransmembranePressure = monitorParam.TransmembranePressure
551
+		monitor.TransmembranePressureType = monitorParam.TransmembranePressureType
543 552
 		monitor.UltrafiltrationRate = monitorParam.UltrafiltrationRate
544 553
 		monitor.UltrafiltrationVolume = monitorParam.UltrafiltrationVolume
545 554
 		monitor.SodiumConcentration = monitorParam.SodiumConcentration

+ 13 - 9
controllers/mobile_api_controllers/dialysis_api_controller_extend.go Ver arquivo

@@ -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

+ 3 - 2
models/dialysis.go Ver arquivo

@@ -634,10 +634,11 @@ type MonitoringRecord struct {
634 634
 	Pic                       string  `gorm:"column:pic" json:"pic"`
635 635
 	BloodFlowVolume           float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
636 636
 	VenousPressure            float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
637
-	VenousPressureUnit        string  `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
637
+	VenousPressureType        int64   `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
638 638
 	ArterialPressure          float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
639
+	ArterialPressureType      int64   `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
639 640
 	TransmembranePressure     float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
640
-	TransmembranePressureUnit string  `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
641
+	TransmembranePressureType int64   `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
641 642
 	UltrafiltrationRate       float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
642 643
 	UltrafiltrationVolume     float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
643 644
 	SodiumConcentration       float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`

+ 7 - 2
数据变更脚本.sql Ver arquivo

@@ -84,8 +84,13 @@ INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_nam
84 84
 INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '13','4','dialysate_flow','透析液流量','1',NULL,NULL,'0');
85 85
 
86 86
 
87
-
88
-
87
+--2020-07-15 author 张保健 --
88
+--透中监测修改静脉压类型字段--
89
+ALTER TABLE `test_xt`.`xt_monitoring_record`     CHANGE `venous_pressure_unit` `venous_pressure_type` SMALLINT(2) DEFAULT '1' NOT NULL COMMENT '静脉压类型 1:mmHg 2:kpa';
90
+--透中监测增加动脉压类型字段--
91
+ALTER TABLE `test_xt`.`xt_monitoring_record`     ADD COLUMN `arterial_pressure_type` SMALLINT(2) DEFAULT '1' NULL COMMENT '动脉压类型:1:mmHg 2:kpa' AFTER `arterial_pressure`
92
+--透中监测修改跨膜压类型字段--
93
+ALTER TABLE `test_xt`.`xt_monitoring_record`     CHANGE `venous_pressure_unit` `venous_pressure_type` SMALLINT(2) DEFAULT '1' NOT NULL COMMENT '静脉压类型 1:mmHg 2:kpa';
89 94
 
90 95
 
91 96