|
@@ -1248,14 +1248,18 @@ type Patient struct {
|
1248
|
1248
|
IDCardNo string `gorm:"column:id_card_no"`
|
1249
|
1249
|
}
|
1250
|
1250
|
|
|
1251
|
+func (Patient) TableName() string {
|
|
1252
|
+ return "xt_patients"
|
|
1253
|
+}
|
|
1254
|
+
|
1251
|
1255
|
|
1252
|
1256
|
type Assessment struct {
|
1253
|
|
- ID uint `gorm:"id"`
|
1254
|
|
- PatientID uint `gorm:"column:patient_id"`
|
1255
|
|
- SystolicBP int `gorm:"column:systolic_blood_pressure"`
|
1256
|
|
- DiastolicBP int `gorm:"column:diastolic_blood_pressure"`
|
1257
|
|
- AssessmentDate time.Time `gorm:"column:assessment_date"`
|
1258
|
|
- UserOrgID int `gorm:"column:user_org_id"`
|
|
1257
|
+ ID uint `gorm:"id"`
|
|
1258
|
+ PatientID uint `gorm:"column:patient_id"`
|
|
1259
|
+ SystolicBP float64 `gorm:"column:systolic_blood_pressure"`
|
|
1260
|
+ DiastolicBP float64 `gorm:"column:diastolic_blood_pressure"`
|
|
1261
|
+ AssessmentDate int64 `gorm:"column:assessment_date"`
|
|
1262
|
+ UserOrgID int `gorm:"column:user_org_id"`
|
1259
|
1263
|
}
|
1260
|
1264
|
|
1261
|
1265
|
func (Assessment) TableName() string {
|