|
@@ -819,25 +819,27 @@ func (PatientVMOne) TableName() string {
|
819
|
819
|
}
|
820
|
820
|
|
821
|
821
|
type ScheduleVMSix struct {
|
822
|
|
- ID int64 `gorm:"column:id" json:"id"`
|
823
|
|
- PatientID int64 `gorm:"column:patient_id" json:"patient_id"`
|
824
|
|
- ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
|
825
|
|
- BedID int64 `gorm:"column:bed_id" json:"bed_id"`
|
826
|
|
- PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
|
827
|
|
- Patient *PatientVMSix `gorm:"ForeignKey:PatientID" json:"patient"`
|
828
|
|
- DialysisOrder DialysisOrderVM `gorm:"ForeignKey:DialysisDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"dialysis_order"`
|
829
|
|
- Prescription PrescriptionVM `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"prescription"`
|
830
|
|
- ReceiveAssessment ReceiveAssessmentVM `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"receive_assessment"`
|
831
|
|
- XtReceiveTreatmentAsses *XtReceiveTreatmentAsses `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"xt_receive_assessment"`
|
832
|
|
- AssessmentBeforeDislysis AssessmentBeforeDislysisVM `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"assessment_before_dislysis"`
|
833
|
|
- AssessmentAfterDislysis AssessmentAfterDislysisVM `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"assessment_after_dislysis"`
|
834
|
|
- MonitoringRecords []*MonitoringRecordVM `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"monitor_records"`
|
835
|
|
- DeviceNumber *DeviceNumberVM `gorm:"ForeignKey:BedID" json:"device_number"`
|
836
|
|
- DeviceZone *DeviceZoneVM `gorm:"ForeignKey:PartitionId" json:"device_zone"`
|
837
|
|
- Advices []*DoctorAdviceVM `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientId" json:"advices"`
|
838
|
|
- DoubleCheck *DoubleCheckVM `gorm:"ForeignKey:CheckDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"check"`
|
839
|
|
- Summer *SummerVM `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"summer"`
|
840
|
|
- LastAfterWeight XtAssessmentAfterDislysisVM `gorm:"ForeignKey:PatientID;AssociationForeignKey:PatientID" json:"lastafterweight"`
|
|
822
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
823
|
+ PatientID int64 `gorm:"column:patient_id" json:"patient_id"`
|
|
824
|
+ ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
|
|
825
|
+ BedID int64 `gorm:"column:bed_id" json:"bed_id"`
|
|
826
|
+ PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
|
|
827
|
+ Patient *PatientVMSix `gorm:"ForeignKey:PatientID" json:"patient"`
|
|
828
|
+ DialysisOrder DialysisOrderVM `gorm:"ForeignKey:DialysisDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"dialysis_order"`
|
|
829
|
+ Prescription PrescriptionVM `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"prescription"`
|
|
830
|
+ ReceiveAssessment ReceiveAssessmentVM `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"receive_assessment"`
|
|
831
|
+ XtReceiveTreatmentAsses *XtReceiveTreatmentAsses `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"xt_receive_assessment"`
|
|
832
|
+ AssessmentBeforeDislysis AssessmentBeforeDislysisVM `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"assessment_before_dislysis"`
|
|
833
|
+ AssessmentAfterDislysis AssessmentAfterDislysisVM `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"assessment_after_dislysis"`
|
|
834
|
+ MonitoringRecords []*MonitoringRecordVM `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"monitor_records"`
|
|
835
|
+ DeviceNumber *DeviceNumberVM `gorm:"ForeignKey:BedID" json:"device_number"`
|
|
836
|
+ DeviceZone *DeviceZoneVM `gorm:"ForeignKey:PartitionId" json:"device_zone"`
|
|
837
|
+ Advices []*DoctorAdviceVM `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientId" json:"advices"`
|
|
838
|
+ DoubleCheck *DoubleCheckVM `gorm:"ForeignKey:CheckDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"check"`
|
|
839
|
+ Summer *SummerVM `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"summer"`
|
|
840
|
+ LastAfterWeight XtAssessmentAfterDislysisVM `gorm:"ForeignKey:PatientID;AssociationForeignKey:PatientID" json:"lastafterweight"`
|
|
841
|
+ HisAdvices []*models.HisDoctorAdviceInfo `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"his_advices"`
|
|
842
|
+ HisPrescriptionProject []*models.HisPrescriptionProject `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"his_project"`
|
841
|
843
|
Count int64
|
842
|
844
|
}
|
843
|
845
|
|