add_demographics: add demographics

View source: R/QualityImprovementMeasures.R

add_demographicsR Documentation

add demographics

Description

add demographics

Usage

add_demographics(
  d,
  dM,
  reference_date,
  ageGroups = c(0, 5, 15, 25, 35, 45, 55, 65)
)

Arguments

d

dataframe with InternalID

dM

dMeasure object

reference_date

date to calculate age from

ageGroups

numbers to determine age group

Intervals are closed to the left and open to the right i.e. includes the left-most end of the interval, and does not include the right.

QIM 09 (Cervical screening) has a different age group interval to other QIMs, as it includes '65' and '70'. (["PIP QI Improvement Measures - Technical Specifications v1.1"](https://www1.health.gov.au/internet/main/publishing.nsf/Content/46506AF50A4824B6CA25848600113FFF/$File/PIP-QI-Technical-Specifications.pdf), page 27)

Value

dataframe with DOB, Age10, Sex, Indigenous, RecordNo, MaritalStatus, Sexuality, Indigenous


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