device_models.go 60KB

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