dialysis_parameter_models.go 4.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. }