瀏覽代碼

添加字段

张保健 4 年之前
父節點
當前提交
980263491e

+ 16 - 7
controllers/dialysis_api_controller.go 查看文件

138
 	safe_package, _ := c.GetInt64("package", 0)
138
 	safe_package, _ := c.GetInt64("package", 0)
139
 	a_liquid, _ := c.GetInt64("a_liquid", 0)
139
 	a_liquid, _ := c.GetInt64("a_liquid", 0)
140
 
140
 
141
-	var prescription_doctor int64
141
+	// var prescription_doctor int64
142
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.CurrentOrgId, adminUserInfo.AdminUser.Id, adminUserInfo.CurrentAppId)
142
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.CurrentOrgId, adminUserInfo.AdminUser.Id, adminUserInfo.CurrentAppId)
143
 	//template, _ := service.GetOrgInfoTemplate(adminUserInfo.CurrentOrgId)
143
 	//template, _ := service.GetOrgInfoTemplate(adminUserInfo.CurrentOrgId)
144
 
144
 
155
 	//	}
155
 	//	}
156
 	//}
156
 	//}
157
 
157
 
158
-	if appRole.UserType == 2 || appRole.UserType == 1 {
159
-		prescription_doctor = appRole.AdminUserId
160
-	} else {
161
-		prescription_doctor = 0
162
-	}
158
+	
163
 
159
 
164
 	prescription := models.DialysisPrescription{
160
 	prescription := models.DialysisPrescription{
165
 		UserOrgId:                 adminUserInfo.CurrentOrgId,
161
 		UserOrgId:                 adminUserInfo.CurrentOrgId,
190
 		DialysateTemperature:       dialysate_temperature,
186
 		DialysateTemperature:       dialysate_temperature,
191
 		Conductivity:               conductivity,
187
 		Conductivity:               conductivity,
192
 		Remark:                     remark,
188
 		Remark:                     remark,
193
-		PrescriptionDoctor:         prescription_doctor,
194
 		Status:                     1,
189
 		Status:                     1,
195
 		CreatedTime:                time.Now().Unix(),
190
 		CreatedTime:                time.Now().Unix(),
196
 		UpdatedTime:                time.Now().Unix(),
191
 		UpdatedTime:                time.Now().Unix(),
223
 		ALiquid:                    a_liquid,
218
 		ALiquid:                    a_liquid,
224
 	}
219
 	}
225
 
220
 
221
+	if appRole.UserType == 2 || appRole.UserType == 1 {
222
+		prescription.PrescriptionDoctor = appRole.AdminUserId
223
+	}
224
+
226
 	_, dialysisPrescription := service.FindDialysisPrescriptionByReordDate(patient, recordDate.Unix(), adminUserInfo.CurrentOrgId)
225
 	_, dialysisPrescription := service.FindDialysisPrescriptionByReordDate(patient, recordDate.Unix(), adminUserInfo.CurrentOrgId)
