index_models.go 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. package statistics_service
  2. type VMDialysisPrescription struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  5. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  6. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  7. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  8. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  9. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  10. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  11. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  12. Status int64 `gorm:"column:status" json:"status"`
  13. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  14. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  15. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  16. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  17. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  18. AnticoagulantStopTimeMin int64 `gorm:"column:anticoagulant_stop_time_min" json:"anticoagulant_stop_time_min" form:"anticoagulant_stop_time_min"`
  19. AnticoagulantStopTimeHour int64 `gorm:"column:anticoagulant_stop_time_hour" json:"anticoagulant_stop_time_hour" form:"anticoagulant_stop_time_hour"`
  20. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  21. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  22. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  23. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  24. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  25. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  26. }
  27. func (VMDialysisPrescription) TableName() string {
  28. return "xt_dialysis_prescription"
  29. }
  30. type VMPredialysisEvaluation struct {
  31. ID int64 `gorm:"column:id" json:"id"`
  32. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  33. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  34. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  35. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  36. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  37. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  38. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  39. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  40. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  41. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  42. VMAssessmentAfterDislysis VMAssessmentAfterDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,AssessmentDate" json:"after"`
  43. VMPatients VMPatients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
  44. LastAfterWeight float64 `gorm:"-" json:"last_after_weight"`
  45. }
  46. func (VMPredialysisEvaluation) TableName() string {
  47. return "xt_assessment_before_dislysis"
  48. }
  49. type VMAssessmentAfterDislysis struct {
  50. ID int64 `gorm:"column:id" json:"id"`
  51. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  52. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  53. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  54. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  55. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  56. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  57. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  58. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  59. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  60. }
  61. func (VMAssessmentAfterDislysis) TableName() string {
  62. return "xt_assessment_after_dislysis"
  63. }
  64. type VMPatients struct {
  65. ID int64 `gorm:"column:id" json:"id" form:"id"`
  66. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  67. Name string `gorm:"column:name" json:"name" form:"name"`
  68. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  69. }
  70. func (VMPatients) TableName() string {
  71. return "xt_patients"
  72. }
  73. type VMSchedule struct {
  74. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  75. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  76. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  77. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  78. Status int64 `gorm:"column:status" json:"status" form:"status"`
  79. VMPredialysisEvaluation VMPredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"before"`
  80. VMAssessmentAfterDislysis VMAssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"after"`
  81. VMMinMonitoringRecord VMMonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"min_monitor"`
  82. VMMaxMonitoringRecord VMMonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"max_monitor"`
  83. VMPatients VMPatients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
  84. }
  85. func (VMSchedule) TableName() string {
  86. return "xt_schedule"
  87. }
  88. type VMMonitoringRecord struct {
  89. ID int64 `gorm:"column:id" json:"id" form:"id"`
  90. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  91. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  92. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date" form:"monitoring_date"`
  93. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time" form:"monitoring_time"`
  94. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  95. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  96. Status int64 `gorm:"column:status" json:"status" form:"status"`
  97. OperateTime int64 `gorm:"column:operate_time" json:"operate_time" form:"operate_time"`
  98. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  99. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  100. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  101. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  102. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  103. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  104. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  105. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  106. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  107. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  108. }
  109. func (VMMonitoringRecord) TableName() string {
  110. return "xt_monitoring_record"
  111. }
  112. type VMUserAdminRole struct {
  113. ID int64 `gorm:"column:id" json:"id" form:"id"`
  114. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  115. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  116. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  117. PCount int64 `gorm:"-" json:"p_count"`
  118. CourseCount int64 `gorm:"-" json:"course_count" `
  119. RescueCount int64 `gorm:"-" json:"rescue_count" `
  120. PunctureCount int64 `gorm:"-" json:"puncture_count" `
  121. ChangemedicineCount int64 `gorm:"-" json:"change_medicine_count" `
  122. CureCount int64 `gorm:"-" json:"cure_count" `
  123. MissionCount int64 `gorm:"-" json:"mission_count" `
  124. ChangeNuserCount int64 `gorm:"-" json:"change_nuser_count" `
  125. DiffiCultPuntureNuserCount int64 `gorm:"-" json:"difficult_nuser_count" `
  126. NewNuserCount int64 `gorm:"-" json:"new_nuser_count" `
  127. StartNuserCount int64 `gorm:"-" json:"start_nuser_count" `
  128. PRatio string `gorm:"-" json:"p_ratio"`
  129. CourseRatio string `gorm:"-" json:"course_ratio" `
  130. RescueRatio string `gorm:"-" json:"rescue_ratio" `
  131. PunctureRatio string `gorm:"-" json:"puncture_ratio" `
  132. ChangemedicineRatio string `gorm:"-" json:"change_medicine_ratio" `
  133. CureRatio string `gorm:"-" json:"cure_ratio" `
  134. MissionRatio string `gorm:"-" json:"mission_ratio" `
  135. ChangeRatio string `gorm:"-" json:"change_nurse_ratio" `
  136. DiffiCultNuserRatio string `gorm:"-" json:"difficult_nurse_ratio" `
  137. NewNuserRatio string `gorm:"-" json:"new_nurse_ratio" `
  138. StartNuserRatio string `gorm:"-" json:"start_nurse_ratio" `
  139. }
  140. func (VMUserAdminRole) TableName() string {
  141. return "sgj_user_admin_role"
  142. }
  143. type VMDeviceNumber struct {
  144. ID int64 `gorm:"column:id" json:"id" form:"id"`
  145. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  146. Number string `gorm:"column:number" json:"number" form:"number"`
  147. GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
  148. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  149. Status int64 `gorm:"column:status" json:"status" form:"status"`
  150. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  151. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  152. }
  153. func (VMDeviceNumber) TableName() string {
  154. return "xt_device_number"
  155. }
  156. type QualityControlStandard struct {
  157. ID int64 `gorm:"column:id" json:"id" form:"id"`
  158. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  159. InspectionMinor int64 `gorm:"column:inspection_minor" json:"inspection_minor" form:"inspection_minor"`
  160. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  161. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  162. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  163. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  164. Status int64 `gorm:"column:status" json:"status" form:"status"`
  165. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  166. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  167. }
  168. func (QualityControlStandard) TableName() string {
  169. return "xt_quality_control_standard"
  170. }