device_models.go 73KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  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. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  547. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  548. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  549. }
  550. //细菌培养检测
  551. type DeviceCulture struct {
  552. ID int64 `gorm:"column:id" json:"id" form:"id"`
  553. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  554. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  555. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  556. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  557. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  558. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  559. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  560. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  561. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  562. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  563. Status int64 `gorm:"column:status" json:"status" form:"status"`
  564. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  565. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  566. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  567. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  568. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  569. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  570. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  571. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  572. }
  573. func (DeviceCulture) TableName() string {
  574. return "xt_device_culture"
  575. }
  576. type DeviceDialysates struct {
  577. ID int64 `gorm:"column:id" json:"id" form:"id"`
  578. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  579. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  580. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  581. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  582. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  583. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  584. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  585. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  586. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  587. Status int64 `gorm:"column:status" json:"status" form:"status"`
  588. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  589. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  590. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  591. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  592. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  593. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  594. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  595. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  596. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  597. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  598. }
  599. //内霉素检测
  600. type DeviceDialysate struct {
  601. ID int64 `gorm:"column:id" json:"id" form:"id"`
  602. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  603. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  604. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  605. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  606. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  607. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  608. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  609. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  610. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  611. Status int64 `gorm:"column:status" json:"status" form:"status"`
  612. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  613. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  614. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  615. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  616. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  617. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  618. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  619. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  620. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  621. }
  622. func (DeviceDialysate) TableName() string {
  623. return "xt_device_dialysate"
  624. }
  625. type DeviceIons struct {
  626. ID int64 `gorm:"column:id" json:"id" form:"id"`
  627. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  628. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  629. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  630. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  631. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  632. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  633. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  634. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  635. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  636. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  637. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  638. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  639. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  640. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  641. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  642. Status int64 `gorm:"column:status" json:"status" form:"status"`
  643. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  644. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  645. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  646. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  647. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  648. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  649. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  650. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  651. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  652. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  653. }
  654. //透析液离子浓度检测
  655. type DeviceIon struct {
  656. ID int64 `gorm:"column:id" json:"id" form:"id"`
  657. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  658. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  659. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  660. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  661. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  662. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  663. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  664. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  665. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  666. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  667. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  668. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  669. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  670. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  671. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  672. Status int64 `gorm:"column:status" json:"status" form:"status"`
  673. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  674. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  675. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  676. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  677. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  678. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  679. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  680. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  681. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  682. }
  683. func (DeviceIon) TableName() string {
  684. return "xt_device_ion"
  685. }
  686. type DeviceRepairs struct {
  687. ID int64 `gorm:"column:id" json:"id" form:"id"`
  688. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  689. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  690. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  691. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  692. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  693. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  694. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  695. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  696. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  697. Images string `gorm:"column:images" json:"images" form:"images"`
  698. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  699. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  700. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  701. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  702. Status int64 `gorm:"column:status" json:"status" form:"status"`
  703. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  704. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  705. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  706. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  707. Number string `gorm:"column:number" json:"bed_number" form:"number"`
  708. }
  709. type DeviceRepair struct {
  710. ID int64 `gorm:"column:id" json:"id" form:"id"`
  711. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  712. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  713. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  714. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  715. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  716. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  717. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  718. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  719. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  720. Images string `gorm:"column:images" json:"images" form:"images"`
  721. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  722. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  723. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  724. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  725. Status int64 `gorm:"column:status" json:"status" form:"status"`
  726. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  727. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  728. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  729. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  730. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  731. }
  732. func (DeviceRepair) TableName() string {
  733. return "xt_device_repair"
  734. }
  735. type XtAssessmentAfterDislysis struct {
  736. ID int64 `gorm:"column:id" json:"id" form:"id"`
  737. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  738. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  739. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  740. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  741. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  742. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency" form:"pulse_frequency"`
  743. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate" form:"breathing_rate"`
  744. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  745. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  746. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type" form:"blood_pressure_type"`
  747. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration" form:"actual_ultrafiltration"`
  748. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement" form:"actual_displacement"`
  749. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour" form:"actual_treatment_hour"`
  750. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute" form:"actual_treatment_minute"`
  751. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way" form:"weighing_way"`
  752. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after" form:"weight_after"`
  753. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight" form:"additional_weight"`
  754. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  755. Cruor string `gorm:"column:cruor" json:"cruor" form:"cruor"`
  756. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis" form:"symptom_after_dialysis"`
  757. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula" form:"internal_fistula"`
  758. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  759. Complication string `gorm:"column:complication" json:"complication" form:"complication"`
  760. Evaluator int64 `gorm:"column:evaluator" json:"evaluator" form:"evaluator"`
  761. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  762. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes" form:"dialysis_intakes"`
  763. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed" form:"dialysis_intakes_feed"`
  764. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion" form:"dialysis_intakes_transfusion"`
  765. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion" form:"dialysis_intakes_blood_transfusion"`
  766. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe" form:"dialysis_intakes_washpipe"`
  767. Status int64 `gorm:"column:status" json:"status" form:"status"`
  768. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  769. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  770. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  771. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  772. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  773. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  774. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood" form:"puncture_point_oozing_blood"`
  775. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma" form:"puncture_point_haematoma"`
  776. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac" form:"internal_fistula_tremor_ac"`
  777. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose" form:"patient_gose"`
  778. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department" form:"inpatient_department"`
  779. ObservationContent string `gorm:"column:observation_content" json:"observation_content" form:"observation_content"`
  780. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other" form:"observation_content_other"`
  781. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  782. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process" form:"dialysis_process"`
  783. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute" form:"in_advance_minute"`
  784. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason" form:"in_advance_reason"`
  785. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute" form:"hemostasis_minute"`
  786. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera" form:"hemostasis_opera"`
  787. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise" form:"tremor_noise"`
  788. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome" form:"disequilibrium_syndrome"`
  789. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option" form:"disequilibrium_syndrome_option"`
  790. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube" form:"arterial_tube"`
  791. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube" form:"intravenous_tube"`
  792. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  793. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other" form:"in_advance_reason_other"`
  794. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor" form:"assessment_doctor"`
  795. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time" form:"assessment_time"`
  796. IsEat int64 `gorm:"column:is_eat" json:"is_eat" form:"is_eat"`
  797. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit" form:"dialysis_intakes_unit"`
  798. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  799. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  800. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  801. }
  802. func (XtAssessmentAfterDislysis) TableName() string {
  803. return "xt_assessment_after_dislysis"
  804. }
  805. type DeviceRemander struct {
  806. ID int64 `gorm:"column:id" json:"id" form:"id"`
  807. IsRun int64 `gorm:"column:is_run" json:"is_run" form:"is_run"`
  808. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  809. Status int64 `gorm:"column:status" json:"status" form:"status"`
  810. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  811. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  812. }
  813. func (DeviceRemander) TableName() string {
  814. return "xt_device_remander"
  815. }
  816. type DeviceMode struct {
  817. ID int64 `gorm:"column:id" json:"id" form:"id"`
  818. DeviceMode string `gorm:"column:device_mode" json:"device_mode" form:"device_mode"`
  819. Status int64 `gorm:"column:status" json:"status" form:"status"`
  820. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  821. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  822. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  823. }
  824. func (DeviceMode) TableName() string {
  825. return "xt_device_mode"
  826. }
  827. type VmDeviceInformation struct {
  828. Total int64
  829. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  830. }
  831. func (VmDeviceInformation) TableName() string {
  832. return "xt_device_information"
  833. }
  834. type VmSchedule struct {
  835. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  836. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  837. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  838. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  839. Partition int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  840. Name string `gorm:"column:name" json:"name" form:"name"`
  841. Number string `gorm:"column:number" json:"number" form:"number"`
  842. ZoneName string `gorm:"column:name" json:"zon_name" form:"name"`
  843. }
  844. type XtDeviceOxygenates struct {
  845. ID int64 `gorm:"column:id" json:"id" form:"id"`
  846. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  847. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  848. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  849. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  850. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  851. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  852. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  853. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  854. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  855. Status int64 `gorm:"column:status" json:"status" form:"status"`
  856. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  857. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  858. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  859. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  860. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  861. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  862. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  863. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  864. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  865. }
  866. func (XtDeviceOxygenates) TableName() string {
  867. return "xt_device_oxygenates"
  868. }
  869. type XtDeviceHadwater struct {
  870. ID int64 `gorm:"column:id" json:"id" form:"id"`
  871. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  872. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  873. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  874. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  875. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  876. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  877. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  878. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  879. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  880. Status int64 `gorm:"column:status" json:"status" form:"status"`
  881. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  882. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  883. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  884. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  885. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  886. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  887. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  888. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  889. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  890. }
  891. func (XtDeviceHadwater) TableName() string {
  892. return "xt_device_hadwater"
  893. }
  894. type XtDeviceWater struct {
  895. ID int64 `gorm:"column:id" json:"id" form:"id"`
  896. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  897. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  898. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  899. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  900. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  901. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  902. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  903. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  904. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  905. Status int64 `gorm:"column:status" json:"status" form:"status"`
  906. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  907. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  908. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  909. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  910. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  911. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  912. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  913. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  914. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  915. }
  916. func (XtDeviceWater) TableName() string {
  917. return "xt_device_water"
  918. }
  919. type XtDevicePh struct {
  920. ID int64 `gorm:"column:id" json:"id" form:"id"`
  921. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  922. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  923. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  924. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  925. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  926. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  927. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  928. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  929. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  930. Status int64 `gorm:"column:status" json:"status" form:"status"`
  931. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  932. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  933. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  934. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  935. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  936. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  937. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  938. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  939. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  940. }
  941. func (XtDevicePh) TableName() string {
  942. return "xt_device_ph"
  943. }
  944. type XtRemindPrintSetting struct {
  945. ID int64 `gorm:"column:id" json:"id" form:"id"`
  946. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  947. Week int64 `gorm:"column:week" json:"week" form:"week"`
  948. Name int64 `gorm:"column:name" json:"name" form:"name"`
  949. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  950. Classes int64 `gorm:"column:classes" json:"classes" form:"classes"`
  951. Number int64 `gorm:"column:number" json:"number" form:"number"`
  952. Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
  953. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers" form:"dialyzers"`
  954. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  955. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  956. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  957. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  958. Status int64 `gorm:"column:status" json:"status" form:"status"`
  959. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  960. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  961. AnticoagulantZongliang int64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  962. }
  963. func (XtRemindPrintSetting) TableName() string {
  964. return "xt_remind_print_setting"
  965. }
  966. type VmXtSchedule struct {
  967. ID int64 `gorm:"column:id" json:"id" form:"id"`
  968. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  969. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  970. Count int64
  971. }