
Include diabetes-specific podiatrist services.
Source:R/include-podiatrist-services.R
include_podiatrist_services.Rd
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.
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 variabledate
: The dates of the first and second diabetes-specific podiatrist recordhas_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.
See also
See the vignette("algorithm")
for the logic used to filter these
patients.
Examples
if (FALSE) { # \dontrun{
sim_data <- simulate_registers(c("sysi", "sssy"), 100)
include_podiatrist_services(sim_data$sysi, sim_data$sssy)
} # }