gobal_models.go 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package models
  2. type GobalConfig struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  5. IsOpen int64 `gorm:"column:is_open" json:"is_open"`
  6. Status int64 `gorm:"column:status" json:"status"`
  7. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  8. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  9. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  10. }
  11. func (GobalConfig) TableName() string {
  12. return "xt_gobal_config"
  13. }
  14. type DrugStockConfig struct {
  15. ID int64 `gorm:"column:id" json:"id" form:"id"`
  16. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  17. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  18. Status int64 `gorm:"column:status" json:"status" form:"status"`
  19. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  20. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  21. }
  22. func (DrugStockConfig) TableName() string {
  23. return "xt_drug_stock_config"
  24. }
  25. type SystemPrescription struct {
  26. ID int64 `gorm:"column:id" json:"id" form:"id"`
  27. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  28. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  29. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  30. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  31. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  32. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  33. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  34. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  35. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  36. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  37. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  38. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  39. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  40. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  41. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  42. Dewater float64 `gorm:"column:dewater" json:"dewater" form:"dewater"`
  43. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  44. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  45. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  46. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  47. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  48. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  49. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  50. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  51. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  52. FirstDialysis int64 `gorm:"column:first_dialysis" json:"first_dialysis" form:"first_dialysis"`
  53. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  54. InitiateMode int64 `gorm:"column:initiate_mode" json:"initiate_mode" form:"initiate_mode"`
  55. AffirmState int64 `gorm:"column:affirm_state" json:"affirm_state" form:"affirm_state"`
  56. UseState int64 `gorm:"column:use_state" json:"use_state" form:"use_state"`
  57. Status int64 `gorm:"column:status" json:"status" form:"status"`
  58. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  59. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  60. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  61. SolutionType int64 `gorm:"column:solution_type" json:"solution_type" form:"solution_type"`
  62. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  63. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  64. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  65. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  66. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  67. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  68. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  69. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total" form:"replacement_total"`
  70. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  71. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid" form:"body_fluid"`
  72. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine" form:"special_medicine"`
  73. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other" form:"special_medicine_other"`
  74. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
  75. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  76. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
  77. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration" form:"ultrafiltration"`
  78. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other" form:"body_fluid_other"`
  79. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv" form:"target_ktv"`
  80. }
  81. func (SystemPrescription) TableName() string {
  82. return "xt_system_prescription"
  83. }