dialysis_parameter_models.go 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  91. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  92. }
  93. func (BloodAutomaticReduceDetail) TableName() string {
  94. return "xt_automatic_reduce_detail"
  95. }
  96. type XtScheduleTwo struct {
  97. ID int64 `gorm:"column:id" json:"id" form:"id"`
  98. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  99. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  100. Name string `gorm:"column:name" json:"name" form:"name"`
  101. }
  102. func (XtScheduleTwo) TableName() string {
  103. return "xt_schedule"
  104. }
  105. type DialysisPrescriptionParameter struct {
  106. ID int64 `gorm:"column:id" json:"id" form:"id"`
  107. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  108. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  109. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  110. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  111. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  112. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  113. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  114. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  115. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  116. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  117. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  118. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  119. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  120. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  121. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  122. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  123. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  124. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  125. DialysisStrainer string `gorm:"column:dialysis_strainer" json:"dialysis_strainer" form:"dialysis_strainer"`
  126. }
  127. func (DialysisPrescriptionParameter) TableName() string {
  128. return "xt_dialysis_prescription"
  129. }
  130. type PredialysisEvaluationParameter struct {
  131. ID int64 `gorm:"column:id" json:"id"`
  132. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  133. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  134. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  135. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  136. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  137. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  138. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  139. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  140. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  141. }
  142. func (PredialysisEvaluationParameter) TableName() string {
  143. return "xt_assessment_before_dislysis"
  144. }
  145. type NewXtAutomaticReduceDetail struct {
  146. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  147. Count int64 `gorm:"column:count" json:"count" form:"count"`
  148. }