dialysis_parameter_models.go 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. package models
  2. type DialysisParameter struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  6. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  7. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  8. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  9. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  10. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  11. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  12. Status int64 `gorm:"column:status" json:"status" form:"status"`
  13. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  14. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  15. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  16. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  17. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  18. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  19. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
  20. Prescription DialysisPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
  21. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_before_dislysis"`
  22. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_after_dislysis"`
  23. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"monitoring_record"`
  24. }
  25. func (DialysisParameter) TableName() string {
  26. return "xt_schedule"
  27. }
  28. type XtWarehouseOutInfo struct {
  29. ID int64 `gorm:"column:id" json:"id" form:"id"`
  30. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  31. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  32. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  33. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  34. Count int64 `gorm:"column:count" json:"count" form:"count"`
  35. Price float64 `gorm:"column:price" json:"price" form:"price"`
  36. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  37. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  38. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  39. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  40. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  41. Status int64 `gorm:"column:status" json:"status" form:"status"`
  42. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  43. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  44. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  45. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  46. Type int64 `gorm:"column:type" json:"type" form:"type"`
  47. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  48. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  49. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  50. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  51. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  52. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  53. }
  54. type XtAutomaticReduceDetail struct {
  55. ID int64 `gorm:"column:id" json:"id" form:"id"`
  56. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  57. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  58. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  59. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  60. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  61. Status int64 `gorm:"column:status" json:"status" form:"status"`
  62. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  63. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  64. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  65. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  66. Count int64 `gorm:"column:count" json:"count" form:"count"`
  67. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  68. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  69. }
  70. type DialysisPrescriptionCount struct {
  71. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  72. Count int64 `gorm:"column:count" json:"count" form:"count"`
  73. OrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  74. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  75. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  76. }
  77. type BloodAutomaticReduceDetail struct {
  78. ID int64 `gorm:"column:id" json:"id" form:"id"`
  79. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  80. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  81. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  82. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  83. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  84. Status int64 `gorm:"column:status" json:"status" form:"status"`
  85. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  86. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  87. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  88. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  89. Count int64 `gorm:"column:count" json:"count" form:"count"`
  90. }
  91. func (BloodAutomaticReduceDetail) TableName() string {
  92. return "xt_automatic_reduce_detail"
  93. }
  94. type XtScheduleTwo struct {
  95. ID int64 `gorm:"column:id" json:"id" form:"id"`
  96. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  97. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  98. Name string `gorm:"column:name" json:"name" form:"name"`
  99. }
  100. func (XtScheduleTwo) TableName() string {
  101. return "xt_schedule"
  102. }
  103. type DialysisPrescriptionParameter struct {
  104. ID int64 `gorm:"column:id" json:"id" form:"id"`
  105. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  106. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  107. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  108. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  109. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  110. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  111. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  112. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  113. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  114. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  115. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  116. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  117. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  118. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  119. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  120. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  121. }
  122. func (DialysisPrescriptionParameter) TableName() string {
  123. return "xt_dialysis_prescription"
  124. }
  125. type PredialysisEvaluationParameter struct {
  126. ID int64 `gorm:"column:id" json:"id"`
  127. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  128. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  129. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  130. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  131. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  132. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  133. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  134. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  135. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  136. }
  137. func (PredialysisEvaluationParameter) TableName() string {
  138. return "xt_assessment_before_dislysis"
  139. }
  140. type NewXtAutomaticReduceDetail struct {
  141. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  142. Count int64 `gorm:"column:count" json:"count" form:"count"`
  143. }