dialysis.go 81KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  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. }
  160. func (SchedualPatient2) TableName() string {
  161. return "xt_patients"
  162. }
  163. type DialysisSchedule struct {
  164. ID int64 `gorm:"column:id" json:"id" form:"id"`
  165. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  166. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  167. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  168. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  169. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  170. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  171. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  172. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  173. Status int64 `gorm:"column:status" json:"status" form:"status"`
  174. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  175. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  176. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  177. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  178. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  179. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  180. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
  181. Prescription DialysisPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
  182. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_before_dislysis"`
  183. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_after_dislysis"`
  184. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"monitoring_record"`
  185. //Patient string `gorm:"-" json:"patient" form:"patient"`
  186. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  187. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  188. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  189. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  190. }
  191. func (DialysisSchedule) TableName() string {
  192. return "xt_schedule"
  193. }
  194. type PredialysisEvaluation struct {
  195. ID int64 `gorm:"column:id" json:"id"`
  196. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  197. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  198. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  199. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  200. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  201. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  202. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  203. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  204. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  205. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  206. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  207. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  208. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  209. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  210. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  211. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  212. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  213. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  214. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  215. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  216. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  217. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  218. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  219. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  220. Catheter string `gorm:"column:catheter" json:"catheter"`
  221. CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  222. Complication string `gorm:"column:complication" json:"complication"`
  223. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  224. Creater int64 `gorm:"column:creater" json:"creater"`
  225. Remark string `gorm:"column:remark" json:"remark"`
  226. Status int64 `gorm:"column:status" json:"status"`
  227. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  228. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  229. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  230. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  231. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  232. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  233. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  234. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  235. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  236. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  237. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  238. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  239. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  240. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  241. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  242. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  243. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  244. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  245. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  246. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count"`
  247. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  248. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  249. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  250. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  251. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  252. Skin string `gorm:"column:skin" json:"skin"`
  253. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  254. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  255. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  256. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  257. LastPostDialysisOther string `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
  258. SymptomBeforeDialysisOther string `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
  259. DialysisInterphaseOther string `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
  260. HumorExcessiveSymptom int64 `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom"`
  261. Phinholing string `gorm:"column:pinholing" json:"pinholing" form:"pinholing"`
  262. CatheterSuture string `gorm:"column:catheter_suture" json:"catheter_suture" form:"catheter_suture"`
  263. CatheterSutureOther string `gorm:"column:catheter_suture_other" json:"catheter_suture_other" form:"catheter_suture_other"`
  264. UrineVolume float64 `gorm:"column:urine_volume" json:"urine_volume" form:"urine_volume"`
  265. Edema string `gorm:"column:edema" json:"edema" form:"edema"`
  266. SpecialTreatment string `gorm:"column:special_treatment" json:"special_treatment" form:"special_treatment"`
  267. CatheterMaintenance string `gorm:"column:catheter_maintenance" json:"catheter_maintenance" form:"catheter_maintenance"`
  268. }
  269. func (PredialysisEvaluation) TableName() string {
  270. return "xt_assessment_before_dislysis"
  271. }
  272. type PredialysisEvaluationList struct {
  273. ID int64 `gorm:"column:id" json:"id"`
  274. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  275. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  276. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  277. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  278. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  279. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  280. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  281. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  282. }
  283. func (PredialysisEvaluationList) TableName() string {
  284. return "xt_assessment_before_dislysis"
  285. }
  286. //更改的地方
  287. type DoctorAdvices struct {
  288. ID int64 `gorm:"column:id" json:"id" form:"id"`
  289. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  290. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  291. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  292. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  293. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  294. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  295. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  296. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  297. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  298. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  299. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  300. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  301. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  302. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  303. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  304. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  305. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  306. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  307. Status int64 `gorm:"column:status" json:"status" form:"status"`
  308. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  309. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  310. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  311. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  312. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  313. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  314. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  315. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  316. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  317. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  318. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  319. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  320. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  321. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  322. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  323. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  324. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  325. AdviceId int64 `gorm:"-"`
  326. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  327. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  328. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  329. WeekDay string `gorm:"column:week_day" json:"week_day"`
  330. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  331. TemplateId string `gorm:"column:template_id" json:"template_id"`
  332. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  333. Name string `gorm:"column:name" json:"name" form:"name"`
  334. }
  335. type DoctorAdvice struct {
  336. ID int64 `gorm:"column:id" json:"id" form:"id"`
  337. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  338. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  339. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  340. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  341. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  342. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  343. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  344. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  345. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  346. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  347. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  348. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  349. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  350. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  351. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  352. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  353. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  354. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  355. Status int64 `gorm:"column:status" json:"status" form:"status"`
  356. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  357. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  358. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  359. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  360. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  361. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  362. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  363. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  364. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  365. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  366. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  367. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  368. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  369. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  370. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  371. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  372. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  373. AdviceId int64 `gorm:"-"`
  374. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  375. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  376. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  377. WeekDay string `gorm:"column:week_day" json:"week_day"`
  378. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  379. TemplateId string `gorm:"column:template_id" json:"template_id"`
  380. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  381. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  382. Way int64 `gorm:"column:way" json:"way" form:"way"`
  383. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  384. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  385. }
  386. func (DoctorAdvice) TableName() string {
  387. return "xt_doctor_advice"
  388. }
  389. type XtDoctorAdvice struct {
  390. ID int64 `gorm:"column:id" json:"id" form:"id"`
  391. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  392. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  393. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  394. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  395. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  396. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  397. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  398. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  399. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  400. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  401. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  402. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  403. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  404. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  405. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  406. Status int64 `gorm:"column:status" json:"status" form:"status"`
  407. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  408. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  409. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  410. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  411. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  412. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  413. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  414. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  415. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  416. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  417. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  418. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  419. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  420. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  421. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  422. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  423. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  424. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  425. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  426. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  427. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  428. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  429. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  430. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  431. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  432. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  433. CheckerName string `gorm:"column:user_name" json:"name" form:"name"`
  434. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  435. }
  436. func (XtDoctorAdvice) TableName() string {
  437. return "xt_doctor_advice"
  438. }
  439. type GroupAdvice struct {
  440. DoctorAdvice
  441. Children []*GroupAdvice
  442. }
  443. func (GroupAdvice) TableName() string {
  444. return "xt_doctor_advice"
  445. }
  446. type DoubleCheck struct {
  447. ID int64 `gorm:"column:id" json:"id"`
  448. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  449. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  450. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  451. CheckDate int64 `gorm:"column:check_date" json:"check_date"`
  452. DialysisItemCheck int64 `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
  453. DialysisItemDesc string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
  454. DialysisParameterCheck int64 `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
  455. DialysisParameterDesc string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
  456. VascularAccessVerification int64 `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
  457. VascularAccessDesc string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
  458. PipelineConnectionCheck int64 `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
  459. PipelineConnectionDesc string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
  460. Collator int64 `gorm:"column:collator" json:"collator"`
  461. Status int64 `gorm:"column:status" json:"status"`
  462. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  463. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  464. Creater int64 `gorm:"column:creater" json:"creater"`
  465. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  466. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  467. FirstCheckTime int64 `gorm:"column:first_check_time" json:"first_check_time"`
  468. }
  469. func (DoubleCheck) TableName() string {
  470. return "xt_double_check"
  471. }
  472. type AssessmentAfterDislysis struct {
  473. ID int64 `gorm:"column:id" json:"id"`
  474. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  475. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  476. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  477. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  478. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  479. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  480. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  481. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  482. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  483. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  484. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  485. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  486. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  487. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  488. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  489. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  490. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  491. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  492. Cruor string `gorm:"column:cruor" json:"cruor"`
  493. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  494. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  495. // InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  496. Catheter string `gorm:"column:catheter" json:"catheter"`
  497. // CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  498. Complication string `gorm:"column:complication" json:"complication"`
  499. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  500. Remark string `gorm:"column:remark" json:"remark"`
  501. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  502. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  503. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  504. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  505. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  506. Status int64 `gorm:"column:status" json:"status"`
  507. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  508. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  509. Creater int64 `gorm:"column:creater" json:"creater"`
  510. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  511. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  512. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  513. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  514. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  515. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  516. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  517. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  518. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  519. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  520. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  521. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  522. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  523. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  524. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  525. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  526. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  527. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  528. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  529. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  530. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  531. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  532. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  533. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  534. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  535. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  536. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
  537. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  538. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  539. ReturnBlood int64 `gorm:"column:return_blood" json:"return_blood" form:"return_blood"`
  540. RehydrationVolume int64 `gorm:"column:rehydration_volume" json:"rehydration_volume" form:"rehydration_volume"`
  541. DialysisDuring int64 `gorm:"column:dialysis_during" json:"dialysis_during" form:"dialysis_during"`
  542. StrokeVolume int64 `gorm:"column:stroke_volume" json:"stroke_volume" form:"stroke_volume"`
  543. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  544. BloodFlow int64 `gorm:"column:blood_flow" json:"blood_flow" form:"blood_flow"`
  545. SealingFluidDispose string `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  546. SealingFluidSpecial string `gorm:"column:sealing_fluid_special" json:"sealing_fluid_special" form:"sealing_fluid_special"`
  547. DosageOfAnticoagulants float64 `gorm:"column:dosage_of_anticoagulants" json:"dosage_of_anticoagulants" form:"dosage_of_anticoagulants"`
  548. SupineSystolicBloodPressure string `gorm:"column:supine_systolic_blood_pressure" json:"supine_systolic_blood_pressure" form:"supine_systolic_blood_pressure"`
  549. SettingPressure string `gorm:"column:setting_pressure" json:"setting_pressure" form:"setting_pressure"`
  550. SupineDiastolicBloodPressure string `gorm:"column:supine_diastolic_blood_pressure" json:"supine_diastolic_blood_pressure" form:"supine_diastolic_blood_pressure"`
  551. DiastolicPressure string `gorm:"column:diastolic_pressure" json:"diastolic_pressure" form:"diastolic_pressure"`
  552. OtherComplication string `gorm:"column:other_complication" json:"other_complication" form:"other_complication"`
  553. }
  554. func (AssessmentAfterDislysis) TableName() string {
  555. return "xt_assessment_after_dislysis"
  556. }
  557. type TreatmentSummary struct {
  558. ID int64 `gorm:"column:id" json:"id"`
  559. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  560. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  561. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  562. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  563. Mission string `gorm:"column:mission" json:"mission"`
  564. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  565. Change int64 `gorm:"column:change" json:"change"`
  566. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  567. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  568. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  569. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  570. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  571. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  572. Puncture string `gorm:"column:puncture" json:"puncture"`
  573. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  574. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  575. Status int64 `gorm:"column:status" json:"status"`
  576. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  577. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  578. Creater int64 `gorm:"column:creater" json:"creater"`
  579. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  580. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  581. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  582. }
  583. func (TreatmentSummary) TableName() string {
  584. return "xt_treatment_summary"
  585. }
  586. type DryWeightAdjust struct {
  587. ID int64 `gorm:"column:id" json:"id" form:"id"`
  588. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  589. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  590. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  591. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  592. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  593. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  594. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  595. Status int64 `gorm:"column:status" json:"status" form:"status"`
  596. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  597. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  598. }
  599. func (DryWeightAdjust) TableName() string {
  600. return "xt_dry_weight_adjust"
  601. }
  602. type MonitoringRecord struct {
  603. ID int64 `gorm:"column:id" json:"id"`
  604. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  605. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  606. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  607. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  608. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  609. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  610. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  611. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  612. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  613. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  614. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  615. Pic string `gorm:"column:pic" json:"pic"`
  616. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  617. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  618. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  619. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  620. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  621. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  622. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  623. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  624. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  625. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  626. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  627. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  628. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  629. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  630. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  631. Symptom string `gorm:"column:symptom" json:"symptom"`
  632. Dispose string `gorm:"column:dispose" json:"dispose"`
  633. Result string `gorm:"column:result" json:"result"`
  634. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  635. Status int64 `gorm:"column:status" json:"status"`
  636. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  637. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  638. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  639. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  640. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  641. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  642. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  643. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  644. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  645. Urr string `gorm:"column:urr" json:"urr"`
  646. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  647. }
  648. func (MonitoringRecord) TableName() string {
  649. return "xt_monitoring_record"
  650. }
  651. type DialysisOrders struct {
  652. ID int64 `gorm:"column:id" json:"id"`
  653. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  654. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  655. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  656. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  657. Stage int64 `gorm:"column:stage" json:"stage"`
  658. Remark string `gorm:"column:remark" json:"remark"`
  659. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  660. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  661. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  662. Status int64 `gorm:"column:status" json:"status"`
  663. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  664. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  665. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  666. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  667. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  668. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  669. Creator int64 `gorm:"column:creator" json:"creator"`
  670. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  671. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  672. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  673. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  674. Name int64 `gorm:"column:name" json:"name"`
  675. Number string `gorm:"column:number" json:"number"`
  676. }
  677. type DialysisOrder struct {
  678. ID int64 `gorm:"column:id" json:"id"`
  679. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  680. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  681. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  682. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  683. Stage int64 `gorm:"column:stage" json:"stage"`
  684. Remark string `gorm:"column:remark" json:"remark"`
  685. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  686. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  687. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  688. Status int64 `gorm:"column:status" json:"status"`
  689. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  690. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  691. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  692. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  693. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  694. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  695. Creator int64 `gorm:"column:creator" json:"creator"`
  696. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  697. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  698. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  699. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  700. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
  701. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  702. }
  703. func (DialysisOrder) TableName() string {
  704. return "xt_dialysis_order"
  705. }
  706. type XtDialysisOrder struct {
  707. ID int64 `gorm:"column:id" json:"id" form:"id"`
  708. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  709. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  710. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  711. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  712. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  713. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  714. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  715. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  716. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  717. Status int64 `gorm:"column:status" json:"status" form:"status"`
  718. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  719. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  720. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  721. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  722. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  723. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  724. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  725. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  726. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  727. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  728. Number int64 `gorm:"column:number" json:"number" form:"number"`
  729. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  730. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  731. }
  732. type XtDialysisOrders struct {
  733. ID int64 `gorm:"column:id" json:"id" form:"id"`
  734. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  735. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  736. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  737. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  738. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  739. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  740. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  741. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  742. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  743. Status int64 `gorm:"column:status" json:"status" form:"status"`
  744. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  745. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  746. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  747. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  748. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  749. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  750. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  751. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  752. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  753. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  754. Number int64 `gorm:"column:number" json:"number" form:"number"`
  755. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  756. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  757. }
  758. func (XtDialysisOrder) TableName() string {
  759. return "xt_dialysis_order"
  760. }
  761. type TreatmentMode struct {
  762. ID int64 `gorm:"column:id" json:"id" form:"id"`
  763. Name string `gorm:"column:name" json:"name" form:"name"`
  764. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  765. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  766. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  767. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  768. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  769. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  770. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  771. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  772. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  773. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  774. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  775. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  776. Status int64 `gorm:"column:status" json:"status" form:"status"`
  777. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  778. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  779. }
  780. func (TreatmentMode) TableName() string {
  781. return "xt_treatment_mode"
  782. }
  783. type ReceiveTreatmentAsses struct {
  784. ID int64 `gorm:"column:id" json:"id"`
  785. Way int64 `gorm:"column:way" json:"way"`
  786. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  787. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  788. Condition int64 `gorm:"column:condition" json:"condition"`
  789. Creater int64 `gorm:"column:creater" json:"creater"`
  790. Posture int64 `gorm:"column:posture" json:"posture"`
  791. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  792. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  793. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  794. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  795. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  796. Status int64 `gorm:"column:status" json:"status"`
  797. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  798. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  799. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  800. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  801. Intake int64 `gorm:"column:intake" json:"intake"`
  802. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  803. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  804. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  805. Score string `gorm:"column:score" json:"score"`
  806. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  807. Precaution string `gorm:"column:precaution" json:"precaution"`
  808. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  809. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  810. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  811. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  812. }
  813. func (ReceiveTreatmentAsses) TableName() string {
  814. return "xt_receive_treatment_asses"
  815. }
  816. type GobalTemplate struct {
  817. ID int64 `gorm:"column:id" json:"id"`
  818. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  819. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  820. Status int64 `gorm:"column:status" json:"status"`
  821. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  822. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  823. }
  824. func (GobalTemplate) TableName() string {
  825. return "xt_gobal_template"
  826. }
  827. type SgjUserAdminRole struct {
  828. ID int64 `gorm:"column:id" json:"id" form:"id"`
  829. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  830. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  831. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  832. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  833. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  834. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  835. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  836. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  837. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  838. Status int64 `gorm:"column:status" json:"status" form:"status"`
  839. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  840. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  841. Message string `gorm:"column:message" json:"message" form:"message"`
  842. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  843. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  844. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  845. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  846. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  847. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  848. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  849. Age int64 `gorm:"column:age" json:"age" form:"age"`
  850. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  851. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  852. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  853. Education int64 `gorm:"column:education" json:"education" form:"education"`
  854. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  855. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  856. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  857. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  858. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  859. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  860. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  861. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  862. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  863. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  864. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  865. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  866. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  867. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  868. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  869. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  870. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  871. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  872. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  873. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  874. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  875. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  876. Mobile string
  877. Name string
  878. Department string `gorm:"column:department" json:"department" form:"department"`
  879. }
  880. func (SgjUserAdminRole) TableName() string {
  881. return "sgj_user_admin_role"
  882. }
  883. type SgjUserAdmin struct {
  884. ID int64 `gorm:"column:id" json:"id" form:"id"`
  885. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  886. Password string `gorm:"column:password" json:"password" form:"password"`
  887. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  888. Status int64 `gorm:"column:status" json:"status" form:"status"`
  889. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  890. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  891. Source int64 `gorm:"column:source" json:"source" form:"source"`
  892. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  893. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  894. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  895. Name string `gorm:"column:name" json:"name" form:"name"`
  896. }
  897. func (SgjUserAdmin) TableName() string {
  898. return "sgj_user_admin"
  899. }
  900. type UserAdminRoles struct {
  901. ID int64 `gorm:"column:id" json:"id" form:"id"`
  902. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  903. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  904. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  905. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  906. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  907. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  908. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  909. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  910. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  911. Status int64 `gorm:"column:status" json:"status" form:"status"`
  912. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  913. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  914. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  915. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  916. Message string `gorm:"column:message" json:"message" form:"message"`
  917. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  918. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  919. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  920. Url string `gorm:"column:url" json:"url" form:"url"`
  921. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  922. }
  923. type DialysisBeforePrepare struct {
  924. ID int64 `gorm:"column:id" json:"id" form:"id"`
  925. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  926. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  927. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  928. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  929. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  930. Count int64 `gorm:"column:count" json:"count" form:"count"`
  931. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  932. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  933. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  934. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  935. Status int64 `gorm:"column:status" json:"status" form:"status"`
  936. }
  937. func (DialysisBeforePrepare) TableName() string {
  938. return "dialysis_before_prepare"
  939. }
  940. type QueueCallConfig struct {
  941. ID int64 `gorm:"column:id" json:"id" form:"id"`
  942. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  943. Qhsj int64 `gorm:"column:qhsj" json:"qhsj" form:"qhsj"`
  944. Jzdcbbcs int64 `gorm:"column:jzdcbbcs" json:"jzdcbbcs" form:"jzdcbbcs"`
  945. Jzbbsy int64 `gorm:"column:jzbbsy" json:"jzbbsy" form:"jzbbsy"`
  946. Jzjhyc int64 `gorm:"column:jzjhyc" json:"jzjhyc" form:"jzjhyc"`
  947. Sjdcbbcs int64 `gorm:"column:sjdcbbcs" json:"sjdcbbcs" form:"sjdcbbcs"`
  948. Sjbbsy int64 `gorm:"column:sjbbsy" json:"sjbbsy" form:"sjbbsy"`
  949. Sjjhyc int64 `gorm:"column:sjjhyc" json:"sjjhyc" form:"sjjhyc"`
  950. Txxqyxs int64 `gorm:"column:txxqyxs" json:"txxqyxs" form:"txxqyxs"`
  951. Txglsyxs int64 `gorm:"column:txglsyxs" json:"txglsyxs" form:"txglsyxs"`
  952. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  953. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  954. }
  955. func (QueueCallConfig) TableName() string {
  956. return "xt_queue_call_config"
  957. }