gobal_models.go 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  81. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  82. }
  83. func (SystemPrescription) TableName() string {
  84. return "xt_system_prescription"
  85. }
  86. type StDrugCancelStockInfo struct {
  87. ID int64 `gorm:"column:id" json:"id" form:"id"`
  88. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  89. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  90. Count int64 `gorm:"column:count" json:"count" form:"count"`
  91. Price float64 `gorm:"column:price" json:"price" form:"price"`
  92. Total float64 `gorm:"column:total" json:"total" form:"total"`
  93. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  94. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  95. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  96. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  97. Status int64 `gorm:"column:status" json:"status" form:"status"`
  98. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  99. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  100. Type int64 `gorm:"column:type" json:"type" form:"type"`
  101. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  102. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  103. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  104. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  105. Number string `gorm:"column:number" json:"number" form:"number"`
  106. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  107. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  108. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  109. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  110. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  111. }
  112. func (StDrugCancelStockInfo) TableName() string {
  113. return "xt_drug_cancel_stock_info"
  114. }