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.127 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.126 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.125 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.124 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.123 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.121 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.120 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.119 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.118 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.117 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.116 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.115 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.113 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.112 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.111 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.110 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.109 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.108 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.106 db/views/reporting_hd_overall_audit_v04.sql
renalware-core-2.0.105 db/views/reporting_hd_overall_audit_v04.sql