patient_models.go 93KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200
  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. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  113. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  114. ContagionIds []int64 `gorm:"-"`
  115. DryWeight float64 `gorm:"-"`
  116. }
  117. func (Patients) TableName() string {
  118. return "xt_patients"
  119. }
  120. type ChronicDiseases struct {
  121. ID int64 `gorm:"column:id" json:"id" form:"id"`
  122. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  123. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  124. Status int64 `gorm:"column:status" json:"status" form:"status"`
  125. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  126. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  127. }
  128. func (ChronicDiseases) TableName() string {
  129. return "xt_patients_chronic_diseases"
  130. }
  131. type InfectiousDiseases struct {
  132. ID int64 `gorm:"column:id" json:"id" form:"id"`
  133. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  134. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  135. Status int64 `gorm:"column:status" json:"status" form:"status"`
  136. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  137. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  138. }
  139. func (InfectiousDiseases) TableName() string {
  140. return "xt_patients_infectious_diseases"
  141. }
  142. type DialysisPrescription struct {
  143. ID int64 `gorm:"column:id" json:"id"`
  144. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  145. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  146. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  147. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  148. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  149. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  150. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  151. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  152. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  153. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  154. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  155. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  156. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  157. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  158. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  159. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  160. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  161. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  162. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  163. //DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  164. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  165. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  166. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  167. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  168. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  169. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  170. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  171. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  172. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  173. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  174. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  175. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  176. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  177. Remark string `gorm:"column:remark" json:"remark"`
  178. Status int64 `gorm:"column:status" json:"status"`
  179. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  180. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  181. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  182. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  183. Creater int64 `gorm:"column:creater" json:"creater"`
  184. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  185. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  186. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  187. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  188. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  189. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  190. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  191. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  192. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  193. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  194. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  195. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  196. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  197. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  198. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  199. Jms int64 `gorm:"column:jms" json:"jms"`
  200. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  201. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  202. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  203. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  204. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  205. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  206. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  207. Injector int64 `gorm:"column:injector" json:"injector"`
  208. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  209. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  210. Package int64 `gorm:"column:package" json:"package"`
  211. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  212. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:Creater;"`
  213. PreImpulse float64 `gorm:"column:pre_impulse" json:"pre_impulse" form:"pre_impulse"`
  214. AnticoagulantStopTimeMin int64 `gorm:"column:anticoagulant_stop_time_min" json:"anticoagulant_stop_time_min" form:"anticoagulant_stop_time_min"`
  215. AnticoagulantStopTimeHour int64 `gorm:"column:anticoagulant_stop_time_hour" json:"anticoagulant_stop_time_hour" form:"anticoagulant_stop_time_hour"`
  216. Blood string `gorm:"column:blood" json:"blood"`
  217. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  218. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  219. AntioxidantCommodityName string `gorm:"column:antioxidant_commodity_name" json:"antioxidant_commodity_name" form:"antioxidant_commodity_name"`
  220. DisplaceSpeed string `gorm:"column:displace_speed" json:"displace_speed" form:"displace_speed"`
  221. Illness int64 `gorm:"column:illness" json:"illness" form:"illness"`
  222. Amylaceum string `gorm:"column:amylaceum" json:"amylaceum" form:"amylaceum"`
  223. SingleTime string `gorm:"column:single_time" json:"single_time" form:"single_time"`
  224. SingleWater string `gorm:"column:single_water" json:"single_water" form:"single_water"`
  225. ReplacementFlow string `gorm:"column:replacement_flow" json:"replacement_flow" form:"replacement_flow"`
  226. PlasmaSeparator string `gorm:"column:plasma_separator" json:"plasma_separator" form:"plasma_separator"`
  227. BilirubinAdsorptionColumn string `gorm:"column:bilirubin_adsorption_column" json:"bilirubin_adsorption_column" form:"bilirubin_adsorption_column"`
  228. OxygenUptake int64 `gorm:"column:oxygen_uptake" json:"oxygen_uptake" form:"oxygen_uptake"`
  229. OxygenFlow string `gorm:"column:oxygen_flow" json:"oxygen_flow" form:"oxygen_flow"`
  230. OxygenTime string `gorm:"column:oxygen_time" json:"oxygen_time" form:"oxygen_time"`
  231. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  232. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  233. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  234. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  235. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  236. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  237. MaxUltrafiltrationRate float64 `gorm:"column:max_ultrafiltration_rate" json:"max_ultrafiltration_rate" form:"max_ultrafiltration_rate"`
  238. }
  239. func (DialysisPrescription) TableName() string {
  240. return "xt_dialysis_prescription"
  241. }
  242. type DialysisPrescriptionList struct {
  243. ID int64 `gorm:"column:id" json:"id"`
  244. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  245. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  246. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  247. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  248. Creater int64 `gorm:"column:creater" json:"creater"`
  249. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  250. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  251. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  252. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  253. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  254. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  255. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  256. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  257. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  258. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  259. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  260. }
  261. func (DialysisPrescriptionList) TableName() string {
  262. return "xt_dialysis_prescription"
  263. }
  264. type DialysisAssesmentBefor struct {
  265. ID int64 `gorm:"column:id" json:"id"`
  266. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  267. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  268. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  269. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  270. }
  271. func (DialysisAssesmentBefor) TableName() string {
  272. return "xt_assessment_before_dislysis"
  273. }
  274. type DialysisSolution struct {
  275. ID int64 `gorm:"column:id" json:"id" form:"id"`
  276. Name string `gorm:"column:name" json:"name" form:"name"`
  277. SubName string `gorm:"column:sub_name" json:"sub_name" form:"sub_name"`
  278. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  279. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  280. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  281. Type int64 `gorm:"column:type" json:"type" form:"type"`
  282. Period string `gorm:"column:period" json:"period" form:"period"`
  283. Times string `gorm:"column:times" json:"times" form:"times"`
  284. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  285. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  286. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  287. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  288. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  289. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  290. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  291. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  292. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  293. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  294. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  295. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  296. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  297. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  298. Dewater float64 `gorm:"column:dewater" json:"dewater" form:"dewater"`
  299. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  300. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  301. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  302. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  303. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  304. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  305. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  306. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  307. FirstDialysis int64 `gorm:"column:first_dialysis" json:"first_dialysis" form:"first_dialysis"`
  308. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  309. InitiateMode int64 `gorm:"column:initiate_mode" json:"initiate_mode" form:"initiate_mode"`
  310. AffirmState int64 `gorm:"column:affirm_state" json:"affirm_state" form:"affirm_state"`
  311. UseState int64 `gorm:"column:use_state" json:"use_state" form:"use_state"`
  312. Status int64 `gorm:"column:status" json:"status" form:"status"`
  313. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  314. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  315. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  316. SolutionType int64 `gorm:"column:solution_type" json:"solution_type" form:"solution_type"`
  317. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  318. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  319. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  320. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  321. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  322. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  323. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  324. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  325. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  326. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  327. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  328. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  329. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  330. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialysate_formulation"`
  331. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  332. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  333. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  334. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  335. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  336. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  337. AntioxidantCommodityName string `gorm:"column:antioxidant_commodity_name" json:"antioxidant_commodity_name" form:"antioxidant_commodity_name"`
  338. DisplaceSpeed string `gorm:"column:displace_speed" json:"displace_speed" form:"displace_speed"`
  339. Illness int64 `gorm:"column:illness" json:"illness" form:"illness"`
  340. Amylaceum string `gorm:"column:amylaceum" json:"amylaceum" form:"amylaceum"`
  341. PlasmaSeparator string `gorm:"column:plasma_separator" json:"plasma_separator" form:"plasma_separator"`
  342. BilirubinAdsorptionColumn string `gorm:"column:bilirubin_adsorption_column" json:"bilirubin_adsorption_column" form:"bilirubin_adsorption_column"`
  343. OxygenUptake int64 `gorm:"column:oxygen_uptake" json:"oxygen_uptake" form:"oxygen_uptake"`
  344. OxygenFlow string `gorm:"column:oxygen_flow" json:"oxygen_flow" form:"oxygen_flow"`
  345. OxygenTime string `gorm:"column:oxygen_time" json:"oxygen_time" form:"oxygen_time"`
  346. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  347. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  348. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  349. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  350. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  351. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  352. MaxUltrafiltrationRate float64 `gorm:"column:max_ultrafiltration_rate" json:"max_ultrafiltration_rate" form:"max_ultrafiltration_rate"`
  353. }
  354. func (DialysisSolution) TableName() string {
  355. return "xt_dialysis_solution"
  356. }
  357. type UserAdminRole struct {
  358. ID int64 `gorm:"column:id" json:"id"`
  359. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  360. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  361. AppId int64 `gorm:"column:app_id" json:"app_id"`
  362. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  363. UserName string `gorm:"column:user_name" json:"user_name"`
  364. Avatar string `gorm:"column:avatar" json:"avatar"`
  365. UserType int64 `gorm:"column:user_type" json:"user_type"`
  366. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  367. Intro string `gorm:"column:intro" json:"intro"`
  368. Status int64 `gorm:"column:status" json:"status"`
  369. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  370. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  371. Department string `gorm:"column:department" json:"department"`
  372. DepartmentId int64 `gorm:"column:department_id" json:"department_id"`
  373. XtHisDepartment XtHisDepartment `json:"department" gorm:"foreignkey:DepartmentId;AssociationForeignKey:ID;"`
  374. }
  375. func (UserAdminRole) TableName() string {
  376. return "sgj_user_admin_role"
  377. }
  378. type PatientDialysisRecord struct {
  379. DialysisOrder
  380. ScheduleType int64 `gorm:"-" json:"schedule_type" form:"schedule_type"`
  381. PartitionId int64 `gorm:"-" json:"partition_id" form:"partition_id"`
  382. PartitionName string `gorm:"-" json:"partition_name" form:"partition_name"`
  383. DeviceNumber string `gorm:"-" json:"device_number" form:"device_number"`
  384. // DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordId"`
  385. // PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:DialysisOrderId"`
  386. // AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:DialysisOrderId"`
  387. // TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:DialysisOrderId"`
  388. DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordDate;AssociationForeignKey:DialysisDate;"`
  389. PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  390. AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  391. TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  392. Device DeviceNumber `json:"device" gorm:"foreignkey:ID;AssociationForeignKey:BedID;"`
  393. MonitoringRecord []MonitoringRecord `json:"monitoring_record" gorm:"foreignkey:MonitoringDate;AssociationForeignKey:DialysisDate;"`
  394. }
  395. type DialysisPrescriptionAddtional struct {
  396. DialysisPrescription
  397. Device Device `json:"device" gorm:"foreignkey:dialyzer"`
  398. }
  399. type PatientDiseaseCourse struct {
  400. ID int64 `gorm:"column:id" json:"id" form:"id"`
  401. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  402. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  403. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  404. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  405. Content string `gorm:"column:content" json:"content" form:"content"`
  406. Status int64 `gorm:"column:status" json:"-" form:"-"`
  407. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  408. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  409. Title string `gorm:"column:title" json:"title"`
  410. }
  411. func (PatientDiseaseCourse) TableName() string {
  412. return "xt_patient_course_of_disease"
  413. }
  414. type PatientRescueRecord struct {
  415. ID int64 `gorm:"column:id" json:"id" form:"id"`
  416. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  417. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  418. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  419. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  420. Content string `gorm:"column:content" json:"content" form:"content"`
  421. Status int64 `gorm:"column:status" json:"-" form:"-"`
  422. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  423. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  424. }
  425. func (PatientRescueRecord) TableName() string {
  426. return "xt_patient_rescue_record"
  427. }
  428. type PatientLapseto struct {
  429. ID int64 `gorm:"column:id" json:"id" form:"id"`
  430. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  431. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type" form:"lapseto_type"`
  432. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time" form:"lapseto_time"`
  433. Status int64 `gorm:"column:status" json:"status" form:"status"`
  434. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  435. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  436. }
  437. func (PatientLapseto) TableName() string {
  438. return "xt_patient_lapseto"
  439. }
  440. type FormItem struct {
  441. ID int64 `json:"id"`
  442. ProjectId int64 `json:"project_id"`
  443. ProjectName string `json:"project_name"`
  444. ItemId int64 `json:"item_id"`
  445. Item string `json:"item"`
  446. ItemName string `json:"item_name"`
  447. RangeType int64 `json:"range_type"`
  448. Value string `json:"value"`
  449. }
  450. type SgjUserIllness struct {
  451. ID int64 `gorm:"column:id" json:"id" form:"id"`
  452. IllnessName string `gorm:"column:illness_name" json:"illness_name" form:"illness_name"`
  453. Status int64 `gorm:"column:status" json:"status" form:"status"`
  454. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  455. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  456. }
  457. func (SgjUserIllness) TableName() string {
  458. return "sgj_user_illness"
  459. }
  460. type XtPatientsNew struct {
  461. ID int64 `gorm:"column:id" json:"id" form:"id"`
  462. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  463. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  464. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  465. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  466. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  467. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  468. Source int64 `gorm:"column:source" json:"source" form:"source"`
  469. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  470. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  471. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  472. Name string `gorm:"column:name" json:"name" form:"name"`
  473. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  474. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  475. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  476. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  477. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  478. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  479. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  480. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  481. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  482. Height int64 `gorm:"column:height" json:"height" form:"height"`
  483. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  484. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  485. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  486. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  487. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  488. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  489. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  490. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  491. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  492. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  493. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  494. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  495. Children int64 `gorm:"column:children" json:"children" form:"children"`
  496. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  497. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  498. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  499. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  500. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  501. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  502. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  503. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  504. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  505. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  506. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  507. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  508. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  509. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  510. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  511. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  512. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  513. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  514. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  515. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  516. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  517. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  518. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  519. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  520. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  521. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  522. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  523. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  524. Status int64 `gorm:"column:status" json:"status" form:"status"`
  525. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  526. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  527. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  528. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  529. Age int64 `gorm:"column:age" json:"age" form:"age"`
  530. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  531. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  532. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  533. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  534. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  535. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  536. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  537. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  538. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  539. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  540. BloodPatients int64 `gorm:"column:blood_patients" json:"blood_patients" form:"blood_patients"`
  541. SlowPatients int64 `gorm:"column:slow_patients" json:"slow_patients" form:"slow_patients"`
  542. MemberPatients int64 `gorm:"column:member_patients" json:"member_patients" form:"member_patients"`
  543. EcommerPatients string `gorm:"column:ecommer_patients" json:"ecommer_patients" form:"ecommer_patients"`
  544. BloodId int64 `gorm:"column:blood_id" json:"blood_id" form:"blood_id"`
  545. SlowId int64 `gorm:"column:slow_id" json:"slow_id" form:"slow_id"`
  546. MemberId int64 `gorm:"column:member_id" json:"member_id" form:"member_id"`
  547. MemberFistdate int64 `gorm:"column:member_fistdate" json:"member_fistdate" form:"member_fistdate"`
  548. MemberPatienttype int64 `gorm:"column:member_patienttype" json:"member_patienttype" form:"member_patienttype"`
  549. MemberTreatement int64 `gorm:"column:member_treatement" json:"member_treatement" form:"member_treatement"`
  550. EquitmentId string `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  551. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  552. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  553. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  554. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  555. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  556. }
  557. func (XtPatientsNew) TableName() string {
  558. return "xt_patients_new"
  559. }
  560. type PatientsNew struct {
  561. ID int64 `gorm:"column:id" json:"id" form:"id"`
  562. Name string `gorm:"column:name" json:"name" form:"name"`
  563. }
  564. type CdmPatients struct {
  565. ID int64 `gorm:"column:id" json:"id" form:"id"`
  566. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  567. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  568. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  569. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  570. Source int64 `gorm:"column:source" json:"source" form:"source"`
  571. Name string `gorm:"column:name" json:"name" form:"name"`
  572. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  573. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  574. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  575. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  576. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  577. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  578. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  579. Height int64 `gorm:"column:height" json:"height" form:"height"`
  580. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  581. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  582. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  583. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  584. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  585. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  586. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  587. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  588. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  589. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  590. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  591. Children int64 `gorm:"column:children" json:"children" form:"children"`
  592. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  593. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  594. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  595. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  596. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  597. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  598. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  599. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  600. Status int64 `gorm:"column:status" json:"status" form:"status"`
  601. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  602. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  603. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  604. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  605. }
  606. func (CdmPatients) TableName() string {
  607. return "xt_patients"
  608. }
  609. type CdmPatientsInfectiousDiseases struct {
  610. ID int64 `gorm:"column:id" json:"id" form:"id"`
  611. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  612. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  613. Status int64 `gorm:"column:status" json:"status" form:"status"`
  614. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  615. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  616. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  617. }
  618. func (CdmPatientsInfectiousDiseases) TableName() string {
  619. return "xt_patients_infectious_diseases"
  620. }
  621. type CdmPatientsChronicDiseases struct {
  622. ID int64 `gorm:"column:id" json:"id" form:"id"`
  623. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  624. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  625. Status int64 `gorm:"column:status" json:"status" form:"status"`
  626. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  627. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  628. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  629. }
  630. func (CdmPatientsChronicDiseases) TableName() string {
  631. return "xt_patients_chronic_diseases"
  632. }
  633. type SgjUserCustomer struct {
  634. ID int64 `gorm:"column:id" json:"id" form:"id"`
  635. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  636. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  637. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  638. Name string `gorm:"column:name" json:"name" form:"name"`
  639. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  640. ProvinceId int64 `gorm:"column:province_id" json:"province_id" form:"province_id"`
  641. CityId int64 `gorm:"column:city_id" json:"city_id" form:"city_id"`
  642. Address string `gorm:"column:address" json:"address" form:"address"`
  643. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  644. TreatType int64 `gorm:"column:treat_type" json:"treat_type" form:"treat_type"`
  645. Relationship int64 `gorm:"column:relationship" json:"relationship" form:"relationship"`
  646. IllnessId int64 `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
  647. WechatOpenid string `gorm:"column:wechat_openid" json:"wechat_openid" form:"wechat_openid"`
  648. Membership int64 `gorm:"column:membership" json:"membership" form:"membership"`
  649. Sources int64 `gorm:"column:sources" json:"sources" form:"sources"`
  650. Status int64 `gorm:"column:status" json:"status" form:"status"`
  651. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  652. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  653. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  654. WechatUnionid string `gorm:"column:wechat_unionid" json:"wechat_unionid" form:"wechat_unionid"`
  655. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  656. MedicalDiagnose string `gorm:"column:medical_diagnose" json:"medical_diagnose" form:"medical_diagnose"`
  657. YzUid int64 `gorm:"column:yz_uid" json:"yz_uid" form:"yz_uid"`
  658. Tttime int64 `gorm:"column:tttime" json:"tttime" form:"tttime"`
  659. IllDate int64 `gorm:"column:ill_date" json:"ill_date" form:"ill_date"`
  660. DistrictId int64 `gorm:"column:district_id" json:"district_id" form:"district_id"`
  661. }
  662. func (SgjUserCustomer) TableName() string {
  663. return "sgj_user_customer"
  664. }
  665. type PatientCourseOfDiseases struct {
  666. ID int64 `gorm:"column:id" json:"id" form:"id"`
  667. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  668. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  669. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  670. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  671. Content string `gorm:"column:content" json:"content" form:"content"`
  672. Status int64 `gorm:"column:status" json:"status" form:"status"`
  673. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  674. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  675. Title string `gorm:"column:title" json:"title" form:"title"`
  676. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  677. }
  678. type PatientCourseOfDiseasess struct {
  679. ID int64 `gorm:"column:id" json:"id" form:"id"`
  680. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  681. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  682. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  683. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  684. Content string `gorm:"column:content" json:"content" form:"content"`
  685. Status int64 `gorm:"column:status" json:"status" form:"status"`
  686. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  687. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  688. Title string `gorm:"column:title" json:"title" form:"title"`
  689. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  690. Name string `gorm:"column:name" json:"name" form:"name"`
  691. }
  692. type PatientCourseOfDisease struct {
  693. ID int64 `gorm:"column:id" json:"id" form:"id"`
  694. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  695. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  696. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  697. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  698. Content string `gorm:"column:content" json:"content" form:"content"`
  699. Status int64 `gorm:"column:status" json:"status" form:"status"`
  700. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  701. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  702. Title string `gorm:"column:title" json:"title" form:"title"`
  703. }
  704. func (PatientCourseOfDisease) TableName() string {
  705. return "xt_patient_course_of_disease"
  706. }
  707. type XtPatientsInfectiousDiseases struct {
  708. ID int64 `gorm:"column:id" json:"id" form:"id"`
  709. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  710. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  711. Status int64 `gorm:"column:status" json:"status" form:"status"`
  712. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  713. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  714. }
  715. func (XtPatientsInfectiousDiseases) TableName() string {
  716. return "xt_patients_infectious_diseases"
  717. }
  718. type XtInspectionReference struct {
  719. ID int64 `gorm:"column:id" json:"id" form:"id"`
  720. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  721. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  722. Project string `gorm:"column:project" json:"project" form:"project"`
  723. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  724. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  725. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  726. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  727. Item string `gorm:"column:item" json:"item" form:"item"`
  728. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  729. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  730. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  731. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  732. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  733. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  734. Status int64 `gorm:"column:status" json:"status" form:"status"`
  735. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  736. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  737. }
  738. func (XtInspectionReference) TableName() string {
  739. return "xt_inspection_reference"
  740. }
  741. type VmXtInspection struct {
  742. ID int64 `gorm:"column:id" json:"id" form:"id"`
  743. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  744. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  745. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  746. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  747. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  748. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  749. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  750. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  751. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  752. Status int64 `gorm:"column:status" json:"status" form:"status"`
  753. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  754. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  755. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  756. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  757. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  758. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  759. }
  760. type XtInspection struct {
  761. ID int64 `gorm:"column:id" json:"id" form:"id"`
  762. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  763. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  764. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  765. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  766. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  767. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  768. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  769. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  770. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  771. Status int64 `gorm:"column:status" json:"status" form:"status"`
  772. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  773. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  774. }
  775. func (XtInspection) TableName() string {
  776. return "xt_inspection"
  777. }
  778. type VmInspection struct {
  779. ID int64 `gorm:"column:id" json:"id" form:"id"`
  780. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  781. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  782. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  783. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  784. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  785. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  786. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  787. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  788. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  789. Status int64 `gorm:"column:status" json:"status" form:"status"`
  790. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  791. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  792. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  793. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  794. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  795. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  796. }
  797. type BloodXtPatients struct {
  798. ID int64 `gorm:"column:id" json:"id" form:"id"`
  799. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  800. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  801. Name string `gorm:"column:name" json:"name" form:"name"`
  802. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  803. }
  804. func (BloodXtPatients) TableName() string {
  805. return "xt_patients"
  806. }
  807. type XtPatients struct {
  808. ID int64 `gorm:"column:id" json:"id" form:"id"`
  809. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  810. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  811. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  812. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  813. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  814. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  815. Source int64 `gorm:"column:source" json:"source" form:"source"`
  816. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  817. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  818. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  819. Name string `gorm:"column:name" json:"name" form:"name"`
  820. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  821. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  822. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  823. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  824. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  825. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  826. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  827. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  828. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  829. Height int64 `gorm:"column:height" json:"height" form:"height"`
  830. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  831. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  832. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  833. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  834. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  835. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  836. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  837. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  838. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  839. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  840. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  841. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  842. Children int64 `gorm:"column:children" json:"children" form:"children"`
  843. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  844. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  845. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  846. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  847. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  848. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  849. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  850. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  851. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  852. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  853. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  854. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  855. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  856. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  857. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  858. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  859. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  860. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  861. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  862. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  863. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  864. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  865. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  866. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  867. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  868. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  869. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  870. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  871. Status int64 `gorm:"column:status" json:"status" form:"status"`
  872. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  873. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  874. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  875. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  876. Age int64 `gorm:"column:age" json:"age" form:"age"`
  877. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  878. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  879. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  880. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  881. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  882. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  883. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  884. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  885. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  886. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  887. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  888. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  889. }
  890. func (XtPatients) TableName() string {
  891. return "xt_patients"
  892. }
  893. type SgjUserAdminLoginLog struct {
  894. ID int64 `gorm:"column:id" json:"id" form:"id"`
  895. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  896. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  897. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  898. Ip string `gorm:"column:ip" json:"ip" form:"ip"`
  899. OperateType int64 `gorm:"column:operate_type" json:"operate_type" form:"operate_type"`
  900. AppType int64 `gorm:"column:app_type" json:"app_type" form:"app_type"`
  901. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  902. }
  903. func (SgjUserAdminLoginLog) TableName() string {
  904. return "sgj_user_admin_login_log"
  905. }
  906. type KyActivityTable struct {
  907. ID int64 `gorm:"column:id" json:"id" form:"id"`
  908. Name string `gorm:"column:name" json:"name" form:"name"`
  909. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  910. Address string `gorm:"column:address" json:"address" form:"address"`
  911. Position int64 `gorm:"column:position" json:"position" form:"position"`
  912. HospitalName string `gorm:"column:hospital_name" json:"hospital_name" form:"hospital_name"`
  913. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  914. IsThink int64 `gorm:"column:is_think" json:"is_think" form:"is_think"`
  915. OtherMode string `gorm:"column:other_mode" json:"other_mode" form:"other_mode"`
  916. OtherRemark string `gorm:"column:other_remark" json:"other_remark" form:"other_remark"`
  917. Gift int64 `gorm:"column:gift" json:"gift" form:"gift"`
  918. OtherMessage string `gorm:"column:other_message" json:"other_message" form:"other_message"`
  919. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  920. Status int64 `gorm:"column:status" json:"status" form:"status"`
  921. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  922. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  923. SystemName string `gorm:"column:system_name" json:"system_name" form:"system_name"`
  924. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  925. }
  926. func (KyActivityTable) TableName() string {
  927. return "ky_activity_table"
  928. }
  929. type SgjUserRole struct {
  930. ID int64 `gorm:"column:id" json:"id" form:"id"`
  931. RoleName string `gorm:"column:role_name" json:"role_name" form:"role_name"`
  932. RoleIntroduction string `gorm:"column:role_introduction" json:"role_introduction" form:"role_introduction"`
  933. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  934. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  935. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  936. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  937. Status int64 `gorm:"column:status" json:"status" form:"status"`
  938. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  939. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  940. Number int64 `gorm:"column:number" json:"number" form:"number"`
  941. IsSystem int64 `gorm:"column:is_system" json:"is_system" form:"is_system"`
  942. }
  943. func (SgjUserRole) TableName() string {
  944. return "sgj_user_role"
  945. }
  946. type ExportErrLog struct {
  947. ID int64 `gorm:"column:id" json:"id" form:"id"`
  948. LogType int64 `gorm:"column:log_type" json:"log_type" form:"log_type"`
  949. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  950. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  951. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  952. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  953. Status int64 `gorm:"column:status" json:"status" form:"status"`
  954. ExportTime int64 `gorm:"column:export_time" json:"export_time" form:"export_time"`
  955. }
  956. func (ExportErrLog) TableName() string {
  957. return "xt_export_err_log"
  958. }
  959. type ExportLog struct {
  960. ID int64 `gorm:"column:id" json:"id" form:"id"`
  961. LogType int64 `gorm:"column:log_type" json:"log_type" form:"log_type"`
  962. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  963. TotalNum int64 `gorm:"column:total_num" json:"total_num" form:"total_num"`
  964. FailNum int64 `gorm:"column:fail_num" json:"fail_num" form:"fail_num"`
  965. SuccessNum int64 `gorm:"column:success_num" json:"success_num" form:"success_num"`
  966. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  967. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  968. ExportTime int64 `gorm:"column:export_time" json:"export_time" form:"export_time"`
  969. Status int64 `gorm:"column:status" json:"status" form:"status"`
  970. ExportErrLog []*ExportErrLog `json:"err_logs" gorm:"foreignkey:ExportTime;AssociationForeignKey:ExportTime;"`
  971. }
  972. func (ExportLog) TableName() string {
  973. return "xt_export_log"
  974. }
  975. type XtTemplateSummary struct {
  976. ID int64 `gorm:"column:id" json:"id" form:"id"`
  977. StartYear int64 `gorm:"column:start_year" json:"start_year" form:"start_year"`
  978. StartMonth int64 `gorm:"column:start_month" json:"start_month" form:"start_month"`
  979. Radio int64 `gorm:"column:radio" json:"radio" form:"radio"`
  980. Quarter int64 `gorm:"column:quarter" json:"quarter" form:"quarter"`
  981. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  982. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count" form:"dialysis_count"`
  983. HdCount int64 `gorm:"column:hd_count" json:"hd_count" form:"hd_count"`
  984. HdfCount int64 `gorm:"column:hdf_count" json:"hdf_count" form:"hdf_count"`
  985. HpCount int64 `gorm:"column:hp_count" json:"hp_count" form:"hp_count"`
  986. OtherCount int64 `gorm:"column:other_count" json:"other_count" form:"other_count"`
  987. DialzerApparatus string `gorm:"column:dialzer_apparatus" json:"dialzer_apparatus" form:"dialzer_apparatus"`
  988. PerfusionApparatus string `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  989. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  990. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  991. Autunite float64 `gorm:"column:autunite" json:"autunite" form:"autunite"`
  992. Natrium float64 `gorm:"column:natrium" json:"natrium" form:"natrium"`
  993. Hour int64 `gorm:"column:hour" json:"hour" form:"hour"`
  994. Minute int64 `gorm:"column:minute" json:"minute" form:"minute"`
  995. BeforWeight float64 `gorm:"column:befor_weight" json:"befor_weight" form:"befor_weight"`
  996. AfterWeight float64 `gorm:"column:after_weight" json:"after_weight" form:"after_weight"`
  997. BeforPressure string `gorm:"column:befor_pressure" json:"befor_pressure" form:"befor_pressure"`
  998. AfterPressure string `gorm:"column:after_pressure" json:"after_pressure" form:"after_pressure"`
  999. TemplateSummaryId int64 `gorm:"column:template_summary_id" json:"template_summary_id" form:"template_summary_id"`
  1000. TemplateSummaryContent string `gorm:"column:template_summary_content" json:"template_summary_content" form:"template_summary_content"`
  1001. TemplatePlanId int64 `gorm:"column:template_plan_id" json:"template_plan_id" form:"template_plan_id"`
  1002. TemplatePlanContent string `gorm:"column:template_plan_content" json:"template_plan_content" form:"template_plan_content"`
  1003. TemplateInspectionId int64 `gorm:"column:template_inspection_id" json:"template_inspection_id" form:"template_inspection_id"`
  1004. TemplateInspectionContent string `gorm:"column:template_inspection_content" json:"template_inspection_content" form:"template_inspection_content"`
  1005. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1006. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  1007. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1008. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1009. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1010. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1011. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1012. Title string `gorm:"column:title" json:"title" form:"title"`
  1013. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1014. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  1015. Patients VmPatients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  1016. Children []*VmInspection `gorm:"column:children" json:"children" form:"children"`
  1017. }
  1018. func (XtTemplateSummary) TableName() string {
  1019. return "xt_template_summary"
  1020. }
  1021. type VmPatients struct {
  1022. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1023. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1024. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  1025. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1026. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  1027. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  1028. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  1029. Source int64 `gorm:"column:source" json:"source" form:"source"`
  1030. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  1031. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1032. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1033. Name string `gorm:"column:name" json:"name" form:"name"`
  1034. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  1035. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  1036. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  1037. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  1038. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1039. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  1040. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  1041. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  1042. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  1043. Height int64 `gorm:"column:height" json:"height" form:"height"`
  1044. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  1045. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  1046. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  1047. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  1048. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  1049. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  1050. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  1051. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  1052. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  1053. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  1054. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  1055. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  1056. Children int64 `gorm:"column:children" json:"children" form:"children"`
  1057. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  1058. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  1059. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  1060. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  1061. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  1062. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  1063. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  1064. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  1065. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  1066. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  1067. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  1068. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  1069. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  1070. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  1071. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  1072. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1073. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  1074. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  1075. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  1076. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  1077. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  1078. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  1079. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  1080. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  1081. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  1082. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  1083. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  1084. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  1085. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1086. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1087. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1088. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1089. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  1090. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1091. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  1092. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  1093. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  1094. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  1095. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  1096. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  1097. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  1098. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  1099. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  1100. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  1101. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  1102. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  1103. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  1104. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  1105. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  1106. }
  1107. func (VmPatients) TableName() string {
  1108. return "xt_patients"
  1109. }