|
@@ -1056,26 +1056,53 @@ type VmXtSchedule struct {
|
1056
|
1056
|
}
|
1057
|
1057
|
|
1058
|
1058
|
type PatientDeviceNumber struct {
|
1059
|
|
- ID int64 `gorm:"column:id" json:"id"`
|
1060
|
|
- OrgID int64 `gorm:"column:org_id" json:"-"`
|
1061
|
|
- Number string `gorm:"column:number" json:"number"`
|
1062
|
|
- GroupID int64 `gorm:"column:group_id" json:"group_id"`
|
1063
|
|
- ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
|
1064
|
|
- CreateTime int64 `gorm:"column:ctime" json:"-"`
|
1065
|
|
- ModifyTime int64 `gorm:"column:mtime" json:"-"`
|
1066
|
|
- Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
|
1067
|
|
- PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
|
1068
|
|
- BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
|
1069
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
1070
|
|
- ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
|
1071
|
|
- ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
|
1072
|
|
- ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
|
1073
|
|
- ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
1074
|
|
- Name string `gorm:"column:name" json:"name"`
|
1075
|
|
- Patient Patients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
|
1076
|
|
- DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
|
1077
|
|
- DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
|
1078
|
|
- TreatmentMode TreatmentMode `json:"mode" gorm:"foreignkey:ModeId"`
|
1079
|
|
- DialysisOrder DialysisOrder `json:"order" gorm:"foreignkey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
|
1080
|
|
- Schedule Schedule `json:"schedule" gorm:"foreignkey:BedId;AssociationForeignKey:ID;"`
|
|
1059
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
1060
|
+ OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
|
|
1061
|
+ Number string `gorm:"column:number" json:"number" form:"number"`
|
|
1062
|
+ GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
|
|
1063
|
+ ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
|
|
1064
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
1065
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
1066
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
1067
|
+ Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
|
|
1068
|
+ Schedule []*BlodSchedule `json:"schedule" gorm:"foreignkey:BedId;AssociationForeignKey:ID;"`
|
|
1069
|
+}
|
|
1070
|
+
|
|
1071
|
+func (PatientDeviceNumber) TableName() string {
|
|
1072
|
+
|
|
1073
|
+ return "xt_device_number"
|
|
1074
|
+}
|
|
1075
|
+
|
|
1076
|
+type PatientDialysisOrder struct {
|
|
1077
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
1078
|
+ DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
|
|
1079
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
1080
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
1081
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
1082
|
+ Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
|
|
1083
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
1084
|
+ BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
|
|
1085
|
+ StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
|
|
1086
|
+ FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
|
|
1087
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
1088
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
1089
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
1090
|
+ PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
|
|
1091
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
1092
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
1093
|
+ FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
|
|
1094
|
+ FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
|
|
1095
|
+ SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
|
|
1096
|
+ StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
|
|
1097
|
+ EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
|
|
1098
|
+ WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
|
|
1099
|
+ ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
|
|
1100
|
+ DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
|
|
1101
|
+ NewFistulaNurse int64 `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
|
|
1102
|
+ ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
|
|
1103
|
+}
|
|
1104
|
+
|
|
1105
|
+func (PatientDialysisOrder) TableName() string {
|
|
1106
|
+
|
|
1107
|
+ return "xt_dialysis_order"
|
1081
|
1108
|
}
|