getReport: getReport

View source: R/QIM_report.R

getReportR Documentation

getReport

Description

create reports in a 'standard' format from the 10 QIM measures

gets report from 'report_function' then adds extra 'DiabetesType' column if necessary adds more columns describing the measurement renames the 'result' column to 'State'

small cell suppression supported section 2.4 'Small cell suppression' of "Practice Incentives Program Quality Improvement Measures User Guide" https://www1.health.gov.au/internet/main/publishing.nsf/Content/ 46506AF50A4824B6CA25848600113FFF/$File/PIP%20QI%20-%20User%20Guide.pdf

Usage

getReport(
  report_function,
  date_from,
  date_to,
  contact_type,
  min_contact,
  min_date = as.Date("2000-01-01"),
  max_date = Sys.Date(),
  progress = NA,
  progress_detail,
  measure = NA,
  require_type_diabetes,
  qim_name,
  measure_name,
  state_variable_name,
  small_cell_suppression = FALSE,
  include_all_demographic_groups = FALSE
)

Arguments

report_function

the dMQIM method to call

date_from

start date

date_to

end date

contact_type

types of contacts e.g. Services,

min_contact

minimum number of contacts to be 'valid'

min_date

most recent contact must be at least min_date

max_date

most recent contact at most max_date

progress

object for displaying progress. Leave as NA if not required

progress_detail

message to report in the 'progress' window

measure

some (but not all) report_function can choose the 'measure' if not required, then use NA

require_type_diabetes

diabetes methods may give option to specify diabetes types

qim_name

the name of the QIM e.g. 'QIM 01'

measure_name

the name of the measure e.g. 'HbA1C'

state_variable_name

the name of the column in the return from report_function which becomes the 'State' column

small_cell_suppression

'suppress' (return zero, or remove row entirely) if count is less than 5.

include_all_demographic_groups

include all possible demographic groups/subgroups, even if there was no count


DavidPatShuiFong/dMeasureQIM documentation built on Feb. 17, 2025, 3:08 p.m.