Skip to contents

Uses the sysi or sssy registers as input to extract the dates of all diabetes-specific podiatrist services. Removes duplicate services on the same date. Only the two earliest dates per individual are kept.

Usage

include_podiatrist_services(sysi, sssy)

Arguments

sysi

The SYSI register.

sssy

The SSSY register.

Value

The same type as the input data, default as a tibble::tibble(), with two columns and up to two rows for each individual:

  • pnr: Identifier variable

  • date: The dates of the first and second diabetes-specific podiatrist record

  • has_podiatrist_services: A logical variable that acts as a helper indicator for use in later functions.

Details

The output is passed to the join_inclusions() function for the final step of the inclusion process.

Examples

if (FALSE) { # \dontrun{
include_podiatrist_services(register_data$sysi, register_data$sssy)
} # }