nicholsonfortin: Nicholson and Fortin Conditions

View source: R/nicholsonfortin.R

nicholsonfortinR Documentation

Nicholson and Fortin Conditions

Description

elixhauser returns a summary dataset containing the Nicholson and Fortin Conditions for each patient.

Usage

nicholsonfortin(
  dat = NULL,
  id = NULL,
  dx = "dx",
  version = 19,
  version_var = NULL,
  outpatient_two = "no"
)

Arguments

dat

dataset which has been properly prepared using 'prepare_data()'

id

variable of the unique patient identifier

dx

the column with the diagnoses (defaults to 'dx')

version

which version(s) of ICD your data contain (ICD-9 only: 9, ICD-10 only: 10, Both: 19)

version_var

variable which denotes if the diagnoses on that row are ICD-9 (9) or ICD-10 (10)

outpatient_two

whether or not it should be required for there to be two outpatient claims for a diagnosis for a patient to be positively coded with that diagnosis.

Details

This function uses data which has been properly prepared to identify and flag the Nicholson and Fortin conditions See full package documentation for additional details.

Value

dataframe with one row per patient, and a column for their patient id, a column with each Nicholson/Fortin comorbidity

Examples

nicholsonfortin(dat = prepared_data, id = patient_id, dx = dx, version = 19,
version_var = version, outpatient_two = "yes")



multimorbidity documentation built on Feb. 16, 2023, 5:57 p.m.