new_monitor.go 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. package models
  2. type NewVMMonitorDialysisSchedule struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  5. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  6. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  7. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  8. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  9. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  10. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  11. Status int64 `gorm:"column:status" json:"status"`
  12. MonitorPatients *VMMonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  13. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  14. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  15. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  16. DialysisOrder *VMMonitorDialysisOrder `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dialysis_order"`
  17. Prescription *VMDialysisPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"prescription"`
  18. AssessmentBeforeDislysis *VMPredialysisEvaluation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_before_dislysis"`
  19. AssessmentAfterDislysis *VMAssessmentAfterDislysis `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_after_dislysis"`
  20. MonitoringRecord []*VMMonitoringRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  21. }
  22. func (NewVMMonitorDialysisSchedule) TableName() string {
  23. return "xt_schedule"
  24. }
  25. type VMMonitorPatients 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. Name string `gorm:"column:name" json:"name" form:"name"`
  29. Status int64 `gorm:"column:status" json:"status" form:"status"`
  30. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  31. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  32. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  33. }
  34. func (VMMonitorPatients) TableName() string {
  35. return "xt_patients"
  36. }
  37. type VMMonitorDialysisOrder struct {
  38. ID int64 `gorm:"column:id" json:"id"`
  39. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  40. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  41. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  42. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  43. Status int64 `gorm:"column:status" json:"status"`
  44. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  45. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  46. DialysisTotal int64 `gorm:"column:dialysis_total" json:"dialysis_total" form:"dialysis_total"`
  47. Url string `gorm:"column:url" json:"url" form:"url"`
  48. }
  49. func (VMMonitorDialysisOrder) TableName() string {
  50. return "xt_dialysis_order"
  51. }
  52. type VMDialysisPrescription struct {
  53. ID int64 `gorm:"column:id" json:"id"`
  54. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  55. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  56. Status int64 `gorm:"column:status" json:"status"`
  57. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  58. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  59. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  60. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  61. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  62. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  63. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  64. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  65. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  66. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  67. }
  68. func (VMDialysisPrescription) TableName() string {
  69. return "xt_dialysis_prescription"
  70. }
  71. type VMPredialysisEvaluation struct {
  72. ID int64 `gorm:"column:id" json:"id"`
  73. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  74. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  75. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  76. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  77. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  78. Status int64 `gorm:"column:status" json:"status"`
  79. }
  80. func (VMPredialysisEvaluation) TableName() string {
  81. return "xt_assessment_before_dislysis"
  82. }
  83. type VMAssessmentAfterDislysis struct {
  84. ID int64 `gorm:"column:id" json:"id"`
  85. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  86. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  87. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  88. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  89. Status int64 `gorm:"column:status" json:"status"`
  90. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration" form:"actual_ultrafiltration"`
  91. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour" form:"actual_treatment_hour"`
  92. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute" form:"actual_treatment_minute"`
  93. }
  94. func (VMAssessmentAfterDislysis) TableName() string {
  95. return "xt_assessment_after_dislysis"
  96. }
  97. type VMMonitoringRecord struct {
  98. ID int64 `gorm:"column:id" json:"id"`
  99. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  100. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  101. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  102. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  103. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  104. Status int64 `gorm:"column:status" json:"status"`
  105. AccumulatedBloodVolume float64 `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  106. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume" form:"ultrafiltration_volume"`
  107. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure" form:"venous_pressure"`
  108. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure" form:"arterial_pressure"`
  109. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  110. Symptom string `gorm:"column:symptom" json:"symptom" form:"symptom"`
  111. Dispose string `gorm:"column:dispose" json:"dispose" form:"dispose"`
  112. Result string `gorm:"column:result" json:"result" form:"result"`
  113. }
  114. func (VMMonitoringRecord) TableName() string {
  115. return "xt_monitoring_record"
  116. }
  117. type NewMonitorDialysisScheduleList struct {
  118. ID int64 `gorm:"column:id" json:"id"`
  119. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  120. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  121. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  122. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  123. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  124. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  125. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  126. Status int64 `gorm:"column:status" json:"status"`
  127. MonitorPatients *VMMonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  128. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  129. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  130. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  131. DialysisOrder *VMMonitorDialysisOrder `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dialysis_order"`
  132. Prescription *VMDialysisPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"prescription"`
  133. AssessmentBeforeDislysis *VMPredialysisEvaluation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_before_dislysis"`
  134. AssessmentAfterDislysis *VMAssessmentAfterDislysis `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_after_dislysis"`
  135. MonitoringRecord []*VMMonitoringRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  136. AdviceList []*VMDoctorAdviceForList `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"advice"`
  137. DoubleCheck *VmDoubleCheck `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dobuleCheck"`
  138. TreatmentSummaryForList *VMTreatmentSummaryForList `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"treatmentSummary"`
  139. NewDeviceInformation *NewDeviceInformation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"treatmentSummary"`
  140. }
  141. func (NewMonitorDialysisScheduleList) TableName() string {
  142. return "xt_schedule"
  143. }