|
@@ -83,13 +83,14 @@ type HisPatient struct {
|
83
|
83
|
Name string `gorm:"column:name" json:"name" form:"name"`
|
84
|
84
|
Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
|
85
|
85
|
IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
|
|
86
|
+ MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
|
86
|
87
|
Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
|
87
|
88
|
RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
88
|
|
- Age float64 `gorm:"column:age" json:"age" form:"age"`
|
|
89
|
+ Age int64 `gorm:"column:age" json:"age" form:"age"`
|
89
|
90
|
PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
|
90
|
|
- IdNumber string `gorm:"column:id_number" json:"id_number" form:"id_number"`
|
|
91
|
+ IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
|
91
|
92
|
RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
|
92
|
|
- Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
|
93
|
+ AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
|
93
|
94
|
Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
|
94
|
95
|
IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
|
95
|
96
|
RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
|
|
@@ -102,6 +103,20 @@ type HisPatient struct {
|
102
|
103
|
Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
103
|
104
|
PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
104
|
105
|
Number string `gorm:"column:number" json:"number" form:"number"`
|
|
106
|
+ Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
|
107
|
+ IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
|
|
108
|
+ PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
|
|
109
|
+ PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
|
|
110
|
+ Certno string `gorm:"column:certno" json:"certno" form:"certno"`
|
|
111
|
+ PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
|
|
112
|
+ Gend string `gorm:"column:gend" json:"gend" form:"gend"`
|
|
113
|
+ Naty string `gorm:"column:naty" json:"naty" form:"naty"`
|
|
114
|
+ Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
|
|
115
|
+ Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
|
|
116
|
+ Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
|
|
117
|
+ IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
|
|
118
|
+ Phone string `gorm:"column:phone" json:"phone" form:"phone"`
|
|
119
|
+ SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
|
105
|
120
|
}
|
106
|
121
|
|
107
|
122
|
func (HisPatient) TableName() string {
|
|
@@ -261,8 +276,8 @@ type HisPrescriptionInfo struct {
|
261
|
276
|
Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
262
|
277
|
Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
263
|
278
|
Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
264
|
|
- Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
|
265
|
|
- RegisterType string `gorm:"column:register_type" json:"register_type" form:"register_type"`
|
|
279
|
+ Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
|
|
280
|
+ RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
|
266
|
281
|
Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
267
|
282
|
Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
|
268
|
283
|
SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
|
|
@@ -271,6 +286,7 @@ type HisPrescriptionInfo struct {
|
271
|
286
|
BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
|
272
|
287
|
DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
|
273
|
288
|
XtHisDepartment XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
|
|
289
|
+ SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
|
274
|
290
|
}
|
275
|
291
|
|
276
|
292
|
func (HisPrescriptionInfo) TableName() string {
|
|
@@ -296,9 +312,9 @@ type HisPrescription struct {
|
296
|
312
|
PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
|
297
|
313
|
Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
|
298
|
314
|
HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
|
299
|
|
- HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"advices"`
|
300
|
|
- HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"project"`
|
301
|
|
- HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"addition"`
|
|
315
|
+ HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
|
|
316
|
+ HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
|
|
317
|
+ HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
|
302
|
318
|
}
|
303
|
319
|
|
304
|
320
|
func (HisPrescription) TableName() string {
|
|
@@ -853,3 +869,22 @@ type XtHisMedicalTemplate struct {
|
853
|
869
|
func (XtHisMedicalTemplate) TableName() string {
|
854
|
870
|
return "xt_his_medical_template"
|
855
|
871
|
}
|
|
872
|
+
|
|
873
|
+type HisXtDiagnoseConfig struct {
|
|
874
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
875
|
+ ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
|
|
876
|
+ Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
|
|
877
|
+ Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
|
|
878
|
+ ContentCode string `gorm:"column:content_code" json:"content_code" form:"content_code"`
|
|
879
|
+ CountryCode string `gorm:"column:country_code" json:"country_code" form:"country_code"`
|
|
880
|
+ CountryContentName string `gorm:"column:country_content_name" json:"country_content_name" form:"country_content_name"`
|
|
881
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
882
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
883
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
884
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
885
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
886
|
+}
|
|
887
|
+
|
|
888
|
+func (HisXtDiagnoseConfig) TableName() string {
|
|
889
|
+ return "his_xt_diagnose_config"
|
|
890
|
+}
|