device_models.go 86KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. package models
  2. // 设备关联表 将设备类型、ID 和 机号、分区、分组关联
  3. type Device struct {
  4. ID int64 `gorm:"column:id" json:"id"`
  5. OrgID int64 `gorm:"column:org_id" json:"-"`
  6. DeviceType int8 `json:"device_type"` // 设备类型 1.透析机 2.水处理机
  7. DMID int64 `gorm:"column:dm_id" json:"-"` // 透析机 id(type = 1时)
  8. WTEID int64 `gorm:"column:wte_id" json:"-"` // 水处理机 id(type = 2时)
  9. SerialNumber string `json:"serial_number"` // 序列号
  10. Name string `json:"name"` // 设备名
  11. Model string `json:"model"` // 型号
  12. DeviceNumberID int64 `gorm:"column:device_number_id" json:"device_number_id"` // 机号
  13. DeviceNumber string `json:"device_number"` // 机号名
  14. DeviceZoneID int64 `gorm:"column:device_zone_id" json:"device_zone_id"` // 分区
  15. DeviceGroupID int64 `gorm:"column:device_group_id" json:"device_group_id"` // 分组
  16. Status int8 `json:"-"`
  17. CreateTime int64 `gorm:"column:ctime" json:"-"`
  18. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  19. }
  20. func (Device) TableName() string {
  21. return "xt_device"
  22. }
  23. // 透析机
  24. type DeviceDM struct {
  25. ID int64 `gorm:"column:id" json:"id"`
  26. OrgID int64 `gorm:"column:org_id" json:"-"`
  27. SerialNumber string `json:"serial_number"` // 序列号
  28. Name string `json:"name"` // 设备名
  29. Manufacturer string `json:"manufacturer"` // 生产厂家
  30. RepairFactory string `json:"repair_factory"` // 维修厂家
  31. Model string `json:"model"` // 型号
  32. Department string `json:"department"` // 使用科室
  33. DepartmentNumber string `json:"department_number"` // 科室编号
  34. PurchaseDate int64 `json:"purchase_date"` // 购买日期
  35. InstallDate int64 `json:"install_date"` // 安装日期
  36. CommissioningDate int64 `json:"commissioning_date"` // 启用日期
  37. Maintainer string `json:"maintainer"` // 维修工程师
  38. MaintenanceCall string `json:"maintenance_call"` // 维修联系电话
  39. WarrantyPeriod string `json:"warranty_period"` // 保修期限
  40. DeviceStatus int `json:"device_status"` // 机器状态 1.使用机 2.备用机 3.急诊机 4.报废机
  41. InitialUseTimes int `json:"initial_use_times"` // 初始使用次数
  42. Mark string `json:"mark"` // 备注
  43. RetirementDate int64 `json:"retirement_date"` // 报废日期
  44. RetirementReason string `json:"retirement_reason"` // 报废原因
  45. ServiceLife int `json:"service_life"` // 使用年限
  46. WorkingTime int `json:"working_time"` // 工作时长
  47. TreatmentMode string `json:"treatment_mode"` // 治疗模式
  48. Status int8 `json:"-"`
  49. CreateTime int64 `gorm:"column:ctime" json:"-"`
  50. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  51. }
  52. func (DeviceDM) TableName() string {
  53. return "xt_device_info_dm"
  54. }
  55. // 水处理机
  56. type DeviceWTE struct {
  57. ID int64 `gorm:"column:id" json:"id"`
  58. OrgID int64 `gorm:"column:org_id" json:"-"`
  59. SerialNumber string `json:"serial_number"` // 序列号
  60. Name string `json:"name"` // 设备名
  61. Manufacturer string `json:"manufacturer"` // 生产厂家
  62. RepairFactory string `json:"repair_factory"` // 维修厂家
  63. Model string `json:"model"` // 型号
  64. Department string `json:"department"` // 使用科室
  65. DepartmentNumber string `json:"department_number"` // 科室编号
  66. PurchaseDate int64 `json:"purchase_date"` // 购买日期
  67. InstallDate int64 `json:"install_date"` // 安装日期
  68. CommissioningDate int64 `json:"commissioning_date"` // 启用日期
  69. Maintainer string `json:"maintainer"` // 维修工程师
  70. MaintenanceCall string `json:"maintenance_call"` // 维修联系电话
  71. WarrantyPeriod string `json:"warranty_period"` // 保修期限
  72. DeviceStatus int `json:"device_status"` // 机器状态 1.使用机 2.备用机 3.急诊机 4.报废机
  73. InitialUseTimes int `json:"initial_use_times"` // 初始使用次数
  74. Mark string `json:"mark"` // 备注
  75. RetirementDate int64 `json:"retirement_date"` // 报废日期
  76. RetirementReason string `json:"retirement_reason"` // 报废原因
  77. ServiceLife int `json:"service_life"` // 使用年限
  78. WorkingTime int `json:"working_time"` // 工作时长
  79. ReverseOsmosisMode int `json:"reverse_osmosis_mode"` // 反渗模式
  80. Status int8 `json:"-"`
  81. CreateTime int64 `gorm:"column:ctime" json:"-"`
  82. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  83. }
  84. func (DeviceWTE) TableName() string {
  85. return "xt_device_info_wte"
  86. }
  87. type DeviceZones struct {
  88. ID int64 `gorm:"column:id" json:"id"`
  89. OrgID int64 `gorm:"column:org_id" json:"-"`
  90. Name string `json:"name"`
  91. Type int `json:"type"`
  92. Status int8 `json:"-"`
  93. CreateTime int64 `gorm:"column:ctime" json:"-"`
  94. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  95. Number string `gorm:"column:number" json:"number" form:"number"`
  96. }
  97. type DeviceZone struct {
  98. ID int64 `gorm:"column:id" json:"id"`
  99. OrgID int64 `gorm:"column:org_id" json:"-"`
  100. Name string `json:"name"`
  101. Type int `json:"type"`
  102. CreateTime int64 `gorm:"column:ctime" json:"-"`
  103. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  104. Status int64 `gorm:"column:status" json:"status" form:"status"`
  105. }
  106. func (DeviceZone) TableName() string {
  107. return "xt_device_zone"
  108. }
  109. type DeviceZonePb struct {
  110. ID int64 `gorm:"column:id" json:"id"`
  111. OrgID int64 `gorm:"column:org_id" json:"-"`
  112. Name string `json:"name"`
  113. Type int `json:"type"`
  114. TotalBed int `json:"total_bed"`
  115. SwBed int `json:"sw_bed"`
  116. XwBed int `json:"xw_bed"`
  117. WsBed int `json:"ws_bed"`
  118. CreateTime int64 `gorm:"column:ctime" json:"-"`
  119. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  120. Status int64 `gorm:"column:status" json:"status" form:"status"`
  121. DeviceNumber []*DeviceNumberPb `json:"device" gorm:"foreignkey:ZoneID;AssociationForeignKey:ID;"`
  122. }
  123. func (DeviceZonePb) TableName() string {
  124. return "xt_device_zone"
  125. }
  126. type DialysisSolutionPb struct {
  127. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  128. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  129. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  130. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  131. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  132. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  133. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  134. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  135. }
  136. func (DialysisSolutionPb) TableName() string {
  137. return "xt_dialysis_solution"
  138. }
  139. type DeviceNumberPb struct {
  140. ID int64 `gorm:"column:id" json:"id"`
  141. OrgID int64 `gorm:"column:org_id" json:"-"`
  142. Number string `gorm:"column:number" json:"number"`
  143. GroupID int64 `gorm:"column:group_id" json:"group_id"`
  144. ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
  145. Status int64 `gorm:"column:status" json:"status" form:"status"`
  146. CreateTime int64 `gorm:"column:ctime" json:"-"`
  147. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  148. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  149. Schedule []*BlodSchedulePb `json:"schedule" gorm:"foreignkey:BedId;AssociationForeignKey:ID;"`
  150. }
  151. func (DeviceNumberPb) TableName() string {
  152. return "xt_device_number"
  153. }
  154. type BlodSchedulePb struct {
  155. ID int64 `gorm:"column:id" json:"id" form:"id"`
  156. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  157. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  158. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  159. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  160. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  161. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  162. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  163. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  164. Status int64 `gorm:"column:status" json:"status" form:"status"`
  165. VmBloodPatients VmBloodPatients `json:"patient" gorm:"foreignkey:ID;AssociationForeignKey:PatientId;"`
  166. BloodDialysisOrder BloodPatientDialysisOrder `json:"order" gorm:"foreignkey:PatientId;AssociationForeignKey:PatientId;"`
  167. BloodDialysisPrescription BloodDialysisPrescriptionPb `json:"prescription" gorm:"foreignkey:RecordDate,PatientId;AssociationForeignKey:RecordDate,PatientId;"`
  168. DialysisSolution DialysisSolutionPb `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"vmsolution"`
  169. }
  170. func (BlodSchedulePb) TableName() string {
  171. return "xt_schedule"
  172. }
  173. type BloodDialysisPrescriptionPb struct {
  174. ID int64 `gorm:"column:id" json:"id" form:"id"`
  175. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  176. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  177. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  178. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  179. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  180. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  181. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  182. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  183. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  184. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  185. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  186. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  187. }
  188. func (BloodDialysisPrescriptionPb) TableName() string {
  189. return "xt_dialysis_prescription"
  190. }
  191. type DeviceGroups struct {
  192. ID int64 `gorm:"column:id" json:"id"`
  193. OrgID int64 `gorm:"column:org_id" json:"-"`
  194. Name string `json:"name"`
  195. Status int8 `json:"-"`
  196. CreateTime int64 `gorm:"column:ctime" json:"-"`
  197. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  198. Number string `gorm:"column:number" json:"number" form:"number"`
  199. }
  200. type DeviceGroup struct {
  201. ID int64 `gorm:"column:id" json:"id"`
  202. OrgID int64 `gorm:"column:org_id" json:"-"`
  203. Name string `json:"name"`
  204. Status int8 `json:"-"`
  205. CreateTime int64 `gorm:"column:ctime" json:"-"`
  206. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  207. }
  208. func (DeviceGroup) TableName() string {
  209. return "xt_device_group"
  210. }
  211. type DeviceNumber struct {
  212. ID int64 `gorm:"column:id" json:"id"`
  213. OrgID int64 `gorm:"column:org_id" json:"-"`
  214. Number string `gorm:"column:number" json:"number"`
  215. GroupID int64 `gorm:"column:group_id" json:"group_id"`
  216. ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
  217. Status int64 `gorm:"column:status" json:"status" form:"status"`
  218. CreateTime int64 `gorm:"column:ctime" json:"-"`
  219. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  220. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  221. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:ZoneID;"`
  222. }
  223. func (DeviceNumber) TableName() string {
  224. return "xt_device_number"
  225. }
  226. type MDeviceNumberForList struct {
  227. DeviceNumber
  228. Zone *DeviceZone `gorm:"ForeignKey:ZoneID" json:"zone"`
  229. }
  230. func (MDeviceNumberForList) TableName() string {
  231. return "xt_device_number"
  232. }
  233. type XtDeviceNumber struct {
  234. ID int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  235. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  236. Number string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  237. GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
  238. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  239. Status int64 `gorm:"column:status" json:"status" form:"status"`
  240. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  241. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  242. }
  243. func (XtDeviceNumber) TableName() string {
  244. return "xt_device_number"
  245. }
  246. type DeviceAddmachers struct {
  247. ID int64 `gorm:"column:id" json:"id" form:"id"`
  248. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  249. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  250. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  251. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  252. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  253. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  254. UnitType string `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  255. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  256. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  257. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  258. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  259. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  260. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  261. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  262. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  263. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  264. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  265. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  266. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  267. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  268. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  269. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  270. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  271. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  272. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  273. Status int64 `gorm:"column:status" json:"status" form:"status"`
  274. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  275. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  276. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  277. Name string `gorm:"column:name" json:"name" form:"name"`
  278. EquitmentName string `gorm:"column:equitment_name" json:"equitment_name" form:"equitment_name"`
  279. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  280. DeviceMode string `gorm:"column:device_mode" json:"device_mode" form:"device_mode"`
  281. Number string `gorm:"column:number" json:"number" form:"number"`
  282. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  283. }
  284. type DeviceAddmacher struct {
  285. ID int64 `gorm:"column:id" json:"id" form:"id"`
  286. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  287. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  288. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  289. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  290. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  291. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  292. UnitType int64 `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  293. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  294. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  295. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  296. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  297. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  298. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  299. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  300. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  301. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  302. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  303. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  304. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  305. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  306. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  307. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  308. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  309. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  310. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  311. Status int64 `gorm:"column:status" json:"status" form:"status"`
  312. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  313. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  314. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  315. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  316. }
  317. func (DeviceAddmacher) TableName() string {
  318. return "xt_device_addmacher"
  319. }
  320. type DeviceTreatmentmode struct {
  321. ID int64 `gorm:"column:id" json:"id" form:"id"`
  322. MachineId int64 `gorm:"column:machine_id" json:"machine_id" form:"machine_id"`
  323. Status int64 `gorm:"column:status" json:"status" form:"status"`
  324. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  325. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  326. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  327. TreateMode int64 `gorm:"column:treate_mode" json:"treate_mode" form:"treate_mode"`
  328. }
  329. func (DeviceTreatmentmode) TableName() string {
  330. return "xt_device_treatmentmode"
  331. }
  332. type XtDeviceMachine struct {
  333. ID int64 `gorm:"column:id" json:"id" form:"id"`
  334. SerialNumber int64 `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  335. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  336. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  337. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  338. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  339. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  340. UnitType string `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  341. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  342. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  343. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  344. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  345. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  346. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  347. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  348. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  349. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  350. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  351. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  352. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  353. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  354. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  355. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  356. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  357. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  358. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  359. Status int64 `gorm:"column:status" json:"status" form:"status"`
  360. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  361. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  362. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  363. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  364. }
  365. func (XtDeviceMachine) TableName() string {
  366. return "xt_device_machine"
  367. }
  368. type DeviceEquimentname struct {
  369. ID int64 `gorm:"column:id" json:"id" form:"id"`
  370. EquitmentName string `gorm:"column:equitment_name" json:"equitment_name" form:"equitment_name"`
  371. Status int64 `gorm:"column:status" json:"status" form:"status"`
  372. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  373. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  374. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  375. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  376. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  377. }
  378. func (DeviceEquimentname) TableName() string {
  379. return "xt_device_equimentname"
  380. }
  381. type DevicePlanss struct {
  382. ID int64 `gorm:"column:id" json:"id" form:"id"`
  383. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  384. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  385. Time int64 `gorm:"column:time" json:"time" form:"time"`
  386. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  387. Way int64 `gorm:"column:way" json:"way" form:"way"`
  388. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  389. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  390. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  391. Status int64 `gorm:"column:status" json:"status" form:"status"`
  392. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  393. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  394. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  395. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  396. EquitmentName string `gorm:"column:equitment_name" json:"equitment_name" form:"equitment_name"`
  397. }
  398. type DevicePlans struct {
  399. ID int64 `gorm:"column:id" json:"id" form:"id"`
  400. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  401. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  402. Time int64 `gorm:"column:time" json:"time" form:"time"`
  403. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  404. Way int64 `gorm:"column:way" json:"way" form:"way"`
  405. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  406. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  407. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  408. Status int64 `gorm:"column:status" json:"status" form:"status"`
  409. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  410. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  411. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  412. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  413. DeviceMode string `gorm:"column:device_mode" json:"device_mode" form:"device_mode"`
  414. }
  415. type DevicePlan struct {
  416. ID int64 `gorm:"column:id" json:"id" form:"id"`
  417. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  418. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  419. Time int64 `gorm:"column:time" json:"time" form:"time"`
  420. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  421. Way int64 `gorm:"column:way" json:"way" form:"way"`
  422. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  423. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  424. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  425. Status int64 `gorm:"column:status" json:"status" form:"status"`
  426. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  427. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  428. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  429. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  430. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  431. }
  432. func (DevicePlan) TableName() string {
  433. return "xt_device_plan"
  434. }
  435. type Schedules struct {
  436. ID int64 `gorm:"column:id" json:"id" form:"id"`
  437. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  438. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  439. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  440. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  441. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  442. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  443. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  444. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  445. Status int64 `gorm:"column:status" json:"status" form:"status"`
  446. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  447. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  448. Name string `gorm:"column:name" json:"name" form:"name"`
  449. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious"`
  450. }
  451. type XtSchedule struct {
  452. ID int64 `gorm:"column:id" json:"id" form:"id"`
  453. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  454. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  455. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  456. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  457. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  458. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  459. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  460. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  461. Status int64 `gorm:"column:status" json:"status" form:"status"`
  462. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  463. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  464. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  465. LastAfterWeight AssessmentAfterDislysis `gorm:"ForeignKey:PatientID;AssociationForeignKey:PatientID" json:"lastafterweight"`
  466. DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
  467. }
  468. func (XtSchedule) TableName() string {
  469. return "xt_schedule"
  470. }
  471. type DeviceInformationss struct {
  472. ID int64 `gorm:"column:id" json:"id" form:"id"`
  473. Date int64 `gorm:"column:date" json:"date" form:"date"`
  474. Class int64 `gorm:"column:class" json:"class" form:"class"`
  475. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  476. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  477. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  478. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  479. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  480. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  481. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  482. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  483. Hyperfiltratio string `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  484. WeightLoss string `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  485. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  486. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  487. Move int64 `gorm:"column:move" json:"move" form:"move"`
  488. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  489. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  490. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  491. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  492. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  493. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  494. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  495. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  496. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  497. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  498. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  499. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  500. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  501. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  502. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  503. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  504. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  505. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  506. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  507. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  508. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  509. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  510. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  511. Status int64 `gorm:"column:status" json:"status" form:"status"`
  512. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  513. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  514. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  515. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  516. Name string `gorm:"column:name" json:"name" form:"name"`
  517. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  518. }
  519. type DeviceInformations struct {
  520. ID int64 `gorm:"column:id" json:"id" form:"id"`
  521. Date int64 `gorm:"column:date" json:"date" form:"date"`
  522. Class int64 `gorm:"column:class" json:"class" form:"class"`
  523. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  524. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  525. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  526. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  527. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  528. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  529. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  530. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  531. Hyperfiltratio float64 `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  532. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  533. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  534. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  535. Move int64 `gorm:"column:move" json:"move" form:"move"`
  536. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  537. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  538. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  539. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  540. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  541. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  542. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  543. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  544. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  545. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  546. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  547. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  548. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  549. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  550. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  551. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  552. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  553. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  554. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  555. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  556. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  557. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  558. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  559. Status int64 `gorm:"column:status" json:"status" form:"status"`
  560. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  561. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  562. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  563. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  564. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  565. Name string `gorm:"column:name" json:"name" form:"name"`
  566. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  567. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  568. }
  569. type DeviceInformation struct {
  570. ID int64 `gorm:"column:id" json:"id" form:"id"`
  571. Date int64 `gorm:"column:date" json:"date" form:"date"`
  572. Class int64 `gorm:"column:class" json:"class" form:"class"`
  573. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  574. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  575. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  576. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  577. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  578. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  579. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  580. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  581. Hyperfiltratio float64 `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  582. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  583. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  584. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  585. Move int64 `gorm:"column:move" json:"move" form:"move"`
  586. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  587. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  588. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  589. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  590. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  591. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  592. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  593. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  594. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  595. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  596. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  597. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  598. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  599. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  600. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  601. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  602. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  603. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  604. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  605. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  606. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  607. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  608. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  609. Status int64 `gorm:"column:status" json:"status" form:"status"`
  610. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  611. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  612. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  613. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  614. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  615. Stime int64 `gorm:"column:stime" json:"stime" form:"stime"`
  616. }
  617. func (DeviceInformation) TableName() string {
  618. return "xt_device_information"
  619. }
  620. type DeviceCultures struct {
  621. ID int64 `gorm:"column:id" json:"id" form:"id"`
  622. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  623. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  624. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  625. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  626. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  627. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  628. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  629. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  630. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  631. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  632. Status int64 `gorm:"column:status" json:"status" form:"status"`
  633. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  634. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  635. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  636. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  637. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  638. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  639. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  640. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  641. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  642. }
  643. //细菌培养检测
  644. type DeviceCulture struct {
  645. ID int64 `gorm:"column:id" json:"id" form:"id"`
  646. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  647. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  648. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  649. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  650. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  651. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  652. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  653. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  654. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  655. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  656. Status int64 `gorm:"column:status" json:"status" form:"status"`
  657. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  658. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  659. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  660. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  661. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  662. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  663. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  664. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  665. }
  666. func (DeviceCulture) TableName() string {
  667. return "xt_device_culture"
  668. }
  669. type DeviceDialysates struct {
  670. ID int64 `gorm:"column:id" json:"id" form:"id"`
  671. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  672. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  673. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  674. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  675. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  676. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  677. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  678. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  679. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  680. Status int64 `gorm:"column:status" json:"status" form:"status"`
  681. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  682. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  683. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  684. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  685. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  686. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  687. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  688. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  689. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  690. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  691. }
  692. //内霉素检测
  693. type DeviceDialysate struct {
  694. ID int64 `gorm:"column:id" json:"id" form:"id"`
  695. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  696. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  697. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  698. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  699. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  700. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  701. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  702. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  703. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  704. Status int64 `gorm:"column:status" json:"status" form:"status"`
  705. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  706. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  707. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  708. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  709. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  710. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  711. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  712. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  713. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  714. }
  715. func (DeviceDialysate) TableName() string {
  716. return "xt_device_dialysate"
  717. }
  718. type DeviceIons struct {
  719. ID int64 `gorm:"column:id" json:"id" form:"id"`
  720. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  721. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  722. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  723. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  724. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  725. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  726. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  727. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  728. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  729. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  730. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  731. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  732. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  733. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  734. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  735. Status int64 `gorm:"column:status" json:"status" form:"status"`
  736. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  737. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  738. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  739. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  740. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  741. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  742. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  743. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  744. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  745. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  746. }
  747. //透析液离子浓度检测
  748. type DeviceIon struct {
  749. ID int64 `gorm:"column:id" json:"id" form:"id"`
  750. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  751. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  752. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  753. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  754. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  755. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  756. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  757. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  758. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  759. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  760. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  761. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  762. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  763. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  764. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  765. Status int64 `gorm:"column:status" json:"status" form:"status"`
  766. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  767. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  768. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  769. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  770. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  771. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  772. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  773. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  774. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  775. }
  776. func (DeviceIon) TableName() string {
  777. return "xt_device_ion"
  778. }
  779. type DeviceRepairs struct {
  780. ID int64 `gorm:"column:id" json:"id" form:"id"`
  781. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  782. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  783. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  784. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  785. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  786. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  787. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  788. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  789. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  790. Images string `gorm:"column:images" json:"images" form:"images"`
  791. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  792. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  793. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  794. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  795. Status int64 `gorm:"column:status" json:"status" form:"status"`
  796. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  797. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  798. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  799. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  800. Number string `gorm:"column:number" json:"bed_number" form:"number"`
  801. }
  802. type DeviceRepair struct {
  803. ID int64 `gorm:"column:id" json:"id" form:"id"`
  804. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  805. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  806. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  807. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  808. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  809. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  810. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  811. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  812. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  813. Images string `gorm:"column:images" json:"images" form:"images"`
  814. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  815. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  816. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  817. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  818. Status int64 `gorm:"column:status" json:"status" form:"status"`
  819. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  820. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  821. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  822. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  823. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  824. }
  825. func (DeviceRepair) TableName() string {
  826. return "xt_device_repair"
  827. }
  828. type XtAssessmentAfterDislysis struct {
  829. ID int64 `gorm:"column:id" json:"id" form:"id"`
  830. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  831. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  832. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  833. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  834. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  835. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency" form:"pulse_frequency"`
  836. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate" form:"breathing_rate"`
  837. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  838. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  839. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type" form:"blood_pressure_type"`
  840. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration" form:"actual_ultrafiltration"`
  841. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement" form:"actual_displacement"`
  842. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour" form:"actual_treatment_hour"`
  843. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute" form:"actual_treatment_minute"`
  844. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way" form:"weighing_way"`
  845. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after" form:"weight_after"`
  846. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight" form:"additional_weight"`
  847. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  848. Cruor string `gorm:"column:cruor" json:"cruor" form:"cruor"`
  849. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis" form:"symptom_after_dialysis"`
  850. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula" form:"internal_fistula"`
  851. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  852. Complication string `gorm:"column:complication" json:"complication" form:"complication"`
  853. Evaluator int64 `gorm:"column:evaluator" json:"evaluator" form:"evaluator"`
  854. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  855. DialysisIntakes float64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes" form:"dialysis_intakes"`
  856. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed" form:"dialysis_intakes_feed"`
  857. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion" form:"dialysis_intakes_transfusion"`
  858. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion" form:"dialysis_intakes_blood_transfusion"`
  859. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe" form:"dialysis_intakes_washpipe"`
  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. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  864. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  865. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  866. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  867. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood" form:"puncture_point_oozing_blood"`
  868. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma" form:"puncture_point_haematoma"`
  869. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac" form:"internal_fistula_tremor_ac"`
  870. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose" form:"patient_gose"`
  871. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department" form:"inpatient_department"`
  872. ObservationContent string `gorm:"column:observation_content" json:"observation_content" form:"observation_content"`
  873. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other" form:"observation_content_other"`
  874. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  875. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process" form:"dialysis_process"`
  876. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute" form:"in_advance_minute"`
  877. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason" form:"in_advance_reason"`
  878. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute" form:"hemostasis_minute"`
  879. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera" form:"hemostasis_opera"`
  880. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise" form:"tremor_noise"`
  881. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome" form:"disequilibrium_syndrome"`
  882. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option" form:"disequilibrium_syndrome_option"`
  883. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube" form:"arterial_tube"`
  884. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube" form:"intravenous_tube"`
  885. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  886. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other" form:"in_advance_reason_other"`
  887. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor" form:"assessment_doctor"`
  888. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time" form:"assessment_time"`
  889. IsEat int64 `gorm:"column:is_eat" json:"is_eat" form:"is_eat"`
  890. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit" form:"dialysis_intakes_unit"`
  891. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  892. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  893. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  894. SealingFluidDispose string `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  895. }
  896. func (XtAssessmentAfterDislysis) TableName() string {
  897. return "xt_assessment_after_dislysis"
  898. }
  899. type DeviceRemander struct {
  900. ID int64 `gorm:"column:id" json:"id" form:"id"`
  901. IsRun int64 `gorm:"column:is_run" json:"is_run" form:"is_run"`
  902. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  903. Status int64 `gorm:"column:status" json:"status" form:"status"`
  904. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  905. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  906. }
  907. func (DeviceRemander) TableName() string {
  908. return "xt_device_remander"
  909. }
  910. type DeviceMode struct {
  911. ID int64 `gorm:"column:id" json:"id" form:"id"`
  912. DeviceMode string `gorm:"column:device_mode" json:"device_mode" form:"device_mode"`
  913. Status int64 `gorm:"column:status" json:"status" form:"status"`
  914. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  915. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  916. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  917. }
  918. func (DeviceMode) TableName() string {
  919. return "xt_device_mode"
  920. }
  921. type VmDeviceInformation struct {
  922. Total int64
  923. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  924. }
  925. func (VmDeviceInformation) TableName() string {
  926. return "xt_device_information"
  927. }
  928. type VmSchedule struct {
  929. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  930. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  931. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  932. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  933. Partition int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  934. Name string `gorm:"column:name" json:"name" form:"name"`
  935. Number string `gorm:"column:number" json:"number" form:"number"`
  936. ZoneName string `gorm:"column:name" json:"zon_name" form:"name"`
  937. }
  938. type XtDeviceOxygenates struct {
  939. ID int64 `gorm:"column:id" json:"id" form:"id"`
  940. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  941. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  942. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  943. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  944. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  945. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  946. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  947. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  948. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  949. Status int64 `gorm:"column:status" json:"status" form:"status"`
  950. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  951. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  952. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  953. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  954. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  955. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  956. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  957. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  958. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  959. }
  960. func (XtDeviceOxygenates) TableName() string {
  961. return "xt_device_oxygenates"
  962. }
  963. type XtDeviceHadwater struct {
  964. ID int64 `gorm:"column:id" json:"id" form:"id"`
  965. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  966. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  967. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  968. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  969. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  970. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  971. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  972. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  973. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  974. Status int64 `gorm:"column:status" json:"status" form:"status"`
  975. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  976. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  977. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  978. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  979. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  980. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  981. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  982. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  983. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  984. }
  985. func (XtDeviceHadwater) TableName() string {
  986. return "xt_device_hadwater"
  987. }
  988. type XtDeviceWater struct {
  989. ID int64 `gorm:"column:id" json:"id" form:"id"`
  990. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  991. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  992. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  993. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  994. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  995. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  996. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  997. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  998. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  999. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1000. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1001. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1002. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1003. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1004. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1005. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1006. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1007. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1008. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1009. }
  1010. func (XtDeviceWater) TableName() string {
  1011. return "xt_device_water"
  1012. }
  1013. type XtDevicePh struct {
  1014. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1015. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1016. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1017. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1018. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1019. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1020. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1021. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1022. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1023. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1024. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1025. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1026. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1027. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1028. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1029. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1030. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1031. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1032. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1033. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1034. }
  1035. func (XtDevicePh) TableName() string {
  1036. return "xt_device_ph"
  1037. }
  1038. type XtRemindPrintSetting struct {
  1039. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1040. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  1041. Week int64 `gorm:"column:week" json:"week" form:"week"`
  1042. Name int64 `gorm:"column:name" json:"name" form:"name"`
  1043. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  1044. Classes int64 `gorm:"column:classes" json:"classes" form:"classes"`
  1045. Number int64 `gorm:"column:number" json:"number" form:"number"`
  1046. Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
  1047. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers" form:"dialyzers"`
  1048. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  1049. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  1050. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  1051. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1052. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1053. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1054. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1055. AnticoagulantZongliang int64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  1056. }
  1057. func (XtRemindPrintSetting) TableName() string {
  1058. return "xt_remind_print_setting"
  1059. }
  1060. type VmXtSchedule struct {
  1061. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1062. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1063. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1064. Count int64
  1065. }
  1066. type PatientDeviceNumber struct {
  1067. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1068. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1069. Number string `gorm:"column:number" json:"number" form:"number"`
  1070. GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
  1071. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1072. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1073. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1074. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1075. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1076. DeviceZone DeviceZone `json:"zone" gorm:"foreignkey:ID;AssociationForeignKey:ZoneId;"`
  1077. Schedule []*BlodSchedule `json:"schedule" gorm:"foreignkey:BedId;AssociationForeignKey:ID;"`
  1078. }
  1079. func (PatientDeviceNumber) TableName() string {
  1080. return "xt_device_number"
  1081. }
  1082. type PatientDialysisOrder struct {
  1083. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1084. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  1085. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1086. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1087. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1088. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  1089. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1090. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1091. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  1092. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  1093. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1094. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1095. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1096. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  1097. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1098. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1099. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  1100. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  1101. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  1102. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1103. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  1104. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  1105. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  1106. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  1107. NewFistulaNurse int64 `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  1108. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1109. }
  1110. func (PatientDialysisOrder) TableName() string {
  1111. return "xt_dialysis_order"
  1112. }
  1113. type ScheduleDeviceNumber struct {
  1114. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1115. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1116. Number string `gorm:"column:number" json:"number" form:"number"`
  1117. GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
  1118. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1119. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1120. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1121. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1122. }
  1123. func (ScheduleDeviceNumber) TableName() string {
  1124. return "xt_device_number"
  1125. }
  1126. type SgjDeviceNumber struct {
  1127. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1128. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1129. Number string `gorm:"column:number" json:"number" form:"number"`
  1130. GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
  1131. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1132. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1133. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1134. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1135. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1136. Zone *DeviceZone `gorm:"ForeignKey:ZoneId" json:"zone"`
  1137. }
  1138. func (SgjDeviceNumber) TableName() string {
  1139. return "xt_device_number"
  1140. }
  1141. type XtScheduleSix struct {
  1142. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1143. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1144. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1145. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1146. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1147. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1148. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1149. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1150. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1151. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1152. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1153. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1154. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  1155. }
  1156. func (XtScheduleSix) TableName() string {
  1157. return "xt_schedule"
  1158. }
  1159. type XtScheduleSeven struct {
  1160. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1161. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1162. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1163. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1164. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1165. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1166. Count int64
  1167. }
  1168. func (XtScheduleSeven) TableName() string {
  1169. return "xt_schedule"
  1170. }