patient_models.go 61KB

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