227
 	if dialysisPrescription.ID == 0 { //新增
226
 	if dialysisPrescription.ID == 0 { //新增
228
 		if mode_id > 0 {
227
 		if mode_id > 0 {
3069
 	assessment.CvcA = data.CvcA
3068
 	assessment.CvcA = data.CvcA
3070
 	assessment.CvcV = data.CvcV
3069
 	assessment.CvcV = data.CvcV
3071
 	assessment.Channel = data.Channel
3070
 	assessment.Channel = data.Channel
3071
+	assessment.ReturnBlood = data.ReturnBlood
3072
+	assessment.RehydrationVolume = data.RehydrationVolume
3073
+	assessment.DialysisDuring = data.DialysisDuring
3074
+	assessment.StrokeVolume = data.StrokeVolume
3075
+	assessment.BloodFlow = data.BloodFlow
3076
+	assessment.SealingFluidDispose = data.SealingFluidDispose
3077
+	assessment.SealingFluidSpecial = data.SealingFluidSpecial
3078
+
3072
 
3079
 
3073
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.CurrentOrgId, adminUserInfo.AdminUser.Id, adminUserInfo.CurrentAppId)
3080
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.CurrentOrgId, adminUserInfo.AdminUser.Id, adminUserInfo.CurrentAppId)
3074
 
3081
 
3183
 	ductus_arantii_other := c.GetString("ductus_arantii_other")
3190
 	ductus_arantii_other := c.GetString("ductus_arantii_other")
3184
 	machine_type := c.GetString("machine_type")
3191
 	machine_type := c.GetString("machine_type")
3185
 	puncture_needle := c.GetString("puncture_needle")
3192
 	puncture_needle := c.GetString("puncture_needle")
3193
+	humor_excessive_symptom, _ := c.GetInt64("humor_excessive_symptom", 0)
3186
 
3194
 
3187
 	assessmentBeforeDislysis := models.PredialysisEvaluation{
3195
 	assessmentBeforeDislysis := models.PredialysisEvaluation{
3188
 		DialysisCount:                  dialysis_count,
3196
 		DialysisCount:                  dialysis_count,
3233
 		DuctusArantiiOther:             ductus_arantii_other,
3241
 		DuctusArantiiOther:             ductus_arantii_other,
3234
 		MachineType:                    machine_type,
3242
 		MachineType:                    machine_type,
3235
 		PunctureNeedle:                 puncture_needle,
3243
 		PunctureNeedle:                 puncture_needle,
3244
+		HumorExcessiveSymptom:			humor_excessive_symptom,
3236
 	}
3245
 	}
3237
 
3246
 
3238
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.CurrentOrgId, adminUserInfo.AdminUser.Id, adminUserInfo.CurrentAppId)
3247
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.CurrentOrgId, adminUserInfo.AdminUser.Id, adminUserInfo.CurrentAppId)

+ 18 - 6
controllers/mobile_api_controllers/dialysis_api_controller.go 查看文件

798
 	cvc_a, _ := c.GetFloat("cvc_a", 0)
798
 	cvc_a, _ := c.GetFloat("cvc_a", 0)
799
 	cvc_v, _ := c.GetFloat("cvc_v", 0)
799
 	cvc_v, _ := c.GetFloat("cvc_v", 0)
800
 	channels, _ := c.GetInt64("channel", 0)
800
 	channels, _ := c.GetInt64("channel", 0)
801
+	return_blood,_ := c.GetInt64("return_blood", 0)
802
+	rehydration_volume,_ := c.GetInt64("rehydration_volume", 0)
803
+	dialysis_during,_ := c.GetInt64("dialysis_during", 0)
804
+	stroke_volume,_ := c.GetInt64("stroke_volume", 0)
805
+	blood_flow,_ := c.GetInt64("blood_flow", 0)
806
+	sealing_fluid_dispose,_ := c.GetInt64("sealing_fluid_dispose", 0)
807
+	sealing_fluid_special := c.GetString("sealing_fluid_special")
801
 
808
 
802
 	if id <= 0 {
809
 	if id <= 0 {
803
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
810
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
878
 		CvcA:                         cvc_a,
885
 		CvcA:                         cvc_a,
879
 		CvcV:                         cvc_v,
886
 		CvcV:                         cvc_v,
880
 		Channel:                      channels,
887
 		Channel:                      channels,
888
+		ReturnBlood:				  return_blood,
889
+		RehydrationVolume: 			  rehydration_volume,
890
+		DialysisDuring:			  	  dialysis_during,
891
+		StrokeVolume:				  stroke_volume,
892
+		BloodFlow:					  blood_flow,
893
+		SealingFluidDispose:		  sealing_fluid_dispose,
894
+		SealingFluidSpecial:		  sealing_fluid_special,
881
 	}
895
 	}
882
 
896
 
883
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.Org.Id, adminUserInfo.AdminUser.Id, adminUserInfo.App.Id)
897
 	appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.Org.Id, adminUserInfo.AdminUser.Id, adminUserInfo.App.Id)
972
 	calcium, _ := c.GetFloat("calcium", 0)
986
 	calcium, _ := c.GetFloat("calcium", 0)
973
 	bicarbonate, _ := c.GetFloat("bicarbonate", 0)
987
 	bicarbonate, _ := c.GetFloat("bicarbonate", 0)
974
 	glucose, _ := c.GetFloat("glucose", 0)
988
 	glucose, _ := c.GetFloat("glucose", 0)
975
-	prescription_doctor, _ := c.GetInt64("prescription_doctor", 0)
989
+	// prescription_doctor, _ := c.GetInt64("prescription_doctor", 0)
976
 
