Kaynağa Gözat

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

csx 4 yıl önce
ebeveyn
işleme
9bf557234a
1 değiştirilmiş dosya ile 23 ekleme ve 25 silme
  1. 23 25
      models/his_models.go

+ 23 - 25
models/his_models.go Dosyayı Görüntüle

@@ -249,28 +249,26 @@ func (HisPatientCaseHistory) TableName() string {
249 249
 }
250 250
 
251 251
 type HisPrescriptionInfo struct {
252
-	ID                 int64  `gorm:"column:id" json:"id" form:"id"`
253
-	UserOrgId          int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
254
-	RecordDate         int64  `gorm:"column:record_date" json:"record_date" form:"record_date"`
255
-	PatientId          int64  `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
256
-	HisPatientId       int64  `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
257
-	Status             int64  `gorm:"column:status" json:"status" form:"status"`
258
-	Ctime              int64  `gorm:"column:ctime" json:"ctime" form:"ctime"`
259
-	Mtime              int64  `gorm:"column:mtime" json:"mtime" form:"mtime"`
260
-	Creator            int64  `gorm:"column:creator" json:"creator" form:"creator"`
261
-	Modifier           int64  `gorm:"column:modifier" json:"modifier" form:"modifier"`
262
-	Diagnosis          string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
263
-	RegisterType       string `gorm:"column:register_type" json:"register_type" form:"register_type"`
264
-	Doctor             string `gorm:"column:doctor" json:"doctor" form:"doctor"`
265
-	Departments        int64  `gorm:"column:departments" json:"departments" form:"departments"`
266
-	SickHistory        string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
267
-	PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
268
-	PrescriptionStatus int64  `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
269
-	BatchNumber        string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
270
-	DoctorId           int64  `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
271
-	DepartmentId       int64  `gorm:"column:department_id" json:"department_id" form:"department_id"`
272
-
273
-	XtHisDepartment XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
252
+	ID                 int64           `gorm:"column:id" json:"id" form:"id"`
253
+	UserOrgId          int64           `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
254
+	RecordDate         int64           `gorm:"column:record_date" json:"record_date" form:"record_date"`
255
+	PatientId          int64           `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
256
+	HisPatientId       int64           `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
257
+	Status             int64           `gorm:"column:status" json:"status" form:"status"`
258
+	Ctime              int64           `gorm:"column:ctime" json:"ctime" form:"ctime"`
259
+	Mtime              int64           `gorm:"column:mtime" json:"mtime" form:"mtime"`
260
+	Creator            int64           `gorm:"column:creator" json:"creator" form:"creator"`
261
+	Modifier           int64           `gorm:"column:modifier" json:"modifier" form:"modifier"`
262
+	Diagnosis          string          `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
263
+	RegisterType       string          `gorm:"column:register_type" json:"register_type" form:"register_type"`
264
+	Doctor             string          `gorm:"column:doctor" json:"doctor" form:"doctor"`
265
+	Departments        int64           `gorm:"column:departments" json:"departments" form:"departments"`
266
+	SickHistory        string          `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
267
+	PrescriptionNumber string          `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
268
+	PrescriptionStatus int64           `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
269
+	BatchNumber        string          `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
270
+	DoctorId           int64           `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
271
+	XtHisDepartment    XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
274 272
 }
275 273
 
276 274
 func (HisPrescriptionInfo) TableName() string {
@@ -296,9 +294,9 @@ type HisPrescription struct {
296 294
 	PrescriptionNumber     string                    `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
297 295
 	Patients               Patients                  `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
298 296
 	HisPatient             VMHisPatient              `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
299
-	HisDoctorAdviceInfo    []*HisDoctorAdviceInfo    `gorm:"ForeignKey:PatientId,RecordDate,ID;AssociationForeignKey:PatientId,RecordDate,PrescriptionId" json:"advices"`
300
-	HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PatientId,RecordDate,ID;AssociationForeignKey:PatientId,RecordDate,PrescriptionId" json:"project"`
301
-	HisAdditionalCharge    []*HisAdditionalCharge    `gorm:"ForeignKey:PatientId,RecordDate,ID;AssociationForeignKey:PatientId,RecordDate,PrescriptionId" json:"addition"`
297
+	HisDoctorAdviceInfo    []*HisDoctorAdviceInfo    `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"advices"`
298
+	HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"project"`
299
+	HisAdditionalCharge    []*HisAdditionalCharge    `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"addition"`
302 300
 }
303 301
 
304 302
 func (HisPrescription) TableName() string {