src_data.go 82KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107
  1. package models
  2. type XTSyncInfo struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  5. SyncType int64 `gorm:"column:sync_type" json:"sync_type" form:"sync_type"`
  6. SyncTime int64 `gorm:"column:sync_time" json:"sync_time" form:"sync_time"`
  7. SyncResultType int `gorm:"column:sync_result_type" json:"sync_result_type" form:"sync_result_type"`
  8. SyncRsultRemark string `gorm:"column:sync_result_remark" json:"sync_result_remark" form:"sync_result_remark"`
  9. SyncTotalNum int64 `gorm:"column:sync_total_num" json:"sync_total_num" form:"sync_total_num"`
  10. SyncSuccessNum int64 `gorm:"column:sync_success_num" json:"sync_success_num" form:"sync_success_num"`
  11. SyncInfo string `gorm:"column:sync_info" json:"sync_info" form:"sync_info"`
  12. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  13. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  14. }
  15. func (XTSyncInfo) TableName() string {
  16. return "data_sync_info"
  17. }
  18. type UserOrg struct {
  19. ID int64 `gorm:"column:id" json:"id"`
  20. Creator int64 `gorm:"column:creator" json:"creator"`
  21. OrgName string `gorm:"column:org_name" json:"org_name"`
  22. OrgShortName string `gorm:"column:org_short_name" json:"org_short_name"`
  23. OrgLogo string `gorm:"column:org_logo" json:"org_logo"`
  24. OrgIntroduction string `gorm:"column:org_introduction" json:"org_introduction"`
  25. Illness string `gorm:"column:illness" json:"illness"`
  26. Province int64 `gorm:"column:province" json:"province"`
  27. City int64 `gorm:"column:city" json:"city"`
  28. District int64 `gorm:"column:district" json:"district"`
  29. Address string `gorm:"column:address" json:"address"`
  30. Longitude string `gorm:"column:longitude" json:"longitude"`
  31. Latitude string `gorm:"column:latitude" json:"latitude"`
  32. OrgType int64 `gorm:"column:org_type" json:"org_type"`
  33. Comments int64 `gorm:"column:comments" json:"comments"`
  34. Evaluate float64 `gorm:"column:evaluate" json:"evaluate"`
  35. Gallery string `gorm:"column:gallery" json:"gallery"`
  36. BusinessWeek string `gorm:"column:business_week" json:"business_week"`
  37. BusinessTime string `gorm:"column:business_time" json:"business_time"`
  38. ContactName string `gorm:"column:contact_name" json:"contact_name"`
  39. Telephone string `gorm:"column:telephone" json:"telephone"`
  40. Claim int64 `gorm:"column:claim" json:"claim"`
  41. OperatingState int64 `gorm:"column:operating_state" json:"operating_state"`
  42. Status int64 `gorm:"column:status" json:"status"`
  43. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  44. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  45. Source int64 `gorm:"column:source" json:"source"`
  46. Ttype int64 `gorm:"column:ttype" json:"ttype"`
  47. Ttid int64 `gorm:"column:ttid" json:"ttid"`
  48. Tuid int64 `gorm:"column:tuid" json:"tuid"`
  49. Reason string `gorm:"column:reason" json:"reason"`
  50. Level int64 `gorm:"column:level" json:"level"`
  51. Website string `gorm:"column:website" json:"website"`
  52. Import int64 `gorm:"column:import" json:"import"`
  53. Sortno int64 `gorm:"column:sortno" json:"sortno"`
  54. DeviceNumber []*DeviceNumber `gorm:"ForeignKey:OrgId;AssociationForeignKey:ID" json:"device_number"`
  55. }
  56. func (UserOrg) TableName() string {
  57. return "sgj_user_org"
  58. }
  59. type UserAdminRole struct {
  60. ID int64 `gorm:"column:id" json:"id"`
  61. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  62. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  63. AppId int64 `gorm:"column:app_id" json:"app_id"`
  64. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  65. UserName string `gorm:"column:user_name" json:"user_name"`
  66. Avatar string `gorm:"column:avatar" json:"avatar"`
  67. UserType int64 `gorm:"column:user_type" json:"user_type"`
  68. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  69. Intro string `gorm:"column:intro" json:"intro"`
  70. Status int64 `gorm:"column:status" json:"status"`
  71. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  72. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  73. }
  74. func (UserAdminRole) TableName() string {
  75. return "sgj_user_admin_role"
  76. }
  77. type Patients struct {
  78. ID int64 `gorm:"column:id" json:"id"`
  79. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  80. UserId int64 `gorm:"column:user_id" json:"user_id"`
  81. Avatar string `gorm:"column:avatar" json:"avatar"`
  82. PatientType int64 `gorm:"column:patient_type" json:"patient_type"`
  83. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no"`
  84. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number"`
  85. Source int64 `gorm:"column:source" json:"source"`
  86. Lapseto int64 `gorm:"column:lapseto" json:"lapseto"`
  87. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  88. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  89. Name string `gorm:"column:name" json:"name"`
  90. Alias string `gorm:"column:alias" json:"alias"`
  91. Gender int64 `gorm:"column:gender" json:"gender"`
  92. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status"`
  93. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no"`
  94. Birthday int64 `gorm:"column:birthday" json:"birthday"`
  95. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id"`
  96. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type"`
  97. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no"`
  98. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date"`
  99. Height int64 `gorm:"column:height" json:"height"`
  100. BloodType int64 `gorm:"column:blood_type" json:"blood_type"`
  101. Rh int64 `gorm:"column:rh" json:"rh"`
  102. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date"`
  103. EducationLevel int64 `gorm:"column:education_level" json:"education_level"`
  104. Profession int64 `gorm:"column:profession" json:"profession"`
  105. Phone string `gorm:"column:phone" json:"phone"`
  106. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone"`
  107. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone"`
  108. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations"`
  109. HomeAddress string `gorm:"column:home_address" json:"home_address"`
  110. WorkUnit string `gorm:"column:work_unit" json:"work_unit"`
  111. UnitAddress string `gorm:"column:unit_address" json:"unit_address"`
  112. Children int64 `gorm:"column:children" json:"children"`
  113. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date"`
  114. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis"`
  115. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date"`
  116. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital"`
  117. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition"`
  118. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency"`
  119. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times"`
  120. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date"`
  121. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period"`
  122. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis"`
  123. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis"`
  124. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id"`
  125. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id"`
  126. Evaluate string `gorm:"column:evaluate" json:"evaluate"`
  127. Diagnose string `gorm:"column:diagnose" json:"diagnose"`
  128. Remark string `gorm:"column:remark" json:"remark"`
  129. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id"`
  130. Registrars string `gorm:"column:registrars" json:"registrars"`
  131. QrCode string `gorm:"column:qr_code" json:"qr_code"`
  132. BindingState int64 `gorm:"column:binding_state" json:"binding_state"`
  133. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"`
  134. PresentHistory string `gorm:"column:present_history" json:"present_history"`
  135. PastHistory string `gorm:"column:past_history" json:"past_history"`
  136. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  137. Pulse int64 `gorm:"column:pulse" json:"pulse"`
  138. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"`
  139. Sbp int64 `gorm:"column:sbp" json:"sbp"`
  140. Dbp int64 `gorm:"column:dbp" json:"dbp"`
  141. Status int64 `gorm:"column:status" json:"status"`
  142. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  143. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  144. Nation string `gorm:"column:nation" json:"nation"`
  145. NativePlace string `gorm:"column:native_place" json:"native_place"`
  146. Age int64 `gorm:"column:age" json:"age"`
  147. PatientLapseto PatientLapseto `gorm:"ForeignKey:PatientId,LapsetoType;AssociationForeignKey:ID,Lapseto" json:"patient_lapseto"`
  148. InfectiousDiseases []*InfectiousDiseases `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"infectious_diseases"`
  149. }
  150. func (Patients) TableName() string {
  151. return "xt_patients"
  152. }
  153. type InfectiousDiseases struct {
  154. ID int64 `gorm:"column:id" json:"id" form:"id"`
  155. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  156. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  157. Status int64 `gorm:"column:status" json:"status" form:"status"`
  158. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  159. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  160. }
  161. func (InfectiousDiseases) TableName() string {
  162. return "xt_patients_infectious_diseases"
  163. }
  164. type Device struct {
  165. ID int64 `gorm:"column:id" json:"id"`
  166. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  167. DeviceType int64 `gorm:"column:device_type" json:"device_type"`
  168. DmId int64 `gorm:"column:dm_id" json:"dm_id"`
  169. WteId int64 `gorm:"column:wte_id" json:"wte_id"`
  170. SerialNumber string `gorm:"column:serial_number" json:"serial_number"`
  171. Name string `gorm:"column:name" json:"name"`
  172. Model string `gorm:"column:model" json:"model"`
  173. DeviceNumberId int64 `gorm:"column:device_number_id" json:"device_number_id"`
  174. DeviceNumber string `gorm:"column:device_number" json:"device_number"`
  175. DeviceZoneId int64 `gorm:"column:device_zone_id" json:"device_zone_id"`
  176. DeviceGroupId int64 `gorm:"column:device_group_id" json:"device_group_id"`
  177. Status int64 `gorm:"column:status" json:"status"`
  178. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  179. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  180. }
  181. func (Device) TableName() string {
  182. return "xt_device"
  183. }
  184. type DeviceNumber struct {
  185. ID int64 `gorm:"column:id" json:"id"`
  186. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  187. Number string `gorm:"column:number" json:"number"`
  188. GroupId int64 `gorm:"column:group_id" json:"group_id"`
  189. ZoneId int64 `gorm:"column:zone_id" json:"zone_id"`
  190. Status int64 `gorm:"column:status" json:"status"`
  191. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  192. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  193. }
  194. func (DeviceNumber) TableName() string {
  195. return "xt_device_number"
  196. }
  197. type DeviceZone struct {
  198. ID int64 `gorm:"column:id" json:"id"`
  199. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  200. Name string `gorm:"column:name" json:"name"`
  201. Type int64 `gorm:"column:type" json:"type"`
  202. Status int64 `gorm:"column:status" json:"status"`
  203. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  204. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  205. }
  206. func (DeviceZone) TableName() string {
  207. return "xt_device_zone"
  208. }
  209. type Schedule struct {
  210. ID int64 `gorm:"column:id" json:"id"`
  211. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  212. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  213. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  214. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  215. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  216. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  217. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  218. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  219. Status int64 `gorm:"column:status" json:"status"`
  220. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  221. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  222. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  223. }
  224. func (Schedule) TableName() string {
  225. return "xt_schedule"
  226. }
  227. type DialysisPrescription struct {
  228. ID int64 `gorm:"column:id" json:"id"`
  229. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  230. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  231. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  232. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  233. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  234. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  235. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  236. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  237. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  238. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  239. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  240. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  241. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  242. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  243. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  244. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  245. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  246. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  247. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  248. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  249. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  250. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  251. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  252. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  253. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  254. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  255. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  256. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  257. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  258. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  259. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  260. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  261. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  262. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  263. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  264. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  265. Creater int64 `gorm:"column:creater" json:"creater"`
  266. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  267. Remark string `gorm:"column:remark" json:"remark"`
  268. Status int64 `gorm:"column:status" json:"status"`
  269. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  270. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  271. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  272. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  273. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  274. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  275. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  276. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  277. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  278. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  279. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  280. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  281. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  282. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  283. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  284. Jms int64 `gorm:"column:jms" json:"jms"`
  285. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  286. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  287. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  288. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  289. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  290. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  291. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  292. Injector int64 `gorm:"column:injector" json:"injector"`
  293. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  294. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  295. Package int64 `gorm:"column:package" json:"package"`
  296. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  297. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,RecordDate" json:"before"`
  298. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,RecordDate" json:"order"`
  299. }
  300. func (DialysisPrescription) TableName() string {
  301. return "xt_dialysis_prescription"
  302. }
  303. type DoctorAdvice struct {
  304. ID int64 `gorm:"column:id" json:"id"`
  305. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  306. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  307. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  308. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date"`
  309. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  310. AdviceName string `gorm:"column:advice_name" json:"advice_name"`
  311. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc"`
  312. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date"`
  313. SingleDose float64 `gorm:"column:single_dose" json:"single_dose"`
  314. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit"`
  315. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number"`
  316. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit"`
  317. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way"`
  318. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency"`
  319. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor"`
  320. Status int64 `gorm:"column:status" json:"status"`
  321. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  322. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  323. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm"`
  324. Remark string `gorm:"column:remark" json:"remark"`
  325. StopTime int64 `gorm:"column:stop_time" json:"stop_time"`
  326. StopReason string `gorm:"column:stop_reason" json:"stop_reason"`
  327. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor"`
  328. StopState int64 `gorm:"column:stop_state" json:"stop_state"`
  329. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  330. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time"`
  331. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff"`
  332. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state"`
  333. Checker int64 `gorm:"column:checker" json:"checker"`
  334. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  335. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  336. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  337. CheckState int64 `gorm:"column:check_state" json:"check_state"`
  338. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec"`
  339. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit"`
  340. Groupno int64 `gorm:"column:groupno" json:"groupno"`
  341. }
  342. func (DoctorAdvice) TableName() string {
  343. return "xt_doctor_advice"
  344. }
  345. type DoctorAdviceTemplate struct {
  346. ID int64 `gorm:"column:id" json:"id" form:"id"`
  347. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  348. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  349. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  350. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  351. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  352. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  353. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  354. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  355. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  356. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  357. Status int64 `gorm:"column:status" json:"status" form:"status"`
  358. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  359. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  360. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  361. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  362. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  363. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  364. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  365. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  366. WeekDays string `gorm:"column:week_days" json:"week_days"`
  367. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  368. SubDoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  369. }
  370. func (DoctorAdviceTemplate) TableName() string {
  371. return "xt_doctor_advice_template"
  372. }
  373. type AssessmentAfterDislysis struct {
  374. ID int64 `gorm:"column:id" json:"id"`
  375. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  376. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  377. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  378. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  379. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  380. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  381. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  382. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  383. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  384. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  385. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  386. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  387. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  388. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  389. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  390. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  391. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  392. Cruor string `gorm:"column:cruor" json:"cruor"`
  393. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  394. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  395. Catheter string `gorm:"column:catheter" json:"catheter"`
  396. Complication string `gorm:"column:complication" json:"complication"`
  397. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  398. Remark string `gorm:"column:remark" json:"remark"`
  399. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  400. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  401. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  402. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  403. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  404. Status int64 `gorm:"column:status" json:"status"`
  405. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  406. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  407. Creater int64 `gorm:"column:creater" json:"creater"`
  408. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  409. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  410. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  411. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  412. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  413. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  414. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  415. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  416. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  417. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  418. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  419. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  420. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  421. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  422. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  423. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  424. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  425. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  426. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  427. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  428. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  429. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  430. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  431. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  432. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  433. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  434. }
  435. func (AssessmentAfterDislysis) TableName() string {
  436. return "xt_assessment_after_dislysis"
  437. }
  438. type AssessmentBeforeDislysis struct {
  439. ID int64 `gorm:"column:id" json:"id"`
  440. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  441. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  442. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  443. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  444. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  445. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  446. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  447. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  448. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  449. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  450. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  451. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  452. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  453. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  454. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  455. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  456. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  457. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  458. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  459. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  460. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  461. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  462. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  463. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  464. CatheterBend int64 `gorm:"column:catheter_bend" json:"catheter_bend"`
  465. Catheter string `gorm:"column:catheter" json:"catheter"`
  466. Complication string `gorm:"column:complication" json:"complication"`
  467. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  468. Creater int64 `gorm:"column:creater" json:"creater"`
  469. Remark string `gorm:"column:remark" json:"remark"`
  470. Status int64 `gorm:"column:status" json:"status"`
  471. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  472. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  473. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  474. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  475. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  476. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  477. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  478. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  479. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  480. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  481. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  482. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  483. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  484. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  485. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  486. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  487. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  488. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  489. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  490. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count"`
  491. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  492. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  493. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  494. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  495. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  496. Skin string `gorm:"column:skin" json:"skin"`
  497. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  498. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  499. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  500. }
  501. func (AssessmentBeforeDislysis) TableName() string {
  502. return "xt_assessment_before_dislysis"
  503. }
  504. type MonitoringRecord struct {
  505. ID int64 `gorm:"column:id" json:"id"`
  506. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  507. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  508. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  509. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  510. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  511. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  512. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  513. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  514. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  515. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  516. Pic string `gorm:"column:pic" json:"pic"`
  517. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  518. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  519. VenousPressureUnit string `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
  520. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  521. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  522. TransmembranePressureUnit string `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
  523. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  524. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  525. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  526. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  527. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  528. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  529. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  530. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  531. Symptom string `gorm:"column:symptom" json:"symptom"`
  532. Dispose string `gorm:"column:dispose" json:"dispose"`
  533. Result string `gorm:"column:result" json:"result"`
  534. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  535. Status int64 `gorm:"column:status" json:"status"`
  536. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  537. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  538. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  539. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  540. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  541. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,MonitoringDate" json:"order"`
  542. }
  543. func (MonitoringRecord) TableName() string {
  544. return "xt_monitoring_record"
  545. }
  546. type PatientLapseto struct {
  547. ID int64 `gorm:"column:id" json:"id"`
  548. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  549. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type"`
  550. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time"`
  551. Status int64 `gorm:"column:status" json:"status"`
  552. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  553. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  554. }
  555. func (PatientLapseto) TableName() string {
  556. return "xt_patient_lapseto"
  557. }
  558. type DialysisOrder struct {
  559. ID int64 `gorm:"column:id" json:"id"`
  560. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  561. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  562. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  563. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  564. Stage int64 `gorm:"column:stage" json:"stage"`
  565. Remark string `gorm:"column:remark" json:"remark"`
  566. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  567. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  568. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  569. Status int64 `gorm:"column:status" json:"status"`
  570. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  571. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  572. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  573. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  574. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  575. Creator int64 `gorm:"column:creator" json:"creator"`
  576. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  577. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  578. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  579. }
  580. func (DialysisOrder) TableName() string {
  581. return "xt_dialysis_order"
  582. }
  583. type VMDialysisOrder struct {
  584. ID int64 `gorm:"column:id" json:"id"`
  585. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  586. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  587. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  588. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  589. Stage int64 `gorm:"column:stage" json:"stage"`
  590. Remark string `gorm:"column:remark" json:"remark"`
  591. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  592. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  593. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  594. Status int64 `gorm:"column:status" json:"status"`
  595. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  596. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  597. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  598. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  599. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  600. Creator int64 `gorm:"column:creator" json:"creator"`
  601. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  602. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  603. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  604. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  605. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"prescription"`
  606. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"before"`
  607. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"after"`
  608. Schedule Schedule `gorm:"ForeignKey:ScheduleDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"schedule"`
  609. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"monitor"`
  610. }
  611. func (VMDialysisOrder) TableName() string {
  612. return "xt_dialysis_order"
  613. }
  614. type VMSchedule struct {
  615. ID int64 `gorm:"column:id" json:"id"`
  616. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  617. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  618. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  619. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  620. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  621. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  622. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  623. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  624. Status int64 `gorm:"column:status" json:"status"`
  625. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  626. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  627. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  628. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"prescription"`
  629. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"before"`
  630. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"after"`
  631. DialysisOrder DialysisOrder `gorm:"ForeignKey:DialysisDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"order"`
  632. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"monitor"`
  633. }
  634. func (VMSchedule) TableName() string {
  635. return "xt_schedule"
  636. }
  637. type VMDialysisPrescription struct {
  638. ID int64 `gorm:"column:id" json:"id"`
  639. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  640. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  641. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  642. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  643. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  644. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  645. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  646. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  647. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  648. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  649. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  650. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  651. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  652. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  653. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  654. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  655. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  656. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  657. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  658. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  659. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  660. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  661. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  662. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  663. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  664. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  665. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  666. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  667. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  668. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  669. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  670. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  671. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  672. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  673. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  674. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  675. Creater int64 `gorm:"column:creater" json:"creater"`
  676. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  677. Remark string `gorm:"column:remark" json:"remark"`
  678. Status int64 `gorm:"column:status" json:"status"`
  679. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  680. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  681. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  682. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  683. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  684. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  685. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  686. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  687. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  688. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  689. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  690. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  691. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  692. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  693. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  694. Jms int64 `gorm:"column:jms" json:"jms"`
  695. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  696. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  697. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  698. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  699. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  700. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  701. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  702. Injector int64 `gorm:"column:injector" json:"injector"`
  703. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  704. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  705. Package int64 `gorm:"column:package" json:"package"`
  706. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  707. }
  708. func (VMDialysisPrescription) TableName() string {
  709. return "xt_dialysis_prescription"
  710. }
  711. type VMDeviceAddmacher struct {
  712. ID int64 `gorm:"column:id" json:"id" form:"id"`
  713. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  714. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  715. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  716. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  717. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  718. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  719. UnitType int64 `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  720. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  721. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  722. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  723. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  724. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  725. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  726. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  727. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  728. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  729. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  730. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  731. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  732. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  733. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  734. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  735. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  736. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  737. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  738. Status int64 `gorm:"column:status" json:"status" form:"status"`
  739. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  740. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  741. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  742. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  743. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId"`
  744. }
  745. func (VMDeviceAddmacher) TableName() string {
  746. return "xt_device_addmacher"
  747. }
  748. type DeviceRepair struct {
  749. ID int64 `gorm:"column:id" json:"id" form:"id"`
  750. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  751. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  752. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  753. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  754. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  755. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  756. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  757. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  758. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  759. Images string `gorm:"column:images" json:"images" form:"images"`
  760. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  761. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  762. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  763. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  764. Status int64 `gorm:"column:status" json:"status" form:"status"`
  765. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  766. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  767. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  768. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  769. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  770. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquitmentId"`
  771. }
  772. func (DeviceRepair) TableName() string {
  773. return "xt_device_repair"
  774. }
  775. type XtInspectionReference struct {
  776. ID int64 `gorm:"column:id" json:"id" form:"id"`
  777. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  778. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  779. Project string `gorm:"column:project" json:"project" form:"project"`
  780. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  781. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  782. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  783. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  784. Item string `gorm:"column:item" json:"item" form:"item"`
  785. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  786. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  787. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  788. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  789. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  790. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  791. Status int64 `gorm:"column:status" json:"status" form:"status"`
  792. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  793. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  794. }
  795. func (XtInspectionReference) TableName() string {
  796. return "xt_inspection_reference"
  797. }
  798. type XtInspection struct {
  799. ID int64 `gorm:"column:id" json:"id" form:"id"`
  800. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  801. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  802. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  803. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  804. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  805. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  806. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  807. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  808. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  809. Status int64 `gorm:"column:status" json:"status" form:"status"`
  810. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  811. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  812. Patients Patients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId"`
  813. XtInspectionReference XtInspectionReference `gorm:"ForeignKey:ProjectId,ItemId;AssociationForeignKey:ProjectId,ItemId;"`
  814. }
  815. func (XtInspection) TableName() string {
  816. return "xt_inspection"
  817. }
  818. type XtDeviceCulture struct {
  819. ID int64 `gorm:"column:id" json:"id" form:"id"`
  820. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  821. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  822. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  823. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  824. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  825. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  826. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  827. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  828. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  829. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  830. Status int64 `gorm:"column:status" json:"status" form:"status"`
  831. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  832. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  833. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  834. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  835. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  836. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  837. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  838. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  839. }
  840. func (XtDeviceCulture) TableName() string {
  841. return "xt_device_culture"
  842. }
  843. type XtDeviceDialysate struct {
  844. ID int64 `gorm:"column:id" json:"id" form:"id"`
  845. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  846. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  847. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  848. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  849. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  850. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  851. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  852. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  853. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  854. Status int64 `gorm:"column:status" json:"status" form:"status"`
  855. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  856. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  857. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  858. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  859. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  860. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  861. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  862. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  863. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  864. }
  865. func (XtDeviceDialysate) TableName() string {
  866. return "xt_device_dialysate"
  867. }
  868. type XtAerialDetection struct {
  869. ID int64 `gorm:"column:id" json:"id" form:"id"`
  870. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  871. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  872. Class int64 `gorm:"column:class" json:"class" form:"class"`
  873. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  874. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  875. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  876. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  877. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  878. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  879. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  880. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  881. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  882. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  883. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  884. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  885. Status int64 `gorm:"column:status" json:"status" form:"status"`
  886. }
  887. func (XtAerialDetection) TableName() string {
  888. return "xt_aerial_detection"
  889. }
  890. type XtBodyDetection struct {
  891. ID int64 `gorm:"column:id" json:"id" form:"id"`
  892. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  893. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  894. Class int64 `gorm:"column:class" json:"class" form:"class"`
  895. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  896. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  897. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  898. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  899. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  900. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  901. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  902. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  903. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  904. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  905. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  906. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  907. Status int64 `gorm:"column:status" json:"status" form:"status"`
  908. }
  909. func (XtBodyDetection) TableName() string {
  910. return "xt_body_detection"
  911. }
  912. type XtDeviceWater struct {
  913. ID int64 `gorm:"column:id" json:"id" form:"id"`
  914. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  915. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  916. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  917. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  918. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  919. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  920. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  921. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  922. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  923. Status int64 `gorm:"column:status" json:"status" form:"status"`
  924. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  925. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  926. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  927. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  928. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  929. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  930. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  931. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  932. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  933. }
  934. func (XtDeviceWater) TableName() string {
  935. return "xt_device_water"
  936. }
  937. type XtDeviceOxygenates struct {
  938. ID int64 `gorm:"column:id" json:"id" form:"id"`
  939. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  940. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  941. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  942. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  943. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  944. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  945. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  946. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  947. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  948. Status int64 `gorm:"column:status" json:"status" form:"status"`
  949. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  950. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  951. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  952. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  953. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  954. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  955. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  956. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  957. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  958. }
  959. func (XtDeviceOxygenates) TableName() string {
  960. return "xt_device_oxygenates"
  961. }
  962. type XtDevicePh struct {
  963. ID int64 `gorm:"column:id" json:"id" form:"id"`
  964. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  965. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  966. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  967. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  968. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  969. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  970. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  971. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  972. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  973. Status int64 `gorm:"column:status" json:"status" form:"status"`
  974. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  975. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  976. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  977. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  978. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  979. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  980. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  981. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  982. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  983. }
  984. func (XtDevicePh) TableName() string {
  985. return "xt_device_ph"
  986. }
  987. type XtDeviceHadwater struct {
  988. ID int64 `gorm:"column:id" json:"id" form:"id"`
  989. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  990. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  991. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  992. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  993. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  994. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  995. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  996. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  997. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  998. Status int64 `gorm:"column:status" json:"status" form:"status"`
  999. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1000. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1001. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1002. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1003. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1004. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1005. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1006. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1007. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1008. }
  1009. func (XtDeviceHadwater) TableName() string {
  1010. return "xt_device_hadwater"
  1011. }
  1012. type XtPatientVascularAccess struct {
  1013. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1014. AccessProject int64 `gorm:"column:access_project" json:"access_project" form:"access_project"`
  1015. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  1016. InflowPass string `gorm:"column:inflow_pass" json:"inflow_pass" form:"inflow_pass"`
  1017. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1018. FirstStartTime int64 `gorm:"column:first_start_time" json:"first_start_time" form:"first_start_time"`
  1019. BloodAccessPartOperaId string `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  1020. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1021. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1022. UserStatus int64 `gorm:"column:user_status" json:"user_status" form:"user_status"`
  1023. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1024. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1025. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1026. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1027. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1028. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1029. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1030. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1031. OtherVascular string `gorm:"column:other_vascular" json:"other_vascular" form:"other_vascular"`
  1032. CiType int64 `gorm:"column:ci_type" json:"ci_type" form:"ci_type"`
  1033. BloodCultupe int64 `gorm:"column:blood_cultupe" json:"blood_cultupe" form:"blood_cultupe"`
  1034. SequelaeType int64 `gorm:"column:sequelae_type" json:"sequelae_type" form:"sequelae_type"`
  1035. }
  1036. func (XtPatientVascularAccess) TableName() string {
  1037. return "xt_patient_vascular_access"
  1038. }