new_monitor.go 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. PrescriptionWater float64 `gorm:"column:prescription_water" json:"prescription_water" form:"prescription_water"`
  68. }
  69. func (VMDialysisPrescription) TableName() string {
  70. return "xt_dialysis_prescription"
  71. }
  72. type VMPredialysisEvaluation struct {
  73. ID int64 `gorm:"column:id" json:"id"`
  74. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  75. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  76. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  77. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  78. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  79. Status int64 `gorm:"column:status" json:"status"`
  80. }
  81. func (VMPredialysisEvaluation) TableName() string {
  82. return "xt_assessment_before_dislysis"
  83. }
  84. type VMAssessmentAfterDislysis struct {
  85. ID int64 `gorm:"column:id" json:"id"`
  86. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  87. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  88. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  89. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  90. Status int64 `gorm:"column:status" json:"status"`
  91. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration" form:"actual_ultrafiltration"`
  92. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour" form:"actual_treatment_hour"`
  93. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute" form:"actual_treatment_minute"`
  94. }
  95. func (VMAssessmentAfterDislysis) TableName() string {
  96. return "xt_assessment_after_dislysis"
  97. }
  98. type VMMonitoringRecord struct {
  99. ID int64 `gorm:"column:id" json:"id"`
  100. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  101. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  102. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  103. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  104. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  105. MonitorSystolicBloodPressureOne string `gorm:"column:monitor_systolic_blood_pressure_one" json:"monitor_systolic_blood_pressure_one" form:"monitor_systolic_blood_pressure_one"`
  106. MonitorDiastolicBloodPressureOne string `gorm:"column:monitor_diastolic_blood_pressure_one" json:"monitor_diastolic_blood_pressure_one" form:"monitor_diastolic_blood_pressure_one"`
  107. Status int64 `gorm:"column:status" json:"status"`
  108. AccumulatedBloodVolume float64 `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  109. AccumulatedBloodVolumeOne string `gorm:"column:accumulated_blood_volume_one" json:"accumulated_blood_volume_one" form:"accumulated_blood_volume_one"`
  110. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume" form:"ultrafiltration_volume"`
  111. UltrafiltrationVolumeOne string `gorm:"column:ultrafiltration_volume_one" json:"ultrafiltration_volume_one" form:"ultrafiltration_volume_one"`
  112. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure" form:"venous_pressure"`
  113. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure" form:"arterial_pressure"`
  114. VenousPressureOne string `gorm:"column:venous_pressure_one" json:"venous_pressure_one" form:"venous_pressure_one"`
  115. ArterialPressureOne string `gorm:"column:arterial_pressure_one" json:"arterial_pressure_one" form:"arterial_pressure_one"`
  116. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  117. BloodOxygenSaturationOne string `gorm:"column:blood_oxygen_saturation_one" json:"blood_oxygen_saturation_one" form:"blood_oxygen_saturation_one"`
  118. Symptom string `gorm:"column:symptom" json:"symptom" form:"symptom"`
  119. Dispose string `gorm:"column:dispose" json:"dispose" form:"dispose"`
  120. Result string `gorm:"column:result" json:"result" form:"result"`
  121. Ktv float64 `gorm:"column:ktv" json:"ktv" form:"ktv"`
  122. }
  123. func (VMMonitoringRecord) TableName() string {
  124. return "xt_monitoring_record"
  125. }
  126. type NewMonitorDialysisScheduleList struct {
  127. ID int64 `gorm:"column:id" json:"id"`
  128. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  129. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  130. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  131. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  132. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  133. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  134. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  135. Status int64 `gorm:"column:status" json:"status"`
  136. MonitorPatients *VMMonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  137. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  138. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  139. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  140. DialysisOrder *VMMonitorDialysisOrder `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dialysis_order"`
  141. Prescription *VMDialysisPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"prescription"`
  142. AssessmentBeforeDislysis *VMPredialysisEvaluation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_before_dislysis"`
  143. AssessmentAfterDislysis *VMAssessmentAfterDislysis `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_after_dislysis"`
  144. MonitoringRecord []*VMMonitoringRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  145. AdviceList []*VMDoctorAdviceForList `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"advice"`
  146. DoubleCheck *VmDoubleCheck `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dobuleCheck"`
  147. TreatmentSummaryForList *VMTreatmentSummaryForList `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"treatmentSummary"`
  148. NewDeviceInformation *NewDeviceInformation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"treatmentSummary"`
  149. }
  150. func (NewMonitorDialysisScheduleList) TableName() string {
  151. return "xt_schedule"
  152. }