Browse Source

医保对接

csx 3 years ago
parent
commit
bbe52e6ff5
1 changed files with 6 additions and 7 deletions
  1. 6 7
      models/his_print_models.go

+ 6 - 7
models/his_print_models.go View File

@@ -1,18 +1,17 @@
1 1
 package models
2 2
 
3 3
 type PrintPatient struct {
4
-	ID        int64  `gorm:"column:id" json:"id" form:"id"`
5
-	UserOrgId int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
6
-	Name      string `gorm:"column:name" json:"name" form:"name"`
7
-	Age       string `gorm:"column:age" json:"age" form:"age"`
8
-	Gender    int64  `gorm:"column:gender" json:"gender" form:"gender"`
9
-
4
+	ID                     int64                   `gorm:"column:id" json:"id" form:"id"`
5
+	UserOrgId              int64                   `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
6
+	Name                   string                  `gorm:"column:name" json:"name" form:"name"`
7
+	Age                    string                  `gorm:"column:age" json:"age" form:"age"`
8
+	Gender                 int64                   `gorm:"column:gender" json:"gender" form:"gender"`
10 9
 	HomeAddress            string                  `gorm:"column:home_address" json:"home_address" form:"home_address"`
11 10
 	Phone                  string                  `gorm:"column:phone" json:"phone" form:"phone"`
12 11
 	Lapseto                int64                   `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
13 12
 	Status                 int64                   `gorm:"column:status" json:"status" form:"status"`
14 13
 	HisPrintPatient        HisPrintPatient         `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_patient"`
15
-	HisHospitalCheckRecord HisHospitalCheckRecord  `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_patient"`
14
+	HisHospitalCheckRecord HisHospitalCheckRecord  `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_record_patient"`
16 15
 	HisPrescriptionInfoTwo HisPrescriptionInfoTwo  `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"info"`
17 16
 	HisPrintPrescription   []*HisPrintPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"prescriptions"`
18 17
 }