Skip to contents

Collates and formats data for report template substitution from pre-validated configuration and data sources. Handles both overview reports and provider-specific reports.

Usage

collect_report_data(config, overview = NULL, provider_summ = NULL, facs = NULL)

Arguments

config

List containing validated report configuration

overview

List containing overview data for all indicators

provider

Optional list containing provider-specific data

Value

List containing formatted data for template substitution

Details

This function assumes that config has already been validated at load time. It focuses solely on transforming the data into the format needed for the templates.