dialysis.go 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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. }
  72. func (SchedualPatient) TableName() string {
  73. return "xt_patients"
  74. }
  75. type PredialysisEvaluation struct {
  76. ID int64 `gorm:"column:id" json:"id"`
  77. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  78. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  79. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  80. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  81. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  82. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  83. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  84. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  85. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  86. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  87. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  88. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  89. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  90. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  91. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  92. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  93. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  94. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  95. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  96. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  97. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  98. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  99. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  100. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  101. Catheter string `gorm:"column:catheter" json:"catheter"`
  102. CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  103. Complication string `gorm:"column:complication" json:"complication"`
  104. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  105. Creater int64 `gorm:"column:creater" json:"creater"`
  106. Remark string `gorm:"column:remark" json:"remark"`
  107. Status int64 `gorm:"column:status" json:"status"`
  108. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  109. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  110. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  111. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  112. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  113. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  114. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  115. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  116. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  117. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  118. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  119. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  120. PunctureWay int64 `gorm:"column:puncture_way" json:"puncture_way"`
  121. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  122. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  123. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  124. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  125. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  126. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  127. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count"`
  128. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  129. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  130. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  131. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  132. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  133. Skin int64 `gorm:"column:skin" json:"skin"`
  134. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  135. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  136. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  137. }
  138. func (PredialysisEvaluation) TableName() string {
  139. return "xt_assessment_before_dislysis"
  140. }
  141. type DoctorAdvice struct {
  142. ID int64 `gorm:"column:id" json:"id" form:"id"`
  143. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  144. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  145. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  146. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  147. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  148. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  149. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  150. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  151. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  152. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  153. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  154. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  155. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  156. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  157. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  158. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  159. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  160. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  161. Status int64 `gorm:"column:status" json:"status" form:"status"`
  162. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  163. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  164. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  165. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  166. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  167. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  168. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  169. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  170. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  171. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  172. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  173. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  174. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  175. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  176. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  177. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  178. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  179. AdviceId int64 `gorm:"-"`
  180. }
  181. func (DoctorAdvice) TableName() string {
  182. return "xt_doctor_advice"
  183. }
  184. type GroupAdvice struct {
  185. DoctorAdvice
  186. Children []*GroupAdvice
  187. }
  188. func (GroupAdvice) TableName() string {
  189. return "xt_doctor_advice"
  190. }
  191. type DoubleCheck struct {
  192. ID int64 `gorm:"column:id" json:"id"`
  193. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  194. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  195. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  196. CheckDate int64 `gorm:"column:check_date" json:"check_date"`
  197. DialysisItemCheck int64 `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
  198. DialysisItemDesc string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
  199. DialysisParameterCheck int64 `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
  200. DialysisParameterDesc string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
  201. VascularAccessVerification int64 `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
  202. VascularAccessDesc string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
  203. PipelineConnectionCheck int64 `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
  204. PipelineConnectionDesc string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
  205. Collator int64 `gorm:"column:collator" json:"collator"`
  206. Status int64 `gorm:"column:status" json:"status"`
  207. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  208. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  209. Creater int64 `gorm:"column:creater" json:"creater"`
  210. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  211. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  212. FirstCheckTime int64 `gorm:"column:first_check_time" json:"first_check_time"`
  213. }
  214. func (DoubleCheck) TableName() string {
  215. return "xt_double_check"
  216. }
  217. type AssessmentAfterDislysis struct {
  218. ID int64 `gorm:"column:id" json:"id"`
  219. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  220. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  221. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  222. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  223. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  224. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  225. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  226. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  227. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  228. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  229. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  230. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  231. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  232. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  233. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  234. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  235. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  236. Cruor string `gorm:"column:cruor" json:"cruor"`
  237. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  238. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  239. // InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  240. Catheter string `gorm:"column:catheter" json:"catheter"`
  241. // CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  242. Complication string `gorm:"column:complication" json:"complication"`
  243. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  244. Remark string `gorm:"column:remark" json:"remark"`
  245. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  246. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  247. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  248. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  249. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  250. Status int64 `gorm:"column:status" json:"status"`
  251. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  252. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  253. Creater int64 `gorm:"column:creater" json:"creater"`
  254. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  255. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  256. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  257. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  258. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  259. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  260. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  261. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  262. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  263. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  264. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  265. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  266. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  267. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  268. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  269. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  270. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  271. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  272. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  273. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  274. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  275. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  276. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  277. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  278. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  279. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  280. }
  281. func (AssessmentAfterDislysis) TableName() string {
  282. return "xt_assessment_after_dislysis"
  283. }
  284. type TreatmentSummary struct {
  285. ID int64 `gorm:"column:id" json:"id"`
  286. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  287. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  288. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  289. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  290. Mission string `gorm:"column:mission" json:"mission"`
  291. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  292. Change int64 `gorm:"column:change" json:"change"`
  293. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  294. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  295. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  296. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  297. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  298. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  299. Puncture string `gorm:"column:puncture" json:"puncture"`
  300. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  301. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  302. Status int64 `gorm:"column:status" json:"status"`
  303. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  304. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  305. Creater int64 `gorm:"column:creater" json:"creater"`
  306. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  307. }
  308. func (TreatmentSummary) TableName() string {
  309. return "xt_treatment_summary"
  310. }
  311. type DryWeightAdjust struct {
  312. ID int64 `gorm:"column:id" json:"id" form:"id"`
  313. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  314. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  315. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  316. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  317. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  318. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  319. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  320. Status int64 `gorm:"column:status" json:"status" form:"status"`
  321. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  322. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  323. }
  324. func (DryWeightAdjust) TableName() string {
  325. return "xt_dry_weight_adjust"
  326. }
  327. type MonitoringRecord struct {
  328. ID int64 `gorm:"column:id" json:"id"`
  329. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  330. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  331. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  332. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  333. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  334. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  335. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  336. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  337. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  338. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  339. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  340. Pic string `gorm:"column:pic" json:"pic"`
  341. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  342. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  343. VenousPressureUnit string `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
  344. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  345. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  346. TransmembranePressureUnit string `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
  347. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  348. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  349. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  350. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  351. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  352. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  353. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  354. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  355. Symptom string `gorm:"column:symptom" json:"symptom"`
  356. Dispose string `gorm:"column:dispose" json:"dispose"`
  357. Result string `gorm:"column:result" json:"result"`
  358. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  359. Status int64 `gorm:"column:status" json:"status"`
  360. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  361. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  362. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  363. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  364. }
  365. func (MonitoringRecord) TableName() string {
  366. return "xt_monitoring_record"
  367. }
  368. type DialysisOrder struct {
  369. ID int64 `gorm:"column:id" json:"id"`
  370. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  371. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  372. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  373. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  374. Stage int64 `gorm:"column:stage" json:"stage"`
  375. Remark string `gorm:"column:remark" json:"remark"`
  376. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  377. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  378. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  379. Status int64 `gorm:"column:status" json:"status"`
  380. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  381. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  382. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  383. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  384. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  385. Creator int64 `gorm:"column:creator" json:"creator"`
  386. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  387. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  388. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  389. }
  390. func (DialysisOrder) TableName() string {
  391. return "xt_dialysis_order"
  392. }
  393. type TreatmentMode struct {
  394. ID int64 `gorm:"column:id" json:"id" form:"id"`
  395. Name string `gorm:"column:name" json:"name" form:"name"`
  396. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  397. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  398. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  399. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  400. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  401. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  402. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  403. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  404. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  405. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  406. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  407. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  408. Status int64 `gorm:"column:status" json:"status" form:"status"`
  409. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  410. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  411. }
  412. func (TreatmentMode) TableName() string {
  413. return "xt_treatment_mode"
  414. }
  415. type ReceiveTreatmentAsses struct {
  416. ID int64 `gorm:"column:id" json:"id"`
  417. Way int64 `gorm:"column:way" json:"way"`
  418. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  419. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  420. Condition int64 `gorm:"column:condition" json:"condition"`
  421. Creater int64 `gorm:"column:creater" json:"creater"`
  422. Posture int64 `gorm:"column:posture" json:"posture"`
  423. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  424. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  425. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  426. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  427. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  428. Status int64 `gorm:"column:status" json:"status"`
  429. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  430. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  431. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  432. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  433. Intake int64 `gorm:"column:intake" json:"intake"`
  434. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  435. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  436. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  437. Score string `gorm:"column:score" json:"score"`
  438. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  439. Precaution int64 `gorm:"column:precaution" json:"precaution"`
  440. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  441. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  442. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  443. }
  444. func (ReceiveTreatmentAsses) TableName() string {
  445. return "xt_receive_treatment_asses"
  446. }
  447. type GobalTemplate struct {
  448. ID int64 `gorm:"column:id" json:"id"`
  449. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  450. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  451. Status int64 `gorm:"column:status" json:"status"`
  452. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  453. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  454. }
  455. func (GobalTemplate) TableName() string {
  456. return "xt_gobal_template"
  457. }