dialysis.go 71KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. package models
  2. type SchedualPatient struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  6. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  7. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  8. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  9. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  10. Source int64 `gorm:"column:source" json:"source" form:"source"`
  11. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  12. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  13. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  14. Name string `gorm:"column:name" json:"name" form:"name"`
  15. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  16. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  17. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  18. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  19. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  20. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  21. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  22. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  23. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  24. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  25. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  26. Height int64 `gorm:"column:height" json:"height" form:"height"`
  27. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  28. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  29. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  30. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  31. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  32. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  33. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  34. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  35. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  36. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  37. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  38. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  39. Children int64 `gorm:"column:children" json:"children" form:"children"`
  40. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  41. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  42. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  43. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  44. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  45. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  46. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  47. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  48. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  49. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  50. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  51. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  52. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  53. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  54. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  55. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  56. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  57. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  58. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  59. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  60. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  61. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  62. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  63. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  64. Age int64 `gorm:"column:age" json:"age"`
  65. Status int64 `gorm:"column:status" json:"status" form:"status"`
  66. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  67. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  68. PredialysisEvaluation PredialysisEvaluation `json:"PredialysisEvaluation" gorm:"ForeignKey:PatientId"`
  69. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:PatientId"`
  70. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:PatientId"`
  71. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  72. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  73. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  74. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  75. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  76. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  77. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  78. }
  79. func (SchedualPatient) TableName() string {
  80. return "xt_patients"
  81. }
  82. type SchedualPatient2 struct {
  83. ID int64 `gorm:"column:id" json:"id" form:"id"`
  84. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  85. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  86. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  87. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  88. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  89. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  90. Source int64 `gorm:"column:source" json:"source" form:"source"`
  91. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  92. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  93. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  94. Name string `gorm:"column:name" json:"name" form:"name"`
  95. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  96. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  97. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  98. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  99. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  100. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  101. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  102. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  103. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  104. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  105. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  106. Height int64 `gorm:"column:height" json:"height" form:"height"`
  107. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  108. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  109. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  110. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  111. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  112. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  113. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  114. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  115. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  116. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  117. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  118. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  119. Children int64 `gorm:"column:children" json:"children" form:"children"`
  120. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  121. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  122. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  123. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  124. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  125. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  126. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  127. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  128. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  129. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  130. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  131. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  132. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  133. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  134. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  135. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  136. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  137. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  138. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  139. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  140. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  141. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  142. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  143. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  144. Status int64 `gorm:"column:status" json:"status" form:"status"`
  145. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  146. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  147. DialysisSchedule DialysisSchedule `gorm:"ForeignKey:PatientId"`
  148. InfectiousDiseases []InfectiousDiseases `gorm:"ForeignKey:PatientId"`
  149. Age int64 `gorm:"column:age" json:"age"`
  150. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  151. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  152. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  153. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  154. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  155. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  156. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  157. }
  158. func (SchedualPatient2) TableName() string {
  159. return "xt_patients"
  160. }
  161. type DialysisSchedule struct {
  162. ID int64 `gorm:"column:id" json:"id" form:"id"`
  163. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  164. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  165. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  166. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  167. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  168. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  169. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  170. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  171. Status int64 `gorm:"column:status" json:"status" form:"status"`
  172. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  173. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  174. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  175. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  176. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  177. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  178. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
  179. Prescription DialysisPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
  180. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_before_dislysis"`
  181. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_after_dislysis"`
  182. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"monitoring_record"`
  183. //Patient string `gorm:"-" json:"patient" form:"patient"`
  184. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  185. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  186. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  187. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  188. }
  189. func (DialysisSchedule) TableName() string {
  190. return "xt_schedule"
  191. }
  192. type PredialysisEvaluation struct {
  193. ID int64 `gorm:"column:id" json:"id"`
  194. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  195. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  196. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  197. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  198. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  199. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  200. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  201. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  202. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  203. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  204. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  205. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  206. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  207. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  208. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  209. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  210. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  211. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  212. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  213. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  214. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  215. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  216. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  217. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  218. Catheter string `gorm:"column:catheter" json:"catheter"`
  219. CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  220. Complication string `gorm:"column:complication" json:"complication"`
  221. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  222. Creater int64 `gorm:"column:creater" json:"creater"`
  223. Remark string `gorm:"column:remark" json:"remark"`
  224. Status int64 `gorm:"column:status" json:"status"`
  225. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  226. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  227. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  228. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  229. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  230. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  231. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  232. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  233. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  234. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  235. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  236. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  237. PunctureWay int64 `gorm:"column:puncture_way" json:"puncture_way"`
  238. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  239. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  240. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  241. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  242. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  243. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  244. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count"`
  245. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  246. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  247. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  248. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  249. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  250. Skin int64 `gorm:"column:skin" json:"skin"`
  251. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  252. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  253. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  254. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  255. LastPostDialysisOther string `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
  256. SymptomBeforeDialysisOther string `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
  257. DialysisInterphaseOther string `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
  258. HumorExcessiveSymptom int64 `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom"`
  259. }
  260. func (PredialysisEvaluation) TableName() string {
  261. return "xt_assessment_before_dislysis"
  262. }
  263. type PredialysisEvaluationList struct {
  264. ID int64 `gorm:"column:id" json:"id"`
  265. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  266. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  267. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  268. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  269. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  270. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  271. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  272. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  273. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  274. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  275. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  276. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  277. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  278. Creater int64 `gorm:"column:creater" json:"creater"`
  279. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  280. }
  281. func (PredialysisEvaluationList) TableName() string {
  282. return "xt_assessment_before_dislysis"
  283. }
  284. //更改的地方
  285. type DoctorAdvices struct {
  286. ID int64 `gorm:"column:id" json:"id" form:"id"`
  287. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  288. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  289. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  290. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  291. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  292. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  293. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  294. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  295. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  296. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  297. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  298. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  299. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  300. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  301. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  302. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  303. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  304. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  305. Status int64 `gorm:"column:status" json:"status" form:"status"`
  306. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  307. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  308. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  309. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  310. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  311. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  312. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  313. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  314. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  315. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  316. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  317. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  318. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  319. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  320. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  321. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  322. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  323. AdviceId int64 `gorm:"-"`
  324. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  325. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  326. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  327. WeekDay string `gorm:"column:week_day" json:"week_day"`
  328. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  329. TemplateId string `gorm:"column:template_id" json:"template_id"`
  330. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  331. Name string `gorm:"column:name" json:"name" form:"name"`
  332. }
  333. type DoctorAdvice struct {
  334. ID int64 `gorm:"column:id" json:"id" form:"id"`
  335. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  336. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  337. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  338. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  339. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  340. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  341. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  342. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  343. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  344. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  345. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  346. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  347. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  348. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  349. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  350. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  351. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  352. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  353. Status int64 `gorm:"column:status" json:"status" form:"status"`
  354. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  355. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  356. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  357. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  358. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  359. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  360. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  361. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  362. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  363. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  364. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  365. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  366. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  367. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  368. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  369. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  370. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  371. AdviceId int64 `gorm:"-"`
  372. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  373. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  374. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  375. WeekDay string `gorm:"column:week_day" json:"week_day"`
  376. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  377. TemplateId string `gorm:"column:template_id" json:"template_id"`
  378. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  379. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  380. }
  381. func (DoctorAdvice) TableName() string {
  382. return "xt_doctor_advice"
  383. }
  384. type XtDoctorAdvice struct {
  385. ID int64 `gorm:"column:id" json:"id" form:"id"`
  386. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  387. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  388. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  389. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  390. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  391. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  392. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  393. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  394. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  395. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  396. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  397. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  398. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  399. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  400. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  401. Status int64 `gorm:"column:status" json:"status" form:"status"`
  402. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  403. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  404. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  405. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  406. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  407. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  408. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  409. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  410. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  411. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  412. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  413. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  414. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  415. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  416. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  417. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  418. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  419. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  420. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  421. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  422. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  423. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  424. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  425. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  426. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  427. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  428. CheckerName string `gorm:"column:user_name" json:"name" form:"name"`
  429. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  430. }
  431. func (XtDoctorAdvice) TableName() string {
  432. return "xt_doctor_advice"
  433. }
  434. type GroupAdvice struct {
  435. DoctorAdvice
  436. Children []*GroupAdvice
  437. }
  438. func (GroupAdvice) TableName() string {
  439. return "xt_doctor_advice"
  440. }
  441. type DoubleCheck struct {
  442. ID int64 `gorm:"column:id" json:"id"`
  443. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  444. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  445. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  446. CheckDate int64 `gorm:"column:check_date" json:"check_date"`
  447. DialysisItemCheck int64 `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
  448. DialysisItemDesc string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
  449. DialysisParameterCheck int64 `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
  450. DialysisParameterDesc string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
  451. VascularAccessVerification int64 `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
  452. VascularAccessDesc string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
  453. PipelineConnectionCheck int64 `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
  454. PipelineConnectionDesc string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
  455. Collator int64 `gorm:"column:collator" json:"collator"`
  456. Status int64 `gorm:"column:status" json:"status"`
  457. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  458. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  459. Creater int64 `gorm:"column:creater" json:"creater"`
  460. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  461. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  462. FirstCheckTime int64 `gorm:"column:first_check_time" json:"first_check_time"`
  463. }
  464. func (DoubleCheck) TableName() string {
  465. return "xt_double_check"
  466. }
  467. type AssessmentAfterDislysis struct {
  468. ID int64 `gorm:"column:id" json:"id"`
  469. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  470. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  471. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  472. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  473. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  474. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  475. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  476. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  477. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  478. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  479. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  480. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  481. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  482. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  483. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  484. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  485. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  486. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  487. Cruor string `gorm:"column:cruor" json:"cruor"`
  488. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  489. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  490. // InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  491. Catheter string `gorm:"column:catheter" json:"catheter"`
  492. // CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  493. Complication string `gorm:"column:complication" json:"complication"`
  494. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  495. Remark string `gorm:"column:remark" json:"remark"`
  496. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  497. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  498. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  499. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  500. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  501. Status int64 `gorm:"column:status" json:"status"`
  502. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  503. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  504. Creater int64 `gorm:"column:creater" json:"creater"`
  505. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  506. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  507. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  508. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  509. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  510. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  511. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  512. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  513. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  514. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  515. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  516. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  517. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  518. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  519. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  520. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  521. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  522. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  523. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  524. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  525. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  526. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  527. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  528. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  529. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  530. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  531. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
  532. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  533. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  534. ReturnBlood int64 `gorm:"column:return_blood" json:"return_blood" form:"return_blood"`
  535. RehydrationVolume int64 `gorm:"column:rehydration_volume" json:"rehydration_volume" form:"rehydration_volume"`
  536. DialysisDuring int64 `gorm:"column:dialysis_during" json:"dialysis_during" form:"dialysis_during"`
  537. StrokeVolume int64 `gorm:"column:stroke_volume" json:"stroke_volume" form:"stroke_volume"`
  538. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  539. BloodFlow int64 `gorm:"column:blood_flow" json:"blood_flow" form:"blood_flow"`
  540. SealingFluidDispose int64 `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  541. SealingFluidSpecial string `gorm:"column:sealing_fluid_special" json:"sealing_fluid_special" form:"sealing_fluid_special"`
  542. }
  543. func (AssessmentAfterDislysis) TableName() string {
  544. return "xt_assessment_after_dislysis"
  545. }
  546. type TreatmentSummary struct {
  547. ID int64 `gorm:"column:id" json:"id"`
  548. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  549. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  550. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  551. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  552. Mission string `gorm:"column:mission" json:"mission"`
  553. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  554. Change int64 `gorm:"column:change" json:"change"`
  555. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  556. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  557. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  558. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  559. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  560. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  561. Puncture string `gorm:"column:puncture" json:"puncture"`
  562. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  563. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  564. Status int64 `gorm:"column:status" json:"status"`
  565. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  566. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  567. Creater int64 `gorm:"column:creater" json:"creater"`
  568. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  569. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  570. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  571. }
  572. func (TreatmentSummary) TableName() string {
  573. return "xt_treatment_summary"
  574. }
  575. type DryWeightAdjust struct {
  576. ID int64 `gorm:"column:id" json:"id" form:"id"`
  577. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  578. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  579. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  580. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  581. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  582. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  583. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  584. Status int64 `gorm:"column:status" json:"status" form:"status"`
  585. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  586. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  587. }
  588. func (DryWeightAdjust) TableName() string {
  589. return "xt_dry_weight_adjust"
  590. }
  591. type MonitoringRecord struct {
  592. ID int64 `gorm:"column:id" json:"id"`
  593. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  594. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  595. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  596. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  597. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  598. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  599. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  600. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  601. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  602. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  603. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  604. Pic string `gorm:"column:pic" json:"pic"`
  605. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  606. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  607. VenousPressureUnit string `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
  608. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  609. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  610. TransmembranePressureUnit string `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
  611. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  612. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  613. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  614. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  615. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  616. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  617. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  618. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  619. Symptom string `gorm:"column:symptom" json:"symptom"`
  620. Dispose string `gorm:"column:dispose" json:"dispose"`
  621. Result string `gorm:"column:result" json:"result"`
  622. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  623. Status int64 `gorm:"column:status" json:"status"`
  624. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  625. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  626. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  627. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  628. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  629. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  630. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  631. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  632. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  633. }
  634. func (MonitoringRecord) TableName() string {
  635. return "xt_monitoring_record"
  636. }
  637. type DialysisOrders struct {
  638. ID int64 `gorm:"column:id" json:"id"`
  639. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  640. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  641. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  642. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  643. Stage int64 `gorm:"column:stage" json:"stage"`
  644. Remark string `gorm:"column:remark" json:"remark"`
  645. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  646. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  647. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  648. Status int64 `gorm:"column:status" json:"status"`
  649. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  650. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  651. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  652. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  653. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  654. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  655. Creator int64 `gorm:"column:creator" json:"creator"`
  656. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  657. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  658. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  659. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  660. Name int64 `gorm:"column:name" json:"name"`
  661. Number string `gorm:"column:number" json:"number"`
  662. }
  663. type DialysisOrder struct {
  664. ID int64 `gorm:"column:id" json:"id"`
  665. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  666. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  667. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  668. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  669. Stage int64 `gorm:"column:stage" json:"stage"`
  670. Remark string `gorm:"column:remark" json:"remark"`
  671. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  672. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  673. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  674. Status int64 `gorm:"column:status" json:"status"`
  675. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  676. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  677. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  678. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  679. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  680. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  681. Creator int64 `gorm:"column:creator" json:"creator"`
  682. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  683. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  684. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  685. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  686. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
  687. }
  688. func (DialysisOrder) TableName() string {
  689. return "xt_dialysis_order"
  690. }
  691. type XtDialysisOrder struct {
  692. ID int64 `gorm:"column:id" json:"id" form:"id"`
  693. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  694. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  695. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  696. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  697. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  698. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  699. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  700. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  701. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  702. Status int64 `gorm:"column:status" json:"status" form:"status"`
  703. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  704. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  705. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  706. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  707. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  708. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  709. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  710. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  711. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  712. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  713. Number int64 `gorm:"column:number" json:"number" form:"number"`
  714. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  715. }
  716. func (XtDialysisOrder) TableName() string {
  717. return "xt_dialysis_order"
  718. }
  719. type TreatmentMode struct {
  720. ID int64 `gorm:"column:id" json:"id" form:"id"`
  721. Name string `gorm:"column:name" json:"name" form:"name"`
  722. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  723. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  724. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  725. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  726. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  727. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  728. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  729. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  730. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  731. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  732. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  733. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  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 (TreatmentMode) TableName() string {
  739. return "xt_treatment_mode"
  740. }
  741. type ReceiveTreatmentAsses struct {
  742. ID int64 `gorm:"column:id" json:"id"`
  743. Way int64 `gorm:"column:way" json:"way"`
  744. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  745. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  746. Condition int64 `gorm:"column:condition" json:"condition"`
  747. Creater int64 `gorm:"column:creater" json:"creater"`
  748. Posture int64 `gorm:"column:posture" json:"posture"`
  749. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  750. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  751. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  752. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  753. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  754. Status int64 `gorm:"column:status" json:"status"`
  755. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  756. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  757. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  758. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  759. Intake int64 `gorm:"column:intake" json:"intake"`
  760. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  761. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  762. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  763. Score string `gorm:"column:score" json:"score"`
  764. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  765. Precaution string `gorm:"column:precaution" json:"precaution"`
  766. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  767. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  768. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  769. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  770. }
  771. func (ReceiveTreatmentAsses) TableName() string {
  772. return "xt_receive_treatment_asses"
  773. }
  774. type GobalTemplate struct {
  775. ID int64 `gorm:"column:id" json:"id"`
  776. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  777. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  778. Status int64 `gorm:"column:status" json:"status"`
  779. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  780. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  781. }
  782. func (GobalTemplate) TableName() string {
  783. return "xt_gobal_template"
  784. }
  785. type SgjUserAdminRole struct {
  786. ID int64 `gorm:"column:id" json:"id" form:"id"`
  787. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  788. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  789. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  790. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  791. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  792. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  793. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  794. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  795. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  796. Status int64 `gorm:"column:status" json:"status" form:"status"`
  797. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  798. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  799. Message string `gorm:"column:message" json:"message" form:"message"`
  800. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  801. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  802. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  803. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  804. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  805. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  806. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  807. }
  808. func (SgjUserAdminRole) TableName() string {
  809. return "sgj_user_admin_role"
  810. }
  811. type SgjUserAdmin struct {
  812. ID int64 `gorm:"column:id" json:"id" form:"id"`
  813. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  814. Password string `gorm:"column:password" json:"password" form:"password"`
  815. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  816. Status int64 `gorm:"column:status" json:"status" form:"status"`
  817. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  818. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  819. Source int64 `gorm:"column:source" json:"source" form:"source"`
  820. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  821. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  822. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  823. Name string `gorm:"column:name" json:"name" form:"name"`
  824. }
  825. func (SgjUserAdmin) TableName() string {
  826. return "sgj_user_admin"
  827. }
  828. type UserAdminRoles struct {
  829. ID int64 `gorm:"column:id" json:"id" form:"id"`
  830. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  831. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  832. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  833. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  834. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  835. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  836. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  837. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  838. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  839. Status int64 `gorm:"column:status" json:"status" form:"status"`
  840. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  841. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  842. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  843. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  844. Message string `gorm:"column:message" json:"message" form:"message"`
  845. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  846. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  847. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  848. Url string `gorm:"column:url" json:"url" form:"url"`
  849. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  850. }