dialysis.go 146KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816
  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. RecordNumber string `gorm:"column:record_number" json:"record_number" form:"record_number"`
  161. }
  162. func (SchedualPatient2) TableName() string {
  163. return "xt_patients"
  164. }
  165. type DialysisSchedule struct {
  166. ID int64 `gorm:"column:id" json:"id" form:"id"`
  167. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  168. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  169. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  170. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  171. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  172. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  173. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  174. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  175. Status int64 `gorm:"column:status" json:"status" form:"status"`
  176. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  177. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  178. MonitorPatients *MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  179. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  180. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  181. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  182. DialysisOrder *MonitorDialysisOrder `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
  183. Prescription *DialysisPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
  184. AssessmentBeforeDislysis *PredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_before_dislysis"`
  185. AssessmentAfterDislysis *AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_after_dislysis"`
  186. MonitoringRecord []*MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"monitoring_record"`
  187. }
  188. type DialysisScheduleOne struct {
  189. ID int64 `gorm:"column:id" json:"id" form:"id"`
  190. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  191. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  192. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  193. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  194. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  195. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  196. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  197. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  198. Status int64 `gorm:"column:status" json:"status" form:"status"`
  199. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  200. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  201. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  202. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  203. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  204. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  205. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dialysis_order"`
  206. Prescription DialysisPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"prescription"`
  207. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_before_dislysis"`
  208. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_after_dislysis"`
  209. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  210. //Patient string `gorm:"-" json:"patient" form:"patient"`
  211. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  212. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  213. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  214. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  215. }
  216. func (DialysisSchedule) TableName() string {
  217. return "xt_schedule"
  218. }
  219. type PredialysisEvaluation struct {
  220. ID int64 `gorm:"column:id" json:"id"`
  221. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  222. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  223. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  224. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  225. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  226. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  227. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  228. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  229. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  230. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  231. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  232. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  233. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  234. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  235. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  236. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  237. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  238. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  239. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  240. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  241. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  242. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  243. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  244. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  245. Catheter string `gorm:"column:catheter" json:"catheter"`
  246. CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  247. Complication string `gorm:"column:complication" json:"complication"`
  248. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  249. Creater int64 `gorm:"column:creater" json:"creater"`
  250. Remark string `gorm:"column:remark" json:"remark"`
  251. Status int64 `gorm:"column:status" json:"status"`
  252. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  253. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  254. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  255. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  256. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  257. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  258. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  259. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  260. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  261. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  262. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  263. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  264. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  265. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  266. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  267. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  268. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  269. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  270. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  271. DialysisCount string `gorm:"column:dialysis_count" json:"dialysis_count"`
  272. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  273. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  274. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  275. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  276. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  277. Skin string `gorm:"column:skin" json:"skin"`
  278. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  279. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  280. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  281. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  282. LastPostDialysisOther string `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
  283. SymptomBeforeDialysisOther string `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
  284. DialysisInterphaseOther string `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
  285. HumorExcessiveSymptom string `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom"`
  286. Phinholing string `gorm:"column:pinholing" json:"pinholing" form:"pinholing"`
  287. CatheterSuture string `gorm:"column:catheter_suture" json:"catheter_suture" form:"catheter_suture"`
  288. CatheterSutureOther string `gorm:"column:catheter_suture_other" json:"catheter_suture_other" form:"catheter_suture_other"`
  289. UrineVolume float64 `gorm:"column:urine_volume" json:"urine_volume" form:"urine_volume"`
  290. Edema string `gorm:"column:edema" json:"edema" form:"edema"`
  291. SpecialTreatment string `gorm:"column:special_treatment" json:"special_treatment" form:"special_treatment"`
  292. CatheterMaintenance string `gorm:"column:catheter_maintenance" json:"catheter_maintenance" form:"catheter_maintenance"`
  293. ThromubusType int64 `gorm:"column:thromubus_type" json:"thromubus_type" form:"thromubus_type"`
  294. ThrombusAv string `gorm:"column:thrombus_av" json:"thrombus_av" form:"thrombus_av"`
  295. ThromubusA string `gorm:"column:thromubus_a" json:"thromubus_a" form:"thromubus_a"`
  296. ThromubusV string `gorm:"column:thromubus_v" json:"thromubus_v" form:"thromubus_v"`
  297. Dehydration string `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  298. PreDialysisDrugs string `gorm:"column:pre_dialysis_drugs" json:"pre_dialysis_drugs" form:"pre_dialysis_drugs"`
  299. Period int64 `gorm:"column:period" json:"period" form:"period"`
  300. EstimatedFoodIntake string `gorm:"column:estimated_food_intake" json:"estimated_food_intake" form:"estimated_food_intake"`
  301. BloodPressureDuringDialysis string `gorm:"column:blood_pressure_during_dialysis" json:"blood_pressure_during_dialysis" form:"blood_pressure_during_dialysis"`
  302. UreaBefor string `gorm:"column:urea_befor" json:"urea_befor" form:"urea_befor"`
  303. Suction string `gorm:"column:suction" json:"suction" form:"suction"`
  304. WeightBeforRemake string `gorm:"column:weight_befor_remake" json:"weight_befor_remake" form:"weight_befor_remake"`
  305. Height string `gorm:"column:height" json:"height" form:"height"`
  306. Age string `gorm:"column:age" json:"age" form:"age"`
  307. HisDepartment string `gorm:"column:his_department" json:"his_department" form:"his_department"`
  308. HisBed string `gorm:"column:his_bed" json:"his_bed" form:"his_bed"`
  309. PointPuncture string `gorm:"column:point_puncture" json:"point_puncture" form:"point_puncture"`
  310. CatheterEvaluationProgram string `gorm:"column:catheter_evaluation_program" json:"catheter_evaluation_program" form:"catheter_evaluation_program"`
  311. SkinSiteCatheterization string `gorm:"column:skin_site_catheterization" json:"skin_site_catheterization" form:"skin_site_catheterization"`
  312. WhetherUnobstructed int64 `gorm:"column:whether_unobstructed" json:"whether_unobstructed" form:"whether_unobstructed"`
  313. LienNecessary int64 `gorm:"column:lien_necessary" json:"lien_necessary" form:"lien_necessary"`
  314. PathwayFormationTime int64 `gorm:"column:pathway_formation_time" json:"pathway_formation_time" form:"pathway_formation_time"`
  315. BeforSymptoms string `gorm:"column:befor_symptoms" json:"befor_symptoms" form:"befor_symptoms"`
  316. WashingTime string `gorm:"column:washing_time" json:"washing_time" form:"washing_time"`
  317. WarshCount string `gorm:"column:warsh_count" json:"warsh_count" form:"warsh_count"`
  318. PunctureNeedleDirection string `gorm:"column:puncture_needle_direction" json:"puncture_needle_direction" form:"puncture_needle_direction"`
  319. }
  320. func (PredialysisEvaluation) TableName() string {
  321. return "xt_assessment_before_dislysis"
  322. }
  323. type PredialysisEvaluationList struct {
  324. ID int64 `gorm:"column:id" json:"id"`
  325. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  326. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  327. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  328. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  329. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  330. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  331. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  332. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  333. }
  334. func (PredialysisEvaluationList) TableName() string {
  335. return "xt_assessment_before_dislysis"
  336. }
  337. // 更改的地方
  338. type DoctorAdvices struct {
  339. ID int64 `gorm:"column:id" json:"id" form:"id"`
  340. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  341. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  342. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  343. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  344. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  345. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  346. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  347. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  348. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  349. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  350. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  351. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  352. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  353. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  354. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  355. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  356. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  357. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  358. Status int64 `gorm:"column:status" json:"status" form:"status"`
  359. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  360. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  361. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  362. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  363. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  364. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  365. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  366. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  367. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  368. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  369. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  370. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  371. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  372. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  373. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  374. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  375. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  376. AdviceId int64 `gorm:"-"`
  377. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  378. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  379. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  380. WeekDay string `gorm:"column:week_day" json:"week_day"`
  381. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  382. TemplateId string `gorm:"column:template_id" json:"template_id"`
  383. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  384. Name string `gorm:"column:name" json:"name" form:"name"`
  385. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  386. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  387. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  388. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  389. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  390. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  391. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  392. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  393. }
  394. type DoctorAdvice struct {
  395. ID int64 `gorm:"column:id" json:"id" form:"id"`
  396. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  397. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  398. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  399. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  400. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  401. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  402. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  403. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  404. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  405. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  406. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  407. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  408. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  409. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  410. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  411. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  412. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  413. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  414. Status int64 `gorm:"column:status" json:"status" form:"status"`
  415. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  416. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  417. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  418. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  419. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  420. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  421. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  422. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  423. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  424. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  425. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  426. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  427. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  428. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  429. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  430. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  431. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  432. AdviceId int64 `gorm:"-"`
  433. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  434. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  435. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  436. WeekDay string `gorm:"column:week_day" json:"week_day"`
  437. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  438. TemplateId string `gorm:"column:template_id" json:"template_id"`
  439. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  440. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  441. Way int64 `gorm:"column:way" json:"way" form:"way"`
  442. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  443. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  444. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  445. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  446. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  447. IsPrescription int64 `gorm:"column:is_prescription" json:"is_prescription" form:"is_prescription"`
  448. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  449. }
  450. func (DoctorAdvice) TableName() string {
  451. return "xt_doctor_advice"
  452. }
  453. type XtDoctorAdvice struct {
  454. ID int64 `gorm:"column:id" json:"id" form:"id"`
  455. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  456. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  457. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  458. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  459. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  460. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  461. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  462. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  463. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  464. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  465. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  466. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  467. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  468. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  469. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  470. Status int64 `gorm:"column:status" json:"status" form:"status"`
  471. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  472. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  473. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  474. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  475. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  476. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  477. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  478. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  479. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  480. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  481. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  482. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  483. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  484. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  485. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  486. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  487. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  488. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  489. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  490. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  491. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  492. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  493. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  494. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  495. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  496. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  497. CheckerName string `gorm:"column:name" json:"name" form:"name"`
  498. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  499. }
  500. func (XtDoctorAdvice) TableName() string {
  501. return "xt_doctor_advice"
  502. }
  503. type GroupAdvice struct {
  504. DoctorAdvice
  505. Children []*GroupAdvice
  506. }
  507. func (GroupAdvice) TableName() string {
  508. return "xt_doctor_advice"
  509. }
  510. type DoubleCheck struct {
  511. ID int64 `gorm:"column:id" json:"id"`
  512. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  513. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  514. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  515. CheckDate int64 `gorm:"column:check_date" json:"check_date"`
  516. DialysisItemCheck int64 `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
  517. DialysisItemDesc string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
  518. DialysisParameterCheck int64 `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
  519. DialysisParameterDesc string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
  520. VascularAccessVerification int64 `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
  521. VascularAccessDesc string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
  522. PipelineConnectionCheck int64 `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
  523. PipelineConnectionDesc string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
  524. Collator int64 `gorm:"column:collator" json:"collator"`
  525. Status int64 `gorm:"column:status" json:"status"`
  526. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  527. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  528. Creater int64 `gorm:"column:creater" json:"creater"`
  529. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  530. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  531. FirstCheckTime int64 `gorm:"column:first_check_time" json:"first_check_time"`
  532. EmployeeNumber string `gorm:"column:employee_number" json:"employee_number" form:"employee_number"`
  533. DialyzerBatchNumber string `gorm:"column:dialyzer_batch_number" json:"dialyzer_batch_number" form:"dialyzer_batch_number"`
  534. NeedleBatchNumber string `gorm:"column:needle_batch_number" json:"needle_batch_number" form:"needle_batch_number"`
  535. }
  536. func (DoubleCheck) TableName() string {
  537. return "xt_double_check"
  538. }
  539. type AssessmentAfterDislysis struct {
  540. ID int64 `gorm:"column:id" json:"id"`
  541. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  542. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  543. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  544. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  545. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  546. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  547. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  548. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  549. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  550. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  551. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  552. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  553. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  554. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  555. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  556. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  557. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  558. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  559. Cruor string `gorm:"column:cruor" json:"cruor"`
  560. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  561. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  562. // InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  563. Catheter string `gorm:"column:catheter" json:"catheter"`
  564. // CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  565. Complication string `gorm:"column:complication" json:"complication"`
  566. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  567. Remark string `gorm:"column:remark" json:"remark"`
  568. DialysisIntakes float64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  569. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  570. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  571. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  572. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  573. Status int64 `gorm:"column:status" json:"status"`
  574. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  575. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  576. Creater int64 `gorm:"column:creater" json:"creater"`
  577. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  578. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  579. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  580. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  581. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  582. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  583. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  584. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  585. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  586. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  587. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  588. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  589. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  590. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  591. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  592. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  593. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  594. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  595. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  596. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  597. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  598. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  599. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  600. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  601. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  602. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  603. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
  604. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  605. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  606. ReturnBlood int64 `gorm:"column:return_blood" json:"return_blood" form:"return_blood"`
  607. RehydrationVolume int64 `gorm:"column:rehydration_volume" json:"rehydration_volume" form:"rehydration_volume"`
  608. DialysisDuring float64 `gorm:"column:dialysis_during" json:"dialysis_during" form:"dialysis_during"`
  609. StrokeVolume int64 `gorm:"column:stroke_volume" json:"stroke_volume" form:"stroke_volume"`
  610. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  611. BloodFlow int64 `gorm:"column:blood_flow" json:"blood_flow" form:"blood_flow"`
  612. SealingFluidDispose string `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  613. SealingFluidSpecial string `gorm:"column:sealing_fluid_special" json:"sealing_fluid_special" form:"sealing_fluid_special"`
  614. DosageOfAnticoagulants float64 `gorm:"column:dosage_of_anticoagulants" json:"dosage_of_anticoagulants" form:"dosage_of_anticoagulants"`
  615. SupineSystolicBloodPressure string `gorm:"column:supine_systolic_blood_pressure" json:"supine_systolic_blood_pressure" form:"supine_systolic_blood_pressure"`
  616. SettingPressure string `gorm:"column:setting_pressure" json:"setting_pressure" form:"setting_pressure"`
  617. SupineDiastolicBloodPressure string `gorm:"column:supine_diastolic_blood_pressure" json:"supine_diastolic_blood_pressure" form:"supine_diastolic_blood_pressure"`
  618. DiastolicPressure string `gorm:"column:diastolic_pressure" json:"diastolic_pressure" form:"diastolic_pressure"`
  619. OtherComplication string `gorm:"column:other_complication" json:"other_complication" form:"other_complication"`
  620. Ktv string `gorm:"column:ktv" json:"ktv" form:"ktv"`
  621. Urr string `gorm:"column:urr" json:"urr" form:"urr"`
  622. Hypertenison int64 `gorm:"column:hypertenison" json:"hypertenison" form:"hypertenison"`
  623. Hypopiesia int64 `gorm:"column:hypopiesia" json:"hypopiesia" form:"hypopiesia"`
  624. LeaveOfficeMethod int64 `gorm:"column:leave_office_method" json:"leave_office_method" form:"leave_office_method"`
  625. Lapse int64 `gorm:"column:lapse" json:"lapse" form:"lapse"`
  626. Consciousness int64 `gorm:"column:consciousness" json:"consciousness" form:"consciousness"`
  627. Fallrisk int64 `gorm:"column:fallrisk" json:"fallrisk" form:"fallrisk"`
  628. MachineRun string `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  629. AfterUrea string `gorm:"column:after_urea" json:"after_urea" form:"after_urea"`
  630. PipCoagulation string `gorm:"column:pip_coagulation" json:"pip_coagulation" form:"pip_coagulation"`
  631. AccumulatedBloodVolume string `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  632. TransfusionVolume string `gorm:"column:transfusion_volume" json:"transfusion_volume" form:"transfusion_volume"`
  633. Condenser string `gorm:"column:condenser" json:"condenser" form:"condenser"`
  634. LastAfterWeight string `gorm:"column:last_after_weight" json:"last_after_weight" form:"last_after_weight"`
  635. DisplaceLiquiValue string `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  636. }
  637. func (AssessmentAfterDislysis) TableName() string {
  638. return "xt_assessment_after_dislysis"
  639. }
  640. type TreatmentSummary struct {
  641. ID int64 `gorm:"column:id" json:"id"`
  642. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  643. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  644. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  645. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  646. Mission string `gorm:"column:mission" json:"mission"`
  647. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  648. Change int64 `gorm:"column:change" json:"change"`
  649. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  650. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  651. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  652. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  653. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  654. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  655. Puncture string `gorm:"column:puncture" json:"puncture"`
  656. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  657. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  658. Status int64 `gorm:"column:status" json:"status"`
  659. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  660. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  661. Creater int64 `gorm:"column:creater" json:"creater"`
  662. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  663. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  664. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  665. }
  666. func (TreatmentSummary) TableName() string {
  667. return "xt_treatment_summary"
  668. }
  669. type DryWeightAdjust struct {
  670. ID int64 `gorm:"column:id" json:"id" form:"id"`
  671. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  672. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  673. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  674. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  675. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  676. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  677. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  678. Status int64 `gorm:"column:status" json:"status" form:"status"`
  679. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  680. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  681. }
  682. func (DryWeightAdjust) TableName() string {
  683. return "xt_dry_weight_adjust"
  684. }
  685. type MonitoringRecord struct {
  686. ID int64 `gorm:"column:id" json:"id"`
  687. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  688. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  689. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  690. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  691. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  692. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  693. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  694. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  695. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  696. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  697. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  698. Pic string `gorm:"column:pic" json:"pic"`
  699. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  700. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  701. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  702. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  703. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  704. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  705. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  706. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  707. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  708. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  709. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  710. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  711. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  712. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  713. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  714. Symptom string `gorm:"column:symptom" json:"symptom"`
  715. Dispose string `gorm:"column:dispose" json:"dispose"`
  716. Result string `gorm:"column:result" json:"result"`
  717. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  718. Status int64 `gorm:"column:status" json:"status"`
  719. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  720. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  721. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  722. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  723. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  724. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  725. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  726. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  727. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  728. Urr string `gorm:"column:urr" json:"urr"`
  729. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  730. MonitorAnticoagulant int64 `gorm:"column:monitor_anticoagulant" json:"monitor_anticoagulant" form:"monitor_anticoagulant"`
  731. MonitorAnticoagulantValue string `gorm:"column:monitor_anticoagulant_value" json:"monitor_anticoagulant_value" form:"monitor_anticoagulant_value"`
  732. BloodPressureMonitoringSite int64 `gorm:"column:blood_pressure_monitoring_site" json:"blood_pressure_monitoring_site" form:"blood_pressure_monitoring_site"`
  733. Complication int64 `gorm:"column:complication" json:"complication" form:"complication"`
  734. AccumulatedBloodVolume float64 `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  735. BloodTemperature float64 `gorm:"column:blood_temperature" json:"blood_temperature" form:"blood_temperature"`
  736. UreaMonitoring float64 `gorm:"column:urea_monitoring" json:"urea_monitoring" form:"urea_monitoring"`
  737. BloodThickness float64 `gorm:"column:blood_thickness" json:"blood_thickness" form:"blood_thickness"`
  738. BloodMonitor float64 `gorm:"column:blood_monitor" json:"blood_monitor" form:"blood_monitor"`
  739. HeparinAmount float64 `gorm:"column:heparin_amount" json:"heparin_amount" form:"heparin_amount"`
  740. Dehydration float64 `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  741. FilterPressure string `gorm:"column:filter_pressure" json:"filter_pressure" form:"filter_pressure"`
  742. ReplacementSpeed float64 `gorm:"column:replacement_speed" json:"replacement_speed" form:"replacement_speed"`
  743. Dicarbonate float64 `gorm:"column:dicarbonate" json:"dicarbonate" form:"dicarbonate"`
  744. IsPressure string `gorm:"column:is_pressure" json:"is_pressure" form:"is_pressure"`
  745. UltrafiltrationRateOne string `gorm:"column:ultrafiltration_rate_one" json:"ultrafiltration_rate_one" form:"ultrafiltration_rate_one"`
  746. HeparinOne string `gorm:"column:heparin_one" json:"heparin_one" form:"heparin_one"`
  747. MonitorSystolicBloodPressureOne string `gorm:"column:monitor_systolic_blood_pressure_one" json:"monitor_systolic_blood_pressure_one" form:"monitor_systolic_blood_pressure_one"`
  748. MonitorDiastolicBloodPressureOne string `gorm:"column:monitor_diastolic_blood_pressure_one" json:"monitor_diastolic_blood_pressure_one" form:"monitor_diastolic_blood_pressure_one"`
  749. MonitorPulseFrequencyOne string `gorm:"column:monitor_pulse_frequency_one" json:"monitor_pulse_frequency_one" form:"monitor_pulse_frequency_one"`
  750. BloodFlowVolumeOne string `gorm:"column:blood_flow_volume_one" json:"blood_flow_volume_one" form:"blood_flow_volume_one"`
  751. VenousPressureOne string `gorm:"column:venous_pressure_one" json:"venous_pressure_one" form:"venous_pressure_one"`
  752. ArterialPressureOne string `gorm:"column:arterial_pressure_one" json:"arterial_pressure_one" form:"arterial_pressure_one"`
  753. TransmembranePressureOne string `gorm:"column:transmembrane_pressure_one" json:"transmembrane_pressure_one" form:"transmembrane_pressure_one"`
  754. UltrafiltrationVolumeOne string `gorm:"column:ultrafiltration_volume_one" json:"ultrafiltration_volume_one" form:"ultrafiltration_volume_one"`
  755. SodiumConcentrationOne string `gorm:"column:sodium_concentration_one" json:"sodium_concentration_one" form:"sodium_concentration_one"`
  756. DialysateTemperatureOne string `gorm:"column:dialysate_temperature_one" json:"dialysate_temperature_one" form:"dialysate_temperature_one"`
  757. ReplacementRateOne string `gorm:"column:replacement_rate_one" json:"replacement_rate_one" form:"replacement_rate_one"`
  758. DisplacementQuantityOne string `gorm:"column:displacement_quantity_one" json:"displacement_quantity_one" form:"displacement_quantity_one"`
  759. KtvOne string `gorm:"column:ktv_one" json:"ktv_one" form:"ktv_one"`
  760. UrrOne string `gorm:"column:urr_one" json:"urr_one" form:"urr_one"`
  761. ConductivityOne string `gorm:"column:conductivity_one" json:"conductivity_one" form:"conductivity_one"`
  762. DisplacementFlowQuantityOne string `gorm:"column:displacement_flow_quantity_one" json:"displacement_flow_quantity_one" form:"displacement_flow_quantity_one"`
  763. BloodOxygenSaturationOne string `gorm:"column:blood_oxygen_saturation_one" json:"blood_oxygen_saturation_one" form:"blood_oxygen_saturation_one"`
  764. DialysateFlowOne string `gorm:"column:dialysate_flow_one" json:"dialysate_flow_one" form:"dialysate_flow_one"`
  765. BloodSugarOne string `gorm:"column:blood_sugar_one" json:"blood_sugar_one" form:"blood_sugar_one"`
  766. MonitorTemperatureOne string `gorm:"column:monitor_temperature_one" json:"monitor_temperature_one" form:"monitor_temperature_one"`
  767. PulseFrequencyOne string `gorm:"column:pulse_frequency_one" json:"pulse_frequency_one" form:"pulse_frequency_one"`
  768. BloodTemperatureOne string `gorm:"column:blood_temperature_one" json:"blood_temperature_one" form:"blood_temperature_one"`
  769. UreaMonitoringOne string `gorm:"column:urea_monitoring_one" json:"urea_monitoring_one" form:"urea_monitoring_one"`
  770. BloodThicknessOne string `gorm:"column:blood_thickness_one" json:"blood_thickness_one" form:"blood_thickness_one"`
  771. BloodMonitorOne string `gorm:"column:blood_monitor_one" json:"blood_monitor_one" form:"blood_monitor_one"`
  772. ReplacementSpeedOne string `gorm:"column:replacement_speed_one" json:"replacement_speed_one" form:"replacement_speed_one"`
  773. DicarbonateOne string `gorm:"column:dicarbonate_one" json:"dicarbonate_one" form:"dicarbonate_one"`
  774. AccumulatedBloodVolumeOne string `gorm:"column:accumulated_blood_volume_one" json:"accumulated_blood_volume_one" form:"accumulated_blood_volume_one"`
  775. }
  776. func (MonitoringRecord) TableName() string {
  777. return "xt_monitoring_record"
  778. }
  779. type MonitoringRecordOne struct {
  780. ID int64 `gorm:"column:id" json:"id"`
  781. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  782. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  783. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  784. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  785. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  786. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  787. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  788. MonitoringRecord []*MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:MonitoringDate,PatientId" json:"child"`
  789. }
  790. func (MonitoringRecordOne) TableName() string {
  791. return "xt_monitoring_record"
  792. }
  793. type DialysisOrders struct {
  794. ID int64 `gorm:"column:id" json:"id"`
  795. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  796. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  797. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  798. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  799. Stage int64 `gorm:"column:stage" json:"stage"`
  800. Remark string `gorm:"column:remark" json:"remark"`
  801. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  802. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  803. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  804. Status int64 `gorm:"column:status" json:"status"`
  805. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  806. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  807. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  808. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  809. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  810. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  811. Creator int64 `gorm:"column:creator" json:"creator"`
  812. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  813. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  814. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  815. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  816. Name int64 `gorm:"column:name" json:"name"`
  817. Number string `gorm:"column:number" json:"number"`
  818. }
  819. type VmDialysisOrder struct {
  820. Count int64
  821. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  822. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  823. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  824. Stage int64 `gorm:"column:stage" json:"stage"`
  825. Status int64 `gorm:"column:status" json:"status"`
  826. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  827. }
  828. func (VmDialysisOrder) TableName() string {
  829. return "xt_dialysis_order"
  830. }
  831. type DialysisOrder struct {
  832. ID int64 `gorm:"column:id" json:"id"`
  833. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  834. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  835. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  836. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  837. Stage int64 `gorm:"column:stage" json:"stage"`
  838. Remark string `gorm:"column:remark" json:"remark"`
  839. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  840. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  841. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  842. Status int64 `gorm:"column:status" json:"status"`
  843. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  844. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  845. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  846. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  847. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  848. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  849. Creator int64 `gorm:"column:creator" json:"creator"`
  850. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  851. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  852. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  853. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  854. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
  855. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  856. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  857. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  858. NewFistulaNurse int64 `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  859. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  860. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma" form:"puncture_point_haematoma"`
  861. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula" form:"blood_access_internal_fistula"`
  862. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  863. Cruor string `gorm:"column:cruor" json:"cruor" form:"cruor"`
  864. Url string `gorm:"column:url" json:"url" form:"url"`
  865. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  866. QualityNurseId int64 `gorm:"column:quality_nurse_id" json:"quality_nurse_id" form:"quality_nurse_id"`
  867. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  868. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way" form:"puncture_way"`
  869. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  870. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  871. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  872. Mission string `gorm:"column:mission" json:"mission" form:"mission"`
  873. NucleinDate int64 `gorm:"column:nuclein_date" json:"nuclein_date" form:"nuclein_date"`
  874. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  875. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  876. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  877. CatheterOperation string `gorm:"column:catheter_operation" json:"catheter_operation" form:"catheter_operation"`
  878. BloodFlowVolume string `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  879. Condenser string `gorm:"column:condenser" json:"condenser" form:"condenser"`
  880. BloodDrawing int64 `gorm:"column:blood_drawing" json:"blood_drawing" form:"blood_drawing"`
  881. DialysisStrainer string `gorm:"column:dialysis_strainer" json:"dialysis_strainer" form:"dialysis_strainer"`
  882. }
  883. func (DialysisOrder) TableName() string {
  884. return "xt_dialysis_order"
  885. }
  886. type XtDialysisOrder struct {
  887. ID int64 `gorm:"column:id" json:"id" form:"id"`
  888. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  889. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  890. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  891. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  892. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  893. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  894. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  895. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  896. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  897. Status int64 `gorm:"column:status" json:"status" form:"status"`
  898. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  899. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  900. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  901. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  902. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  903. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  904. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  905. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  906. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  907. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  908. Number int64 `gorm:"column:number" json:"number" form:"number"`
  909. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  910. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  911. Url string `gorm:"column:url" json:"url" form:"url"`
  912. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  913. }
  914. func (XtDialysisOrder) TableName() string {
  915. return "xt_dialysis_order"
  916. }
  917. type XtScheduleSixTy struct {
  918. ID int64 `gorm:"column:id" json:"id" form:"id"`
  919. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  920. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  921. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  922. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  923. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  924. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  925. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  926. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  927. Status int64 `gorm:"column:status" json:"status" form:"status"`
  928. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  929. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  930. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  931. DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
  932. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  933. }
  934. type XtDialysisOrders struct {
  935. ID int64 `gorm:"column:id" json:"id" form:"id"`
  936. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  937. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  938. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  939. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  940. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  941. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  942. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  943. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  944. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  945. Status int64 `gorm:"column:status" json:"status" form:"status"`
  946. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  947. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  948. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  949. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  950. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  951. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  952. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  953. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  954. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  955. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  956. Number string `gorm:"column:number" json:"number" form:"number"`
  957. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  958. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  959. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  960. QualityNurseId int64 `gorm:"column:quality_nurse_id" json:"quality_nurse_id" form:"quality_nurse_id"`
  961. BloodDrawing int64 `gorm:"column:blood_drawing" json:"blood_drawing" form:"blood_drawing"`
  962. }
  963. type TreatmentMode struct {
  964. ID int64 `gorm:"column:id" json:"id" form:"id"`
  965. Name string `gorm:"column:name" json:"name" form:"name"`
  966. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  967. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  968. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  969. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  970. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  971. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  972. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  973. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  974. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  975. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  976. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  977. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  978. Status int64 `gorm:"column:status" json:"status" form:"status"`
  979. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  980. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  981. ModeID int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  982. }
  983. func (TreatmentMode) TableName() string {
  984. return "xt_treatment_mode"
  985. }
  986. type ReceiveTreatmentAsses struct {
  987. ID int64 `gorm:"column:id" json:"id"`
  988. Way int64 `gorm:"column:way" json:"way"`
  989. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  990. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  991. Condition int64 `gorm:"column:condition" json:"condition"`
  992. Creater int64 `gorm:"column:creater" json:"creater"`
  993. Posture int64 `gorm:"column:posture" json:"posture"`
  994. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  995. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  996. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  997. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  998. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  999. Status int64 `gorm:"column:status" json:"status"`
  1000. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1001. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1002. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  1003. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  1004. Intake int64 `gorm:"column:intake" json:"intake"`
  1005. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  1006. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  1007. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  1008. Score string `gorm:"column:score" json:"score"`
  1009. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  1010. Precaution string `gorm:"column:precaution" json:"precaution"`
  1011. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  1012. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  1013. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  1014. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  1015. Diacrisis string `gorm:"column:diacrisis" json:"diacrisis" form:"diacrisis"`
  1016. Tumble int64 `gorm:"column:tumble" json:"tumble" form:"tumble"`
  1017. HisDepartment string `gorm:"column:his_department" json:"his_department" form:"his_department"`
  1018. HisBed string `gorm:"column:his_bed" json:"his_bed" form:"his_bed"`
  1019. }
  1020. func (ReceiveTreatmentAsses) TableName() string {
  1021. return "xt_receive_treatment_asses"
  1022. }
  1023. type GobalTemplate struct {
  1024. ID int64 `gorm:"column:id" json:"id"`
  1025. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1026. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  1027. Status int64 `gorm:"column:status" json:"status"`
  1028. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1029. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1030. }
  1031. func (GobalTemplate) TableName() string {
  1032. return "xt_gobal_template"
  1033. }
  1034. type SgjUserAdminRole struct {
  1035. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1036. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1037. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1038. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1039. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  1040. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1041. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1042. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  1043. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  1044. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  1045. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1046. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1047. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1048. Message string `gorm:"column:message" json:"message" form:"message"`
  1049. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1050. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1051. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1052. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1053. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  1054. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  1055. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1056. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1057. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1058. }
  1059. func (SgjUserAdminRole) TableName() string {
  1060. return "sgj_user_admin_role"
  1061. }
  1062. type SgjUserAdmin struct {
  1063. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1064. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  1065. Password string `gorm:"column:password" json:"password" form:"password"`
  1066. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  1067. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1068. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1069. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1070. Source int64 `gorm:"column:source" json:"source" form:"source"`
  1071. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  1072. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  1073. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  1074. Name string `gorm:"column:name" json:"name" form:"name"`
  1075. }
  1076. func (SgjUserAdmin) TableName() string {
  1077. return "sgj_user_admin"
  1078. }
  1079. type UserAdminRoles struct {
  1080. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1081. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1082. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1083. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1084. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  1085. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1086. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1087. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  1088. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  1089. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  1090. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1091. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1092. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1093. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1094. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1095. Message string `gorm:"column:message" json:"message" form:"message"`
  1096. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1097. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1098. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1099. Url string `gorm:"column:url" json:"url" form:"url"`
  1100. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  1101. }
  1102. type DialysisBeforePrepare struct {
  1103. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1104. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1105. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1106. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1107. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1108. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1109. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1110. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1111. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1112. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1113. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1114. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1115. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1116. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1117. Children []*DialysisBeforePrepare `gorm:"column:children" json:"children" form:"children"`
  1118. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1119. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1120. }
  1121. func (DialysisBeforePrepare) TableName() string {
  1122. return "dialysis_before_prepare"
  1123. }
  1124. type DialysisBeforePrepareGoods struct {
  1125. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1126. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1127. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1128. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1129. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1130. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1131. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1132. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1133. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1134. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1135. OldCount int64 `gorm:"column:old_count" json:"old_count" form:"old_count"`
  1136. }
  1137. type NewDialysisBeforePrepareGoods struct {
  1138. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1139. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1140. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1141. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1142. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1143. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1144. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1145. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1146. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1147. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1148. ChildNewDialysisBeforePrepareGoods []*NewDialysisBeforePrepareGoods `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"child"`
  1149. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1150. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1151. OldCount int64 `gorm:"column:old_count" json:"old_count" form:"old_count"`
  1152. }
  1153. type OldDialysisBeforePrepareGoods struct {
  1154. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1155. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1156. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1157. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1158. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1159. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1160. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1161. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1162. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1163. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1164. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1165. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1166. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1167. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1168. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1169. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1170. }
  1171. type QueueCallConfig struct {
  1172. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1173. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1174. Qhsj int64 `gorm:"column:qhsj" json:"qhsj" form:"qhsj"`
  1175. Jzdcbbcs int64 `gorm:"column:jzdcbbcs" json:"jzdcbbcs" form:"jzdcbbcs"`
  1176. Jzbbsy int64 `gorm:"column:jzbbsy" json:"jzbbsy" form:"jzbbsy"`
  1177. Jzjhyc int64 `gorm:"column:jzjhyc" json:"jzjhyc" form:"jzjhyc"`
  1178. Sjdcbbcs int64 `gorm:"column:sjdcbbcs" json:"sjdcbbcs" form:"sjdcbbcs"`
  1179. Sjbbsy int64 `gorm:"column:sjbbsy" json:"sjbbsy" form:"sjbbsy"`
  1180. Sjjhyc int64 `gorm:"column:sjjhyc" json:"sjjhyc" form:"sjjhyc"`
  1181. Txxqyxs int64 `gorm:"column:txxqyxs" json:"txxqyxs" form:"txxqyxs"`
  1182. Txglsyxs int64 `gorm:"column:txglsyxs" json:"txglsyxs" form:"txglsyxs"`
  1183. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1184. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1185. }
  1186. func (QueueCallConfig) TableName() string {
  1187. return "xt_queue_call_config"
  1188. }
  1189. type XtDialysisBeforePrepare struct {
  1190. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1191. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1192. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1193. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1194. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1195. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1196. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1197. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1198. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1199. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1200. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1201. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1202. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1203. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1204. }
  1205. type BloodDoctorAdvice struct {
  1206. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1207. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1208. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1209. Total int64
  1210. }
  1211. type HisDoctorAdvice struct {
  1212. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1213. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1214. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1215. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1216. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1217. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1218. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1219. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1220. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1221. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1222. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1223. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1224. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1225. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1226. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1227. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1228. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1229. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1230. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1231. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1232. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1233. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1234. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1235. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1236. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1237. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1238. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1239. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1240. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1241. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1242. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1243. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1244. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1245. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1246. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1247. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1248. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1249. AdviceId int64 `gorm:"-"`
  1250. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  1251. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  1252. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  1253. WeekDay string `gorm:"column:week_day" json:"week_day"`
  1254. ChildDoctorAdvice []*HisDoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  1255. TemplateId string `gorm:"column:template_id" json:"template_id"`
  1256. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1257. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1258. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1259. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1260. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1261. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1262. IsMobile int64 `gorm:"column:is_mobile" json:"is_mobile" form:"is_mobile"`
  1263. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1264. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  1265. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  1266. }
  1267. func (HisDoctorAdvice) TableName() string {
  1268. return "his_doctor_advice_info"
  1269. }
  1270. type DialysisScheduleSix struct {
  1271. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1272. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1273. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1274. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1275. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1276. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1277. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1278. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1279. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1280. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1281. Name string `gorm:"column:name" json:"name" form:"name"`
  1282. DialysisOrderTwenty `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"order"`
  1283. }
  1284. type DialysisScheduleSeven struct {
  1285. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1286. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1287. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1288. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1289. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1290. }
  1291. func (DialysisScheduleSeven) TableName() string {
  1292. return "xt_schedule"
  1293. }
  1294. type DialysisOrderTwenty struct {
  1295. ID int64 `gorm:"column:id" json:"id"`
  1296. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  1297. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1298. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1299. Stage int64 `gorm:"column:stage" json:"stage"`
  1300. Remark string `gorm:"column:remark" json:"remark"`
  1301. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  1302. Status int64 `gorm:"column:status" json:"status"`
  1303. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  1304. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  1305. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  1306. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1307. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1308. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1309. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1310. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  1311. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1312. }
  1313. func (DialysisOrderTwenty) TableName() string {
  1314. return "xt_dialysis_order"
  1315. }
  1316. type HisDoctorAdviceThirty struct {
  1317. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1318. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1319. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1320. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1321. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1322. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1323. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1324. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1325. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1326. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1327. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1328. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1329. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1330. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1331. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1332. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1333. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1334. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1335. ChildDoctorAdvice []*HisDoctorAdviceThirty `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1336. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1337. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1338. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1339. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1340. }
  1341. func (HisDoctorAdviceThirty) TableName() string {
  1342. return "his_doctor_advice_info"
  1343. }
  1344. type DoctorAdviceThrity struct {
  1345. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1346. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1347. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1348. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1349. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1350. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1351. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1352. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1353. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1354. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1355. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1356. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1357. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1358. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1359. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1360. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1361. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1362. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1363. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1364. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1365. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1366. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1367. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1368. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1369. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1370. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1371. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1372. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1373. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1374. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1375. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1376. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1377. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1378. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1379. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1380. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1381. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1382. AdviceId int64 `gorm:"-"`
  1383. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  1384. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  1385. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  1386. WeekDay string `gorm:"column:week_day" json:"week_day"`
  1387. ChildDoctorAdvice []*DoctorAdviceThrity `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1388. TemplateId string `gorm:"column:template_id" json:"template_id"`
  1389. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1390. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1391. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1392. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1393. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1394. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  1395. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  1396. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1397. }
  1398. func (DoctorAdviceThrity) TableName() string {
  1399. return "xt_doctor_advice"
  1400. }
  1401. type XtDialysisOrderSix struct {
  1402. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1403. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  1404. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1405. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1406. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1407. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1408. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1409. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1410. }
  1411. func (XtDialysisOrderSix) TableName() string {
  1412. return "xt_dialysis_order"
  1413. }
  1414. type HisDoctorAdviceFourty struct {
  1415. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1416. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1417. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1418. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1419. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1420. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1421. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1422. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1423. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1424. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1425. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1426. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1427. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1428. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1429. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1430. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1431. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1432. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1433. ChildDoctorAdvice []*HisDoctorAdviceFourty `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1434. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1435. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1436. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1437. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1438. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  1439. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1440. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1441. }
  1442. func (HisDoctorAdviceFourty) TableName() string {
  1443. return "his_doctor_advice_info"
  1444. }
  1445. type HisPrescriptionProjectFourty struct {
  1446. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1447. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1448. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1449. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1450. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1451. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1452. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1453. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1454. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1455. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1456. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1457. Count string `gorm:"column:count" json:"count" form:"count"`
  1458. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1459. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1460. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1461. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1462. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1463. Day string `gorm:"column:day" json:"day" form:"day"`
  1464. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1465. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1466. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1467. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1468. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1469. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1470. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1471. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1472. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1473. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1474. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1475. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1476. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1477. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1478. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1479. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1480. IsOut int64 `gorm:"column:is_out" json:"is_out" form:"is_out"`
  1481. YbSyncStatus int64 `gorm:"column:yb_sync_status" json:"yb_sync_status" form:"yb_sync_status"`
  1482. Good GoodInfoSeven `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good"`
  1483. }
  1484. func (HisPrescriptionProjectFourty) TableName() string {
  1485. return "his_prescription_project"
  1486. }
  1487. type NewDialysisOrder struct {
  1488. ID int64 `gorm:"column:id" json:"id"`
  1489. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  1490. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1491. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1492. Stage int64 `gorm:"column:stage" json:"stage"`
  1493. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  1494. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  1495. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  1496. Status int64 `gorm:"column:status" json:"status"`
  1497. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1498. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1499. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1500. NucleinDate int64 `gorm:"column:nuclein_date" json:"nuclein_date" form:"nuclein_date"`
  1501. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1502. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  1503. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  1504. }
  1505. func (NewDialysisOrder) TableName() string {
  1506. return "xt_dialysis_order"
  1507. }
  1508. type NewAssessmentAfterDislysis struct {
  1509. ID int64 `gorm:"column:id" json:"id"`
  1510. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1511. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1512. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  1513. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1514. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  1515. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  1516. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  1517. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  1518. Status int64 `gorm:"column:status" json:"status"`
  1519. }
  1520. func (NewAssessmentAfterDislysis) TableName() string {
  1521. return "xt_assessment_after_dislysis"
  1522. }
  1523. //type XtDialysisInformaitonSetting struct {
  1524. // ID int64 `gorm:"column:id" json:"id" form:"id"`
  1525. // WeekDay int64 `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1526. // UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1527. // Status int64 `gorm:"column:status" json:"status" form:"status"`
  1528. // Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1529. // Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1530. //}
  1531. //
  1532. //func (XtDialysisInformaitonSetting) TableName() string {
  1533. // return "xt_dialysis_informaiton_setting"
  1534. //}
  1535. type DialysisInformation struct {
  1536. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1537. Module int64 `gorm:"column:module" json:"module" form:"module"`
  1538. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1539. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1540. ApplicationDate int64 `gorm:"column:application_date" json:"application_date" form:"application_date"`
  1541. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1542. ApplicationStatus int64 `gorm:"column:application_status" json:"application_status" form:"application_status"`
  1543. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1544. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1545. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1546. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1547. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1548. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1549. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1550. }
  1551. func (DialysisInformation) TableName() string {
  1552. return "xt_dialysis_information"
  1553. }
  1554. type DialysisScheduleFlow struct {
  1555. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1556. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1557. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1558. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1559. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1560. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1561. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1562. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1563. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1564. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1565. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1566. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1567. MonitorPatients *MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  1568. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  1569. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  1570. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  1571. DialysisFinish []*DialysisFinish `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:RecordDate,PatientId" json:"dialysis_finish"`
  1572. }
  1573. func (DialysisScheduleFlow) TableName() string {
  1574. return "xt_schedule"
  1575. }
  1576. type DialysisFinish struct {
  1577. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1578. IsFinish int64 `gorm:"column:is_finish" json:"is_finish" form:"is_finish"`
  1579. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1580. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1581. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1582. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1583. Module int64 `gorm:"column:module" json:"module" form:"module"`
  1584. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1585. Sourse int64 `gorm:"column:sourse" json:"sourse" form:"sourse"`
  1586. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1587. }
  1588. func (DialysisFinish) TableName() string {
  1589. return "xt_dialysis_finish"
  1590. }
  1591. type NoDoctorAdvice struct {
  1592. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1593. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1594. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1595. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1596. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1597. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1598. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1599. Count int64 `json:"count"`
  1600. }
  1601. func (NoDoctorAdvice) TableName() string {
  1602. return "xt_doctor_advice"
  1603. }
  1604. type HisNoDoctorAdvice struct {
  1605. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1606. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1607. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1608. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1609. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1610. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1611. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1612. Count int64 `json:"count"`
  1613. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1614. }
  1615. func (HisNoDoctorAdvice) TableName() string {
  1616. return "his_doctor_advice_info"
  1617. }
  1618. type NoHisPrescriptionProject struct {
  1619. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1620. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1621. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1622. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1623. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1624. Count int64 `json:"count"`
  1625. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1626. AdviceDate int64 `json:"advice_date"`
  1627. }
  1628. func (NoHisPrescriptionProject) TableName() string {
  1629. return "his_prescription_project"
  1630. }
  1631. type XtDialysisOrderLost struct {
  1632. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1633. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  1634. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1635. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1636. Count int64
  1637. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1638. }
  1639. func (XtDialysisOrderLost) TableName() string {
  1640. return "xt_dialysis_order"
  1641. }
  1642. type MewTreatmentMode struct {
  1643. Name string `gorm:"column:name" json:"name" form:"name"`
  1644. ModeID int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1645. }
  1646. func (MewTreatmentMode) TableName() string {
  1647. return "xt_treatment_mode"
  1648. }
  1649. type XtDoctorAdviceOne struct {
  1650. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1651. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1652. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1653. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1654. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1655. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1656. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1657. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1658. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1659. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1660. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1661. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1662. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1663. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1664. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1665. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1666. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1667. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1668. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1669. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1670. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1671. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1672. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1673. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1674. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1675. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1676. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1677. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1678. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1679. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1680. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1681. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1682. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1683. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1684. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1685. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1686. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1687. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1688. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1689. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1690. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1691. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1692. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1693. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1694. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1695. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1696. SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
  1697. IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  1698. SyncId string `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  1699. SyncIdStr string `gorm:"column:sync_id_str" json:"sync_id_str" form:"sync_id_str"`
  1700. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  1701. People int64 `gorm:"column:people" json:"people" form:"people"`
  1702. DispensingTime int64 `gorm:"column:dispensing_time" json:"dispensing_time" form:"dispensing_time"`
  1703. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  1704. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1705. IsPrescription int64 `gorm:"column:is_prescription" json:"is_prescription" form:"is_prescription"`
  1706. }
  1707. func (XtDoctorAdviceOne) TableName() string {
  1708. return "xt_doctor_advice"
  1709. }