dialysis.go 118KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464
  1. package models
  2. type SchedualPatient struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  6. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  7. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  8. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  9. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  10. Source int64 `gorm:"column:source" json:"source" form:"source"`
  11. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  12. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  13. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  14. Name string `gorm:"column:name" json:"name" form:"name"`
  15. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  16. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  17. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  18. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  19. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  20. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  21. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  22. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  23. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  24. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  25. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  26. Height int64 `gorm:"column:height" json:"height" form:"height"`
  27. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  28. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  29. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  30. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  31. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  32. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  33. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  34. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  35. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  36. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  37. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  38. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  39. Children int64 `gorm:"column:children" json:"children" form:"children"`
  40. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  41. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  42. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  43. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  44. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  45. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  46. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  47. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  48. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  49. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  50. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  51. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  52. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  53. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  54. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  55. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  56. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  57. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  58. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  59. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  60. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  61. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  62. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  63. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  64. Age int64 `gorm:"column:age" json:"age"`
  65. Status int64 `gorm:"column:status" json:"status" form:"status"`
  66. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  67. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  68. PredialysisEvaluation PredialysisEvaluation `json:"PredialysisEvaluation" gorm:"ForeignKey:PatientId"`
  69. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:PatientId"`
  70. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:PatientId"`
  71. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  72. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  73. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  74. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  75. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  76. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  77. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  78. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  79. }
  80. func (SchedualPatient) TableName() string {
  81. return "xt_patients"
  82. }
  83. type SchedualPatient2 struct {
  84. ID int64 `gorm:"column:id" json:"id" form:"id"`
  85. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  86. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  87. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  88. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  89. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  90. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  91. Source int64 `gorm:"column:source" json:"source" form:"source"`
  92. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  93. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  94. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  95. Name string `gorm:"column:name" json:"name" form:"name"`
  96. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  97. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  98. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  99. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  100. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  101. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  102. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  103. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  104. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  105. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  106. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  107. Height int64 `gorm:"column:height" json:"height" form:"height"`
  108. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  109. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  110. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  111. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  112. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  113. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  114. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  115. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  116. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  117. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  118. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  119. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  120. Children int64 `gorm:"column:children" json:"children" form:"children"`
  121. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  122. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  123. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  124. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  125. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  126. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  127. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  128. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  129. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  130. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  131. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  132. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  133. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  134. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  135. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  136. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  137. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  138. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  139. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  140. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  141. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  142. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  143. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  144. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  145. Status int64 `gorm:"column:status" json:"status" form:"status"`
  146. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  147. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  148. DialysisSchedule DialysisSchedule `gorm:"ForeignKey:PatientId"`
  149. InfectiousDiseases []InfectiousDiseases `gorm:"ForeignKey:PatientId"`
  150. Age int64 `gorm:"column:age" json:"age"`
  151. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  152. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  153. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  154. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  155. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  156. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  157. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  158. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  159. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  160. }
  161. func (SchedualPatient2) TableName() string {
  162. return "xt_patients"
  163. }
  164. type DialysisSchedule struct {
  165. ID int64 `gorm:"column:id" json:"id" form:"id"`
  166. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  167. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  168. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  169. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  170. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  171. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  172. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  173. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  174. Status int64 `gorm:"column:status" json:"status" form:"status"`
  175. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  176. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  177. MonitorPatients *MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  178. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  179. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  180. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  181. DialysisOrder *MonitorDialysisOrder `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
  182. Prescription *DialysisPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
  183. AssessmentBeforeDislysis *PredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_before_dislysis"`
  184. AssessmentAfterDislysis *AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_after_dislysis"`
  185. MonitoringRecord []*MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"monitoring_record"`
  186. //Patient string `gorm:"-" json:"patient" form:"patient"`
  187. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  188. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  189. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  190. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  191. }
  192. type DialysisScheduleOne struct {
  193. ID int64 `gorm:"column:id" json:"id" form:"id"`
  194. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  195. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  196. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  197. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  198. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  199. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  200. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  201. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  202. Status int64 `gorm:"column:status" json:"status" form:"status"`
  203. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  204. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  205. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  206. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  207. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  208. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  209. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dialysis_order"`
  210. Prescription DialysisPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"prescription"`
  211. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_before_dislysis"`
  212. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_after_dislysis"`
  213. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  214. //Patient string `gorm:"-" json:"patient" form:"patient"`
  215. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  216. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  217. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  218. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  219. }
  220. func (DialysisSchedule) TableName() string {
  221. return "xt_schedule"
  222. }
  223. type PredialysisEvaluation struct {
  224. ID int64 `gorm:"column:id" json:"id"`
  225. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  226. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  227. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  228. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  229. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  230. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  231. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  232. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  233. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  234. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  235. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  236. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  237. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  238. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  239. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  240. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  241. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  242. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  243. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  244. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  245. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  246. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  247. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  248. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  249. Catheter string `gorm:"column:catheter" json:"catheter"`
  250. CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  251. Complication string `gorm:"column:complication" json:"complication"`
  252. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  253. Creater int64 `gorm:"column:creater" json:"creater"`
  254. Remark string `gorm:"column:remark" json:"remark"`
  255. Status int64 `gorm:"column:status" json:"status"`
  256. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  257. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  258. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  259. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  260. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  261. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  262. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  263. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  264. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  265. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  266. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  267. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  268. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  269. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  270. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  271. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  272. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  273. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  274. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  275. DialysisCount string `gorm:"column:dialysis_count" json:"dialysis_count"`
  276. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  277. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  278. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  279. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  280. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  281. Skin string `gorm:"column:skin" json:"skin"`
  282. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  283. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  284. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  285. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  286. LastPostDialysisOther string `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
  287. SymptomBeforeDialysisOther string `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
  288. DialysisInterphaseOther string `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
  289. HumorExcessiveSymptom string `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom"`
  290. Phinholing string `gorm:"column:pinholing" json:"pinholing" form:"pinholing"`
  291. CatheterSuture string `gorm:"column:catheter_suture" json:"catheter_suture" form:"catheter_suture"`
  292. CatheterSutureOther string `gorm:"column:catheter_suture_other" json:"catheter_suture_other" form:"catheter_suture_other"`
  293. UrineVolume float64 `gorm:"column:urine_volume" json:"urine_volume" form:"urine_volume"`
  294. Edema string `gorm:"column:edema" json:"edema" form:"edema"`
  295. SpecialTreatment string `gorm:"column:special_treatment" json:"special_treatment" form:"special_treatment"`
  296. CatheterMaintenance string `gorm:"column:catheter_maintenance" json:"catheter_maintenance" form:"catheter_maintenance"`
  297. ThromubusType int64 `gorm:"column:thromubus_type" json:"thromubus_type" form:"thromubus_type"`
  298. ThrombusAv string `gorm:"column:thrombus_av" json:"thrombus_av" form:"thrombus_av"`
  299. ThromubusA string `gorm:"column:thromubus_a" json:"thromubus_a" form:"thromubus_a"`
  300. ThromubusV string `gorm:"column:thromubus_v" json:"thromubus_v" form:"thromubus_v"`
  301. Dehydration string `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  302. PreDialysisDrugs string `gorm:"column:pre_dialysis_drugs" json:"pre_dialysis_drugs" form:"pre_dialysis_drugs"`
  303. Period int64 `gorm:"column:period" json:"period" form:"period"`
  304. EstimatedFoodIntake string `gorm:"column:estimated_food_intake" json:"estimated_food_intake" form:"estimated_food_intake"`
  305. BloodPressureDuringDialysis string `gorm:"column:blood_pressure_during_dialysis" json:"blood_pressure_during_dialysis" form:"blood_pressure_during_dialysis"`
  306. UreaBefor string `gorm:"column:urea_befor" json:"urea_befor" form:"urea_befor"`
  307. Suction string `gorm:"column:suction" json:"suction" form:"suction"`
  308. WeightBeforRemake string `gorm:"column:weight_befor_remake" json:"weight_befor_remake" form:"weight_befor_remake"`
  309. Height string `gorm:"column:height" json:"height" form:"height"`
  310. Age string `gorm:"column:age" json:"age" form:"age"`
  311. HisDepartment string `gorm:"column:his_department" json:"his_department" form:"his_department"`
  312. HisBed string `gorm:"column:his_bed" json:"his_bed" form:"his_bed"`
  313. }
  314. func (PredialysisEvaluation) TableName() string {
  315. return "xt_assessment_before_dislysis"
  316. }
  317. type PredialysisEvaluationList struct {
  318. ID int64 `gorm:"column:id" json:"id"`
  319. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  320. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  321. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  322. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  323. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  324. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  325. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  326. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  327. }
  328. func (PredialysisEvaluationList) TableName() string {
  329. return "xt_assessment_before_dislysis"
  330. }
  331. // 更改的地方
  332. type DoctorAdvices struct {
  333. ID int64 `gorm:"column:id" json:"id" form:"id"`
  334. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  335. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  336. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  337. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  338. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  339. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  340. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  341. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  342. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  343. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  344. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  345. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  346. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  347. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  348. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  349. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  350. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  351. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  352. Status int64 `gorm:"column:status" json:"status" form:"status"`
  353. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  354. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  355. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  356. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  357. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  358. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  359. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  360. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  361. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  362. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  363. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  364. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  365. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  366. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  367. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  368. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  369. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  370. AdviceId int64 `gorm:"-"`
  371. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  372. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  373. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  374. WeekDay string `gorm:"column:week_day" json:"week_day"`
  375. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  376. TemplateId string `gorm:"column:template_id" json:"template_id"`
  377. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  378. Name string `gorm:"column:name" json:"name" form:"name"`
  379. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  380. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  381. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  382. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  383. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  384. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  385. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  386. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  387. }
  388. type DoctorAdvice struct {
  389. ID int64 `gorm:"column:id" json:"id" form:"id"`
  390. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  391. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  392. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  393. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  394. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  395. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  396. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  397. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  398. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  399. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  400. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  401. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  402. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  403. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  404. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  405. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  406. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  407. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  408. Status int64 `gorm:"column:status" json:"status" form:"status"`
  409. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  410. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  411. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  412. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  413. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  414. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  415. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  416. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  417. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  418. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  419. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  420. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  421. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  422. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  423. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  424. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  425. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  426. AdviceId int64 `gorm:"-"`
  427. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  428. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  429. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  430. WeekDay string `gorm:"column:week_day" json:"week_day"`
  431. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  432. TemplateId string `gorm:"column:template_id" json:"template_id"`
  433. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  434. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  435. Way int64 `gorm:"column:way" json:"way" form:"way"`
  436. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  437. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  438. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  439. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  440. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  441. }
  442. func (DoctorAdvice) TableName() string {
  443. return "xt_doctor_advice"
  444. }
  445. type XtDoctorAdvice struct {
  446. ID int64 `gorm:"column:id" json:"id" form:"id"`
  447. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  448. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  449. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  450. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  451. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  452. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  453. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  454. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  455. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  456. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  457. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  458. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  459. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  460. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  461. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  462. Status int64 `gorm:"column:status" json:"status" form:"status"`
  463. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  464. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  465. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  466. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  467. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  468. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  469. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  470. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  471. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  472. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  473. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  474. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  475. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  476. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  477. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  478. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  479. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  480. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  481. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  482. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  483. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  484. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  485. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  486. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  487. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  488. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  489. CheckerName string `gorm:"column:user_name" json:"name" form:"name"`
  490. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  491. }
  492. func (XtDoctorAdvice) TableName() string {
  493. return "xt_doctor_advice"
  494. }
  495. type GroupAdvice struct {
  496. DoctorAdvice
  497. Children []*GroupAdvice
  498. }
  499. func (GroupAdvice) TableName() string {
  500. return "xt_doctor_advice"
  501. }
  502. type DoubleCheck struct {
  503. ID int64 `gorm:"column:id" json:"id"`
  504. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  505. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  506. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  507. CheckDate int64 `gorm:"column:check_date" json:"check_date"`
  508. DialysisItemCheck int64 `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
  509. DialysisItemDesc string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
  510. DialysisParameterCheck int64 `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
  511. DialysisParameterDesc string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
  512. VascularAccessVerification int64 `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
  513. VascularAccessDesc string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
  514. PipelineConnectionCheck int64 `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
  515. PipelineConnectionDesc string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
  516. Collator int64 `gorm:"column:collator" json:"collator"`
  517. Status int64 `gorm:"column:status" json:"status"`
  518. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  519. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  520. Creater int64 `gorm:"column:creater" json:"creater"`
  521. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  522. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  523. FirstCheckTime int64 `gorm:"column:first_check_time" json:"first_check_time"`
  524. EmployeeNumber string `gorm:"column:employee_number" json:"employee_number" form:"employee_number"`
  525. }
  526. func (DoubleCheck) TableName() string {
  527. return "xt_double_check"
  528. }
  529. type AssessmentAfterDislysis struct {
  530. ID int64 `gorm:"column:id" json:"id"`
  531. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  532. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  533. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  534. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  535. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  536. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  537. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  538. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  539. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  540. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  541. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  542. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  543. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  544. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  545. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  546. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  547. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  548. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  549. Cruor string `gorm:"column:cruor" json:"cruor"`
  550. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  551. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  552. // InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  553. Catheter string `gorm:"column:catheter" json:"catheter"`
  554. // CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  555. Complication string `gorm:"column:complication" json:"complication"`
  556. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  557. Remark string `gorm:"column:remark" json:"remark"`
  558. DialysisIntakes float64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  559. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  560. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  561. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  562. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  563. Status int64 `gorm:"column:status" json:"status"`
  564. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  565. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  566. Creater int64 `gorm:"column:creater" json:"creater"`
  567. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  568. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  569. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  570. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  571. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  572. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  573. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  574. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  575. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  576. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  577. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  578. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  579. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  580. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  581. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  582. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  583. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  584. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  585. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  586. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  587. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  588. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  589. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  590. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  591. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  592. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  593. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
  594. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  595. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  596. ReturnBlood int64 `gorm:"column:return_blood" json:"return_blood" form:"return_blood"`
  597. RehydrationVolume int64 `gorm:"column:rehydration_volume" json:"rehydration_volume" form:"rehydration_volume"`
  598. DialysisDuring int64 `gorm:"column:dialysis_during" json:"dialysis_during" form:"dialysis_during"`
  599. StrokeVolume int64 `gorm:"column:stroke_volume" json:"stroke_volume" form:"stroke_volume"`
  600. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  601. BloodFlow int64 `gorm:"column:blood_flow" json:"blood_flow" form:"blood_flow"`
  602. SealingFluidDispose string `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  603. SealingFluidSpecial string `gorm:"column:sealing_fluid_special" json:"sealing_fluid_special" form:"sealing_fluid_special"`
  604. DosageOfAnticoagulants float64 `gorm:"column:dosage_of_anticoagulants" json:"dosage_of_anticoagulants" form:"dosage_of_anticoagulants"`
  605. SupineSystolicBloodPressure string `gorm:"column:supine_systolic_blood_pressure" json:"supine_systolic_blood_pressure" form:"supine_systolic_blood_pressure"`
  606. SettingPressure string `gorm:"column:setting_pressure" json:"setting_pressure" form:"setting_pressure"`
  607. SupineDiastolicBloodPressure string `gorm:"column:supine_diastolic_blood_pressure" json:"supine_diastolic_blood_pressure" form:"supine_diastolic_blood_pressure"`
  608. DiastolicPressure string `gorm:"column:diastolic_pressure" json:"diastolic_pressure" form:"diastolic_pressure"`
  609. OtherComplication string `gorm:"column:other_complication" json:"other_complication" form:"other_complication"`
  610. Ktv string `gorm:"column:ktv" json:"ktv" form:"ktv"`
  611. Urr string `gorm:"column:urr" json:"urr" form:"urr"`
  612. Hypertenison int64 `gorm:"column:hypertenison" json:"hypertenison" form:"hypertenison"`
  613. Hypopiesia int64 `gorm:"column:hypopiesia" json:"hypopiesia" form:"hypopiesia"`
  614. LeaveOfficeMethod int64 `gorm:"column:leave_office_method" json:"leave_office_method" form:"leave_office_method"`
  615. Lapse int64 `gorm:"column:lapse" json:"lapse" form:"lapse"`
  616. Consciousness int64 `gorm:"column:consciousness" json:"consciousness" form:"consciousness"`
  617. Fallrisk int64 `gorm:"column:fallrisk" json:"fallrisk" form:"fallrisk"`
  618. MachineRun string `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  619. AfterUrea string `gorm:"column:after_urea" json:"after_urea" form:"after_urea"`
  620. PipCoagulation string `gorm:"column:pip_coagulation" json:"pip_coagulation" form:"pip_coagulation"`
  621. AccumulatedBloodVolume string `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  622. }
  623. func (AssessmentAfterDislysis) TableName() string {
  624. return "xt_assessment_after_dislysis"
  625. }
  626. type TreatmentSummary struct {
  627. ID int64 `gorm:"column:id" json:"id"`
  628. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  629. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  630. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  631. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  632. Mission string `gorm:"column:mission" json:"mission"`
  633. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  634. Change int64 `gorm:"column:change" json:"change"`
  635. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  636. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  637. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  638. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  639. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  640. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  641. Puncture string `gorm:"column:puncture" json:"puncture"`
  642. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  643. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  644. Status int64 `gorm:"column:status" json:"status"`
  645. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  646. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  647. Creater int64 `gorm:"column:creater" json:"creater"`
  648. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  649. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  650. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  651. }
  652. func (TreatmentSummary) TableName() string {
  653. return "xt_treatment_summary"
  654. }
  655. type DryWeightAdjust struct {
  656. ID int64 `gorm:"column:id" json:"id" form:"id"`
  657. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  658. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  659. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  660. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  661. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  662. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  663. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  664. Status int64 `gorm:"column:status" json:"status" form:"status"`
  665. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  666. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  667. }
  668. func (DryWeightAdjust) TableName() string {
  669. return "xt_dry_weight_adjust"
  670. }
  671. type MonitoringRecord struct {
  672. ID int64 `gorm:"column:id" json:"id"`
  673. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  674. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  675. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  676. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  677. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  678. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  679. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  680. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  681. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  682. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  683. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  684. Pic string `gorm:"column:pic" json:"pic"`
  685. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  686. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  687. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  688. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  689. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  690. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  691. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  692. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  693. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  694. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  695. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  696. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  697. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  698. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  699. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  700. Symptom string `gorm:"column:symptom" json:"symptom"`
  701. Dispose string `gorm:"column:dispose" json:"dispose"`
  702. Result string `gorm:"column:result" json:"result"`
  703. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  704. Status int64 `gorm:"column:status" json:"status"`
  705. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  706. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  707. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  708. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  709. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  710. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  711. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  712. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  713. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  714. Urr string `gorm:"column:urr" json:"urr"`
  715. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  716. MonitorAnticoagulant int64 `gorm:"column:monitor_anticoagulant" json:"monitor_anticoagulant" form:"monitor_anticoagulant"`
  717. MonitorAnticoagulantValue string `gorm:"column:monitor_anticoagulant_value" json:"monitor_anticoagulant_value" form:"monitor_anticoagulant_value"`
  718. BloodPressureMonitoringSite int64 `gorm:"column:blood_pressure_monitoring_site" json:"blood_pressure_monitoring_site" form:"blood_pressure_monitoring_site"`
  719. Complication int64 `gorm:"column:complication" json:"complication" form:"complication"`
  720. AccumulatedBloodVolume float64 `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  721. BloodTemperature float64 `gorm:"column:blood_temperature" json:"blood_temperature" form:"blood_temperature"`
  722. UreaMonitoring float64 `gorm:"column:urea_monitoring" json:"urea_monitoring" form:"urea_monitoring"`
  723. BloodThickness float64 `gorm:"column:blood_thickness" json:"blood_thickness" form:"blood_thickness"`
  724. BloodMonitor float64 `gorm:"column:blood_monitor" json:"blood_monitor" form:"blood_monitor"`
  725. HeparinAmount float64 `gorm:"column:heparin_amount" json:"heparin_amount" form:"heparin_amount"`
  726. Dehydration float64 `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  727. }
  728. func (MonitoringRecord) TableName() string {
  729. return "xt_monitoring_record"
  730. }
  731. type DialysisOrders struct {
  732. ID int64 `gorm:"column:id" json:"id"`
  733. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  734. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  735. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  736. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  737. Stage int64 `gorm:"column:stage" json:"stage"`
  738. Remark string `gorm:"column:remark" json:"remark"`
  739. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  740. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  741. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  742. Status int64 `gorm:"column:status" json:"status"`
  743. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  744. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  745. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  746. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  747. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  748. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  749. Creator int64 `gorm:"column:creator" json:"creator"`
  750. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  751. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  752. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  753. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  754. Name int64 `gorm:"column:name" json:"name"`
  755. Number string `gorm:"column:number" json:"number"`
  756. }
  757. type VmDialysisOrder struct {
  758. Count int64
  759. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  760. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  761. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  762. Stage int64 `gorm:"column:stage" json:"stage"`
  763. Status int64 `gorm:"column:status" json:"status"`
  764. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  765. }
  766. func (VmDialysisOrder) TableName() string {
  767. return "xt_dialysis_order"
  768. }
  769. type DialysisOrder struct {
  770. ID int64 `gorm:"column:id" json:"id"`
  771. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  772. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  773. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  774. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  775. Stage int64 `gorm:"column:stage" json:"stage"`
  776. Remark string `gorm:"column:remark" json:"remark"`
  777. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  778. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  779. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  780. Status int64 `gorm:"column:status" json:"status"`
  781. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  782. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  783. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  784. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  785. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  786. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  787. Creator int64 `gorm:"column:creator" json:"creator"`
  788. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  789. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  790. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  791. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  792. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
  793. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  794. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  795. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  796. NewFistulaNurse int64 `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  797. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  798. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma" form:"puncture_point_haematoma"`
  799. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula" form:"blood_access_internal_fistula"`
  800. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  801. Cruor string `gorm:"column:cruor" json:"cruor" form:"cruor"`
  802. Url string `gorm:"column:url" json:"url" form:"url"`
  803. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  804. QualityNurseId int64 `gorm:"column:quality_nurse_id" json:"quality_nurse_id" form:"quality_nurse_id"`
  805. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  806. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way" form:"puncture_way"`
  807. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  808. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  809. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  810. Mission string `gorm:"column:mission" json:"mission" form:"mission"`
  811. NucleinDate int64 `gorm:"column:nuclein_date" json:"nuclein_date" form:"nuclein_date"`
  812. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  813. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  814. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  815. CatheterOperation string `gorm:"column:catheter_operation" json:"catheter_operation" form:"catheter_operation"`
  816. }
  817. func (DialysisOrder) TableName() string {
  818. return "xt_dialysis_order"
  819. }
  820. type XtDialysisOrder struct {
  821. ID int64 `gorm:"column:id" json:"id" form:"id"`
  822. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  823. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  824. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  825. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  826. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  827. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  828. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  829. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  830. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  831. Status int64 `gorm:"column:status" json:"status" form:"status"`
  832. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  833. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  834. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  835. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  836. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  837. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  838. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  839. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  840. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  841. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  842. Number int64 `gorm:"column:number" json:"number" form:"number"`
  843. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  844. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  845. }
  846. func (XtDialysisOrder) TableName() string {
  847. return "xt_dialysis_order"
  848. }
  849. type XtDialysisOrders struct {
  850. ID int64 `gorm:"column:id" json:"id" form:"id"`
  851. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  852. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  853. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  854. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  855. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  856. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  857. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  858. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  859. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  860. Status int64 `gorm:"column:status" json:"status" form:"status"`
  861. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  862. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  863. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  864. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  865. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  866. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  867. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  868. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  869. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  870. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  871. Number string `gorm:"column:number" json:"number" form:"number"`
  872. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  873. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  874. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  875. QualityNurseId int64 `gorm:"column:quality_nurse_id" json:"quality_nurse_id" form:"quality_nurse_id"`
  876. }
  877. type TreatmentMode struct {
  878. ID int64 `gorm:"column:id" json:"id" form:"id"`
  879. Name string `gorm:"column:name" json:"name" form:"name"`
  880. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  881. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  882. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  883. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  884. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  885. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  886. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  887. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  888. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  889. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  890. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  891. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  892. Status int64 `gorm:"column:status" json:"status" form:"status"`
  893. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  894. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  895. }
  896. func (TreatmentMode) TableName() string {
  897. return "xt_treatment_mode"
  898. }
  899. type ReceiveTreatmentAsses struct {
  900. ID int64 `gorm:"column:id" json:"id"`
  901. Way int64 `gorm:"column:way" json:"way"`
  902. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  903. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  904. Condition int64 `gorm:"column:condition" json:"condition"`
  905. Creater int64 `gorm:"column:creater" json:"creater"`
  906. Posture int64 `gorm:"column:posture" json:"posture"`
  907. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  908. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  909. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  910. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  911. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  912. Status int64 `gorm:"column:status" json:"status"`
  913. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  914. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  915. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  916. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  917. Intake int64 `gorm:"column:intake" json:"intake"`
  918. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  919. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  920. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  921. Score string `gorm:"column:score" json:"score"`
  922. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  923. Precaution string `gorm:"column:precaution" json:"precaution"`
  924. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  925. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  926. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  927. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  928. Diacrisis string `gorm:"column:diacrisis" json:"diacrisis" form:"diacrisis"`
  929. Tumble int64 `gorm:"column:tumble" json:"tumble" form:"tumble"`
  930. HisDepartment string `gorm:"column:his_department" json:"his_department" form:"his_department"`
  931. HisBed string `gorm:"column:his_bed" json:"his_bed" form:"his_bed"`
  932. }
  933. func (ReceiveTreatmentAsses) TableName() string {
  934. return "xt_receive_treatment_asses"
  935. }
  936. type GobalTemplate struct {
  937. ID int64 `gorm:"column:id" json:"id"`
  938. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  939. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  940. Status int64 `gorm:"column:status" json:"status"`
  941. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  942. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  943. }
  944. func (GobalTemplate) TableName() string {
  945. return "xt_gobal_template"
  946. }
  947. type SgjUserAdminRole struct {
  948. ID int64 `gorm:"column:id" json:"id" form:"id"`
  949. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  950. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  951. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  952. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  953. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  954. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  955. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  956. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  957. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  958. Status int64 `gorm:"column:status" json:"status" form:"status"`
  959. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  960. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  961. Message string `gorm:"column:message" json:"message" form:"message"`
  962. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  963. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  964. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  965. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  966. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  967. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  968. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  969. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  970. }
  971. func (SgjUserAdminRole) TableName() string {
  972. return "sgj_user_admin_role"
  973. }
  974. type SgjUserAdmin struct {
  975. ID int64 `gorm:"column:id" json:"id" form:"id"`
  976. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  977. Password string `gorm:"column:password" json:"password" form:"password"`
  978. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  979. Status int64 `gorm:"column:status" json:"status" form:"status"`
  980. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  981. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  982. Source int64 `gorm:"column:source" json:"source" form:"source"`
  983. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  984. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  985. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  986. Name string `gorm:"column:name" json:"name" form:"name"`
  987. }
  988. func (SgjUserAdmin) TableName() string {
  989. return "sgj_user_admin"
  990. }
  991. type UserAdminRoles struct {
  992. ID int64 `gorm:"column:id" json:"id" form:"id"`
  993. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  994. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  995. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  996. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  997. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  998. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  999. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  1000. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  1001. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  1002. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1003. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1004. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1005. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1006. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1007. Message string `gorm:"column:message" json:"message" form:"message"`
  1008. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1009. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1010. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1011. Url string `gorm:"column:url" json:"url" form:"url"`
  1012. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  1013. }
  1014. type DialysisBeforePrepare struct {
  1015. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1016. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1017. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1018. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1019. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1020. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1021. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1022. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1023. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1024. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1025. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1026. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1027. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1028. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1029. Children []*DialysisBeforePrepare `gorm:"column:children" json:"children" form:"children"`
  1030. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1031. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1032. }
  1033. func (DialysisBeforePrepare) TableName() string {
  1034. return "dialysis_before_prepare"
  1035. }
  1036. type DialysisBeforePrepareGoods struct {
  1037. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1038. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1039. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1040. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1041. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1042. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1043. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1044. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1045. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1046. }
  1047. type NewDialysisBeforePrepareGoods struct {
  1048. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1049. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1050. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1051. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1052. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1053. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1054. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1055. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1056. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1057. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1058. ChildNewDialysisBeforePrepareGoods []*NewDialysisBeforePrepareGoods `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"child"`
  1059. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1060. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1061. }
  1062. type OldDialysisBeforePrepareGoods struct {
  1063. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1064. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1065. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1066. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1067. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1068. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1069. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1070. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1071. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1072. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1073. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1074. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1075. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1076. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1077. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1078. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1079. }
  1080. type QueueCallConfig struct {
  1081. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1082. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1083. Qhsj int64 `gorm:"column:qhsj" json:"qhsj" form:"qhsj"`
  1084. Jzdcbbcs int64 `gorm:"column:jzdcbbcs" json:"jzdcbbcs" form:"jzdcbbcs"`
  1085. Jzbbsy int64 `gorm:"column:jzbbsy" json:"jzbbsy" form:"jzbbsy"`
  1086. Jzjhyc int64 `gorm:"column:jzjhyc" json:"jzjhyc" form:"jzjhyc"`
  1087. Sjdcbbcs int64 `gorm:"column:sjdcbbcs" json:"sjdcbbcs" form:"sjdcbbcs"`
  1088. Sjbbsy int64 `gorm:"column:sjbbsy" json:"sjbbsy" form:"sjbbsy"`
  1089. Sjjhyc int64 `gorm:"column:sjjhyc" json:"sjjhyc" form:"sjjhyc"`
  1090. Txxqyxs int64 `gorm:"column:txxqyxs" json:"txxqyxs" form:"txxqyxs"`
  1091. Txglsyxs int64 `gorm:"column:txglsyxs" json:"txglsyxs" form:"txglsyxs"`
  1092. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1093. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1094. }
  1095. func (QueueCallConfig) TableName() string {
  1096. return "xt_queue_call_config"
  1097. }
  1098. type XtDialysisBeforePrepare struct {
  1099. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1100. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1101. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1102. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1103. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1104. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1105. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1106. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1107. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1108. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1109. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1110. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1111. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1112. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1113. }
  1114. type BloodDoctorAdvice struct {
  1115. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1116. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1117. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1118. Total int64
  1119. }
  1120. type HisDoctorAdvice struct {
  1121. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1122. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1123. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1124. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1125. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1126. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1127. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1128. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1129. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1130. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1131. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1132. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1133. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1134. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1135. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1136. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1137. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1138. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1139. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1140. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1141. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1142. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1143. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1144. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1145. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1146. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1147. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1148. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1149. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1150. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1151. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1152. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1153. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1154. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1155. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1156. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1157. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1158. AdviceId int64 `gorm:"-"`
  1159. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  1160. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  1161. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  1162. WeekDay string `gorm:"column:week_day" json:"week_day"`
  1163. ChildDoctorAdvice []*HisDoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  1164. TemplateId string `gorm:"column:template_id" json:"template_id"`
  1165. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1166. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1167. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1168. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1169. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1170. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1171. }
  1172. func (HisDoctorAdvice) TableName() string {
  1173. return "his_doctor_advice_info"
  1174. }
  1175. type DialysisScheduleSix struct {
  1176. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1177. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1178. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1179. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1180. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1181. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1182. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1183. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1184. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1185. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1186. Name string `gorm:"column:name" json:"name" form:"name"`
  1187. DialysisOrderTwenty `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"order"`
  1188. }
  1189. type DialysisScheduleSeven struct {
  1190. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1191. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1192. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1193. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1194. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1195. }
  1196. func (DialysisScheduleSeven) TableName() string {
  1197. return "xt_schedule"
  1198. }
  1199. type DialysisOrderTwenty struct {
  1200. ID int64 `gorm:"column:id" json:"id"`
  1201. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  1202. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1203. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1204. Stage int64 `gorm:"column:stage" json:"stage"`
  1205. Remark string `gorm:"column:remark" json:"remark"`
  1206. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  1207. Status int64 `gorm:"column:status" json:"status"`
  1208. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  1209. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  1210. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  1211. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1212. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1213. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1214. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1215. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  1216. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1217. }
  1218. func (DialysisOrderTwenty) TableName() string {
  1219. return "xt_dialysis_order"
  1220. }
  1221. type HisDoctorAdviceThirty struct {
  1222. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1223. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1224. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1225. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1226. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1227. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  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. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1231. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1232. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1233. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1234. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1235. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1236. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1237. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1238. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1239. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1240. ChildDoctorAdvice []*HisDoctorAdviceThirty `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1241. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1242. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1243. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1244. }
  1245. func (HisDoctorAdviceThirty) TableName() string {
  1246. return "his_doctor_advice_info"
  1247. }
  1248. type DoctorAdviceThrity struct {
  1249. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1250. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1251. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1252. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1253. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1254. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1255. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1256. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1257. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1258. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1259. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1260. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1261. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1262. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1263. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1264. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1265. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1266. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1267. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1268. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1269. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1270. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1271. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1272. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1273. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1274. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1275. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1276. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1277. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1278. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1279. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1280. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1281. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1282. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1283. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1284. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1285. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1286. AdviceId int64 `gorm:"-"`
  1287. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  1288. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  1289. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  1290. WeekDay string `gorm:"column:week_day" json:"week_day"`
  1291. ChildDoctorAdvice []*DoctorAdviceThrity `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1292. TemplateId string `gorm:"column:template_id" json:"template_id"`
  1293. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1294. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1295. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1296. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1297. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1298. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  1299. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  1300. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1301. }
  1302. func (DoctorAdviceThrity) TableName() string {
  1303. return "xt_doctor_advice"
  1304. }
  1305. type XtDialysisOrderSix struct {
  1306. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1307. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  1308. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1309. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1310. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1311. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1312. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1313. }
  1314. func (XtDialysisOrderSix) TableName() string {
  1315. return "xt_dialysis_order"
  1316. }
  1317. type HisDoctorAdviceFourty struct {
  1318. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1319. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1320. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1321. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1322. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1323. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1324. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1325. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1326. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1327. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1328. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1329. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1330. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1331. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1332. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1333. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1334. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1335. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1336. ChildDoctorAdvice []*HisDoctorAdviceFourty `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1337. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1338. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1339. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1340. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  1341. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  1342. }
  1343. func (HisDoctorAdviceFourty) TableName() string {
  1344. return "his_doctor_advice_info"
  1345. }
  1346. type NewDialysisOrder struct {
  1347. ID int64 `gorm:"column:id" json:"id"`
  1348. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  1349. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1350. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1351. Stage int64 `gorm:"column:stage" json:"stage"`
  1352. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  1353. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  1354. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  1355. Status int64 `gorm:"column:status" json:"status"`
  1356. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1357. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1358. BloodAccessId int64 `gorm:"column:blood_access_id" json:"blood_access_id" form:"blood_access_id"`
  1359. NucleinDate int64 `gorm:"column:nuclein_date" json:"nuclein_date" form:"nuclein_date"`
  1360. ScheduleRemark string `gorm:"column:schedule_remark" json:"schedule_remark" form:"schedule_remark"`
  1361. OrderRemark string `gorm:"column:order_remark" json:"order_remark" form:"order_remark"`
  1362. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  1363. }
  1364. func (NewDialysisOrder) TableName() string {
  1365. return "xt_dialysis_order"
  1366. }
  1367. type NewAssessmentAfterDislysis struct {
  1368. ID int64 `gorm:"column:id" json:"id"`
  1369. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  1370. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  1371. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  1372. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1373. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  1374. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  1375. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  1376. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  1377. Status int64 `gorm:"column:status" json:"status"`
  1378. }
  1379. func (NewAssessmentAfterDislysis) TableName() string {
  1380. return "xt_assessment_after_dislysis"
  1381. }