schedule_models.go 47KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. package models
  2. type VmSchedules 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. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  6. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  7. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  8. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  9. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  10. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  11. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  12. Status int64 `gorm:"column:status" json:"status" form:"status"`
  13. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  14. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  15. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  16. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  17. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  18. DialysisOrder DialysisOrder `json:"order" gorm:"foreignkey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  19. XtPatients XtPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
  20. DoctorAdvice []*DoctorAdvice `json:"doctoradvice" gorm:"foreignkey:AdviceDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  21. DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  22. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `json:"hisdoctoradviceinfo" gorm:"foreignkey:AdviceDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  23. DialysisSolution []*DialysisSolution `json:"dialysissolution" gorm:"foreignkey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  24. }
  25. func (VmSchedules) TableName() string {
  26. return "xt_schedule"
  27. }
  28. type Schedule struct {
  29. ID int64 `gorm:"column:id" json:"id" form:"id"`
  30. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  31. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  32. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  33. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  34. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  35. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  36. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  37. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  38. Status int64 `gorm:"column:status" json:"status" form:"status"`
  39. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  40. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  41. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  42. Patient string `gorm:"-" json:"patient" form:"patient"`
  43. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  44. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  45. TreatmentMode TreatmentMode `json:"mode" gorm:"foreignkey:ModeId"`
  46. DialysisOrder DialysisOrder `json:"order" gorm:"foreignkey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  47. DialysisPrescription DialysisPrescription `json:"dialysis_prescription" gorm:"foreignkey:RecordDate,PatientId;AssociationForeignKey:RecordDate,PatientId;"`
  48. PatientInfectiousDiseases []InfectiousDiseases `json:"patient_contagions" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  49. DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
  50. }
  51. func (Schedule) TableName() string {
  52. return "xt_schedule"
  53. }
  54. type SchedulePatients struct {
  55. ID int64 `gorm:"column:id" json:"id" form:"id"`
  56. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  57. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  58. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  59. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  60. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  61. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  62. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  63. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  64. Status int64 `gorm:"column:status" json:"status" form:"status"`
  65. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  66. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  67. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  68. Patient PatientListForFace `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
  69. }
  70. func (SchedulePatients) TableName() string {
  71. return "xt_schedule"
  72. }
  73. type PatientSchedule struct {
  74. Schedule
  75. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:PartitionId"`
  76. DeviceNumber DeviceNumber `json:"bed" gorm:"foreignkey:BedId"`
  77. Week int64 `gorm:"-" json:"week" form:"week"`
  78. TreatmentMode TreatmentMode `json:"mode" gorm:"foreignkey:ModeId"`
  79. }
  80. type Partition struct {
  81. DeviceZone
  82. Jihaos []DeviceNumber `json:"jihaos" gorm:"foreignkey:ZoneID"`
  83. }
  84. type Search_Schedule struct {
  85. ID int64 `gorm:"column:id" json:"id" form:"id"`
  86. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  87. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  88. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  89. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  90. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  91. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  92. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  93. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  94. Status int64 `gorm:"column:status" json:"status" form:"status"`
  95. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  96. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  97. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  98. Patient string `gorm:"-" json:"patient" form:"patient"`
  99. }
  100. func (Search_Schedule) TableName() string {
  101. return "xt_schedule"
  102. }
  103. type WeekSchedule struct {
  104. ID int64 `gorm:"column:id" json:"id" form:"id"`
  105. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  106. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  107. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  108. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  109. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  110. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  111. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  112. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  113. Status int64 `gorm:"column:status" json:"status" form:"status"`
  114. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  115. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  116. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  117. DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
  118. Patient string `gorm:"-" json:"patient" form:"patient"`
  119. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  120. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  121. DialysisPrescription DialysisSolution `json:"prescription" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId"`
  122. DoctorAdvice []*DoctorAdvice `json:"doctoradvice" gorm:"foreignkey:AdviceDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  123. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `json:"hisdoctoradviceinfo" gorm:"foreignkey:AdviceDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  124. Solution []*DialysisSolution `json:"solution" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId"`
  125. DialysisSolution DialysisSolution `json:"dialysissolution" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId"`
  126. XtAssessmentBeforeDislysis XtAssessmentBeforeDislysis `json:"assessmentbefor" gorm:"foreignkey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate"`
  127. }
  128. func (WeekSchedule) TableName() string {
  129. return "xt_schedule"
  130. }
  131. type ScheduleTemplate struct {
  132. ID int64 `gorm:"column:id" json:"id" form:"id"`
  133. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  134. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  135. Status int64 `gorm:"column:status" json:"status" form:"status"`
  136. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  137. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  138. }
  139. func (ScheduleTemplate) TableName() string {
  140. return "xt_schedule_template"
  141. }
  142. type XtDataPrint struct {
  143. ID int64 `gorm:"column:id" json:"id" form:"id"`
  144. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  145. Status int64 `gorm:"column:status" json:"status" form:"status"`
  146. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  147. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  148. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  149. }
  150. func (XtDataPrint) TableName() string {
  151. return "xt_data_print"
  152. }
  153. type VmSchedulesRemind struct {
  154. ID int64 `gorm:"column:id" json:"id" form:"id"`
  155. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  156. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  157. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  158. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  159. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  160. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  161. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  162. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  163. Status int64 `gorm:"column:status" json:"status" form:"status"`
  164. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  165. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  166. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  167. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  168. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  169. DialysisOrder DialysisOrder `json:"order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  170. XtPatients XtPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
  171. DoctorAdvice []*DoctorAdvice `json:"doctoradvice" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  172. DialysisPrescription NewDialysisPrescription `json:"prescription" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  173. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `json:"hisdoctoradviceinfo" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  174. DialysisSolution DialysisSolution `json:"dialysissolution" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId;"`
  175. XtAssessmentBeforeDislysis XtAssessmentBeforeDislysis `json:"assessmentbefor" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  176. LastAfterWeight AssessmentAfterDislysis `gorm:"ForeignKey:PatientID;AssociationForeignKey:PatientID" json:"lastafterweight"`
  177. XtDialysisOrderSix XtDialysisOrderSix `json:"dialysis_order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  178. }
  179. func (VmSchedulesRemind) TableName() string {
  180. return "xt_schedule"
  181. }
  182. type WeekScheduleSix struct {
  183. ID int64 `gorm:"column:id" json:"id" form:"id"`
  184. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  185. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  186. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  187. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  188. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  189. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  190. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  191. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  192. Status int64 `gorm:"column:status" json:"status" form:"status"`
  193. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  194. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  195. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  196. IdCardNo string `gorm:"-" json:"id_card_no" form:"id_card_no"`
  197. Gender string `gorm:"-" json:"gender" form:"gender"`
  198. Phone string `gorm:"-" json:"phone" form:"phone"`
  199. DialysisNo string `gorm:"-" json:"dialysis_no" form:"dialysis_no"`
  200. Patient string `gorm:"-" json:"patient" form:"patient"`
  201. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  202. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  203. DoctorAdvice []*DoctorAdvice `json:"doctoradvice" gorm:"foreignkey:AdviceDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  204. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `json:"hisdoctoradviceinfo" gorm:"foreignkey:AdviceDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  205. DialysisSolution DialysisSolution `json:"dialysissolution" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId"`
  206. XtAssessmentBeforeDislysis XtAssessmentBeforeDislysis `json:"assessmentbefor" gorm:"foreignkey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate"`
  207. XtDialysisOrderSix XtDialysisOrderSix `json:"dialysis_order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  208. DialysisPrescription NewDialysisPrescription `json:"prescription" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId"`
  209. }
  210. func (WeekScheduleSix) TableName() string {
  211. return "xt_schedule"
  212. }
  213. type BlodSchedule struct {
  214. ID int64 `gorm:"column:id" json:"id" form:"id"`
  215. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  216. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  217. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  218. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  219. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  220. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  221. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  222. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  223. Status int64 `gorm:"column:status" json:"status" form:"status"`
  224. VmBloodPatients VmBloodPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
  225. BloodDialysisOrder BloodPatientDialysisOrder `json:"order" gorm:"foreignkey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  226. BloodDialysisPrescription BloodDialysisPrescription `json:"prescription" gorm:"foreignkey:RecordDate,PatientId;AssociationForeignKey:RecordDate,PatientId;"`
  227. }
  228. func (BlodSchedule) TableName() string {
  229. return "xt_schedule"
  230. }
  231. type BloodPatientDialysisOrder struct {
  232. ID int64 `gorm:"column:id" json:"id" form:"id"`
  233. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  234. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  235. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  236. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  237. }
  238. func (BloodPatientDialysisOrder) TableName() string {
  239. return "xt_dialysis_order"
  240. }
  241. type BloodPatientDialysisPrescription struct {
  242. ID int64 `gorm:"column:id" json:"id" form:"id"`
  243. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  244. MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
  245. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  246. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  247. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  248. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  249. }
  250. func (BloodPatientDialysisPrescription) TableName() string {
  251. return "xt_dialysis_prescription"
  252. }
  253. type VmBloodPatients struct {
  254. ID int64 `gorm:"column:id" json:"id" form:"id"`
  255. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  256. Name string `gorm:"column:name" json:"name" form:"name"`
  257. }
  258. func (VmBloodPatients) TableName() string {
  259. return "xt_patients"
  260. }
  261. type VmBloodSchedule struct {
  262. ID int64 `gorm:"column:id" json:"id" form:"id"`
  263. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  264. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  265. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  266. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  267. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  268. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  269. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  270. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  271. Status int64 `gorm:"column:status" json:"status" form:"status"`
  272. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  273. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  274. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  275. DeviceNumber *NewMDeviceNumberVM `gorm:"ForeignKey:BedId" json:"device_number"`
  276. SchedualPatient *NewMSchedualPatientVMList `gorm:"ForeignKey:PatientId" json:"patient"`
  277. DialysisSolution DialysisSolution `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"dialysis_solution"`
  278. DialysisPrescription DialysisPrescription `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,ScheduleDate" json:"dialysis_prescription"`
  279. XtAssessmentBeforeDislysis XtAssessmentBeforeDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate" json:"assessment_befor_dislysis"`
  280. XtDoctorAdvice XtDoctorAdvice `gorm:"ForeignKey:PatientId,AdviceDate;AssociationForeignKey:PatientId,ScheduleDate" json:"xt_doctor_advice"`
  281. HisDoctorAdvice HisDoctorAdvice `gorm:"ForeignKey:PatientId,AdviceDate;AssociationForeignKey:PatientId,ScheduleDate" json:"his_doctor_advice"`
  282. ReceiveTreatmentAsses ReceiveTreatmentAsses `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,ScheduleDate" json:"xt_receive_treatment_asses"`
  283. XtAssessmentAfterDislysis XtAssessmentAfterDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate" json:"xt_assesment_after_dislysis"`
  284. LastAfterWeight AssessmentAfterDislysis `gorm:"ForeignKey:PatientID;AssociationForeignKey:PatientID" json:"lastafterweight"`
  285. }
  286. func (VmBloodSchedule) TableName() string {
  287. return "xt_schedule"
  288. }
  289. type NewMDeviceNumberVM struct {
  290. DeviceNumber
  291. Zone *DeviceZone `gorm:"ForeignKey:ZoneID" json:"zone"`
  292. }
  293. func (NewMDeviceNumberVM) TableName() string {
  294. return "xt_device_number"
  295. }
  296. type NewMSchedualPatientVMList struct {
  297. ID int64 `gorm:"column:id" json:"id" form:"id"`
  298. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  299. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  300. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  301. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  302. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  303. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  304. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  305. Age int64 `gorm:"column:age" json:"age"`
  306. Name string `gorm:"column:name" json:"name" form:"name"`
  307. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  308. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  309. TrobleShoot int64 `gorm:"column:troble_shoot" json:"troble_shoot" form:"troble_shoot"`
  310. Status int64 `gorm:"column:status" json:"status" form:"status"`
  311. }
  312. func (NewMSchedualPatientVMList) TableName() string {
  313. return "xt_patients"
  314. }
  315. type VmBloodScheduleTwo struct {
  316. ID int64 `gorm:"column:id" json:"id" form:"id"`
  317. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  318. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  319. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  320. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  321. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  322. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  323. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  324. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  325. Status int64 `gorm:"column:status" json:"status" form:"status"`
  326. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  327. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  328. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  329. DeviceNumber *NewMDeviceNumberVM `gorm:"ForeignKey:BedId" json:"device_number"`
  330. SchedualPatient *NewMSchedualPatientVMList `gorm:"ForeignKey:PatientId" json:"patient"`
  331. HisPrescriptionTemplateSix HisPrescriptionTemplateSix `gorm:"ForeignKey:PatientId,Mode;AssociationForeignKey:PatientId,ModeId" json:"his_prescription_template"`
  332. }
  333. func (VmBloodScheduleTwo) TableName() string {
  334. return "xt_schedule"
  335. }
  336. type VmBloodScheduleThree struct {
  337. ID int64 `gorm:"column:id" json:"id" form:"id"`
  338. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  339. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  340. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  341. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  342. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  343. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  344. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  345. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  346. Status int64 `gorm:"column:status" json:"status" form:"status"`
  347. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  348. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  349. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  350. DeviceNumber *NewMDeviceNumberVM `gorm:"ForeignKey:BedId" json:"device_number"`
  351. SchedualPatient *NewMSchedualPatientVMList `gorm:"ForeignKey:PatientId" json:"patient"`
  352. HisPrescriptionTemplateSix HisPrescriptionTemplateSix `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"his_prescription_template"`
  353. }
  354. func (VmBloodScheduleThree) TableName() string {
  355. return "xt_schedule"
  356. }
  357. type HisPrescriptionTemplateSix struct {
  358. ID int64 `gorm:"column:id" json:"id" form:"id"`
  359. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  360. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  361. Type int64 `gorm:"column:type" json:"type" form:"type"`
  362. Status int64 `gorm:"column:status" json:"status" form:"status"`
  363. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  364. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  365. Name string `gorm:"column:name" json:"name" form:"name"`
  366. Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
  367. HisPrescriptionInfoTemplateSix []*HisPrescriptionInfoTemplateSix `gorm:"ForeignKey:PTemplateId;AssociationForeignKey:ID" json:"his_prescription_info"`
  368. }
  369. func (HisPrescriptionTemplateSix) TableName() string {
  370. return "his_prescription_template"
  371. }
  372. type HisPrescriptionInfoTemplateSix struct {
  373. ID int64 `gorm:"column:id" json:"id" form:"id"`
  374. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  375. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  376. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  377. Status int64 `gorm:"column:status" json:"status" form:"status"`
  378. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  379. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  380. Type int64 `gorm:"column:type" json:"type" form:"type"`
  381. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  382. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  383. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  384. PTemplateId int64 `gorm:"column:p_template_id" json:"p_template_id" form:"p_template_id"`
  385. HisPrescriptionProjectTemplateSeven []*HisPrescriptionProjectTemplateSeven `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  386. HisPrescriptionAdviceTemplate []*HisPrescriptionAdviceTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"his_advice"`
  387. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  388. }
  389. func (HisPrescriptionInfoTemplateSix) TableName() string {
  390. return "his_prescription_info_template"
  391. }
  392. type HisPrescriptionProjectTemplateSeven struct {
  393. ID int64 `gorm:"column:id" json:"id" form:"id"`
  394. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  395. Price float64 `gorm:"column:price" json:"price" form:"price"`
  396. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  397. Status int64 `gorm:"column:status" json:"status" form:"status"`
  398. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  399. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  400. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  401. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  402. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  403. Count string `gorm:"column:count" json:"count" form:"count"`
  404. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  405. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  406. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  407. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  408. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  409. Day string `gorm:"column:day" json:"day" form:"day"`
  410. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  411. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  412. Type int64 `gorm:"column:type" json:"type" form:"type"`
  413. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  414. GoodInfo GoodInfoNight `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
  415. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  416. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  417. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  418. }
  419. func (HisPrescriptionProjectTemplateSeven) TableName() string {
  420. return "his_prescription_project_template"
  421. }
  422. type GoodInfoNight struct {
  423. ID int64 `gorm:"column:id" json:"id" form:"id"`
  424. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  425. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  426. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  427. }
  428. func (GoodInfoNight) TableName() string {
  429. return "xt_good_information"
  430. }
  431. type ScheduleTwenty struct {
  432. ID int64 `gorm:"column:id" json:"id" form:"id"`
  433. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  434. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  435. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  436. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  437. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  438. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  439. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  440. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  441. Status int64 `gorm:"column:status" json:"status" form:"status"`
  442. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  443. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  444. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  445. Patient string `gorm:"-" json:"patient" form:"patient"`
  446. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  447. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  448. TreatmentMode TreatmentMode `json:"mode" gorm:"foreignkey:ModeId"`
  449. DialysisOrderTwenty DialysisOrderTwenty `json:"order" gorm:"foreignkey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId;"`
  450. }
  451. func (ScheduleTwenty) TableName() string {
  452. return "xt_schedule"
  453. }
  454. type ScheduleTwentyOne struct {
  455. ID int64 `gorm:"column:id" json:"id" form:"id"`
  456. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  457. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  458. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  459. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  460. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  461. Status int64 `gorm:"column:status" json:"status" form:"status"`
  462. }
  463. func (ScheduleTwentyOne) TableName() string {
  464. return "xt_schedule"
  465. }
  466. type VmBloodScheduleOne struct {
  467. ID int64 `gorm:"column:id" json:"id" form:"id"`
  468. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  469. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  470. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  471. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  472. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  473. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  474. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  475. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  476. Status int64 `gorm:"column:status" json:"status" form:"status"`
  477. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  478. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  479. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  480. DeviceNumber *NewMDeviceNumberVM `gorm:"ForeignKey:BedId" json:"device_number"`
  481. SchedualPatient *NewMSchedualPatientVMList `gorm:"ForeignKey:PatientId" json:"patient"`
  482. XtDoctorAdvice []*XtDoctorAdvice `gorm:"ForeignKey:PatientId,AdviceDate;AssociationForeignKey:PatientId,ScheduleDate" json:"xt_doctor_advice"`
  483. HisDoctorAdvice []*HisDoctorAdviceFourty `gorm:"ForeignKey:PatientId,AdviceDate;AssociationForeignKey:PatientId,ScheduleDate" json:"his_doctor_advice"`
  484. }
  485. func (VmBloodScheduleOne) TableName() string {
  486. return "xt_schedule"
  487. }
  488. type VmNewSchedulesRemind struct {
  489. ID int64 `gorm:"column:id" json:"id" form:"id"`
  490. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  491. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  492. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  493. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  494. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  495. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  496. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  497. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  498. Status int64 `gorm:"column:status" json:"status" form:"status"`
  499. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  500. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  501. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  502. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  503. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  504. DialysisOrder NewDialysisOrder `json:"order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  505. XtPatients XtNewPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
  506. DoctorAdvice []*DoctorAdvice `json:"doctoradvice" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  507. DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  508. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `json:"hisdoctoradviceinfo" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  509. DialysisSolution NewDialysisSolution `json:"dialysissolution" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId;"`
  510. XtAssessmentBeforeDislysis XtNewAssessmentBeforeDislysis `json:"assessmentbefor" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  511. LastAfterWeight NewAssessmentAfterDislysis `gorm:"ForeignKey:PatientID;AssociationForeignKey:PatientID" json:"lastafterweight"`
  512. XtDialysisOrderSix XtDialysisOrderSix `json:"dialysis_order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  513. }
  514. func (VmNewSchedulesRemind) TableName() string {
  515. return "xt_schedule"
  516. }
  517. type WeekScheduleSeven struct {
  518. ID int64 `gorm:"column:id" json:"id" form:"id"`
  519. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  520. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  521. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  522. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  523. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  524. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  525. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  526. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  527. Status int64 `gorm:"column:status" json:"status" form:"status"`
  528. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  529. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  530. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  531. IdCardNo string `gorm:"-" json:"id_card_no" form:"id_card_no"`
  532. Gender string `gorm:"-" json:"gender" form:"gender"`
  533. Phone string `gorm:"-" json:"phone" form:"phone"`
  534. DialysisNo string `gorm:"-" json:"dialysis_no" form:"dialysis_no"`
  535. Patient string `gorm:"-" json:"patient" form:"patient"`
  536. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:PartitionId;"`
  537. DeviceNumber DeviceNumber `json:"number" gorm:"foreignkey:ID;AssociationForeignKey:BedId;"`
  538. DialysisSolution DialysisSolution `json:"dialysissolution" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId"`
  539. XtAssessmentBeforeDislysis XtAssessmentBeforeDislysis `json:"assessmentbefor" gorm:"foreignkey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate"`
  540. XtDialysisOrderSix XtDialysisOrderSix `json:"dialysis_order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  541. DialysisPrescription NewDialysisPrescription `json:"prescription" gorm:"foreignkey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId"`
  542. }
  543. func (WeekScheduleSeven) TableName() string {
  544. return "xt_schedule"
  545. }
  546. type ScheduleNewPatients struct {
  547. ID int64 `gorm:"column:id" json:"id" form:"id"`
  548. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  549. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  550. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  551. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  552. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  553. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  554. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  555. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  556. Status int64 `gorm:"column:status" json:"status" form:"status"`
  557. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  558. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  559. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  560. DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
  561. }
  562. func (ScheduleNewPatients) TableName() string {
  563. return "xt_schedule"
  564. }