|
@@ -117,18 +117,18 @@ func (DeviceZone) TableName() string {
|
117
|
117
|
}
|
118
|
118
|
|
119
|
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;"`
|
|
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
|
132
|
}
|
133
|
133
|
|
134
|
134
|
func (DeviceZonePb) TableName() string {
|
|
@@ -136,14 +136,14 @@ func (DeviceZonePb) TableName() string {
|
136
|
136
|
}
|
137
|
137
|
|
138
|
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"`
|
|
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
|
147
|
}
|
148
|
148
|
|
149
|
149
|
func (DialysisSolutionPb) TableName() string {
|
|
@@ -151,15 +151,15 @@ func (DialysisSolutionPb) TableName() string {
|
151
|
151
|
}
|
152
|
152
|
|
153
|
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"`
|
|
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
|
163
|
Schedule []*BlodSchedulePb `json:"schedule" gorm:"foreignkey:BedId;AssociationForeignKey:ID;"`
|
164
|
164
|
}
|
165
|
165
|
|
|
@@ -168,21 +168,21 @@ func (DeviceNumberPb) TableName() string {
|
168
|
168
|
}
|
169
|
169
|
|
170
|
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
|
|
- DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
|
182
|
|
- VmBloodPatients VmBloodPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
|
183
|
|
- BloodDialysisOrder BloodPatientDialysisOrder `json:"order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
|
|
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
|
+ DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
|
|
182
|
+ VmBloodPatients VmBloodPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
|
|
183
|
+ BloodDialysisOrder BloodPatientDialysisOrder `json:"order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
|
184
|
184
|
BloodDialysisPrescription BloodDialysisPrescriptionPb `json:"prescription" gorm:"foreignkey:RecordDate,PatientId;AssociationForeignKey:RecordDate,PatientId;"`
|
185
|
|
- DialysisSolution DialysisSolutionPb `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"vmsolution"`
|
|
185
|
+ DialysisSolution DialysisSolutionPb `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"vmsolution"`
|
186
|
186
|
}
|
187
|
187
|
|
188
|
188
|
func (BlodSchedulePb) TableName() string {
|
|
@@ -190,19 +190,19 @@ func (BlodSchedulePb) TableName() string {
|
190
|
190
|
}
|
191
|
191
|
|
192
|
192
|
type BloodDialysisPrescriptionPb struct {
|
193
|
|
- ID int64 `gorm:"column:id" json:"id" form:"id"`
|
194
|
|
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
195
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
196
|
|
- Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
197
|
|
- ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
198
|
|
- Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
|
199
|
|
- AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
|
200
|
|
- AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
|
201
|
|
- AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
|
202
|
|
- AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
|
203
|
|
- AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
|
204
|
|
- DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
|
205
|
|
- DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
|
|
193
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
194
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
195
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
196
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
197
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
|
198
|
+ Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
|
|
199
|
+ AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
|
|
200
|
+ AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
|
|
201
|
+ AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
|
|
202
|
+ AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
|
|
203
|
+ AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
|
|
204
|
+ DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
|
|
205
|
+ DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
|
206
|
206
|
}
|
207
|
207
|
|
208
|
208
|
func (BloodDialysisPrescriptionPb) TableName() string {
|