dialysis.go 88KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095
  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. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  79. }
  80. func (SchedualPatient) TableName() string {
  81. return "xt_patients"
  82. }
  83. type SchedualPatient2 struct {
  84. ID int64 `gorm:"column:id" json:"id" form:"id"`
  85. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  86. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  87. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  88. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  89. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  90. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  91. Source int64 `gorm:"column:source" json:"source" form:"source"`
  92. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  93. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  94. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  95. Name string `gorm:"column:name" json:"name" form:"name"`
  96. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  97. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  98. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  99. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  100. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  101. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  102. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  103. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  104. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  105. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  106. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  107. Height int64 `gorm:"column:height" json:"height" form:"height"`
  108. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  109. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  110. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  111. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  112. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  113. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  114. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  115. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  116. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  117. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  118. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  119. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  120. Children int64 `gorm:"column:children" json:"children" form:"children"`
  121. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  122. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  123. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  124. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  125. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  126. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  127. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  128. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  129. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  130. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  131. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  132. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  133. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  134. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  135. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  136. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  137. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  138. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  139. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  140. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  141. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  142. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  143. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  144. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  145. Status int64 `gorm:"column:status" json:"status" form:"status"`
  146. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  147. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  148. DialysisSchedule DialysisSchedule `gorm:"ForeignKey:PatientId"`
  149. InfectiousDiseases []InfectiousDiseases `gorm:"ForeignKey:PatientId"`
  150. Age int64 `gorm:"column:age" json:"age"`
  151. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  152. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  153. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  154. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  155. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  156. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  157. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  158. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  159. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  160. }
  161. func (SchedualPatient2) TableName() string {
  162. return "xt_patients"
  163. }
  164. type DialysisSchedule struct {
  165. ID int64 `gorm:"column:id" json:"id" form:"id"`
  166. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  167. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  168. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  169. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  170. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  171. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  172. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  173. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  174. Status int64 `gorm:"column:status" json:"status" form:"status"`
  175. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  176. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  177. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  178. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  179. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  180. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  181. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
  182. Prescription DialysisPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
  183. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_before_dislysis"`
  184. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_after_dislysis"`
  185. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"monitoring_record"`
  186. //Patient string `gorm:"-" json:"patient" form:"patient"`
  187. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  188. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  189. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  190. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  191. }
  192. type DialysisScheduleOne struct {
  193. ID int64 `gorm:"column:id" json:"id" form:"id"`
  194. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  195. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  196. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  197. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  198. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  199. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  200. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  201. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  202. Status int64 `gorm:"column:status" json:"status" form:"status"`
  203. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  204. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  205. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  206. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  207. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  208. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  209. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dialysis_order"`
  210. Prescription DialysisPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"prescription"`
  211. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_before_dislysis"`
  212. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_after_dislysis"`
  213. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  214. //Patient string `gorm:"-" json:"patient" form:"patient"`
  215. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  216. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  217. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  218. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  219. }
  220. func (DialysisSchedule) TableName() string {
  221. return "xt_schedule"
  222. }
  223. type PredialysisEvaluation struct {
  224. ID int64 `gorm:"column:id" json:"id"`
  225. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  226. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  227. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  228. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  229. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  230. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  231. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  232. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  233. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  234. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  235. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  236. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  237. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  238. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  239. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  240. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  241. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  242. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  243. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  244. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  245. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  246. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  247. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  248. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  249. Catheter string `gorm:"column:catheter" json:"catheter"`
  250. CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  251. Complication string `gorm:"column:complication" json:"complication"`
  252. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  253. Creater int64 `gorm:"column:creater" json:"creater"`
  254. Remark string `gorm:"column:remark" json:"remark"`
  255. Status int64 `gorm:"column:status" json:"status"`
  256. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  257. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  258. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  259. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  260. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  261. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  262. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  263. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  264. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  265. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  266. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  267. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  268. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  269. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  270. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  271. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  272. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  273. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  274. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  275. DialysisCount string `gorm:"column:dialysis_count" json:"dialysis_count"`
  276. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  277. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  278. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  279. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  280. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  281. Skin string `gorm:"column:skin" json:"skin"`
  282. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  283. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  284. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  285. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  286. LastPostDialysisOther string `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
  287. SymptomBeforeDialysisOther string `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
  288. DialysisInterphaseOther string `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
  289. HumorExcessiveSymptom string `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom"`
  290. Phinholing string `gorm:"column:pinholing" json:"pinholing" form:"pinholing"`
  291. CatheterSuture string `gorm:"column:catheter_suture" json:"catheter_suture" form:"catheter_suture"`
  292. CatheterSutureOther string `gorm:"column:catheter_suture_other" json:"catheter_suture_other" form:"catheter_suture_other"`
  293. UrineVolume float64 `gorm:"column:urine_volume" json:"urine_volume" form:"urine_volume"`
  294. Edema string `gorm:"column:edema" json:"edema" form:"edema"`
  295. SpecialTreatment string `gorm:"column:special_treatment" json:"special_treatment" form:"special_treatment"`
  296. CatheterMaintenance string `gorm:"column:catheter_maintenance" json:"catheter_maintenance" form:"catheter_maintenance"`
  297. ThromubusType int64 `gorm:"column:thromubus_type" json:"thromubus_type" form:"thromubus_type"`
  298. ThrombusAv string `gorm:"column:thrombus_av" json:"thrombus_av" form:"thrombus_av"`
  299. ThromubusA string `gorm:"column:thromubus_a" json:"thromubus_a" form:"thromubus_a"`
  300. ThromubusV string `gorm:"column:thromubus_v" json:"thromubus_v" form:"thromubus_v"`
  301. Dehydration string `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  302. PreDialysisDrugs string `gorm:"column:pre_dialysis_drugs" json:"pre_dialysis_drugs" form:"pre_dialysis_drugs"`
  303. Period int64 `gorm:"column:period" json:"period" form:"period"`
  304. EstimatedFoodIntake string `gorm:"column:estimated_food_intake" json:"estimated_food_intake" form:"estimated_food_intake"`
  305. BloodPressureDuringDialysis string `gorm:"column:blood_pressure_during_dialysis" json:"blood_pressure_during_dialysis" form:"blood_pressure_during_dialysis"`
  306. }
  307. func (PredialysisEvaluation) TableName() string {
  308. return "xt_assessment_before_dislysis"
  309. }
  310. type PredialysisEvaluationList struct {
  311. ID int64 `gorm:"column:id" json:"id"`
  312. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  313. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  314. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  315. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  316. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  317. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  318. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  319. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  320. }
  321. func (PredialysisEvaluationList) TableName() string {
  322. return "xt_assessment_before_dislysis"
  323. }
  324. //更改的地方
  325. type DoctorAdvices struct {
  326. ID int64 `gorm:"column:id" json:"id" form:"id"`
  327. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  328. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  329. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  330. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  331. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  332. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  333. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  334. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  335. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  336. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  337. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  338. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  339. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  340. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  341. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  342. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  343. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  344. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  345. Status int64 `gorm:"column:status" json:"status" form:"status"`
  346. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  347. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  348. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  349. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  350. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  351. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  352. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  353. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  354. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  355. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  356. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  357. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  358. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  359. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  360. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  361. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  362. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  363. AdviceId int64 `gorm:"-"`
  364. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  365. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  366. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  367. WeekDay string `gorm:"column:week_day" json:"week_day"`
  368. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  369. TemplateId string `gorm:"column:template_id" json:"template_id"`
  370. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  371. Name string `gorm:"column:name" json:"name" form:"name"`
  372. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  373. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  374. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  375. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  376. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  377. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  378. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  379. }
  380. type DoctorAdvice struct {
  381. ID int64 `gorm:"column:id" json:"id" form:"id"`
  382. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  383. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  384. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  385. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  386. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  387. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  388. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  389. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  390. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  391. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  392. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  393. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  394. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  395. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  396. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  397. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  398. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  399. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  400. Status int64 `gorm:"column:status" json:"status" form:"status"`
  401. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  402. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  403. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  404. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  405. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  406. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  407. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  408. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  409. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  410. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  411. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  412. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  413. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  414. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  415. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  416. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  417. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  418. AdviceId int64 `gorm:"-"`
  419. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  420. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  421. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  422. WeekDay string `gorm:"column:week_day" json:"week_day"`
  423. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  424. TemplateId string `gorm:"column:template_id" json:"template_id"`
  425. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  426. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  427. Way int64 `gorm:"column:way" json:"way" form:"way"`
  428. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  429. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  430. }
  431. func (DoctorAdvice) TableName() string {
  432. return "xt_doctor_advice"
  433. }
  434. type XtDoctorAdvice struct {
  435. ID int64 `gorm:"column:id" json:"id" form:"id"`
  436. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  437. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  438. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  439. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  440. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  441. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  442. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  443. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  444. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  445. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  446. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  447. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  448. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  449. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  450. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  451. Status int64 `gorm:"column:status" json:"status" form:"status"`
  452. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  453. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  454. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  455. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  456. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  457. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  458. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  459. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  460. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  461. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  462. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  463. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  464. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  465. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  466. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  467. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  468. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  469. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  470. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  471. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  472. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  473. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  474. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  475. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  476. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  477. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  478. CheckerName string `gorm:"column:user_name" json:"name" form:"name"`
  479. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  480. }
  481. func (XtDoctorAdvice) TableName() string {
  482. return "xt_doctor_advice"
  483. }
  484. type GroupAdvice struct {
  485. DoctorAdvice
  486. Children []*GroupAdvice
  487. }
  488. func (GroupAdvice) TableName() string {
  489. return "xt_doctor_advice"
  490. }
  491. type DoubleCheck struct {
  492. ID int64 `gorm:"column:id" json:"id"`
  493. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  494. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  495. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  496. CheckDate int64 `gorm:"column:check_date" json:"check_date"`
  497. DialysisItemCheck int64 `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
  498. DialysisItemDesc string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
  499. DialysisParameterCheck int64 `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
  500. DialysisParameterDesc string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
  501. VascularAccessVerification int64 `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
  502. VascularAccessDesc string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
  503. PipelineConnectionCheck int64 `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
  504. PipelineConnectionDesc string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
  505. Collator int64 `gorm:"column:collator" json:"collator"`
  506. Status int64 `gorm:"column:status" json:"status"`
  507. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  508. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  509. Creater int64 `gorm:"column:creater" json:"creater"`
  510. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  511. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  512. FirstCheckTime int64 `gorm:"column:first_check_time" json:"first_check_time"`
  513. }
  514. func (DoubleCheck) TableName() string {
  515. return "xt_double_check"
  516. }
  517. type AssessmentAfterDislysis struct {
  518. ID int64 `gorm:"column:id" json:"id"`
  519. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  520. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  521. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  522. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  523. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  524. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  525. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  526. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  527. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  528. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  529. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  530. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  531. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  532. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  533. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  534. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  535. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  536. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  537. Cruor string `gorm:"column:cruor" json:"cruor"`
  538. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  539. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  540. // InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  541. Catheter string `gorm:"column:catheter" json:"catheter"`
  542. // CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  543. Complication string `gorm:"column:complication" json:"complication"`
  544. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  545. Remark string `gorm:"column:remark" json:"remark"`
  546. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  547. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  548. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  549. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  550. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  551. Status int64 `gorm:"column:status" json:"status"`
  552. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  553. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  554. Creater int64 `gorm:"column:creater" json:"creater"`
  555. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  556. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  557. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  558. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  559. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  560. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  561. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  562. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  563. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  564. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  565. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  566. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  567. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  568. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  569. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  570. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  571. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  572. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  573. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  574. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  575. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  576. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  577. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  578. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  579. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  580. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  581. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
  582. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  583. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  584. ReturnBlood int64 `gorm:"column:return_blood" json:"return_blood" form:"return_blood"`
  585. RehydrationVolume int64 `gorm:"column:rehydration_volume" json:"rehydration_volume" form:"rehydration_volume"`
  586. DialysisDuring int64 `gorm:"column:dialysis_during" json:"dialysis_during" form:"dialysis_during"`
  587. StrokeVolume int64 `gorm:"column:stroke_volume" json:"stroke_volume" form:"stroke_volume"`
  588. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  589. BloodFlow int64 `gorm:"column:blood_flow" json:"blood_flow" form:"blood_flow"`
  590. SealingFluidDispose string `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  591. SealingFluidSpecial string `gorm:"column:sealing_fluid_special" json:"sealing_fluid_special" form:"sealing_fluid_special"`
  592. DosageOfAnticoagulants float64 `gorm:"column:dosage_of_anticoagulants" json:"dosage_of_anticoagulants" form:"dosage_of_anticoagulants"`
  593. SupineSystolicBloodPressure string `gorm:"column:supine_systolic_blood_pressure" json:"supine_systolic_blood_pressure" form:"supine_systolic_blood_pressure"`
  594. SettingPressure string `gorm:"column:setting_pressure" json:"setting_pressure" form:"setting_pressure"`
  595. SupineDiastolicBloodPressure string `gorm:"column:supine_diastolic_blood_pressure" json:"supine_diastolic_blood_pressure" form:"supine_diastolic_blood_pressure"`
  596. DiastolicPressure string `gorm:"column:diastolic_pressure" json:"diastolic_pressure" form:"diastolic_pressure"`
  597. OtherComplication string `gorm:"column:other_complication" json:"other_complication" form:"other_complication"`
  598. Ktv string `gorm:"column:ktv" json:"ktv" form:"ktv"`
  599. Urr string `gorm:"column:urr" json:"urr" form:"urr"`
  600. Hypertenison int64 `gorm:"column:hypertenison" json:"hypertenison" form:"hypertenison"`
  601. Hypopiesia int64 `gorm:"column:hypopiesia" json:"hypopiesia" form:"hypopiesia"`
  602. LeaveOfficeMethod int64 `gorm:"column:leave_office_method" json:"leave_office_method" form:"leave_office_method"`
  603. Lapse int64 `gorm:"column:lapse" json:"lapse" form:"lapse"`
  604. Consciousness int64 `gorm:"column:consciousness" json:"consciousness" form:"consciousness"`
  605. Fallrisk int64 `gorm:"column:fallrisk" json:"fallrisk" form:"fallrisk"`
  606. MachineRun string `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  607. }
  608. func (AssessmentAfterDislysis) TableName() string {
  609. return "xt_assessment_after_dislysis"
  610. }
  611. type TreatmentSummary struct {
  612. ID int64 `gorm:"column:id" json:"id"`
  613. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  614. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  615. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  616. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  617. Mission string `gorm:"column:mission" json:"mission"`
  618. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  619. Change int64 `gorm:"column:change" json:"change"`
  620. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  621. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  622. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  623. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  624. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  625. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  626. Puncture string `gorm:"column:puncture" json:"puncture"`
  627. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  628. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  629. Status int64 `gorm:"column:status" json:"status"`
  630. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  631. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  632. Creater int64 `gorm:"column:creater" json:"creater"`
  633. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  634. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  635. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  636. }
  637. func (TreatmentSummary) TableName() string {
  638. return "xt_treatment_summary"
  639. }
  640. type DryWeightAdjust struct {
  641. ID int64 `gorm:"column:id" json:"id" form:"id"`
  642. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  643. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  644. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  645. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  646. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  647. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  648. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  649. Status int64 `gorm:"column:status" json:"status" form:"status"`
  650. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  651. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  652. }
  653. func (DryWeightAdjust) TableName() string {
  654. return "xt_dry_weight_adjust"
  655. }
  656. type MonitoringRecord struct {
  657. ID int64 `gorm:"column:id" json:"id"`
  658. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  659. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  660. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  661. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  662. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  663. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  664. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  665. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  666. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  667. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  668. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  669. Pic string `gorm:"column:pic" json:"pic"`
  670. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  671. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  672. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  673. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  674. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  675. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  676. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  677. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  678. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  679. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  680. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  681. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  682. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  683. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  684. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  685. Symptom string `gorm:"column:symptom" json:"symptom"`
  686. Dispose string `gorm:"column:dispose" json:"dispose"`
  687. Result string `gorm:"column:result" json:"result"`
  688. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  689. Status int64 `gorm:"column:status" json:"status"`
  690. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  691. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  692. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  693. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  694. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  695. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  696. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  697. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  698. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  699. Urr string `gorm:"column:urr" json:"urr"`
  700. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  701. MonitorAnticoagulant int64 `gorm:"column:monitor_anticoagulant" json:"monitor_anticoagulant" form:"monitor_anticoagulant"`
  702. MonitorAnticoagulantValue string `gorm:"column:monitor_anticoagulant_value" json:"monitor_anticoagulant_value" form:"monitor_anticoagulant_value"`
  703. BloodPressureMonitoringSite int64 `gorm:"column:blood_pressure_monitoring_site" json:"blood_pressure_monitoring_site" form:"blood_pressure_monitoring_site"`
  704. Complication int64 `gorm:"column:complication" json:"complication" form:"complication"`
  705. AccumulatedBloodVolume float64 `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  706. BloodTemperature float64 `gorm:"column:blood_temperature" json:"blood_temperature" form:"blood_temperature"`
  707. UreaMonitoring float64 `gorm:"column:urea_monitoring" json:"urea_monitoring" form:"urea_monitoring"`
  708. BloodThickness float64 `gorm:"column:blood_thickness" json:"blood_thickness" form:"blood_thickness"`
  709. BloodMonitor float64 `gorm:"column:blood_monitor" json:"blood_monitor" form:"blood_monitor"`
  710. }
  711. func (MonitoringRecord) TableName() string {
  712. return "xt_monitoring_record"
  713. }
  714. type DialysisOrders struct {
  715. ID int64 `gorm:"column:id" json:"id"`
  716. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  717. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  718. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  719. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  720. Stage int64 `gorm:"column:stage" json:"stage"`
  721. Remark string `gorm:"column:remark" json:"remark"`
  722. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  723. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  724. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  725. Status int64 `gorm:"column:status" json:"status"`
  726. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  727. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  728. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  729. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  730. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  731. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  732. Creator int64 `gorm:"column:creator" json:"creator"`
  733. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  734. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  735. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  736. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  737. Name int64 `gorm:"column:name" json:"name"`
  738. Number string `gorm:"column:number" json:"number"`
  739. }
  740. type DialysisOrder struct {
  741. ID int64 `gorm:"column:id" json:"id"`
  742. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  743. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  744. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  745. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  746. Stage int64 `gorm:"column:stage" json:"stage"`
  747. Remark string `gorm:"column:remark" json:"remark"`
  748. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  749. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  750. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  751. Status int64 `gorm:"column:status" json:"status"`
  752. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  753. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  754. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  755. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  756. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  757. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  758. Creator int64 `gorm:"column:creator" json:"creator"`
  759. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  760. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  761. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  762. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  763. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
  764. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  765. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  766. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  767. NewFistulaNurse int64 `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  768. }
  769. func (DialysisOrder) TableName() string {
  770. return "xt_dialysis_order"
  771. }
  772. type XtDialysisOrder struct {
  773. ID int64 `gorm:"column:id" json:"id" form:"id"`
  774. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  775. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  776. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  777. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  778. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  779. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  780. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  781. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  782. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  783. Status int64 `gorm:"column:status" json:"status" form:"status"`
  784. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  785. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  786. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  787. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  788. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  789. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  790. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  791. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  792. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  793. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  794. Number int64 `gorm:"column:number" json:"number" form:"number"`
  795. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  796. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  797. }
  798. func (XtDialysisOrder) TableName() string {
  799. return "xt_dialysis_order"
  800. }
  801. type XtDialysisOrders struct {
  802. ID int64 `gorm:"column:id" json:"id" form:"id"`
  803. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  804. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  805. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  806. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  807. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  808. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  809. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  810. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  811. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  812. Status int64 `gorm:"column:status" json:"status" form:"status"`
  813. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  814. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  815. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  816. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  817. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  818. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  819. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  820. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  821. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  822. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  823. Number int64 `gorm:"column:number" json:"number" form:"number"`
  824. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  825. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  826. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  827. }
  828. type TreatmentMode struct {
  829. ID int64 `gorm:"column:id" json:"id" form:"id"`
  830. Name string `gorm:"column:name" json:"name" form:"name"`
  831. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  832. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  833. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  834. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  835. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  836. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  837. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  838. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  839. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  840. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  841. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  842. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  843. Status int64 `gorm:"column:status" json:"status" form:"status"`
  844. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  845. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  846. }
  847. func (TreatmentMode) TableName() string {
  848. return "xt_treatment_mode"
  849. }
  850. type ReceiveTreatmentAsses struct {
  851. ID int64 `gorm:"column:id" json:"id"`
  852. Way int64 `gorm:"column:way" json:"way"`
  853. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  854. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  855. Condition int64 `gorm:"column:condition" json:"condition"`
  856. Creater int64 `gorm:"column:creater" json:"creater"`
  857. Posture int64 `gorm:"column:posture" json:"posture"`
  858. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  859. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  860. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  861. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  862. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  863. Status int64 `gorm:"column:status" json:"status"`
  864. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  865. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  866. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  867. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  868. Intake int64 `gorm:"column:intake" json:"intake"`
  869. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  870. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  871. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  872. Score string `gorm:"column:score" json:"score"`
  873. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  874. Precaution string `gorm:"column:precaution" json:"precaution"`
  875. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  876. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  877. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  878. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  879. Tumble int64 `gorm:"column:tumble" json:"tumble" form:"tumble"`
  880. }
  881. func (ReceiveTreatmentAsses) TableName() string {
  882. return "xt_receive_treatment_asses"
  883. }
  884. type GobalTemplate struct {
  885. ID int64 `gorm:"column:id" json:"id"`
  886. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  887. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  888. Status int64 `gorm:"column:status" json:"status"`
  889. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  890. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  891. }
  892. func (GobalTemplate) TableName() string {
  893. return "xt_gobal_template"
  894. }
  895. type SgjUserAdminRole struct {
  896. ID int64 `gorm:"column:id" json:"id" form:"id"`
  897. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  898. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  899. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  900. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  901. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  902. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  903. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  904. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  905. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  906. Status int64 `gorm:"column:status" json:"status" form:"status"`
  907. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  908. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  909. Message string `gorm:"column:message" json:"message" form:"message"`
  910. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  911. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  912. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  913. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  914. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  915. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  916. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  917. }
  918. func (SgjUserAdminRole) TableName() string {
  919. return "sgj_user_admin_role"
  920. }
  921. type SgjUserAdmin struct {
  922. ID int64 `gorm:"column:id" json:"id" form:"id"`
  923. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  924. Password string `gorm:"column:password" json:"password" form:"password"`
  925. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  926. Status int64 `gorm:"column:status" json:"status" form:"status"`
  927. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  928. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  929. Source int64 `gorm:"column:source" json:"source" form:"source"`
  930. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  931. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  932. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  933. Name string `gorm:"column:name" json:"name" form:"name"`
  934. }
  935. func (SgjUserAdmin) TableName() string {
  936. return "sgj_user_admin"
  937. }
  938. type UserAdminRoles struct {
  939. ID int64 `gorm:"column:id" json:"id" form:"id"`
  940. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  941. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  942. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  943. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  944. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  945. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  946. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  947. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  948. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  949. Status int64 `gorm:"column:status" json:"status" form:"status"`
  950. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  951. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  952. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  953. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  954. Message string `gorm:"column:message" json:"message" form:"message"`
  955. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  956. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  957. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  958. Url string `gorm:"column:url" json:"url" form:"url"`
  959. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  960. }
  961. type DialysisBeforePrepare struct {
  962. ID int64 `gorm:"column:id" json:"id" form:"id"`
  963. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  964. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  965. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  966. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  967. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  968. Count int64 `gorm:"column:count" json:"count" form:"count"`
  969. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  970. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  971. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  972. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  973. Status int64 `gorm:"column:status" json:"status" form:"status"`
  974. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  975. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  976. }
  977. func (DialysisBeforePrepare) TableName() string {
  978. return "dialysis_before_prepare"
  979. }
  980. type DialysisBeforePrepareGoods struct {
  981. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  982. Count int64 `gorm:"column:count" json:"count" form:"count"`
  983. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  984. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  985. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  986. }
  987. type NewDialysisBeforePrepareGoods struct {
  988. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  989. Count int64 `gorm:"column:count" json:"count" form:"count"`
  990. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  991. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  992. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  993. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  994. }
  995. type QueueCallConfig struct {
  996. ID int64 `gorm:"column:id" json:"id" form:"id"`
  997. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  998. Qhsj int64 `gorm:"column:qhsj" json:"qhsj" form:"qhsj"`
  999. Jzdcbbcs int64 `gorm:"column:jzdcbbcs" json:"jzdcbbcs" form:"jzdcbbcs"`
  1000. Jzbbsy int64 `gorm:"column:jzbbsy" json:"jzbbsy" form:"jzbbsy"`
  1001. Jzjhyc int64 `gorm:"column:jzjhyc" json:"jzjhyc" form:"jzjhyc"`
  1002. Sjdcbbcs int64 `gorm:"column:sjdcbbcs" json:"sjdcbbcs" form:"sjdcbbcs"`
  1003. Sjbbsy int64 `gorm:"column:sjbbsy" json:"sjbbsy" form:"sjbbsy"`
  1004. Sjjhyc int64 `gorm:"column:sjjhyc" json:"sjjhyc" form:"sjjhyc"`
  1005. Txxqyxs int64 `gorm:"column:txxqyxs" json:"txxqyxs" form:"txxqyxs"`
  1006. Txglsyxs int64 `gorm:"column:txglsyxs" json:"txglsyxs" form:"txglsyxs"`
  1007. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1008. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1009. }
  1010. func (QueueCallConfig) TableName() string {
  1011. return "xt_queue_call_config"
  1012. }
  1013. type XtDialysisBeforePrepare struct {
  1014. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1015. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1016. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1017. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1018. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1019. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1020. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1021. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1022. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1023. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1024. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1025. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1026. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1027. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1028. }
  1029. type BloodDoctorAdvice struct {
  1030. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1031. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1032. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1033. Total int64
  1034. }