|
@@ -185,6 +185,8 @@ type XcxUser struct {
|
185
|
185
|
RoleType int `json:"role_type" gorm:"type:int(2); COMMENT:'角色类型 0或空:普通 1:管理员 2:测试'" description:"角色类型 0或空:普通 1:管理员 2:测试"`
|
186
|
186
|
Source string `json:"source" gorm:"type:varchar(255); COMMENT:'用户来源'" description:"用户来源"`
|
187
|
187
|
PrivacyProtocolVersions int `json:"privacy_protocol_versions" gorm:"type:int(2); COMMENT:'隐私政策版本'" description:"隐私政策版本"`
|
|
188
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
189
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
188
|
190
|
Ctime time.Time `json:"ctime" gorm:"type:datetime; DEFAULT: CURRENT_TIMESTAMP; COMMENT:'创建时间'" description:"创建时间"`
|
189
|
191
|
Mtime time.Time `json:"mtime" gorm:"type:datetime; DEFAULT: CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; COMMENT:'更新时间 '" description:"更新时间 "`
|
190
|
192
|
|
|
@@ -194,3 +196,95 @@ type XcxUser struct {
|
194
|
196
|
func (XcxUser) TableName() string {
|
195
|
197
|
return "xcx_user"
|
196
|
198
|
}
|
|
199
|
+
|
|
200
|
+type XcxPatients struct {
|
|
201
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
202
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
203
|
+ UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
|
|
204
|
+ Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
|
|
205
|
+ PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
|
|
206
|
+ DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
|
|
207
|
+ AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
|
|
208
|
+ Source int64 `gorm:"column:source" json:"source" form:"source"`
|
|
209
|
+ Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
|
|
210
|
+ PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
|
|
211
|
+ BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
|
|
212
|
+ Name string `gorm:"column:name" json:"name" form:"name"`
|
|
213
|
+ Alias string `gorm:"column:alias" json:"alias" form:"alias"`
|
|
214
|
+ Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
|
|
215
|
+ MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
|
|
216
|
+ IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
|
|
217
|
+ Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
|
|
218
|
+ ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
|
|
219
|
+ HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
|
|
220
|
+ HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
|
|
221
|
+ HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
|
|
222
|
+ Height int64 `gorm:"column:height" json:"height" form:"height"`
|
|
223
|
+ BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
|
|
224
|
+ Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
|
|
225
|
+ HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
|
|
226
|
+ EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
|
|
227
|
+ Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
|
|
228
|
+ Phone string `gorm:"column:phone" json:"phone" form:"phone"`
|
|
229
|
+ HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
|
|
230
|
+ RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
|
|
231
|
+ RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
|
|
232
|
+ HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
|
|
233
|
+ WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
|
|
234
|
+ UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
|
|
235
|
+ Children int64 `gorm:"column:children" json:"children" form:"children"`
|
|
236
|
+ ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
|
|
237
|
+ IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
|
|
238
|
+ FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
|
|
239
|
+ FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
|
|
240
|
+ PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
|
|
241
|
+ PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
|
|
242
|
+ PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
|
|
243
|
+ HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
|
|
244
|
+ InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
|
|
245
|
+ InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
|
|
246
|
+ TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
|
|
247
|
+ AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
|
|
248
|
+ HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
|
|
249
|
+ Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
|
|
250
|
+ Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
|
|
251
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
252
|
+ RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
|
|
253
|
+ Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
|
|
254
|
+ QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
|
|
255
|
+ BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
|
|
256
|
+ PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
|
|
257
|
+ PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
|
|
258
|
+ PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
|
|
259
|
+ Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
|
|
260
|
+ Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
|
|
261
|
+ Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
|
|
262
|
+ Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
|
|
263
|
+ Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
|
|
264
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
265
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
266
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
267
|
+ Nation string `gorm:"column:nation" json:"nation" form:"nation"`
|
|
268
|
+ NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
|
|
269
|
+ Age int64 `gorm:"column:age" json:"age" form:"age"`
|
|
270
|
+ InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
|
|
271
|
+ IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
|
|
272
|
+ RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
|
|
273
|
+ ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
|
|
274
|
+ IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
|
|
275
|
+ FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
|
|
276
|
+ DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
|
|
277
|
+ ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
|
|
278
|
+ TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
|
|
279
|
+ ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
|
|
280
|
+ UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
|
|
281
|
+ IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
|
|
282
|
+ SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
|
|
283
|
+ OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
|
|
284
|
+ DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
|
|
285
|
+}
|
|
286
|
+
|
|
287
|
+func (XcxPatients) TableName() string {
|
|
288
|
+
|
|
289
|
+ return "xt_patients"
|
|
290
|
+}
|