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