|
@@ -116,6 +116,98 @@ func (DeviceZone) TableName() string {
|
116
|
116
|
return "xt_device_zone"
|
117
|
117
|
}
|
118
|
118
|
|
|
119
|
+type DeviceZonePb struct {
|
|
120
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
121
|
+ OrgID int64 `gorm:"column:org_id" json:"-"`
|
|
122
|
+ Name string `json:"name"`
|
|
123
|
+ Type int `json:"type"`
|
|
124
|
+ TotalBed int `json:"total_bed"`
|
|
125
|
+ SwBed int `json:"sw_bed"`
|
|
126
|
+ XwBed int `json:"xw_bed"`
|
|
127
|
+ WsBed int `json:"ws_bed"`
|
|
128
|
+ CreateTime int64 `gorm:"column:ctime" json:"-"`
|
|
129
|
+ ModifyTime int64 `gorm:"column:mtime" json:"-"`
|
|
130
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
131
|
+ DeviceNumber []*DeviceNumberPb `json:"device" gorm:"foreignkey:ZoneID;AssociationForeignKey:ID;"`
|
|
132
|
+}
|
|
133
|
+
|
|
134
|
+func (DeviceZonePb) TableName() string {
|
|
135
|
+ return "xt_device_zone"
|
|
136
|
+}
|
|
137
|
+
|
|
138
|
+type DialysisSolutionPb struct {
|
|
139
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
140
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
141
|
+ DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
|
|
142
|
+ DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
|
|
143
|
+ DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
|
|
144
|
+ ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
|
|
145
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
|
146
|
+ Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
|
|
147
|
+}
|
|
148
|
+
|
|
149
|
+func (DialysisSolutionPb) TableName() string {
|
|
150
|
+ return "xt_dialysis_solution"
|
|
151
|
+}
|
|
152
|
+
|
|
153
|
+type DeviceNumberPb struct {
|
|
154
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
155
|
+ OrgID int64 `gorm:"column:org_id" json:"-"`
|
|
156
|
+ Number string `gorm:"column:number" json:"number"`
|
|
157
|
+ GroupID int64 `gorm:"column:group_id" json:"group_id"`
|
|
158
|
+ ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
|
|
159
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
160
|
+ CreateTime int64 `gorm:"column:ctime" json:"-"`
|
|
161
|
+ ModifyTime int64 `gorm:"column:mtime" json:"-"`
|
|
162
|
+ Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
|
|
163
|
+ Schedule []*BlodSchedulePb `json:"schedule" gorm:"foreignkey:BedId;AssociationForeignKey:ID;"`
|
|
164
|
+}
|
|
165
|
+
|
|
166
|
+func (DeviceNumberPb) TableName() string {
|
|
167
|
+ return "xt_device_number"
|
|
168
|
+}
|
|
169
|
+
|
|
170
|
+type BlodSchedulePb struct {
|
|
171
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
172
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
173
|
+ PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
|
|
174
|
+ BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
|
|
175
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
176
|
+ ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
|
|
177
|
+ ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
|
|
178
|
+ ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
|
|
179
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
|
180
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
181
|
+ VmBloodPatients VmBloodPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
|
|
182
|
+ BloodDialysisOrder BloodPatientDialysisOrder `json:"order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
|
|
183
|
+ BloodDialysisPrescription BloodDialysisPrescriptionPb `json:"prescription" gorm:"foreignkey:RecordDate,PatientId;AssociationForeignKey:RecordDate,PatientId;"`
|
|
184
|
+ DialysisSolution DialysisSolutionPb `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"vmsolution"`
|
|
185
|
+}
|
|
186
|
+
|
|
187
|
+func (BlodSchedulePb) TableName() string {
|
|
188
|
+ return "xt_schedule"
|
|
189
|
+}
|
|
190
|
+
|
|
191
|
+type BloodDialysisPrescriptionPb struct {
|
|
192
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
193
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
194
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
195
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
196
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
|
197
|
+ Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
|
|
198
|
+ AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
|
|
199
|
+ AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
|
|
200
|
+ AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
|
|
201
|
+ AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
|
|
202
|
+ AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
|
|
203
|
+ DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
|
|
204
|
+ DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
|
|
205
|
+}
|
|
206
|
+
|
|
207
|
+func (BloodDialysisPrescriptionPb) TableName() string {
|
|
208
|
+ return "xt_dialysis_prescription"
|
|
209
|
+}
|
|
210
|
+
|
119
|
211
|
type DeviceGroups struct {
|
120
|
212
|
ID int64 `gorm:"column:id" json:"id"`
|
121
|
213
|
OrgID int64 `gorm:"column:org_id" json:"-"`
|