Skip to contents

This function joins the outputs from all the inclusion and exclusion functions, by pnr and dates. Input datasets:

  • diabetes_diagnoses: Dates are the first and second hospital diabetes diagnosis.

  • podiatrist_services: Dates are the first and second diabetes-specific podiatrist record.

  • gld_hba1c_after_exclusions: Dates are the first and second elevated HbA1c test results (after censoring potential gestational diabetes) and are the first and second purchase of a glucose-lowering drug (after censoring potential polycystic ovary syndrome and gestational diabetes).

Usage

join_inclusions(
  diabetes_diagnoses,
  podiatrist_services,
  gld_hba1c_after_exclusions
)

Arguments

diabetes_diagnoses

Output from include_diabetes_diagnoses().

podiatrist_services

Output from include_podiatrist_services().

gld_hba1c_after_exclusions

Output from exclude_pregnancy() and exclude_potential_pcos().

Value

The same type as the input data, default as a tibble::tibble(), with the joined columns from the output of include_diabetes_diagnoses(), include_podiatrist_services(), exclude_potential_pcos(), and exclude_pregnancy(). There will be 1-8 rows per pnr.

See also

See the vignette("algorithm") for the logic used to filter these patients.