|
@@ -506,13 +506,12 @@ type HisPrescription struct {
|
506
|
506
|
HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
|
507
|
507
|
HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
|
508
|
508
|
HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
|
509
|
|
-
|
510
|
|
- HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
|
511
|
|
- HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,ScheduleDate" json:"info"`
|
512
|
|
- Total string `gorm:"-" json:"total" form:"total"`
|
513
|
|
- PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
|
514
|
|
- MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
|
515
|
|
- TempHisOrder TempHisOrder `gorm:"ForeignKey:Number,MedType;AssociationForeignKey:BatchNumber,MedType" json:"order"`
|
|
509
|
+ HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
|
|
510
|
+ HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,ScheduleDate" json:"info"`
|
|
511
|
+ Total string `gorm:"-" json:"total" form:"total"`
|
|
512
|
+ PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
|
|
513
|
+ MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
|
|
514
|
+ TempHisOrder TempHisOrder `gorm:"ForeignKey:Number,MedType;AssociationForeignKey:BatchNumber,MedType" json:"order"`
|
516
|
515
|
}
|
517
|
516
|
|
518
|
517
|
func (HisPrescription) TableName() string {
|
|
@@ -772,6 +771,9 @@ type HisPrescriptionProject struct {
|
772
|
771
|
CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
|
773
|
772
|
Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
|
774
|
773
|
StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
|
|
774
|
+ TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
|
|
775
|
+
|
|
776
|
+ XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
|
775
|
777
|
}
|
776
|
778
|
|
777
|
779
|
func (HisPrescriptionProject) TableName() string {
|