patient_models.go 75KB

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