Browse Source

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

28169 1 month ago
parent
commit
709df33073
2 changed files with 3 additions and 2 deletions
  1. 2 2
      controllers/his_api_controller.go
  2. 1 0
      models/patient_models.go

+ 2 - 2
controllers/his_api_controller.go View File

@@ -3504,7 +3504,7 @@ func (c *HisApiController) CreateHisPrescription() {
3504 3504
 						//tempPrescription.OrderStatus = order_status
3505 3505
 						tempPrescription.PreTime = pTime
3506 3506
 						tempPrescription.MedType = med_type
3507
-						tempPrescription.Diagnose = ""
3507
+						tempPrescription.Diagnose = diagnoses
3508 3508
 
3509 3509
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3510 3510
 						redis := service.RedisClient()
@@ -5158,7 +5158,7 @@ func (c *HisApiController) CreateHisPrescription() {
5158 5158
 						//tempPrescription.OrderStatus = order_status
5159 5159
 						tempPrescription.PreTime = pTime
5160 5160
 						tempPrescription.MedType = med_type
5161
-						tempPrescription.Diagnose = ""
5161
+						tempPrescription.Diagnose = diagnoses
5162 5162
 
5163 5163
 						service.SaveHisPrescription(tempPrescription)
5164 5164
 						redis := service.RedisClient()

+ 1 - 0
models/patient_models.go View File

@@ -234,6 +234,7 @@ type Patients struct {
234 234
 	FirstLetter              string  `gorm:"column:first_letter" json:"first_letter" form:"first_letter"`
235 235
 	PrintDate                int64   `gorm:"column:print_date" json:"print_date" form:"print_date"`
236 236
 	FamalityRecord           string  `gorm:"column:famality_record" json:"famality_record" form:"famality_record"`
237
+	InsuplcAdmdvs            string  `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
237 238
 }
238 239
 
239 240
 func (Patients) TableName() string {