Sha256: 0e4b3fe64609d44cfbcba164a70291a92aa890e335bb7577d5a5a2bbf88477e5

Contents?: true

Size: 476 Bytes

Versions: 173

Compression:

Stored size: 476 Bytes

Contents

SELECT
  units.name,
  count(stats.id) AS patient_count,
  0 as percentage_hb_gt_100,
  0 as percentage_urr_gt_65,
  0 as percentage_phosphate_lt_1_8,
  0 as percentage_access_fistula_or_graft,
  0 as avg_missed_hd_time,
  ROUND(100*SUM(number_of_sessions_with_dialysis_minutes_shortfall_gt_5_pct)/COUNT(stats.id),1)
    as pct_shortfall_gt_5_pct
  FROM (hd_patient_statistics stats
  JOIN hospital_units units ON ((units.id = stats.hospital_unit_id)))
  GROUP BY units.name;

Version data entries

173 entries across 173 versions & 1 rubygems

Version Path
renalware-core-2.0.104 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.103 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.102 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.101 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.100 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.99 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.98 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.97 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.96 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.95 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.94 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.93 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.92 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.91 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.90 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.89 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.88 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.87 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.86 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.85 db/views/reporting_hd_overall_audit_v04.sql