|
@@ -274,23 +274,24 @@ func (HisPrescriptionInfo) TableName() string {
|
274
|
274
|
}
|
275
|
275
|
|
276
|
276
|
type HisPrescription struct {
|
277
|
|
- ID int64 `gorm:"column:id" json:"id" form:"id"`
|
278
|
|
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
279
|
|
- RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
280
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
281
|
|
- HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
282
|
|
- Status int64 `gorm:"column:status" json:"status" form:"status"`
|
283
|
|
- Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
284
|
|
- Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
285
|
|
- Number string `gorm:"column:number" json:"number" form:"number"`
|
286
|
|
- Type int64 `gorm:"column:type" json:"type" form:"type"`
|
287
|
|
- Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
288
|
|
- Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
289
|
|
- Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
290
|
|
- OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
|
291
|
|
- BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
|
292
|
|
- PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
|
293
|
|
-
|
|
277
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
278
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
279
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
280
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
281
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
282
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
283
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
284
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
285
|
+ Number string `gorm:"column:number" json:"number" form:"number"`
|
|
286
|
+ Type int64 `gorm:"column:type" json:"type" form:"type"`
|
|
287
|
+ Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
|
288
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
289
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
290
|
+ OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
|
|
291
|
+ BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
|
|
292
|
+ PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
|
|
293
|
+ Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
|
|
294
|
+ HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
|
294
|
295
|
HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"advices"`
|
295
|
296
|
HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"project"`
|
296
|
297
|
HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"addition"`
|
|
@@ -449,7 +450,7 @@ type HisPrescriptionProject struct {
|
449
|
450
|
DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
450
|
451
|
ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
451
|
452
|
Day string `gorm:"column:day" json:"day" form:"day"`
|
452
|
|
- HisProject HisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
|
|
453
|
+ HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
|
453
|
454
|
Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
454
|
455
|
}
|
455
|
456
|
|
|
@@ -804,3 +805,30 @@ type XtHisTreatmentTemplate struct {
|
804
|
805
|
func (XtHisTreatmentTemplate) TableName() string {
|
805
|
806
|
return "xt_his_treatment_template"
|
806
|
807
|
}
|
|
808
|
+
|
|
809
|
+type XtHisAdditionalCharge struct {
|
|
810
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
811
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
812
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
813
|
+ AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
|
|
814
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
815
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
816
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
817
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
818
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
819
|
+ ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
|
|
820
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
821
|
+ ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
|
|
822
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
823
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
824
|
+ BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
|
|
825
|
+ OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
|
|
826
|
+ PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
|
|
827
|
+ FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
|
|
828
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
829
|
+ Count int64 `gorm:"column:count" json:"count" form:"count"`
|
|
830
|
+}
|
|
831
|
+
|
|
832
|
+func (XtHisAdditionalCharge) TableName() string {
|
|
833
|
+ return "his_additional_charge"
|
|
834
|
+}
|