990
 
977
 	// dry_weight, _ := c.GetFloat("dry_weight", 0)
991
 	// dry_weight, _ := c.GetFloat("dry_weight", 0)
978
 	dialysate_flow, _ := c.GetFloat("dialysate_flow", 0)
992
 	dialysate_flow, _ := c.GetFloat("dialysate_flow", 0)
1053
 		// DryWeight:                 dry_weight,
1067
 		// DryWeight:                 dry_weight,
1054
 		DialysateFlow:              dialysate_flow,
1068
 		DialysateFlow:              dialysate_flow,
1055
 		DialysateTemperature:       dialysate_temperature,
1069
 		DialysateTemperature:       dialysate_temperature,
1056
-		PrescriptionDoctor:         prescription_doctor,
1070
+		// PrescriptionDoctor:         prescription_doctor,
1057
 		ReplacementTotal:           replacement_total,
1071
 		ReplacementTotal:           replacement_total,
1058
 		Conductivity:               conductivity,
1072
 		Conductivity:               conductivity,
1059
 		Remark:                     remark,
1073
 		Remark:                     remark,
1095
 		//	//service.ModifyScheduleMode(mode_id, patient.ID, recordDate.Unix(), adminUserInfo.Org.Id)
1109
 		//	//service.ModifyScheduleMode(mode_id, patient.ID, recordDate.Unix(), adminUserInfo.Org.Id)
1096
 		//}
1110
 		//}
1097
 		if appRole.UserType == 2 || appRole.UserType == 1 {
1111
 		if appRole.UserType == 2 || appRole.UserType == 1 {
1098
-			prescription_doctor = adminUserInfo.AdminUser.Id
1099
-		} else {
1100
-			prescription_doctor = 0
1101
-		}
1112
+			prescription.PrescriptionDoctor = adminUserInfo.AdminUser.Id
1113
+		} 
1102
 
1114
 
1103
 		prescription.Creater = adminUserInfo.AdminUser.Id
1115
 		prescription.Creater = adminUserInfo.AdminUser.Id
1104
 		err := service.AddSigleRecord(&prescription)
1116
 		err := service.AddSigleRecord(&prescription)

+ 6 - 0
controllers/mobile_api_controllers/patient_api_controller.go 查看文件

852
 
852
 
853
 	code := predialysisEvaluationFormData(&evaluation, c.Ctx.Input.RequestBody)
853
 	code := predialysisEvaluationFormData(&evaluation, c.Ctx.Input.RequestBody)
854
 
854
 
855
+
855
 	if code > 0 {
856
 	if code > 0 {
856
 		c.ServeFailJSONWithSGJErrorCode(code)
857
 		c.ServeFailJSONWithSGJErrorCode(code)
857
 		return
858
 		return
1652
 		evaluation.PunctureNeedle = punctureNeedle
1653
 		evaluation.PunctureNeedle = punctureNeedle
1653
 	}
1654
 	}
1654
 
1655
 
1656
+	if dataBody["humor_excessive_symptom"] != nil && reflect.TypeOf(dataBody["humor_excessive_symptom"]).String() == "float64" {
1657
+		humor_excessive_symptom := int64(dataBody["humor_excessive_symptom"].(float64))
1658
+		evaluation.HumorExcessiveSymptom = humor_excessive_symptom
1659
+	}
1660
+
1655
 	return
1661
 	return
1656
 }
1662
 }
1657
 
1663
 

+ 6 - 6
controllers/schedule_api_controller.go 查看文件

