device_models.go 61KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  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. Status int8 `json:"-"`
  103. CreateTime int64 `gorm:"column:ctime" json:"-"`
  104. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  105. }
  106. func (DeviceZone) TableName() string {
  107. return "xt_device_zone"
  108. }
  109. type DeviceGroups struct {
  110. ID int64 `gorm:"column:id" json:"id"`
  111. OrgID int64 `gorm:"column:org_id" json:"-"`
  112. Name string `json:"name"`
  113. Status int8 `json:"-"`
  114. CreateTime int64 `gorm:"column:ctime" json:"-"`
  115. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  116. Number string `gorm:"column:number" json:"number" form:"number"`
  117. }
  118. type DeviceGroup struct {
  119. ID int64 `gorm:"column:id" json:"id"`
  120. OrgID int64 `gorm:"column:org_id" json:"-"`
  121. Name string `json:"name"`
  122. Status int8 `json:"-"`
  123. CreateTime int64 `gorm:"column:ctime" json:"-"`
  124. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  125. }
  126. func (DeviceGroup) TableName() string {
  127. return "xt_device_group"
  128. }
  129. type DeviceNumber struct {
  130. ID int64 `gorm:"column:id" json:"id"`
  131. OrgID int64 `gorm:"column:org_id" json:"-"`
  132. Number string `gorm:"column:number" json:"number"`
  133. GroupID int64 `gorm:"column:group_id" json:"group_id"`
  134. ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
  135. Status int8 `json:"-"`
  136. CreateTime int64 `gorm:"column:ctime" json:"-"`
  137. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  138. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  139. }
  140. func (DeviceNumber) TableName() string {
  141. return "xt_device_number"
  142. }
  143. type XtDeviceNumber struct {
  144. ID int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  145. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  146. Number string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  147. GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
  148. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  149. Status int64 `gorm:"column:status" json:"status" form:"status"`
  150. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  151. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  152. }
  153. func (XtDeviceNumber) TableName() string {
  154. return "xt_device_number"
  155. }
  156. type DeviceAddmachers struct {
  157. ID int64 `gorm:"column:id" json:"id" form:"id"`
  158. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  159. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  160. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  161. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  162. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  163. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  164. UnitType string `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  165. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  166. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  167. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  168. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  169. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  170. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  171. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  172. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  173. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  174. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  175. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  176. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  177. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  178. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  179. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  180. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  181. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  182. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  183. Status int64 `gorm:"column:status" json:"status" form:"status"`
  184. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  185. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  186. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  187. Name string `gorm:"column:name" json:"name" form:"name"`
  188. EquitmentName string `gorm:"column:equitment_name" json:"equitment_name" form:"equitment_name"`
  189. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  190. DeviceMode string `gorm:"column:device_mode" json:"device_mode" form:"device_mode"`
  191. Number string `gorm:"column:number" json:"number" form:"number"`
  192. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  193. }
  194. type DeviceAddmacher struct {
  195. ID int64 `gorm:"column:id" json:"id" form:"id"`
  196. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  197. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  198. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  199. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  200. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  201. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  202. UnitType int64 `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  203. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  204. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  205. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  206. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  207. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  208. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  209. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  210. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  211. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  212. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  213. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  214. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  215. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  216. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  217. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  218. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  219. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  220. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  221. Status int64 `gorm:"column:status" json:"status" form:"status"`
  222. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  223. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  224. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  225. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  226. }
  227. func (DeviceAddmacher) TableName() string {
  228. return "xt_device_addmacher"
  229. }
  230. type DeviceTreatmentmode struct {
  231. ID int64 `gorm:"column:id" json:"id" form:"id"`
  232. MachineId int64 `gorm:"column:machine_id" json:"machine_id" form:"machine_id"`
  233. Status int64 `gorm:"column:status" json:"status" form:"status"`
  234. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  235. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  236. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  237. TreateMode int64 `gorm:"column:treate_mode" json:"treate_mode" form:"treate_mode"`
  238. }
  239. func (DeviceTreatmentmode) TableName() string {
  240. return "xt_device_treatmentmode"
  241. }
  242. type XtDeviceMachine struct {
  243. ID int64 `gorm:"column:id" json:"id" form:"id"`
  244. SerialNumber int64 `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  245. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  246. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  247. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  248. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  249. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  250. UnitType string `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  251. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  252. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  253. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  254. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  255. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  256. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  257. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  258. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  259. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  260. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  261. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  262. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  263. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  264. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  265. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  266. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  267. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  268. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  269. Status int64 `gorm:"column:status" json:"status" form:"status"`
  270. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  271. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  272. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  273. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  274. }
  275. func (XtDeviceMachine) TableName() string {
  276. return "xt_device_machine"
  277. }
  278. type DeviceEquimentname struct {
  279. ID int64 `gorm:"column:id" json:"id" form:"id"`
  280. EquitmentName string `gorm:"column:equitment_name" json:"equitment_name" form:"equitment_name"`
  281. Status int64 `gorm:"column:status" json:"status" form:"status"`
  282. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  283. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  284. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  285. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  286. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  287. }
  288. func (DeviceEquimentname) TableName() string {
  289. return "xt_device_equimentname"
  290. }
  291. type DevicePlanss struct {
  292. ID int64 `gorm:"column:id" json:"id" form:"id"`
  293. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  294. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  295. Time int64 `gorm:"column:time" json:"time" form:"time"`
  296. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  297. Way int64 `gorm:"column:way" json:"way" form:"way"`
  298. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  299. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  300. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  301. Status int64 `gorm:"column:status" json:"status" form:"status"`
  302. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  303. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  304. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  305. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  306. EquitmentName string `gorm:"column:equitment_name" json:"equitment_name" form:"equitment_name"`
  307. }
  308. type DevicePlans struct {
  309. ID int64 `gorm:"column:id" json:"id" form:"id"`
  310. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  311. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  312. Time int64 `gorm:"column:time" json:"time" form:"time"`
  313. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  314. Way int64 `gorm:"column:way" json:"way" form:"way"`
  315. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  316. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  317. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  318. Status int64 `gorm:"column:status" json:"status" form:"status"`
  319. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  320. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  321. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  322. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  323. DeviceMode string `gorm:"column:device_mode" json:"device_mode" form:"device_mode"`
  324. }
  325. type DevicePlan struct {
  326. ID int64 `gorm:"column:id" json:"id" form:"id"`
  327. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  328. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  329. Time int64 `gorm:"column:time" json:"time" form:"time"`
  330. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  331. Way int64 `gorm:"column:way" json:"way" form:"way"`
  332. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  333. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  334. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  335. Status int64 `gorm:"column:status" json:"status" form:"status"`
  336. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  337. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  338. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  339. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  340. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  341. }
  342. func (DevicePlan) TableName() string {
  343. return "xt_device_plan"
  344. }
  345. type Schedules struct {
  346. ID int64 `gorm:"column:id" json:"id" form:"id"`
  347. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  348. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  349. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  350. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  351. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  352. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  353. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  354. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  355. Status int64 `gorm:"column:status" json:"status" form:"status"`
  356. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  357. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  358. Name string `gorm:"column:name" json:"name" form:"name"`
  359. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious"`
  360. }
  361. type XtSchedule struct {
  362. ID int64 `gorm:"column:id" json:"id" form:"id"`
  363. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  364. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  365. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  366. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  367. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  368. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  369. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  370. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  371. Status int64 `gorm:"column:status" json:"status" form:"status"`
  372. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  373. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  374. }
  375. func (XtSchedule) TableName() string {
  376. return "xt_schedule"
  377. }
  378. type DeviceInformationss struct {
  379. ID int64 `gorm:"column:id" json:"id" form:"id"`
  380. Date int64 `gorm:"column:date" json:"date" form:"date"`
  381. Class int64 `gorm:"column:class" json:"class" form:"class"`
  382. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  383. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  384. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  385. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  386. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  387. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  388. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  389. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  390. Hyperfiltratio string `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  391. WeightLoss string `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  392. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  393. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  394. Move int64 `gorm:"column:move" json:"move" form:"move"`
  395. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  396. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  397. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  398. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  399. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  400. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  401. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  402. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  403. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  404. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  405. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  406. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  407. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  408. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  409. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  410. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  411. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  412. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  413. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  414. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  415. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  416. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  417. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  418. Status int64 `gorm:"column:status" json:"status" form:"status"`
  419. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  420. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  421. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  422. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  423. Name string `gorm:"column:name" json:"name" form:"name"`
  424. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  425. }
  426. type DeviceInformations struct {
  427. ID int64 `gorm:"column:id" json:"id" form:"id"`
  428. Date int64 `gorm:"column:date" json:"date" form:"date"`
  429. Class int64 `gorm:"column:class" json:"class" form:"class"`
  430. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  431. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  432. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  433. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  434. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  435. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  436. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  437. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  438. Hyperfiltratio float64 `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  439. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  440. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  441. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  442. Move int64 `gorm:"column:move" json:"move" form:"move"`
  443. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  444. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  445. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  446. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  447. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  448. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  449. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  450. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  451. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  452. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  453. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  454. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  455. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  456. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  457. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  458. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  459. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  460. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  461. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  462. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  463. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  464. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  465. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  466. Status int64 `gorm:"column:status" json:"status" form:"status"`
  467. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  468. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  469. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  470. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  471. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  472. Name string `gorm:"column:name" json:"name" form:"name"`
  473. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  474. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  475. }
  476. type DeviceInformation struct {
  477. ID int64 `gorm:"column:id" json:"id" form:"id"`
  478. Date int64 `gorm:"column:date" json:"date" form:"date"`
  479. Class int64 `gorm:"column:class" json:"class" form:"class"`
  480. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  481. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  482. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  483. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  484. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  485. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  486. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  487. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  488. Hyperfiltratio float64 `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  489. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  490. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  491. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  492. Move int64 `gorm:"column:move" json:"move" form:"move"`
  493. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  494. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  495. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  496. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  497. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  498. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  499. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  500. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  501. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  502. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  503. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  504. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  505. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  506. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  507. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  508. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  509. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  510. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  511. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  512. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  513. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  514. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  515. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  516. Status int64 `gorm:"column:status" json:"status" form:"status"`
  517. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  518. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  519. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  520. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  521. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  522. Stime int64 `gorm:"column:stime" json:"stime" form:"stime"`
  523. }
  524. func (DeviceInformation) TableName() string {
  525. return "xt_device_information"
  526. }
  527. type DeviceCultures struct {
  528. ID int64 `gorm:"column:id" json:"id" form:"id"`
  529. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  530. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  531. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  532. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  533. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  534. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  535. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  536. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  537. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  538. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  539. Status int64 `gorm:"column:status" json:"status" form:"status"`
  540. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  541. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  542. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  543. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  544. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  545. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  546. }
  547. //细菌培养检测
  548. type DeviceCulture struct {
  549. ID int64 `gorm:"column:id" json:"id" form:"id"`
  550. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  551. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  552. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  553. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  554. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  555. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  556. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  557. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  558. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  559. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  560. Status int64 `gorm:"column:status" json:"status" form:"status"`
  561. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  562. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  563. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  564. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  565. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  566. }
  567. func (DeviceCulture) TableName() string {
  568. return "xt_device_culture"
  569. }
  570. type DeviceDialysates struct {
  571. ID int64 `gorm:"column:id" json:"id" form:"id"`
  572. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  573. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  574. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  575. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  576. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  577. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  578. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  579. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  580. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  581. Status int64 `gorm:"column:status" json:"status" form:"status"`
  582. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  583. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  584. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  585. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  586. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  587. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  588. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  589. }
  590. //内霉素检测
  591. type DeviceDialysate struct {
  592. ID int64 `gorm:"column:id" json:"id" form:"id"`
  593. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  594. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  595. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  596. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  597. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  598. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  599. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  600. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  601. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  602. Status int64 `gorm:"column:status" json:"status" form:"status"`
  603. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  604. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  605. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  606. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  607. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  608. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  609. }
  610. func (DeviceDialysate) TableName() string {
  611. return "xt_device_dialysate"
  612. }
  613. type DeviceIons struct {
  614. ID int64 `gorm:"column:id" json:"id" form:"id"`
  615. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  616. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  617. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  618. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  619. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  620. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  621. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  622. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  623. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  624. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  625. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  626. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  627. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  628. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  629. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  630. Status int64 `gorm:"column:status" json:"status" form:"status"`
  631. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  632. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  633. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  634. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  635. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  636. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  637. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  638. }
  639. //透析液离子浓度检测
  640. type DeviceIon struct {
  641. ID int64 `gorm:"column:id" json:"id" form:"id"`
  642. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  643. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  644. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  645. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  646. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  647. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  648. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  649. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  650. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  651. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  652. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  653. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  654. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  655. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  656. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  657. Status int64 `gorm:"column:status" json:"status" form:"status"`
  658. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  659. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  660. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  661. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  662. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  663. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  664. }
  665. func (DeviceIon) TableName() string {
  666. return "xt_device_ion"
  667. }
  668. type DeviceRepairs struct {
  669. ID int64 `gorm:"column:id" json:"id" form:"id"`
  670. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  671. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  672. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  673. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  674. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  675. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  676. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  677. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  678. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  679. Images string `gorm:"column:images" json:"images" form:"images"`
  680. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  681. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  682. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  683. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  684. Status int64 `gorm:"column:status" json:"status" form:"status"`
  685. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  686. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  687. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  688. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  689. Number string `gorm:"column:number" json:"bed_number" form:"number"`
  690. }
  691. type DeviceRepair struct {
  692. ID int64 `gorm:"column:id" json:"id" form:"id"`
  693. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  694. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  695. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  696. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  697. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  698. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  699. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  700. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  701. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  702. Images string `gorm:"column:images" json:"images" form:"images"`
  703. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  704. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  705. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  706. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  707. Status int64 `gorm:"column:status" json:"status" form:"status"`
  708. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  709. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  710. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  711. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  712. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  713. }
  714. func (DeviceRepair) TableName() string {
  715. return "xt_device_repair"
  716. }
  717. type XtAssessmentAfterDislysis struct {
  718. ID int64 `gorm:"column:id" json:"id" form:"id"`
  719. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  720. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  721. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  722. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  723. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  724. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency" form:"pulse_frequency"`
  725. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate" form:"breathing_rate"`
  726. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  727. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  728. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type" form:"blood_pressure_type"`
  729. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration" form:"actual_ultrafiltration"`
  730. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement" form:"actual_displacement"`
  731. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour" form:"actual_treatment_hour"`
  732. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute" form:"actual_treatment_minute"`
  733. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way" form:"weighing_way"`
  734. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after" form:"weight_after"`
  735. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight" form:"additional_weight"`
  736. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  737. Cruor string `gorm:"column:cruor" json:"cruor" form:"cruor"`
  738. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis" form:"symptom_after_dialysis"`
  739. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula" form:"internal_fistula"`
  740. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  741. Complication string `gorm:"column:complication" json:"complication" form:"complication"`
  742. Evaluator int64 `gorm:"column:evaluator" json:"evaluator" form:"evaluator"`
  743. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  744. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes" form:"dialysis_intakes"`
  745. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed" form:"dialysis_intakes_feed"`
  746. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion" form:"dialysis_intakes_transfusion"`
  747. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion" form:"dialysis_intakes_blood_transfusion"`
  748. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe" form:"dialysis_intakes_washpipe"`
  749. Status int64 `gorm:"column:status" json:"status" form:"status"`
  750. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  751. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  752. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  753. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  754. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  755. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  756. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood" form:"puncture_point_oozing_blood"`
  757. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma" form:"puncture_point_haematoma"`
  758. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac" form:"internal_fistula_tremor_ac"`
  759. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose" form:"patient_gose"`
  760. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department" form:"inpatient_department"`
  761. ObservationContent string `gorm:"column:observation_content" json:"observation_content" form:"observation_content"`
  762. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other" form:"observation_content_other"`
  763. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  764. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process" form:"dialysis_process"`
  765. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute" form:"in_advance_minute"`
  766. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason" form:"in_advance_reason"`
  767. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute" form:"hemostasis_minute"`
  768. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera" form:"hemostasis_opera"`
  769. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise" form:"tremor_noise"`
  770. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome" form:"disequilibrium_syndrome"`
  771. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option" form:"disequilibrium_syndrome_option"`
  772. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube" form:"arterial_tube"`
  773. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube" form:"intravenous_tube"`
  774. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  775. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other" form:"in_advance_reason_other"`
  776. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor" form:"assessment_doctor"`
  777. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time" form:"assessment_time"`
  778. IsEat int64 `gorm:"column:is_eat" json:"is_eat" form:"is_eat"`
  779. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit" form:"dialysis_intakes_unit"`
  780. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  781. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  782. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  783. }
  784. func (XtAssessmentAfterDislysis) TableName() string {
  785. return "xt_assessment_after_dislysis"
  786. }
  787. type DeviceRemander struct {
  788. ID int64 `gorm:"column:id" json:"id" form:"id"`
  789. IsRun int64 `gorm:"column:is_run" json:"is_run" form:"is_run"`
  790. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  791. Status int64 `gorm:"column:status" json:"status" form:"status"`
  792. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  793. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  794. }
  795. func (DeviceRemander) TableName() string {
  796. return "xt_device_remander"
  797. }
  798. type DeviceMode struct {
  799. ID int64 `gorm:"column:id" json:"id" form:"id"`
  800. DeviceMode string `gorm:"column:device_mode" json:"device_mode" form:"device_mode"`
  801. Status int64 `gorm:"column:status" json:"status" form:"status"`
  802. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  803. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  804. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  805. }
  806. func (DeviceMode) TableName() string {
  807. return "xt_device_mode"
  808. }
  809. type VmDeviceInformation struct {
  810. Total int64
  811. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  812. }
  813. func (VmDeviceInformation) TableName() string {
  814. return "xt_device_information"
  815. }