dialysis.go 83KB

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