Output reports typically use the default codebase we've built up, regardless of scheme. What if we needed to focus on maternity, gynae and paeds? What changes would be needed to the code? What results data and filters should be used? What isn't possible?
Definitions for this purpose:
- 'maternity', which is already used in the point of delivery (POD) filters in the outputs app
- 'gynae', i.e. treatment specialties (
tretspef) 502 and 503 (noting that 503 is grouped into one of the 'other' categories in tretspef_grouped)
- 'paeds', i.e. ages 0 to 17
Possibilities for each chart type in the reports:
- Waterfalls (fig 9.4) and change-factor (8.2, 8.3, 8.4,
8.5, 8.6) charts: use existing POD filter for maternity; gynae and paeds not possible becuase tretspef and age aren't available in step counts.
- Beeswarms (9.1, 9.6, 9.8, 9.10) and S-curves (9.2, 9.7, 9.9, 9.11): use existing POD filter for maternity; replace
r$results$default data in get_model_run_distribution() with filtered r$results$tretspef for gynae; with filtered r$results$age for paeds.
- Summary table (9.3): filter to retain the maternity POD only; replace
r$results$default data in get_principal_high_level() with filtered r$results$tretspef for gynae; with filtered r$results$age for paeds; alternatively, consider using the results in detail table, which contains a split for tretspef (though its actually tretspef_grouped, which doesn't expose 503) and age.
- LoS table (9.5): filter to retain the maternity POD only; filter existing
r$results$tretspef+los_group in mod_principal_summary_los_data() for gynae; not possible for paeds becuase there's no age+los_group in the results data.
Output reports typically use the default codebase we've built up, regardless of scheme. What if we needed to focus on maternity, gynae and paeds? What changes would be needed to the code? What results data and filters should be used? What isn't possible?
Definitions for this purpose:
tretspef) 502 and 503 (noting that 503 is grouped into one of the 'other' categories intretspef_grouped)Possibilities for each chart type in the reports:
8.5, 8.6) charts: use existing POD filter for maternity; gynae and paeds not possible becuase tretspef and age aren't available in step counts.r$results$defaultdata inget_model_run_distribution()with filteredr$results$tretspeffor gynae; with filteredr$results$agefor paeds.r$results$defaultdata inget_principal_high_level()with filteredr$results$tretspeffor gynae; with filteredr$results$agefor paeds;alternatively, consider using the results in detail table, which contains a split for tretspef (though its actually tretspef_grouped, which doesn't expose 503) and age.r$results$tretspef+los_groupinmod_principal_summary_los_data()for gynae; not possible for paeds becuase there's noage+los_groupin the results data.