761
 					err_log := models.ExportErrLog{
761
 					err_log := models.ExportErrLog{
762
 						LogType:    2,
762
 						LogType:    2,
763
 						UserOrgId:  this.GetAdminUserInfo().CurrentOrgId,
763
 						UserOrgId:  this.GetAdminUserInfo().CurrentOrgId,
764
-						ErrMsg:     "第" + strconv.FormatInt(int64(schMapM["index"].(float64)), 10) + "行,第" + schMapM["row"].(string) + "列,患者姓名为\"" + name + "\"在系统中不存在,请在系统中添加该病人",
764
+						ErrMsg:     "第" + strconv.FormatInt(int64(schMapM["index"].(float64)), 10) + "行,第" + schMapM["row"].(string) + "列,患者姓名为\"" + name + "\"在系统中不存在,请在系统中添加该患者",
765
 						Status:     1,
765
 						Status:     1,
766
 						CreateTime: time.Now().Unix(),
766
 						CreateTime: time.Now().Unix(),
767
 						UpdateTime: time.Now().Unix(),
767
 						UpdateTime: time.Now().Unix(),
1150
 		errLogs, _ := service.FindSchedualExportLog(this.GetAdminUserInfo().CurrentOrgId, export_time)
1150
 		errLogs, _ := service.FindSchedualExportLog(this.GetAdminUserInfo().CurrentOrgId, export_time)
1151
 
1151
 
1152
 		if len(schedules) > 0 {
1152
 		if len(schedules) > 0 {
1153
-			schedule_date := this.GetString("date")
1153
+			schedule_date := time.Now().Format("2006-01-02")
1154
 			date, _ := utils.ParseTimeStringToTime("2006-01-02", schedule_date)
1154
 			date, _ := utils.ParseTimeStringToTime("2006-01-02", schedule_date)
1155
 			clear_schedule_date := date.Unix() //根据日期去清除,该日期以及未来的排班数据
1155
 			clear_schedule_date := date.Unix() //根据日期去清除,该日期以及未来的排班数据
1156
 			err := service.UpdateScheduleStatus(clear_schedule_date, this.GetAdminUserInfo().CurrentOrgId)
1156
 			err := service.UpdateScheduleStatus(clear_schedule_date, this.GetAdminUserInfo().CurrentOrgId)
1176
 					err_log := models.ExportErrLog{
1176
 					err_log := models.ExportErrLog{
1177
 						LogType:   2,
1177
 						LogType:   2,
1178
 						UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1178
 						UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1179
-						ErrMsg: "当前日期(" + this.GetString("date") + " " + GetWeekString(time.Now().Weekday().String()) +
1179
+						ErrMsg: "当前日期(" + time.Now().Format("2006-01-02") + " " + GetWeekString(time.Now().Weekday().String()) +
1180
 							")及以前的排班数据" + strconv.FormatInt(int64(failed_total), 10) + "条,不执行导入",
1180
 							")及以前的排班数据" + strconv.FormatInt(int64(failed_total), 10) + "条,不执行导入",
1181
 						Status:     1,
1181
 						Status:     1,
1182
 						CreateTime: time.Now().Unix(),
1182
 						CreateTime: time.Now().Unix(),
1210
 					err_log := models.ExportErrLog{
1210
 					err_log := models.ExportErrLog{
1211
 						LogType:   2,
1211
 						LogType:   2,
1212
 						UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1212
 						UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1213
-						ErrMsg: "当前日期(" + this.GetString("date") + " " + GetWeekString(time.Now().Weekday().String()) +
1213
+						ErrMsg: "当前日期(" + time.Now().Format("2006-01-02") + " " + GetWeekString(time.Now().Weekday().String()) +
1214
 							")及以前的排班数据" + strconv.FormatInt(int64(failed_total), 10) + "条,不执行导入",
1214
 							")及以前的排班数据" + strconv.FormatInt(int64(failed_total), 10) + "条,不执行导入",
1215
 						Status:     1,
1215
 						Status:     1,
1216
 						CreateTime: time.Now().Unix(),
1216
 						CreateTime: time.Now().Unix(),
1245
 				err_log := models.ExportErrLog{
1245
 				err_log := models.ExportErrLog{
1246
 					LogType:   2,
1246
 					LogType:   2,
1247
 					UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1247
 					UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1248
-					ErrMsg: "当前日期(" + this.GetString("date") + " " + GetWeekString(time.Now().Weekday().String()) +
1248
+					ErrMsg: "当前日期(" + time.Now().Format("2006-01-02") + " " + GetWeekString(time.Now().Weekday().String()) +
1249
 						")及以前的排班数据" + strconv.FormatInt(int64(failed_total), 10) + "条,不执行导入",
1249
 						")及以前的排班数据" + strconv.FormatInt(int64(failed_total), 10) + "条,不执行导入",
1250
 					Status:     1,
1250
 					Status:     1,
1251
 					CreateTime: time.Now().Unix(),
1251
 					CreateTime: time.Now().Unix(),
1319
 						LogType:   3,
1319
 						LogType:   3,
1320
 						UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1320
 						UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
1321
 						//ErrMsg:     "第" + strconv.FormatInt(int64(schMapM["index"].(float64)), 10) + "行,第" + schMapM["row"].(string) + "列的姓名在系统中不存在,请在系统中添加该病人",
1321
 						//ErrMsg:     "第" + strconv.FormatInt(int64(schMapM["index"].(float64)), 10) + "行,第" + schMapM["row"].(string) + "列的姓名在系统中不存在,请在系统中添加该病人",
1322
-						ErrMsg: "第" + strconv.FormatInt(int64(schMapM["index"].(float64)), 10) + "行,第" + schMapM["row"].(string) + "列患者姓名为\"" + name + "\"在系统中不存在,请在系统中添加该病人",
1322
+						ErrMsg: "第" + strconv.FormatInt(int64(schMapM["index"].(float64)), 10) + "行,第" + schMapM["row"].(string) + "列患者姓名为\"" + name + "\"在系统中不存在,请在系统中添加该患者",
1323
 
1323
 
1324
 						Status:     1,
1324
 						Status:     1,
1325
 						CreateTime: time.Now().Unix(),
1325
 						CreateTime: time.Now().Unix(),

+ 8 - 0
models/dialysis.go 查看文件

265
 	LastPostDialysisOther          string  `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
265
 	LastPostDialysisOther          string  `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
266
 	SymptomBeforeDialysisOther     string  `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
266
 	SymptomBeforeDialysisOther     string  `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
267
 	DialysisInterphaseOther        string  `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
267
 	DialysisInterphaseOther        string  `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
268
+	HumorExcessiveSymptom		   int64   `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom"`
268
 }
269
 }
269
 
270
 
270
 func (PredialysisEvaluation) TableName() string {
271
 func (PredialysisEvaluation) TableName() string {
550
 	DialysisIntakesUnit             int64   `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
551
 	DialysisIntakesUnit             int64   `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
551
 	CvcA                            float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
552
 	CvcA                            float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
552
 	CvcV                            float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
553
 	CvcV                            float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
554
+	ReturnBlood                     int64   `gorm:"column:return_blood" json:"return_blood" form:"return_blood"`
555
+	RehydrationVolume               int64   `gorm:"column:rehydration_volume" json:"rehydration_volume" form:"rehydration_volume"`
556
+	DialysisDuring               	int64   `gorm:"column:dialysis_during" json:"dialysis_during" form:"dialysis_during"`
557
+	StrokeVolume               		int64   `gorm:"column:stroke_volume" json:"stroke_volume" form:"stroke_volume"`
553
 	Channel                         int64   `gorm:"column:channel" json:"channel" form:"channel"`
558
 	Channel                         int64   `gorm:"column:channel" json:"channel" form:"channel"`
559
+	BloodFlow                       int64   `gorm:"column:blood_flow" json:"blood_flow" form:"blood_flow"`
560
+	SealingFluidDispose             int64   `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
561
+	SealingFluidSpecial             string  `gorm:"column:sealing_fluid_special" json:"sealing_fluid_special" form:"sealing_fluid_special"`
554
 }
562
 }
555
 
563
 
556
 func (AssessmentAfterDislysis) TableName() string {
564
 func (AssessmentAfterDislysis) TableName() string {

+ 2 - 0
service/dialysis_service.go 查看文件

610
 		// Preload("DeviceZone", "status = 1 AND org_id = ?", orgID).
610
 		// Preload("DeviceZone", "status = 1 AND org_id = ?", orgID).
611
 		Preload("TreatmentMode", "status = 1").
611
 		Preload("TreatmentMode", "status = 1").
612
 		Preload("DialysisOrder", "status = 1 AND user_org_id = ?", orgID).
612
 		Preload("DialysisOrder", "status = 1 AND user_org_id = ?", orgID).
613
+		Preload("AssessmentBeforeDislysis", "status = 1 AND user_org_id = ?", orgID).
614
+		Preload("Prescription", "status = 1 AND user_org_id = ?", orgID).
613
 		// Preload("DialysisOrder.MonitoringRecords", "status = 1 AND user_org_id = ?", orgID).
615
 		// Preload("DialysisOrder.MonitoringRecords", "status = 1 AND user_org_id = ?", orgID).
614
 		Where("status = 1 AND user_org_id = ?", orgID)
616
 		Where("status = 1 AND user_org_id = ?", orgID)
615
 	if scheduleDate != 0 {
617
 	if scheduleDate != 0 {

+ 60 - 0
数据变更脚本.sql 查看文件

14
 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','3','humor_excessive_symptom','体液过多症状','1',NULL,NULL,'0');
14
 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','3','humor_excessive_symptom','体液过多症状','1',NULL,NULL,'0');
15
 
15
 
16
 
16
 
17
+--2020-06-19 author 张保健 --
18
+--透后评估添加回血字段--
19
+ALTER TABLE `sgj_xt`.`xt_assessment_after_dislysis`     ADD COLUMN `return_blood` INT(8) DEFAULT '0' NULL COMMENT '回血' AFTER `channel`;
20
+--显示配置里添加回血--
21
+INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '0','5','return_blood','回血','2',NULL,NULL,'0');
22
+--添加显示回血的机构 org_id为要显示的机构--
23
+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','5','return_blood','回血','1',NULL,NULL,'0');
24
+
25
+--透后评估添加补液量字段--
26
+ALTER TABLE `sgj_xt`.`xt_assessment_after_dislysis`     ADD COLUMN `rehydration_volume` INT(8) DEFAULT '0' NULL COMMENT '补液量' AFTER `return_blood`;
27
+--显示配置里添加补液量--
28
+INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '0','5','rehydration_volume','补液量','2',NULL,NULL,'0');
29
+--添加显示补液量的机构 org_id为要显示的机构--
30
+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','5','rehydration_volume','补液量','1',NULL,NULL,'0');
31
+
32
+--透后评估添加透析中进食字段--
33
+ALTER TABLE `sgj_xt`.`xt_assessment_after_dislysis`     ADD COLUMN `dialysis_during` INT(8) DEFAULT '0' NULL COMMENT '透析中进食' AFTER `rehydration_volume`;
34
+--显示配置里添加透析中进食--
35
+INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '0','5','dialysis_during','透析中进食','2',NULL,NULL,'0');
36
+--添加显示透析中进食的机构 org_id为要显示的机构--
37
+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','5','dialysis_during','透析中进食','1',NULL,NULL,'0');
38
+
39
+--透后评估添加出量字段--
40
+ALTER TABLE `sgj_xt`.`xt_assessment_after_dislysis`     ADD COLUMN `stroke_volume` INT(8) DEFAULT '0' NULL COMMENT '出量' AFTER `dialysis_during`;
41
+--显示配置里添加出量--
42
+INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '0','5','stroke_volume','出量','2',NULL,NULL,'0');
43
+--添加显示出量的机构 org_id为要显示的机构--
44
+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','5','stroke_volume','出量','1',NULL,NULL,'0');
45
+
46
+
47
+--2020-06-22 author 张保健 --
48
+--透后评估添加血流量字段--
49
+ALTER TABLE `sgj_xt`.`xt_assessment_after_dislysis`     ADD COLUMN `blood_flow` TINYINT(3) DEFAULT '0' NULL COMMENT '血流量' AFTER `stroke_volume`;
50
+--数据字典表里添加血流量--
51
+INSERT INTO `sgj_xt`.`xt_data_config`(`parent_id`,`module`,`org_id`,`name`,`field_name`,`value`,`create_time`,`update_time`,`create_user_id`,`status`,`remark`,`delete_id_system`,`title`,`content`,`orders`) VALUES ( '0','hemodialysis','0','血流量','blood_flow','0','2020-06-17 16:56:00','2020-06-17 16:56:00','0','1',NULL,'0',NULL,NULL,'0');
52
+--数据字典表里添加血流量配置项,parent_id为上条语句的id--
53
+INSERT INTO `sgj_xt`.`xt_data_config`(`parent_id`,`module`,`org_id`,`name`,`field_name`,`value`,`create_time`,`update_time`,`create_user_id`,`status`,`remark`,`delete_id_system`,`title`,`content`,`orders`) VALUES ( '2006','hemodialysis','0','充足',NULL,'1','2020-06-17 16:00:00','2020-06-17 16:00:00','0','1',NULL,'0',NULL,NULL,'0');
54
+INSERT INTO `sgj_xt`.`xt_data_config`(`parent_id`,`module`,`org_id`,`name`,`field_name`,`value`,`create_time`,`update_time`,`create_user_id`,`status`,`remark`,`delete_id_system`,`title`,`content`,`orders`) VALUES ( '2006','hemodialysis','0','一般',NULL,'2','2020-06-17 16:00:00','2020-06-17 16:00:00','0','1',NULL,'0',NULL,NULL,'0');
55
+INSERT INTO `sgj_xt`.`xt_data_config`(`parent_id`,`module`,`org_id`,`name`,`field_name`,`value`,`create_time`,`update_time`,`create_user_id`,`status`,`remark`,`delete_id_system`,`title`,`content`,`orders`) VALUES ( '2006','hemodialysis','0','差',NULL,'3','2020-06-17 16:00:00','2020-06-17 16:00:00','0','1',NULL,'0',NULL,NULL,'0');
56
+--显示配置里添加血流量--
57
+INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '0','5','blood_flow','血流量','2',NULL,NULL,'0');
58
+--添加显示血流量的机构 org_id为要显示的机构--
59
+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','5','blood_flow','血流量','1',NULL,NULL,'0');
60
+
61
+
62
+--2020-06-23 author 张保健 --
63
+--透后评估添加封管液配置和封管液特殊字段--
64
+ALTER TABLE `sgj_xt`.`xt_assessment_after_dislysis`     ADD COLUMN `sealing_fluid_dispose` TINYINT(3) DEFAULT '0' NULL COMMENT '封管液配置' AFTER `blood_flow`,     ADD COLUMN `sealing_fluid_special` VARCHAR(100) NULL COMMENT '封管液特殊' AFTER `sealing_fluid_dispose`;
65
+
66
+--数据字典表里添加封管液配置--
67
+INSERT INTO `sgj_xt`.`xt_data_config`(`parent_id`,`module`,`org_id`,`name`,`field_name`,`value`,`create_time`,`update_time`,`create_user_id`,`status`,`remark`,`delete_id_system`,`title`,`content`,`orders`) VALUES ( '0','hemodialysis','0','封管液配置','sealing_fluid_dispose','0','2020-06-17 16:56:00','2020-06-17 16:56:00','0','1',NULL,'0',NULL,NULL,'0');
68
+--数据字典表里添加体液过多症状配置项,parent_id为上条语句的id--
69
+INSERT INTO `sgj_xt`.`xt_data_config`(`parent_id`,`module`,`org_id`,`name`,`field_name`,`value`,`create_time`,`update_time`,`create_user_id`,`status`,`remark`,`delete_id_system`,`title`,`content`,`orders`) VALUES ( '2010','hemodialysis','0','常规(肝素/NS)1:1',NULL,'1','2020-06-17 16:00:00','2020-06-17 16:00:00','0','1',NULL,'0',NULL,NULL,'0');
70
+INSERT INTO `sgj_xt`.`xt_data_config`(`parent_id`,`module`,`org_id`,`name`,`field_name`,`value`,`create_time`,`update_time`,`create_user_id`,`status`,`remark`,`delete_id_system`,`title`,`content`,`orders`) VALUES ( '2010','hemodialysis','0','特殊',NULL,'2','2020-06-17 16:00:00','2020-06-17 16:00:00','0','1',NULL,'0',NULL,NULL,'0');
71
+--显示配置里添加封管液配置和封管液特殊--
72
+INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '0','5','sealing_fluid_dispose','封管液配置','2',NULL,NULL,'0');
73
+INSERT INTO `sgj_xt`.`xt_filed_config`(`org_id`,`module`,`filed_name`,`filed_name_cn`,`is_show`,`create_time`,`update_time`,`sys_module`) VALUES ( '0','5','sealing_fluid_special','封管液特殊','2',NULL,NULL,'0');
74
+--添加显示封管液配置和封管液特殊的机构 org_id为要显示的机构--
75
+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','5','sealing_fluid_dispose','封管液配置','1',NULL,NULL,'0');
76
+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','5','sealing_fluid_special','封管液特殊','1',NULL,NULL,'0');