device_models.go 87KB

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