patient_models.go 68KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. package models
  2. type PatientListForFace struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  6. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  7. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  8. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  9. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  10. Age int64 `gorm:"column:age" json:"age"`
  11. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  12. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  13. }
  14. func (PatientListForFace) TableName() string {
  15. return "xt_patients"
  16. }
  17. type Patients struct {
  18. ID int64 `gorm:"column:id" json:"id" form:"id"`
  19. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  20. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  21. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  22. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  23. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  24. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  25. Source int64 `gorm:"column:source" json:"source" form:"source"`
  26. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  27. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  28. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  29. Name string `gorm:"column:name" json:"name" form:"name"`
  30. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  31. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  32. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  33. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  34. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  35. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  36. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  37. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  38. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  39. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  40. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  41. Height int64 `gorm:"column:height" json:"height" form:"height"`
  42. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  43. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  44. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  45. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  46. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  47. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  48. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  49. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  50. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  51. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  52. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  53. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  54. Children int64 `gorm:"column:children" json:"children" form:"children"`
  55. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  56. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  57. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  58. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  59. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  60. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  61. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  62. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  63. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  64. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  65. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  66. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  67. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  68. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  69. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  70. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  71. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  72. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  73. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  74. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  75. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  76. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  77. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  78. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  79. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  80. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  81. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  82. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  83. Status int64 `gorm:"column:status" json:"status" form:"status"`
  84. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  85. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  86. DialysisSolutions []DialysisSolution `json:"solutions" gorm:"foreignkey:PatientId"`
  87. Age int64 `gorm:"column:age" json:"age"`
  88. Schedules []Schedule `json:"schedules" gorm:"foreignkey:PatientId"`
  89. Contagions []InfectiousDiseases `json:"contagions" gorm:"foreignkey:PatientId"`
  90. Diseases []ChronicDiseases `json:"diseases" gorm:"foreignkey:PatientId"`
  91. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time"`
  92. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious"`
  93. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle"`
  94. ResponseResult string `gorm:"column:response_result" json:"response_result"`
  95. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  96. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  97. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  98. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  99. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  100. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  101. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  102. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  103. ContagionIds []int64 `gorm:"-"`
  104. DryWeight float64 `gorm:"-"`
  105. }
  106. func (Patients) TableName() string {
  107. return "xt_patients"
  108. }
  109. type ChronicDiseases struct {
  110. ID int64 `gorm:"column:id" json:"id" form:"id"`
  111. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  112. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  113. Status int64 `gorm:"column:status" json:"status" form:"status"`
  114. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  115. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  116. }
  117. func (ChronicDiseases) TableName() string {
  118. return "xt_patients_chronic_diseases"
  119. }
  120. type InfectiousDiseases struct {
  121. ID int64 `gorm:"column:id" json:"id" form:"id"`
  122. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  123. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  124. Status int64 `gorm:"column:status" json:"status" form:"status"`
  125. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  126. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  127. }
  128. func (InfectiousDiseases) TableName() string {
  129. return "xt_patients_infectious_diseases"
  130. }
  131. type DialysisPrescription struct {
  132. ID int64 `gorm:"column:id" json:"id"`
  133. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  134. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  135. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  136. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  137. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  138. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  139. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  140. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  141. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  142. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  143. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  144. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  145. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  146. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  147. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  148. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  149. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  150. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  151. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  152. //DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  153. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  154. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  155. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  156. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  157. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  158. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  159. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  160. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  161. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  162. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  163. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  164. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  165. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  166. Remark string `gorm:"column:remark" json:"remark"`
  167. Status int64 `gorm:"column:status" json:"status"`
  168. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  169. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  170. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  171. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  172. Creater int64 `gorm:"column:creater" json:"creater"`
  173. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  174. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  175. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  176. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  177. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  178. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  179. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  180. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  181. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  182. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  183. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  184. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  185. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  186. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  187. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  188. Jms int64 `gorm:"column:jms" json:"jms"`
  189. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  190. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  191. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  192. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  193. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  194. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  195. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  196. Injector int64 `gorm:"column:injector" json:"injector"`
  197. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  198. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  199. Package int64 `gorm:"column:package" json:"package"`
  200. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  201. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:Creater;"`
  202. }
  203. func (DialysisPrescription) TableName() string {
  204. return "xt_dialysis_prescription"
  205. }
  206. type DialysisPrescriptionList struct {
  207. ID int64 `gorm:"column:id" json:"id"`
  208. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  209. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  210. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  211. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  212. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  213. Creater int64 `gorm:"column:creater" json:"creater"`
  214. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  215. }
  216. func (DialysisPrescriptionList) TableName() string {
  217. return "xt_dialysis_prescription"
  218. }
  219. type DialysisSolution struct {
  220. ID int64 `gorm:"column:id" json:"id" form:"id"`
  221. Name string `gorm:"column:name" json:"name" form:"name"`
  222. SubName string `gorm:"column:sub_name" json:"sub_name" form:"sub_name"`
  223. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  224. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  225. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  226. Type int64 `gorm:"column:type" json:"type" form:"type"`
  227. Period string `gorm:"column:period" json:"period" form:"period"`
  228. Times string `gorm:"column:times" json:"times" form:"times"`
  229. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  230. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  231. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  232. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  233. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  234. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  235. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  236. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  237. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  238. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  239. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  240. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  241. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  242. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  243. Dewater float64 `gorm:"column:dewater" json:"dewater" form:"dewater"`
  244. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  245. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  246. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  247. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  248. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  249. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  250. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  251. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  252. FirstDialysis int64 `gorm:"column:first_dialysis" json:"first_dialysis" form:"first_dialysis"`
  253. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  254. InitiateMode int64 `gorm:"column:initiate_mode" json:"initiate_mode" form:"initiate_mode"`
  255. AffirmState int64 `gorm:"column:affirm_state" json:"affirm_state" form:"affirm_state"`
  256. UseState int64 `gorm:"column:use_state" json:"use_state" form:"use_state"`
  257. Status int64 `gorm:"column:status" json:"status" form:"status"`
  258. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  259. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  260. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  261. SolutionType int64 `gorm:"column:solution_type" json:"solution_type" form:"solution_type"`
  262. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  263. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  264. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  265. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  266. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  267. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  268. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  269. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  270. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  271. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  272. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  273. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  274. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  275. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialysate_formulation"`
  276. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  277. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  278. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  279. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  280. }
  281. func (DialysisSolution) TableName() string {
  282. return "xt_dialysis_solution"
  283. }
  284. type UserAdminRole struct {
  285. ID int64 `gorm:"column:id" json:"id"`
  286. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  287. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  288. AppId int64 `gorm:"column:app_id" json:"app_id"`
  289. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  290. UserName string `gorm:"column:user_name" json:"user_name"`
  291. Avatar string `gorm:"column:avatar" json:"avatar"`
  292. UserType int64 `gorm:"column:user_type" json:"user_type"`
  293. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  294. Intro string `gorm:"column:intro" json:"intro"`
  295. Status int64 `gorm:"column:status" json:"status"`
  296. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  297. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  298. }
  299. func (UserAdminRole) TableName() string {
  300. return "sgj_user_admin_role"
  301. }
  302. type PatientDialysisRecord struct {
  303. DialysisOrder
  304. ScheduleType int64 `gorm:"-" json:"schedule_type" form:"schedule_type"`
  305. PartitionId int64 `gorm:"-" json:"partition_id" form:"partition_id"`
  306. PartitionName string `gorm:"-" json:"partition_name" form:"partition_name"`
  307. DeviceNumber string `gorm:"-" json:"device_number" form:"device_number"`
  308. // DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordId"`
  309. // PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:DialysisOrderId"`
  310. // AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:DialysisOrderId"`
  311. // TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:DialysisOrderId"`
  312. DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordDate;AssociationForeignKey:DialysisDate;"`
  313. PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  314. AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  315. TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  316. Device DeviceNumber `json:"device" gorm:"foreignkey:ID;AssociationForeignKey:BedID;"`
  317. }
  318. type DialysisPrescriptionAddtional struct {
  319. DialysisPrescription
  320. Device Device `json:"device" gorm:"foreignkey:dialyzer"`
  321. }
  322. type PatientDiseaseCourse struct {
  323. ID int64 `gorm:"column:id" json:"id" form:"id"`
  324. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  325. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  326. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  327. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  328. Content string `gorm:"column:content" json:"content" form:"content"`
  329. Status int64 `gorm:"column:status" json:"-" form:"-"`
  330. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  331. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  332. Title string `gorm:"column:title" json:"title"`
  333. }
  334. func (PatientDiseaseCourse) TableName() string {
  335. return "xt_patient_course_of_disease"
  336. }
  337. type PatientRescueRecord struct {
  338. ID int64 `gorm:"column:id" json:"id" form:"id"`
  339. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  340. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  341. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  342. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  343. Content string `gorm:"column:content" json:"content" form:"content"`
  344. Status int64 `gorm:"column:status" json:"-" form:"-"`
  345. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  346. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  347. }
  348. func (PatientRescueRecord) TableName() string {
  349. return "xt_patient_rescue_record"
  350. }
  351. type PatientLapseto struct {
  352. ID int64 `gorm:"column:id" json:"id" form:"id"`
  353. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  354. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type" form:"lapseto_type"`
  355. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time" form:"lapseto_time"`
  356. Status int64 `gorm:"column:status" json:"status" form:"status"`
  357. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  358. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  359. }
  360. func (PatientLapseto) TableName() string {
  361. return "xt_patient_lapseto"
  362. }
  363. type FormItem struct {
  364. ID int64 `json:"id"`
  365. ProjectId int64 `json:"project_id"`
  366. ProjectName string `json:"project_name"`
  367. ItemId int64 `json:"item_id"`
  368. Item string `json:"item"`
  369. ItemName string `json:"item_name"`
  370. RangeType int64 `json:"range_type"`
  371. Value string `json:"value"`
  372. }
  373. type SgjUserIllness struct {
  374. ID int64 `gorm:"column:id" json:"id" form:"id"`
  375. IllnessName string `gorm:"column:illness_name" json:"illness_name" form:"illness_name"`
  376. Status int64 `gorm:"column:status" json:"status" form:"status"`
  377. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  378. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  379. }
  380. func (SgjUserIllness) TableName() string {
  381. return "sgj_user_illness"
  382. }
  383. type XtPatientsNew struct {
  384. ID int64 `gorm:"column:id" json:"id" form:"id"`
  385. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  386. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  387. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  388. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  389. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  390. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  391. Source int64 `gorm:"column:source" json:"source" form:"source"`
  392. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  393. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  394. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  395. Name string `gorm:"column:name" json:"name" form:"name"`
  396. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  397. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  398. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  399. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  400. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  401. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  402. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  403. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  404. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  405. Height int64 `gorm:"column:height" json:"height" form:"height"`
  406. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  407. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  408. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  409. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  410. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  411. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  412. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  413. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  414. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  415. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  416. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  417. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  418. Children int64 `gorm:"column:children" json:"children" form:"children"`
  419. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  420. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  421. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  422. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  423. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  424. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  425. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  426. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  427. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  428. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  429. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  430. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  431. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  432. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  433. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  434. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  435. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  436. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  437. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  438. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  439. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  440. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  441. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  442. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  443. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  444. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  445. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  446. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  447. Status int64 `gorm:"column:status" json:"status" form:"status"`
  448. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  449. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  450. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  451. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  452. Age int64 `gorm:"column:age" json:"age" form:"age"`
  453. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  454. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  455. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  456. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  457. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  458. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  459. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  460. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  461. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  462. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  463. BloodPatients int64 `gorm:"column:blood_patients" json:"blood_patients" form:"blood_patients"`
  464. SlowPatients int64 `gorm:"column:slow_patients" json:"slow_patients" form:"slow_patients"`
  465. MemberPatients int64 `gorm:"column:member_patients" json:"member_patients" form:"member_patients"`
  466. EcommerPatients string `gorm:"column:ecommer_patients" json:"ecommer_patients" form:"ecommer_patients"`
  467. BloodId int64 `gorm:"column:blood_id" json:"blood_id" form:"blood_id"`
  468. SlowId int64 `gorm:"column:slow_id" json:"slow_id" form:"slow_id"`
  469. MemberId int64 `gorm:"column:member_id" json:"member_id" form:"member_id"`
  470. MemberFistdate int64 `gorm:"column:member_fistdate" json:"member_fistdate" form:"member_fistdate"`
  471. MemberPatienttype int64 `gorm:"column:member_patienttype" json:"member_patienttype" form:"member_patienttype"`
  472. MemberTreatement int64 `gorm:"column:member_treatement" json:"member_treatement" form:"member_treatement"`
  473. EquitmentId string `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  474. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  475. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  476. }
  477. func (XtPatientsNew) TableName() string {
  478. return "xt_patients_new"
  479. }
  480. type PatientsNew struct {
  481. ID int64 `gorm:"column:id" json:"id" form:"id"`
  482. Name string `gorm:"column:name" json:"name" form:"name"`
  483. }
  484. type CdmPatients struct {
  485. ID int64 `gorm:"column:id" json:"id" form:"id"`
  486. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  487. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  488. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  489. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  490. Source int64 `gorm:"column:source" json:"source" form:"source"`
  491. Name string `gorm:"column:name" json:"name" form:"name"`
  492. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  493. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  494. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  495. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  496. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  497. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  498. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  499. Height int64 `gorm:"column:height" json:"height" form:"height"`
  500. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  501. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  502. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  503. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  504. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  505. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  506. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  507. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  508. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  509. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  510. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  511. Children int64 `gorm:"column:children" json:"children" form:"children"`
  512. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  513. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  514. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  515. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  516. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  517. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  518. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  519. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  520. Status int64 `gorm:"column:status" json:"status" form:"status"`
  521. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  522. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  523. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  524. }
  525. func (CdmPatients) TableName() string {
  526. return "xt_patients"
  527. }
  528. type CdmPatientsInfectiousDiseases struct {
  529. ID int64 `gorm:"column:id" json:"id" form:"id"`
  530. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  531. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  532. Status int64 `gorm:"column:status" json:"status" form:"status"`
  533. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  534. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  535. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  536. }
  537. func (CdmPatientsInfectiousDiseases) TableName() string {
  538. return "xt_patients_infectious_diseases"
  539. }
  540. type CdmPatientsChronicDiseases struct {
  541. ID int64 `gorm:"column:id" json:"id" form:"id"`
  542. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  543. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  544. Status int64 `gorm:"column:status" json:"status" form:"status"`
  545. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  546. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  547. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  548. }
  549. func (CdmPatientsChronicDiseases) TableName() string {
  550. return "xt_patients_chronic_diseases"
  551. }
  552. type SgjUserCustomer struct {
  553. ID int64 `gorm:"column:id" json:"id" form:"id"`
  554. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  555. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  556. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  557. Name string `gorm:"column:name" json:"name" form:"name"`
  558. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  559. ProvinceId int64 `gorm:"column:province_id" json:"province_id" form:"province_id"`
  560. CityId int64 `gorm:"column:city_id" json:"city_id" form:"city_id"`
  561. Address string `gorm:"column:address" json:"address" form:"address"`
  562. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  563. TreatType int64 `gorm:"column:treat_type" json:"treat_type" form:"treat_type"`
  564. Relationship int64 `gorm:"column:relationship" json:"relationship" form:"relationship"`
  565. IllnessId int64 `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
  566. WechatOpenid string `gorm:"column:wechat_openid" json:"wechat_openid" form:"wechat_openid"`
  567. Membership int64 `gorm:"column:membership" json:"membership" form:"membership"`
  568. Sources int64 `gorm:"column:sources" json:"sources" form:"sources"`
  569. Status int64 `gorm:"column:status" json:"status" form:"status"`
  570. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  571. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  572. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  573. WechatUnionid string `gorm:"column:wechat_unionid" json:"wechat_unionid" form:"wechat_unionid"`
  574. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  575. MedicalDiagnose string `gorm:"column:medical_diagnose" json:"medical_diagnose" form:"medical_diagnose"`
  576. YzUid int64 `gorm:"column:yz_uid" json:"yz_uid" form:"yz_uid"`
  577. Tttime int64 `gorm:"column:tttime" json:"tttime" form:"tttime"`
  578. IllDate int64 `gorm:"column:ill_date" json:"ill_date" form:"ill_date"`
  579. DistrictId int64 `gorm:"column:district_id" json:"district_id" form:"district_id"`
  580. }
  581. func (SgjUserCustomer) TableName() string {
  582. return "sgj_user_customer"
  583. }
  584. type PatientCourseOfDiseases struct {
  585. ID int64 `gorm:"column:id" json:"id" form:"id"`
  586. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  587. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  588. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  589. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  590. Content string `gorm:"column:content" json:"content" form:"content"`
  591. Status int64 `gorm:"column:status" json:"status" form:"status"`
  592. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  593. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  594. Title string `gorm:"column:title" json:"title" form:"title"`
  595. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  596. }
  597. type PatientCourseOfDiseasess struct {
  598. ID int64 `gorm:"column:id" json:"id" form:"id"`
  599. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  600. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  601. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  602. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  603. Content string `gorm:"column:content" json:"content" form:"content"`
  604. Status int64 `gorm:"column:status" json:"status" form:"status"`
  605. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  606. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  607. Title string `gorm:"column:title" json:"title" form:"title"`
  608. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  609. Name string `gorm:"column:name" json:"name" form:"name"`
  610. }
  611. type PatientCourseOfDisease struct {
  612. ID int64 `gorm:"column:id" json:"id" form:"id"`
  613. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  614. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  615. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  616. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  617. Content string `gorm:"column:content" json:"content" form:"content"`
  618. Status int64 `gorm:"column:status" json:"status" form:"status"`
  619. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  620. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  621. Title string `gorm:"column:title" json:"title" form:"title"`
  622. }
  623. func (PatientCourseOfDisease) TableName() string {
  624. return "xt_patient_course_of_disease"
  625. }
  626. type XtPatientsInfectiousDiseases struct {
  627. ID int64 `gorm:"column:id" json:"id" form:"id"`
  628. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  629. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  630. Status int64 `gorm:"column:status" json:"status" form:"status"`
  631. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  632. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  633. }
  634. func (XtPatientsInfectiousDiseases) TableName() string {
  635. return "xt_patients_infectious_diseases"
  636. }
  637. type XtInspectionReference struct {
  638. ID int64 `gorm:"column:id" json:"id" form:"id"`
  639. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  640. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  641. Project string `gorm:"column:project" json:"project" form:"project"`
  642. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  643. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  644. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  645. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  646. Item string `gorm:"column:item" json:"item" form:"item"`
  647. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  648. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  649. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  650. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  651. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  652. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  653. Status int64 `gorm:"column:status" json:"status" form:"status"`
  654. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  655. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  656. }
  657. func (XtInspectionReference) TableName() string {
  658. return "xt_inspection_reference"
  659. }
  660. type XtInspection struct {
  661. ID int64 `gorm:"column:id" json:"id" form:"id"`
  662. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  663. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  664. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  665. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  666. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  667. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  668. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  669. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  670. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  671. Status int64 `gorm:"column:status" json:"status" form:"status"`
  672. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  673. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  674. }
  675. func (XtInspection) TableName() string {
  676. return "xt_inspection"
  677. }
  678. type XtPatients struct {
  679. ID int64 `gorm:"column:id" json:"id" form:"id"`
  680. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  681. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  682. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  683. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  684. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  685. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  686. Source int64 `gorm:"column:source" json:"source" form:"source"`
  687. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  688. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  689. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  690. Name string `gorm:"column:name" json:"name" form:"name"`
  691. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  692. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  693. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  694. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  695. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  696. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  697. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  698. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  699. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  700. Height int64 `gorm:"column:height" json:"height" form:"height"`
  701. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  702. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  703. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  704. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  705. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  706. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  707. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  708. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  709. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  710. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  711. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  712. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  713. Children int64 `gorm:"column:children" json:"children" form:"children"`
  714. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  715. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  716. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  717. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  718. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  719. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  720. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  721. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  722. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  723. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  724. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  725. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  726. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  727. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  728. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  729. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  730. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  731. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  732. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  733. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  734. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  735. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  736. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  737. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  738. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  739. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  740. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  741. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  742. Status int64 `gorm:"column:status" json:"status" form:"status"`
  743. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  744. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  745. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  746. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  747. Age int64 `gorm:"column:age" json:"age" form:"age"`
  748. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  749. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  750. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  751. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  752. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  753. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  754. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  755. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  756. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  757. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  758. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  759. }
  760. func (XtPatients) TableName() string {
  761. return "xt_patients"
  762. }
  763. type SgjUserAdminLoginLog struct {
  764. ID int64 `gorm:"column:id" json:"id" form:"id"`
  765. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  766. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  767. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  768. Ip string `gorm:"column:ip" json:"ip" form:"ip"`
  769. OperateType int64 `gorm:"column:operate_type" json:"operate_type" form:"operate_type"`
  770. AppType int64 `gorm:"column:app_type" json:"app_type" form:"app_type"`
  771. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  772. }
  773. func (SgjUserAdminLoginLog) TableName() string {
  774. return "sgj_user_admin_login_log"
  775. }
  776. type KyActivityTable struct {
  777. ID int64 `gorm:"column:id" json:"id" form:"id"`
  778. Name string `gorm:"column:name" json:"name" form:"name"`
  779. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  780. Address string `gorm:"column:address" json:"address" form:"address"`
  781. Position int64 `gorm:"column:position" json:"position" form:"position"`
  782. HospitalName string `gorm:"column:hospital_name" json:"hospital_name" form:"hospital_name"`
  783. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  784. IsThink int64 `gorm:"column:is_think" json:"is_think" form:"is_think"`
  785. OtherMode string `gorm:"column:other_mode" json:"other_mode" form:"other_mode"`
  786. OtherRemark string `gorm:"column:other_remark" json:"other_remark" form:"other_remark"`
  787. Gift int64 `gorm:"column:gift" json:"gift" form:"gift"`
  788. OtherMessage string `gorm:"column:other_message" json:"other_message" form:"other_message"`
  789. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  790. Status int64 `gorm:"column:status" json:"status" form:"status"`
  791. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  792. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  793. SystemName string `gorm:"column:system_name" json:"system_name" form:"system_name"`
  794. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  795. }
  796. func (KyActivityTable) TableName() string {
  797. return "ky_activity_table"
  798. }
  799. type SgjUserRole struct {
  800. ID int64 `gorm:"column:id" json:"id" form:"id"`
  801. RoleName string `gorm:"column:role_name" json:"role_name" form:"role_name"`
  802. RoleIntroduction string `gorm:"column:role_introduction" json:"role_introduction" form:"role_introduction"`
  803. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  804. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  805. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  806. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  807. Status int64 `gorm:"column:status" json:"status" form:"status"`
  808. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  809. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  810. Number int64 `gorm:"column:number" json:"number" form:"number"`
  811. IsSystem int64 `gorm:"column:is_system" json:"is_system" form:"is_system"`
  812. }
  813. func (SgjUserRole) TableName() string {
  814. return "sgj_user_role"
  815. }
  816. type ExportErrLog struct {
  817. ID int64 `gorm:"column:id" json:"id" form:"id"`
  818. LogType int64 `gorm:"column:log_type" json:"log_type" form:"log_type"`
  819. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  820. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  821. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  822. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  823. Status int64 `gorm:"column:status" json:"status" form:"status"`
  824. ExportTime int64 `gorm:"column:export_time" json:"export_time" form:"export_time"`
  825. }
  826. func (ExportErrLog) TableName() string {
  827. return "xt_export_err_log"
  828. }
  829. type ExportLog struct {
  830. ID int64 `gorm:"column:id" json:"id" form:"id"`
  831. LogType int64 `gorm:"column:log_type" json:"log_type" form:"log_type"`
  832. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  833. TotalNum int64 `gorm:"column:total_num" json:"total_num" form:"total_num"`
  834. FailNum int64 `gorm:"column:fail_num" json:"fail_num" form:"fail_num"`
  835. SuccessNum int64 `gorm:"column:success_num" json:"success_num" form:"success_num"`
  836. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  837. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  838. ExportTime int64 `gorm:"column:export_time" json:"export_time" form:"export_time"`
  839. Status int64 `gorm:"column:status" json:"status" form:"status"`
  840. ExportErrLog []*ExportErrLog `json:"err_logs" gorm:"foreignkey:ExportTime;AssociationForeignKey:ExportTime;"`
  841. }
  842. func (ExportLog) TableName() string {
  843. return "xt_export_log"
  844. }