dialysis.go 152KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905
  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. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  637. SymptomAfterDialysisRemark string `gorm:"column:symptom_after_dialysis_remark" json:"symptom_after_dialysis_remark" form:"symptom_after_dialysis_remark"`
  638. }
  639. func (AssessmentAfterDislysis) TableName() string {
  640. return "xt_assessment_after_dislysis"
  641. }
  642. type TreatmentSummary struct {
  643. ID int64 `gorm:"column:id" json:"id"`
  644. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  645. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  646. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  647. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  648. Mission string `gorm:"column:mission" json:"mission"`
  649. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  650. Change int64 `gorm:"column:change" json:"change"`
  651. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  652. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  653. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  654. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  655. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  656. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  657. Puncture string `gorm:"column:puncture" json:"puncture"`
  658. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  659. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  660. Status int64 `gorm:"column:status" json:"status"`
  661. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  662. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  663. Creater int64 `gorm:"column:creater" json:"creater"`
  664. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  665. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  666. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  667. }
  668. func (TreatmentSummary) TableName() string {
  669. return "xt_treatment_summary"
  670. }
  671. type DryWeightAdjust struct {
  672. ID int64 `gorm:"column:id" json:"id" form:"id"`
  673. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  674. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  675. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  676. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  677. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  678. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  679. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  680. Status int64 `gorm:"column:status" json:"status" form:"status"`
  681. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  682. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  683. }
  684. func (DryWeightAdjust) TableName() string {
  685. return "xt_dry_weight_adjust"
  686. }
  687. type MonitoringRecord struct {
  688. ID int64 `gorm:"column:id" json:"id"`
  689. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  690. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  691. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  692. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  693. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  694. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  695. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  696. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  697. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  698. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  699. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  700. Pic string `gorm:"column:pic" json:"pic"`
  701. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  702. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  703. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  704. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  705. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  706. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  707. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  708. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  709. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  710. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  711. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  712. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  713. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  714. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  715. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  716. Symptom string `gorm:"column:symptom" json:"symptom"`
  717. Dispose string `gorm:"column:dispose" json:"dispose"`
  718. Result string `gorm:"column:result" json:"result"`
  719. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  720. Status int64 `gorm:"column:status" json:"status"`
  721. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  722. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  723. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  724. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  725. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  726. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  727. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  728. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  729. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  730. Urr string `gorm:"column:urr" json:"urr"`
  731. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  732. MonitorAnticoagulant int64 `gorm:"column:monitor_anticoagulant" json:"monitor_anticoagulant" form:"monitor_anticoagulant"`
  733. MonitorAnticoagulantValue string `gorm:"column:monitor_anticoagulant_value" json:"monitor_anticoagulant_value" form:"monitor_anticoagulant_value"`
  734. BloodPressureMonitoringSite int64 `gorm:"column:blood_pressure_monitoring_site" json:"blood_pressure_monitoring_site" form:"blood_pressure_monitoring_site"`
  735. Complication int64 `gorm:"column:complication" json:"complication" form:"complication"`
  736. AccumulatedBloodVolume float64 `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  737. BloodTemperature float64 `gorm:"column:blood_temperature" json:"blood_temperature" form:"blood_temperature"`
  738. UreaMonitoring float64 `gorm:"column:urea_monitoring" json:"urea_monitoring" form:"urea_monitoring"`
  739. BloodThickness float64 `gorm:"column:blood_thickness" json:"blood_thickness" form:"blood_thickness"`
  740. BloodMonitor float64 `gorm:"column:blood_monitor" json:"blood_monitor" form:"blood_monitor"`
  741. HeparinAmount float64 `gorm:"column:heparin_amount" json:"heparin_amount" form:"heparin_amount"`
  742. Dehydration float64 `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  743. FilterPressure string `gorm:"column:filter_pressure" json:"filter_pressure" form:"filter_pressure"`
  744. ReplacementSpeed float64 `gorm:"column:replacement_speed" json:"replacement_speed" form:"replacement_speed"`
  745. Dicarbonate float64 `gorm:"column:dicarbonate" json:"dicarbonate" form:"dicarbonate"`
  746. IsPressure string `gorm:"column:is_pressure" json:"is_pressure" form:"is_pressure"`
  747. UltrafiltrationRateOne string `gorm:"column:ultrafiltration_rate_one" json:"ultrafiltration_rate_one" form:"ultrafiltration_rate_one"`
  748. HeparinOne string `gorm:"column:heparin_one" json:"heparin_one" form:"heparin_one"`
  749. MonitorSystolicBloodPressureOne string `gorm:"column:monitor_systolic_blood_pressure_one" json:"monitor_systolic_blood_pressure_one" form:"monitor_systolic_blood_pressure_one"`
  750. MonitorDiastolicBloodPressureOne string `gorm:"column:monitor_diastolic_blood_pressure_one" json:"monitor_diastolic_blood_pressure_one" form:"monitor_diastolic_blood_pressure_one"`
  751. MonitorPulseFrequencyOne string `gorm:"column:monitor_pulse_frequency_one" json:"monitor_pulse_frequency_one" form:"monitor_pulse_frequency_one"`
  752. BloodFlowVolumeOne string `gorm:"column:blood_flow_volume_one" json:"blood_flow_volume_one" form:"blood_flow_volume_one"`
  753. VenousPressureOne string `gorm:"column:venous_pressure_one" json:"venous_pressure_one" form:"venous_pressure_one"`
  754. ArterialPressureOne string `gorm:"column:arterial_pressure_one" json:"arterial_pressure_one" form:"arterial_pressure_one"`
  755. TransmembranePressureOne string `gorm:"column:transmembrane_pressure_one" json:"transmembrane_pressure_one" form:"transmembrane_pressure_one"`
  756. UltrafiltrationVolumeOne string `gorm:"column:ultrafiltration_volume_one" json:"ultrafiltration_volume_one" form:"ultrafiltration_volume_one"`
  757. SodiumConcentrationOne string `gorm:"column:sodium_concentration_one" json:"sodium_concentration_one" form:"sodium_concentration_one"`
  758. DialysateTemperatureOne string `gorm:"column:dialysate_temperature_one" json:"dialysate_temperature_one" form:"dialysate_temperature_one"`
  759. ReplacementRateOne string `gorm:"column:replacement_rate_one" json:"replacement_rate_one" form:"replacement_rate_one"`
  760. DisplacementQuantityOne string `gorm:"column:displacement_quantity_one" json:"displacement_quantity_one" form:"displacement_quantity_one"`
  761. KtvOne string `gorm:"column:ktv_one" json:"ktv_one" form:"ktv_one"`
  762. UrrOne string `gorm:"column:urr_one" json:"urr_one" form:"urr_one"`
  763. ConductivityOne string `gorm:"column:conductivity_one" json:"conductivity_one" form:"conductivity_one"`
  764. DisplacementFlowQuantityOne string `gorm:"column:displacement_flow_quantity_one" json:"displacement_flow_quantity_one" form:"displacement_flow_quantity_one"`
  765. BloodOxygenSaturationOne string `gorm:"column:blood_oxygen_saturation_one" json:"blood_oxygen_saturation_one" form:"blood_oxygen_saturation_one"`
  766. DialysateFlowOne string `gorm:"column:dialysate_flow_one" json:"dialysate_flow_one" form:"dialysate_flow_one"`
  767. BloodSugarOne string `gorm:"column:blood_sugar_one" json:"blood_sugar_one" form:"blood_sugar_one"`
  768. MonitorTemperatureOne string `gorm:"column:monitor_temperature_one" json:"monitor_temperature_one" form:"monitor_temperature_one"`
  769. PulseFrequencyOne string `gorm:"column:pulse_frequency_one" json:"pulse_frequency_one" form:"pulse_frequency_one"`
  770. BloodTemperatureOne string `gorm:"column:blood_temperature_one" json:"blood_temperature_one" form:"blood_temperature_one"`
  771. UreaMonitoringOne string `gorm:"column:urea_monitoring_one" json:"urea_monitoring_one" form:"urea_monitoring_one"`
  772. BloodThicknessOne string `gorm:"column:blood_thickness_one" json:"blood_thickness_one" form:"blood_thickness_one"`
  773. BloodMonitorOne string `gorm:"column:blood_monitor_one" json:"blood_monitor_one" form:"blood_monitor_one"`
  774. ReplacementSpeedOne string `gorm:"column:replacement_speed_one" json:"replacement_speed_one" form:"replacement_speed_one"`
  775. DicarbonateOne string `gorm:"column:dicarbonate_one" json:"dicarbonate_one" form:"dicarbonate_one"`
  776. AccumulatedBloodVolumeOne string `gorm:"column:accumulated_blood_volume_one" json:"accumulated_blood_volume_one" form:"accumulated_blood_volume_one"`
  777. }
  778. func (MonitoringRecord) TableName() string {
  779. return "xt_monitoring_record"
  780. }
  781. type MonitoringRecordOne struct {
  782. ID int64 `gorm:"column:id" json:"id"`
  783. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  784. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  785. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  786. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  787. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  788. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  789. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  790. MonitoringRecord []*MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:MonitoringDate,PatientId" json:"child"`
  791. }
  792. func (MonitoringRecordOne) TableName() string {
  793. return "xt_monitoring_record"
  794. }
  795. type DialysisOrders struct {
  796. ID int64 `gorm:"column:id" json:"id"`
  797. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  798. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  799. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  800. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  801. Stage int64 `gorm:"column:stage" json:"stage"`
  802. Remark string `gorm:"column:remark" json:"remark"`
  803. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  804. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  805. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  806. Status int64 `gorm:"column:status" json:"status"`
  807. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  808. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  809. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  810. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  811. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  812. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  813. Creator int64 `gorm:"column:creator" json:"creator"`
  814. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  815. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  816. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  817. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  818. Name int64 `gorm:"column:name" json:"name"`
  819. Number string `gorm:"column:number" json:"number"`
  820. }
  821. type VmDialysisOrder struct {
  822. Count int64
  823. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  824. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  825. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  826. Stage int64 `gorm:"column:stage" json:"stage"`
  827. Status int64 `gorm:"column:status" json:"status"`
  828. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  829. }
  830. func (VmDialysisOrder) TableName() string {
  831. return "xt_dialysis_order"
  832. }
  833. type DialysisOrder struct {
  834. ID int64 `gorm:"column:id" json:"id"`
  835. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  836. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  837. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  838. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  839. Stage int64 `gorm:"column:stage" json:"stage"`
  840. Remark string `gorm:"column:remark" json:"remark"`
  841. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  842. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  843. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  844. Status int64 `gorm:"column:status" json:"status"`
  845. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  846. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  847. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  848. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  849. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  850. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  851. Creator int64 `gorm:"column:creator" json:"creator"`
  852. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  853. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  854. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  855. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  856. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
  857. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  858. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  859. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  860. NewFistulaNurse int64 `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  861. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  862. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma" form:"puncture_point_haematoma"`
  863. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula" form:"blood_access_internal_fistula"`
  864. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  865. Cruor string `gorm:"column:cruor" json:"cruor" form:"cruor"`
  866. Url string `gorm:"column:url" json:"url" form:"url"`
  867. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  868. QualityNurseId int64 `gorm:"column:quality_nurse_id" json:"quality_nurse_id" form:"quality_nurse_id"`
  869. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  870. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way" form:"puncture_way"`
  871. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  872. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  873. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  874. Mission string `gorm:"column:mission" json:"mission" form:"mission"`
  875. NucleinDate int64 `gorm:"column:nuclein_date" json:"nuclein_date" form:"nuclein_date"`
  876. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  877. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  878. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  879. CatheterOperation string `gorm:"column:catheter_operation" json:"catheter_operation" form:"catheter_operation"`
  880. BloodFlowVolume string `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  881. Condenser string `gorm:"column:condenser" json:"condenser" form:"condenser"`
  882. BloodDrawing int64 `gorm:"column:blood_drawing" json:"blood_drawing" form:"blood_drawing"`
  883. DialysisStrainer string `gorm:"column:dialysis_strainer" json:"dialysis_strainer" form:"dialysis_strainer"`
  884. }
  885. func (DialysisOrder) TableName() string {
  886. return "xt_dialysis_order"
  887. }
  888. type XtDialysisOrder struct {
  889. ID int64 `gorm:"column:id" json:"id" form:"id"`
  890. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  891. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  892. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  893. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  894. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  895. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  896. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  897. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  898. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  899. Status int64 `gorm:"column:status" json:"status" form:"status"`
  900. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  901. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  902. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  903. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  904. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  905. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  906. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  907. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  908. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  909. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  910. Number int64 `gorm:"column:number" json:"number" form:"number"`
  911. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  912. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  913. Url string `gorm:"column:url" json:"url" form:"url"`
  914. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  915. }
  916. func (XtDialysisOrder) TableName() string {
  917. return "xt_dialysis_order"
  918. }
  919. type XtScheduleSixTy struct {
  920. ID int64 `gorm:"column:id" json:"id" form:"id"`
  921. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  922. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  923. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  924. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  925. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  926. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  927. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  928. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  929. Status int64 `gorm:"column:status" json:"status" form:"status"`
  930. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  931. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  932. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  933. DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
  934. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  935. }
  936. type XtDialysisOrders struct {
  937. ID int64 `gorm:"column:id" json:"id" form:"id"`
  938. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  939. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  940. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  941. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  942. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  943. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  944. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  945. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  946. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  947. Status int64 `gorm:"column:status" json:"status" form:"status"`
  948. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  949. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  950. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  951. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  952. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  953. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  954. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  955. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  956. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  957. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  958. Number string `gorm:"column:number" json:"number" form:"number"`
  959. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  960. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  961. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  962. QualityNurseId int64 `gorm:"column:quality_nurse_id" json:"quality_nurse_id" form:"quality_nurse_id"`
  963. BloodDrawing int64 `gorm:"column:blood_drawing" json:"blood_drawing" form:"blood_drawing"`
  964. }
  965. type TreatmentMode struct {
  966. ID int64 `gorm:"column:id" json:"id" form:"id"`
  967. Name string `gorm:"column:name" json:"name" form:"name"`
  968. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  969. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  970. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  971. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  972. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  973. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  974. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  975. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  976. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  977. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  978. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  979. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  980. Status int64 `gorm:"column:status" json:"status" form:"status"`
  981. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  982. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  983. ModeID int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  984. }
  985. func (TreatmentMode) TableName() string {
  986. return "xt_treatment_mode"
  987. }
  988. type ReceiveTreatmentAsses struct {
  989. ID int64 `gorm:"column:id" json:"id"`
  990. Way int64 `gorm:"column:way" json:"way"`
  991. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  992. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  993. Condition int64 `gorm:"column:condition" json:"condition"`
  994. Creater int64 `gorm:"column:creater" json:"creater"`
  995. Posture int64 `gorm:"column:posture" json:"posture"`
  996. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  997. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  998. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  999. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1000. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  1001. Status int64 `gorm:"column:status" json:"status"`
  1002. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1003. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1004. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  1005. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  1006. Intake int64 `gorm:"column:intake" json:"intake"`
  1007. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  1008. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  1009. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  1010. Score string `gorm:"column:score" json:"score"`
  1011. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  1012. Precaution string `gorm:"column:precaution" json:"precaution"`
  1013. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  1014. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  1015. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  1016. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  1017. Diacrisis string `gorm:"column:diacrisis" json:"diacrisis" form:"diacrisis"`
  1018. Tumble int64 `gorm:"column:tumble" json:"tumble" form:"tumble"`
  1019. HisDepartment string `gorm:"column:his_department" json:"his_department" form:"his_department"`
  1020. HisBed string `gorm:"column:his_bed" json:"his_bed" form:"his_bed"`
  1021. }
  1022. func (ReceiveTreatmentAsses) TableName() string {
  1023. return "xt_receive_treatment_asses"
  1024. }
  1025. type GobalTemplate struct {
  1026. ID int64 `gorm:"column:id" json:"id"`
  1027. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1028. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  1029. Status int64 `gorm:"column:status" json:"status"`
  1030. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1031. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1032. }
  1033. func (GobalTemplate) TableName() string {
  1034. return "xt_gobal_template"
  1035. }
  1036. type SgjUserAdminRole struct {
  1037. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1038. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1039. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1040. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1041. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  1042. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1043. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1044. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  1045. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  1046. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  1047. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1048. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1049. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1050. Message string `gorm:"column:message" json:"message" form:"message"`
  1051. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1052. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1053. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1054. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1055. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  1056. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  1057. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1058. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1059. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1060. }
  1061. func (SgjUserAdminRole) TableName() string {
  1062. return "sgj_user_admin_role"
  1063. }
  1064. type SgjUserAdmin struct {
  1065. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1066. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  1067. Password string `gorm:"column:password" json:"password" form:"password"`
  1068. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  1069. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1070. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1071. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1072. Source int64 `gorm:"column:source" json:"source" form:"source"`
  1073. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  1074. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  1075. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  1076. Name string `gorm:"column:name" json:"name" form:"name"`
  1077. }
  1078. func (SgjUserAdmin) TableName() string {
  1079. return "sgj_user_admin"
  1080. }
  1081. type UserAdminRoles struct {
  1082. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1083. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1084. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1085. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1086. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  1087. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1088. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1089. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  1090. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  1091. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  1092. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1093. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1094. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1095. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1096. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1097. Message string `gorm:"column:message" json:"message" form:"message"`
  1098. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1099. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1100. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1101. Url string `gorm:"column:url" json:"url" form:"url"`
  1102. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  1103. }
  1104. type DialysisBeforePrepare struct {
  1105. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1106. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1107. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1108. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1109. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1110. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1111. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1112. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1113. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1114. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1115. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1116. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1117. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1118. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1119. Children []*DialysisBeforePrepare `gorm:"column:children" json:"children" form:"children"`
  1120. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1121. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1122. }
  1123. func (DialysisBeforePrepare) TableName() string {
  1124. return "dialysis_before_prepare"
  1125. }
  1126. type DialysisBeforePrepareGoods struct {
  1127. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1128. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1129. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1130. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1131. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1132. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1133. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1134. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1135. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1136. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1137. OldCount int64 `gorm:"column:old_count" json:"old_count" form:"old_count"`
  1138. }
  1139. type NewDialysisBeforePrepareGoods struct {
  1140. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1141. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1142. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1143. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1144. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1145. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1146. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1147. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1148. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1149. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1150. ChildNewDialysisBeforePrepareGoods []*NewDialysisBeforePrepareGoods `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"child"`
  1151. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1152. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1153. OldCount int64 `gorm:"column:old_count" json:"old_count" form:"old_count"`
  1154. }
  1155. type OldDialysisBeforePrepareGoods struct {
  1156. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1157. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1158. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1159. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1160. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1161. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1162. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1163. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1164. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1165. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1166. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1167. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1168. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1169. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1170. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1171. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1172. }
  1173. type QueueCallConfig struct {
  1174. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1175. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1176. Qhsj int64 `gorm:"column:qhsj" json:"qhsj" form:"qhsj"`
  1177. Jzdcbbcs int64 `gorm:"column:jzdcbbcs" json:"jzdcbbcs" form:"jzdcbbcs"`
  1178. Jzbbsy int64 `gorm:"column:jzbbsy" json:"jzbbsy" form:"jzbbsy"`
  1179. Jzjhyc int64 `gorm:"column:jzjhyc" json:"jzjhyc" form:"jzjhyc"`
  1180. Sjdcbbcs int64 `gorm:"column:sjdcbbcs" json:"sjdcbbcs" form:"sjdcbbcs"`
  1181. Sjbbsy int64 `gorm:"column:sjbbsy" json:"sjbbsy" form:"sjbbsy"`
  1182. Sjjhyc int64 `gorm:"column:sjjhyc" json:"sjjhyc" form:"sjjhyc"`
  1183. Txxqyxs int64 `gorm:"column:txxqyxs" json:"txxqyxs" form:"txxqyxs"`
  1184. Txglsyxs int64 `gorm:"column:txglsyxs" json:"txglsyxs" form:"txglsyxs"`
  1185. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1186. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1187. }
  1188. func (QueueCallConfig) TableName() string {
  1189. return "xt_queue_call_config"
  1190. }
  1191. type XtDialysisBeforePrepare struct {
  1192. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1193. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1194. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1195. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1196. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1197. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1198. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1199. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1200. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1201. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1202. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1203. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1204. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1205. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1206. }
  1207. type BloodDoctorAdvice struct {
  1208. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1209. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1210. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1211. Total int64
  1212. }
  1213. type HisDoctorAdvice struct {
  1214. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1215. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1216. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1217. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1218. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1219. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1220. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1221. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1222. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1223. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1224. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1225. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1226. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1227. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1228. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1229. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1230. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1231. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1232. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1233. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1234. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1235. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1236. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1237. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1238. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1239. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1240. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1241. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1242. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1243. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1244. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1245. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1246. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1247. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1248. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1249. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1250. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1251. AdviceId int64 `gorm:"-"`
  1252. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  1253. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  1254. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  1255. WeekDay string `gorm:"column:week_day" json:"week_day"`
  1256. ChildDoctorAdvice []*HisDoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  1257. TemplateId string `gorm:"column:template_id" json:"template_id"`
  1258. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1259. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1260. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1261. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1262. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1263. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1264. IsMobile int64 `gorm:"column:is_mobile" json:"is_mobile" form:"is_mobile"`
  1265. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1266. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  1267. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  1268. }
  1269. func (HisDoctorAdvice) TableName() string {
  1270. return "his_doctor_advice_info"
  1271. }
  1272. type DialysisScheduleSix struct {
  1273. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1274. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1275. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1276. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1277. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1278. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1279. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1280. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1281. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1282. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1283. Name string `gorm:"column:name" json:"name" form:"name"`
  1284. DialysisOrderTwenty `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"order"`
  1285. }
  1286. type DialysisScheduleSeven struct {
  1287. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1288. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1289. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1290. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1291. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1292. }
  1293. func (DialysisScheduleSeven) TableName() string {
  1294. return "xt_schedule"
  1295. }
  1296. type DialysisOrderTwenty struct {
  1297. ID int64 `gorm:"column:id" json:"id"`
  1298. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  1299. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1300. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1301. Stage int64 `gorm:"column:stage" json:"stage"`
  1302. Remark string `gorm:"column:remark" json:"remark"`
  1303. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  1304. Status int64 `gorm:"column:status" json:"status"`
  1305. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  1306. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  1307. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  1308. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1309. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1310. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1311. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1312. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  1313. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1314. }
  1315. func (DialysisOrderTwenty) TableName() string {
  1316. return "xt_dialysis_order"
  1317. }
  1318. type HisDoctorAdviceThirty struct {
  1319. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1320. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1321. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1322. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1323. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1324. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1325. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1326. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1327. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1328. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1329. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1330. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1331. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1332. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1333. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1334. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1335. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1336. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1337. ChildDoctorAdvice []*HisDoctorAdviceThirty `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1338. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1339. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1340. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1341. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1342. }
  1343. func (HisDoctorAdviceThirty) TableName() string {
  1344. return "his_doctor_advice_info"
  1345. }
  1346. type DoctorAdviceThrity struct {
  1347. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1348. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1349. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1350. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1351. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1352. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1353. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1354. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1355. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1356. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1357. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1358. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1359. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1360. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1361. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1362. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1363. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1364. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1365. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1366. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1367. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1368. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1369. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1370. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1371. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1372. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1373. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1374. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1375. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1376. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1377. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1378. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1379. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1380. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1381. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1382. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1383. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1384. AdviceId int64 `gorm:"-"`
  1385. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  1386. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  1387. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  1388. WeekDay string `gorm:"column:week_day" json:"week_day"`
  1389. ChildDoctorAdvice []*DoctorAdviceThrity `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1390. TemplateId string `gorm:"column:template_id" json:"template_id"`
  1391. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1392. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1393. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1394. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1395. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1396. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  1397. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  1398. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1399. }
  1400. func (DoctorAdviceThrity) TableName() string {
  1401. return "xt_doctor_advice"
  1402. }
  1403. type XtDialysisOrderSix struct {
  1404. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1405. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  1406. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1407. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1408. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1409. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1410. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1411. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1412. }
  1413. func (XtDialysisOrderSix) TableName() string {
  1414. return "xt_dialysis_order"
  1415. }
  1416. type HisDoctorAdviceFourty struct {
  1417. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1418. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1419. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1420. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1421. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1422. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1423. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1424. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1425. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1426. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1427. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1428. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1429. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1430. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1431. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1432. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1433. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1434. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1435. ChildDoctorAdvice []*HisDoctorAdviceFourty `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1436. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1437. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1438. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1439. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1440. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  1441. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1442. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1443. }
  1444. func (HisDoctorAdviceFourty) TableName() string {
  1445. return "his_doctor_advice_info"
  1446. }
  1447. type HisPrescriptionProjectFourty struct {
  1448. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1449. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1450. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1451. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1452. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1453. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1454. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1455. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1456. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1457. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1458. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1459. Count string `gorm:"column:count" json:"count" form:"count"`
  1460. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1461. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1462. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1463. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1464. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1465. Day string `gorm:"column:day" json:"day" form:"day"`
  1466. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1467. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1468. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1469. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1470. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1471. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1472. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1473. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1474. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1475. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1476. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1477. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1478. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1479. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1480. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1481. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1482. IsOut int64 `gorm:"column:is_out" json:"is_out" form:"is_out"`
  1483. YbSyncStatus int64 `gorm:"column:yb_sync_status" json:"yb_sync_status" form:"yb_sync_status"`
  1484. Good GoodInfoSeven `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good"`
  1485. }
  1486. func (HisPrescriptionProjectFourty) TableName() string {
  1487. return "his_prescription_project"
  1488. }
  1489. type NewDialysisOrder struct {
  1490. ID int64 `gorm:"column:id" json:"id"`
  1491. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  1492. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1493. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1494. Stage int64 `gorm:"column:stage" json:"stage"`
  1495. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  1496. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  1497. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  1498. Status int64 `gorm:"column:status" json:"status"`
  1499. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1500. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1501. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1502. NucleinDate int64 `gorm:"column:nuclein_date" json:"nuclein_date" form:"nuclein_date"`
  1503. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1504. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  1505. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  1506. }
  1507. func (NewDialysisOrder) TableName() string {
  1508. return "xt_dialysis_order"
  1509. }
  1510. type NewAssessmentAfterDislysis struct {
  1511. ID int64 `gorm:"column:id" json:"id"`
  1512. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1513. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1514. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  1515. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1516. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  1517. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  1518. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  1519. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  1520. Status int64 `gorm:"column:status" json:"status"`
  1521. }
  1522. func (NewAssessmentAfterDislysis) TableName() string {
  1523. return "xt_assessment_after_dislysis"
  1524. }
  1525. //type XtDialysisInformaitonSetting struct {
  1526. // ID int64 `gorm:"column:id" json:"id" form:"id"`
  1527. // WeekDay int64 `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1528. // UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1529. // Status int64 `gorm:"column:status" json:"status" form:"status"`
  1530. // Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1531. // Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1532. //}
  1533. //
  1534. //func (XtDialysisInformaitonSetting) TableName() string {
  1535. // return "xt_dialysis_informaiton_setting"
  1536. //}
  1537. type DialysisInformation struct {
  1538. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1539. Module int64 `gorm:"column:module" json:"module" form:"module"`
  1540. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1541. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1542. ApplicationDate int64 `gorm:"column:application_date" json:"application_date" form:"application_date"`
  1543. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1544. ApplicationStatus int64 `gorm:"column:application_status" json:"application_status" form:"application_status"`
  1545. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1546. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1547. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1548. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1549. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1550. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1551. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1552. }
  1553. func (DialysisInformation) TableName() string {
  1554. return "xt_dialysis_information"
  1555. }
  1556. type DialysisScheduleFlow struct {
  1557. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1558. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1559. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1560. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1561. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1562. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1563. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1564. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1565. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1566. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1567. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1568. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1569. MonitorPatients *MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  1570. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  1571. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  1572. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  1573. DialysisFinish []*DialysisFinish `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:RecordDate,PatientId" json:"dialysis_finish"`
  1574. }
  1575. func (DialysisScheduleFlow) TableName() string {
  1576. return "xt_schedule"
  1577. }
  1578. type DialysisFinish struct {
  1579. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1580. IsFinish int64 `gorm:"column:is_finish" json:"is_finish" form:"is_finish"`
  1581. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1582. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1583. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1584. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1585. Module int64 `gorm:"column:module" json:"module" form:"module"`
  1586. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1587. Sourse int64 `gorm:"column:sourse" json:"sourse" form:"sourse"`
  1588. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1589. }
  1590. func (DialysisFinish) TableName() string {
  1591. return "xt_dialysis_finish"
  1592. }
  1593. type NoDoctorAdvice struct {
  1594. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1595. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1596. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1597. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1598. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1599. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1600. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1601. Count int64 `json:"count"`
  1602. }
  1603. func (NoDoctorAdvice) TableName() string {
  1604. return "xt_doctor_advice"
  1605. }
  1606. type HisNoDoctorAdvice struct {
  1607. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1608. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1609. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1610. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1611. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1612. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1613. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1614. Count int64 `json:"count"`
  1615. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1616. }
  1617. func (HisNoDoctorAdvice) TableName() string {
  1618. return "his_doctor_advice_info"
  1619. }
  1620. type NoHisPrescriptionProject struct {
  1621. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1622. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1623. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1624. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1625. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1626. Count int64 `json:"count"`
  1627. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1628. AdviceDate int64 `json:"advice_date"`
  1629. }
  1630. func (NoHisPrescriptionProject) TableName() string {
  1631. return "his_prescription_project"
  1632. }
  1633. type XtDialysisOrderLost struct {
  1634. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1635. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  1636. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1637. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1638. Count int64
  1639. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1640. }
  1641. func (XtDialysisOrderLost) TableName() string {
  1642. return "xt_dialysis_order"
  1643. }
  1644. type MewTreatmentMode struct {
  1645. Name string `gorm:"column:name" json:"name" form:"name"`
  1646. ModeID int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1647. }
  1648. func (MewTreatmentMode) TableName() string {
  1649. return "xt_treatment_mode"
  1650. }
  1651. type XtDoctorAdviceOne struct {
  1652. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1653. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1654. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1655. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1656. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1657. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1658. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1659. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1660. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1661. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1662. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1663. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1664. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1665. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1666. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1667. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1668. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1669. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1670. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1671. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1672. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1673. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1674. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1675. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1676. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1677. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1678. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1679. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1680. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1681. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1682. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1683. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1684. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1685. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1686. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1687. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1688. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1689. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1690. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1691. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1692. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1693. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1694. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1695. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1696. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1697. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1698. SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
  1699. IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  1700. SyncId string `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  1701. SyncIdStr string `gorm:"column:sync_id_str" json:"sync_id_str" form:"sync_id_str"`
  1702. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  1703. People int64 `gorm:"column:people" json:"people" form:"people"`
  1704. DispensingTime int64 `gorm:"column:dispensing_time" json:"dispensing_time" form:"dispensing_time"`
  1705. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  1706. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1707. IsPrescription int64 `gorm:"column:is_prescription" json:"is_prescription" form:"is_prescription"`
  1708. }
  1709. func (XtDoctorAdviceOne) TableName() string {
  1710. return "xt_doctor_advice"
  1711. }
  1712. type PatientNewSchedule struct {
  1713. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1714. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1715. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1716. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1717. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1718. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1719. PatientMonitoringRecord []*PatientMonitoringRecord `gorm:"ForeignKey:PatientId,MonitoringDate;AssociationForeignKey:PatientId,ScheduleDate" json:"monitor"`
  1720. PatientAssessmentAfterDislysis PatientAssessmentAfterDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate" json:"after"`
  1721. PatientAssessmentBeforeDislysis PatientAssessmentBeforeDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate" json:"befor"`
  1722. }
  1723. func (PatientNewSchedule) TableName() string {
  1724. return "xt_schedule"
  1725. }
  1726. type PatientNewScheduleOne struct {
  1727. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1728. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1729. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1730. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1731. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1732. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1733. PatientTreatmentSummary PatientTreatmentSummary `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate" json:"summary"`
  1734. }
  1735. func (PatientNewScheduleOne) TableName() string {
  1736. return "xt_schedule"
  1737. }
  1738. type PatientMonitoringRecord struct {
  1739. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1740. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1741. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1742. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1743. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date" form:"monitoring_date"`
  1744. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time" form:"monitoring_time"`
  1745. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate" form:"breathing_rate"`
  1746. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  1747. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  1748. }
  1749. func (PatientMonitoringRecord) TableName() string {
  1750. return "xt_monitoring_record"
  1751. }
  1752. type PatientAssessmentAfterDislysis struct {
  1753. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1754. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1755. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1756. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  1757. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  1758. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  1759. }
  1760. func (PatientAssessmentAfterDislysis) TableName() string {
  1761. return "xt_assessment_after_dislysis"
  1762. }
  1763. type PatientAssessmentBeforeDislysis struct {
  1764. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1765. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1766. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1767. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  1768. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  1769. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  1770. }
  1771. func (PatientAssessmentBeforeDislysis) TableName() string {
  1772. return "xt_assessment_before_dislysis"
  1773. }
  1774. type PatientTreatmentSummary struct {
  1775. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1776. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1777. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1778. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  1779. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1780. Mission string `gorm:"column:mission" json:"mission" form:"mission"`
  1781. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary" form:"dialysis_summary"`
  1782. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1783. }
  1784. func (PatientTreatmentSummary) TableName() string {
  1785. return "xt_treatment_summary"
  1786. }