src_data.go 58KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  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:"lapseto"`
  148. }
  149. func (Patients) TableName() string {
  150. return "xt_patients"
  151. }
  152. type Device struct {
  153. ID int64 `gorm:"column:id" json:"id"`
  154. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  155. DeviceType int64 `gorm:"column:device_type" json:"device_type"`
  156. DmId int64 `gorm:"column:dm_id" json:"dm_id"`
  157. WteId int64 `gorm:"column:wte_id" json:"wte_id"`
  158. SerialNumber string `gorm:"column:serial_number" json:"serial_number"`
  159. Name string `gorm:"column:name" json:"name"`
  160. Model string `gorm:"column:model" json:"model"`
  161. DeviceNumberId int64 `gorm:"column:device_number_id" json:"device_number_id"`
  162. DeviceNumber string `gorm:"column:device_number" json:"device_number"`
  163. DeviceZoneId int64 `gorm:"column:device_zone_id" json:"device_zone_id"`
  164. DeviceGroupId int64 `gorm:"column:device_group_id" json:"device_group_id"`
  165. Status int64 `gorm:"column:status" json:"status"`
  166. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  167. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  168. }
  169. func (Device) TableName() string {
  170. return "xt_device"
  171. }
  172. type DeviceNumber struct {
  173. ID int64 `gorm:"column:id" json:"id"`
  174. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  175. Number string `gorm:"column:number" json:"number"`
  176. GroupId int64 `gorm:"column:group_id" json:"group_id"`
  177. ZoneId int64 `gorm:"column:zone_id" json:"zone_id"`
  178. Status int64 `gorm:"column:status" json:"status"`
  179. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  180. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  181. }
  182. func (DeviceNumber) TableName() string {
  183. return "xt_device_number"
  184. }
  185. type DeviceZone struct {
  186. ID int64 `gorm:"column:id" json:"id"`
  187. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  188. Name string `gorm:"column:name" json:"name"`
  189. Type int64 `gorm:"column:type" json:"type"`
  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 (DeviceZone) TableName() string {
  195. return "xt_device_zone"
  196. }
  197. type Schedule struct {
  198. ID int64 `gorm:"column:id" json:"id"`
  199. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  200. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  201. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  202. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  203. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  204. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  205. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  206. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  207. Status int64 `gorm:"column:status" json:"status"`
  208. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  209. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  210. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  211. }
  212. func (Schedule) TableName() string {
  213. return "xt_schedule"
  214. }
  215. type DialysisPrescription struct {
  216. ID int64 `gorm:"column:id" json:"id"`
  217. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  218. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  219. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  220. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  221. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  222. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  223. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  224. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  225. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  226. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  227. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  228. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  229. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  230. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  231. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  232. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  233. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  234. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  235. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  236. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  237. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  238. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  239. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  240. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  241. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  242. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  243. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  244. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  245. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  246. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  247. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  248. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  249. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  250. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  251. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  252. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  253. Creater int64 `gorm:"column:creater" json:"creater"`
  254. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  255. Remark string `gorm:"column:remark" json:"remark"`
  256. Status int64 `gorm:"column:status" json:"status"`
  257. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  258. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  259. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  260. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  261. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  262. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  263. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  264. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  265. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  266. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  267. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  268. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  269. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  270. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  271. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  272. Jms int64 `gorm:"column:jms" json:"jms"`
  273. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  274. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  275. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  276. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  277. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  278. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  279. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  280. Injector int64 `gorm:"column:injector" json:"injector"`
  281. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  282. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  283. Package int64 `gorm:"column:package" json:"package"`
  284. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  285. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,RecordDate" json:"before"`
  286. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,RecordDate" json:"order"`
  287. }
  288. func (DialysisPrescription) TableName() string {
  289. return "xt_dialysis_prescription"
  290. }
  291. type DoctorAdvice struct {
  292. ID int64 `gorm:"column:id" json:"id"`
  293. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  294. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  295. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  296. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date"`
  297. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  298. AdviceName string `gorm:"column:advice_name" json:"advice_name"`
  299. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc"`
  300. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date"`
  301. SingleDose float64 `gorm:"column:single_dose" json:"single_dose"`
  302. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit"`
  303. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number"`
  304. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit"`
  305. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way"`
  306. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency"`
  307. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor"`
  308. Status int64 `gorm:"column:status" json:"status"`
  309. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  310. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  311. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm"`
  312. Remark string `gorm:"column:remark" json:"remark"`
  313. StopTime int64 `gorm:"column:stop_time" json:"stop_time"`
  314. StopReason string `gorm:"column:stop_reason" json:"stop_reason"`
  315. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor"`
  316. StopState int64 `gorm:"column:stop_state" json:"stop_state"`
  317. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  318. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time"`
  319. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff"`
  320. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state"`
  321. Checker int64 `gorm:"column:checker" json:"checker"`
  322. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  323. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  324. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  325. CheckState int64 `gorm:"column:check_state" json:"check_state"`
  326. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec"`
  327. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit"`
  328. Groupno int64 `gorm:"column:groupno" json:"groupno"`
  329. }
  330. func (DoctorAdvice) TableName() string {
  331. return "xt_doctor_advice"
  332. }
  333. type AssessmentAfterDislysis struct {
  334. ID int64 `gorm:"column:id" json:"id"`
  335. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  336. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  337. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  338. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  339. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  340. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  341. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  342. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  343. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  344. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  345. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  346. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  347. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  348. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  349. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  350. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  351. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  352. Cruor string `gorm:"column:cruor" json:"cruor"`
  353. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  354. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  355. Catheter string `gorm:"column:catheter" json:"catheter"`
  356. Complication string `gorm:"column:complication" json:"complication"`
  357. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  358. Remark string `gorm:"column:remark" json:"remark"`
  359. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  360. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  361. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  362. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  363. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  364. Status int64 `gorm:"column:status" json:"status"`
  365. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  366. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  367. Creater int64 `gorm:"column:creater" json:"creater"`
  368. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  369. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  370. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  371. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  372. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  373. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  374. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  375. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  376. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  377. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  378. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  379. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  380. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  381. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  382. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  383. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  384. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  385. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  386. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  387. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  388. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  389. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  390. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  391. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  392. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  393. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  394. }
  395. func (AssessmentAfterDislysis) TableName() string {
  396. return "xt_assessment_after_dislysis"
  397. }
  398. type AssessmentBeforeDislysis struct {
  399. ID int64 `gorm:"column:id" json:"id"`
  400. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  401. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  402. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  403. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  404. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  405. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  406. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  407. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  408. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  409. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  410. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  411. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  412. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  413. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  414. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  415. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  416. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  417. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  418. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  419. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  420. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  421. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  422. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  423. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  424. CatheterBend int64 `gorm:"column:catheter_bend" json:"catheter_bend"`
  425. Catheter string `gorm:"column:catheter" json:"catheter"`
  426. Complication string `gorm:"column:complication" json:"complication"`
  427. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  428. Creater int64 `gorm:"column:creater" json:"creater"`
  429. Remark string `gorm:"column:remark" json:"remark"`
  430. Status int64 `gorm:"column:status" json:"status"`
  431. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  432. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  433. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  434. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  435. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  436. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  437. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  438. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  439. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  440. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  441. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  442. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  443. PunctureWay int64 `gorm:"column:puncture_way" json:"puncture_way"`
  444. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  445. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  446. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  447. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  448. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  449. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  450. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count"`
  451. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  452. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  453. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  454. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  455. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  456. Skin int64 `gorm:"column:skin" json:"skin"`
  457. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  458. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  459. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  460. }
  461. func (AssessmentBeforeDislysis) TableName() string {
  462. return "xt_assessment_before_dislysis"
  463. }
  464. type MonitoringRecord struct {
  465. ID int64 `gorm:"column:id" json:"id"`
  466. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  467. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  468. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  469. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  470. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  471. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  472. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  473. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  474. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  475. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  476. Pic string `gorm:"column:pic" json:"pic"`
  477. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  478. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  479. VenousPressureUnit string `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
  480. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  481. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  482. TransmembranePressureUnit string `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
  483. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  484. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  485. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  486. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  487. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  488. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  489. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  490. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  491. Symptom string `gorm:"column:symptom" json:"symptom"`
  492. Dispose string `gorm:"column:dispose" json:"dispose"`
  493. Result string `gorm:"column:result" json:"result"`
  494. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  495. Status int64 `gorm:"column:status" json:"status"`
  496. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  497. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  498. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  499. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  500. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  501. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,MonitoringDate" json:"order"`
  502. }
  503. func (MonitoringRecord) TableName() string {
  504. return "xt_monitoring_record"
  505. }
  506. type PatientLapseto struct {
  507. ID int64 `gorm:"column:id" json:"id"`
  508. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  509. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type"`
  510. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time"`
  511. Status int64 `gorm:"column:status" json:"status"`
  512. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  513. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  514. }
  515. func (PatientLapseto) TableName() string {
  516. return "xt_patient_lapseto"
  517. }
  518. type DialysisOrder struct {
  519. ID int64 `gorm:"column:id" json:"id"`
  520. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  521. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  522. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  523. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  524. Stage int64 `gorm:"column:stage" json:"stage"`
  525. Remark string `gorm:"column:remark" json:"remark"`
  526. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  527. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  528. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  529. Status int64 `gorm:"column:status" json:"status"`
  530. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  531. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  532. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  533. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  534. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  535. Creator int64 `gorm:"column:creator" json:"creator"`
  536. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  537. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  538. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  539. }
  540. func (DialysisOrder) TableName() string {
  541. return "xt_dialysis_order"
  542. }
  543. type VMDialysisOrder struct {
  544. ID int64 `gorm:"column:id" json:"id"`
  545. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  546. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  547. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  548. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  549. Stage int64 `gorm:"column:stage" json:"stage"`
  550. Remark string `gorm:"column:remark" json:"remark"`
  551. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  552. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  553. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  554. Status int64 `gorm:"column:status" json:"status"`
  555. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  556. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  557. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  558. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  559. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  560. Creator int64 `gorm:"column:creator" json:"creator"`
  561. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  562. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  563. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  564. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  565. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"prescription"`
  566. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"before"`
  567. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"after"`
  568. Schedule Schedule `gorm:"ForeignKey:ScheduleDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"schedule"`
  569. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"monitor"`
  570. }
  571. func (VMDialysisOrder) TableName() string {
  572. return "xt_dialysis_order"
  573. }
  574. type VMSchedule struct {
  575. ID int64 `gorm:"column:id" json:"id"`
  576. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  577. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  578. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  579. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  580. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  581. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  582. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  583. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  584. Status int64 `gorm:"column:status" json:"status"`
  585. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  586. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  587. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  588. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"prescription"`
  589. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"before"`
  590. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"after"`
  591. DialysisOrder DialysisOrder `gorm:"ForeignKey:DialysisDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"order"`
  592. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"monitor"`
  593. }
  594. func (VMSchedule) TableName() string {
  595. return "xt_schedule"
  596. }
  597. type VMDialysisPrescription struct {
  598. ID int64 `gorm:"column:id" json:"id"`
  599. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  600. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  601. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  602. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  603. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  604. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  605. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  606. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  607. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  608. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  609. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  610. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  611. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  612. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  613. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  614. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  615. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  616. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  617. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  618. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  619. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  620. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  621. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  622. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  623. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  624. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  625. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  626. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  627. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  628. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  629. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  630. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  631. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  632. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  633. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  634. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  635. Creater int64 `gorm:"column:creater" json:"creater"`
  636. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  637. Remark string `gorm:"column:remark" json:"remark"`
  638. Status int64 `gorm:"column:status" json:"status"`
  639. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  640. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  641. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  642. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  643. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  644. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  645. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  646. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  647. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  648. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  649. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  650. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  651. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  652. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  653. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  654. Jms int64 `gorm:"column:jms" json:"jms"`
  655. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  656. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  657. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  658. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  659. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  660. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  661. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  662. Injector int64 `gorm:"column:injector" json:"injector"`
  663. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  664. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  665. Package int64 `gorm:"column:package" json:"package"`
  666. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  667. }
  668. func (VMDialysisPrescription) TableName() string {
  669. return "xt_dialysis_prescription"
  670. }
  671. type VMDeviceAddmacher struct {
  672. ID int64 `gorm:"column:id" json:"id" form:"id"`
  673. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  674. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  675. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  676. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  677. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  678. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  679. UnitType int64 `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  680. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  681. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  682. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  683. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  684. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  685. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  686. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  687. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  688. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  689. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  690. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  691. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  692. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  693. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  694. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  695. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  696. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  697. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  698. Status int64 `gorm:"column:status" json:"status" form:"status"`
  699. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  700. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  701. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  702. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  703. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId"`
  704. }
  705. func (VMDeviceAddmacher) TableName() string {
  706. return "xt_device_addmacher"
  707. }
  708. type DeviceRepair struct {
  709. ID int64 `gorm:"column:id" json:"id" form:"id"`
  710. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  711. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  712. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  713. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  714. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  715. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  716. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  717. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  718. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  719. Images string `gorm:"column:images" json:"images" form:"images"`
  720. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  721. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  722. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  723. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  724. Status int64 `gorm:"column:status" json:"status" form:"status"`
  725. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  726. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  727. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  728. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  729. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  730. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquitmentId"`
  731. }
  732. func (DeviceRepair) TableName() string {
  733. return "xt_device_repair"
  734. }