dialysis.go 67KB

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