sso

xt_models.go 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. package models
  2. type SystemPrescription 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. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  6. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  7. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  8. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  9. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  10. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  11. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  12. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  13. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  14. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  15. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  16. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  17. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  18. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  19. Dewater float64 `gorm:"column:dewater" json:"dewater" form:"dewater"`
  20. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  21. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  22. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  23. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  24. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  25. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  26. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  27. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  28. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  29. FirstDialysis int64 `gorm:"column:first_dialysis" json:"first_dialysis" form:"first_dialysis"`
  30. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  31. InitiateMode int64 `gorm:"column:initiate_mode" json:"initiate_mode" form:"initiate_mode"`
  32. AffirmState int64 `gorm:"column:affirm_state" json:"affirm_state" form:"affirm_state"`
  33. UseState int64 `gorm:"column:use_state" json:"use_state" form:"use_state"`
  34. Status int64 `gorm:"column:status" json:"status" form:"status"`
  35. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  36. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  37. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  38. SolutionType int64 `gorm:"column:solution_type" json:"solution_type" form:"solution_type"`
  39. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  40. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  41. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  42. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  43. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  44. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  45. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  46. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total" form:"replacement_total"`
  47. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  48. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid" form:"body_fluid"`
  49. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine" form:"special_medicine"`
  50. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other" form:"special_medicine_other"`
  51. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
  52. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  53. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
  54. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration" form:"ultrafiltration"`
  55. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other" form:"body_fluid_other"`
  56. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv" form:"target_ktv"`
  57. }
  58. func (SystemPrescription) TableName() string {
  59. return "xt_system_prescription"
  60. }
  61. type XtPatientsNew struct {
  62. ID int64 `gorm:"column:id" json:"id" form:"id"`
  63. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  64. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  65. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  66. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  67. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  68. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  69. Source int64 `gorm:"column:source" json:"source" form:"source"`
  70. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  71. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  72. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  73. Name string `gorm:"column:name" json:"name" form:"name"`
  74. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  75. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  76. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  77. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  78. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  79. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  80. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  81. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  82. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  83. Height int64 `gorm:"column:height" json:"height" form:"height"`
  84. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  85. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  86. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  87. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  88. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  89. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  90. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  91. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  92. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  93. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  94. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  95. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  96. Children int64 `gorm:"column:children" json:"children" form:"children"`
  97. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  98. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  99. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  100. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  101. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  102. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  103. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  104. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  105. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  106. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  107. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  108. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  109. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  110. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  111. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  112. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  113. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  114. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  115. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  116. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  117. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  118. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  119. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  120. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  121. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  122. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  123. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  124. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  125. Status int64 `gorm:"column:status" json:"status" form:"status"`
  126. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  127. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  128. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  129. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  130. Age int64 `gorm:"column:age" json:"age" form:"age"`
  131. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  132. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  133. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  134. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  135. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  136. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  137. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  138. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  139. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  140. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  141. BloodPatients int64 `gorm:"column:blood_patients" json:"blood_patients" form:"blood_patients"`
  142. SlowPatients int64 `gorm:"column:slow_patients" json:"slow_patients" form:"slow_patients"`
  143. MemberPatients int64 `gorm:"column:member_patients" json:"member_patients" form:"member_patients"`
  144. EcommerPatients string `gorm:"column:ecommer_patients" json:"ecommer_patients" form:"ecommer_patients"`
  145. BloodId int64 `gorm:"column:blood_id" json:"blood_id" form:"blood_id"`
  146. SlowId int64 `gorm:"column:slow_id" json:"slow_id" form:"slow_id"`
  147. MemberId int64 `gorm:"column:member_id" json:"member_id" form:"member_id"`
  148. MemberFistdate int64 `gorm:"column:member_fistdate" json:"member_fistdate" form:"member_fistdate"`
  149. MemberPatienttype int64 `gorm:"column:member_patienttype" json:"member_patienttype" form:"member_patienttype"`
  150. MemberTreatement int64 `gorm:"column:member_treatement" json:"member_treatement" form:"member_treatement"`
  151. EquitmentId string `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  152. }
  153. func (XtPatientsNew) TableName() string {
  154. return "xt_patients_new"
  155. }