Retrieves diagnoses for an individual.

ukb_icd_diagnosis(data, id, icd.version = NULL)

Arguments

data

A UKB dataset (or subset) created with ukb_df.

id

An individual's id, i.e., their unique eid reference number.

icd.version

The ICD version (or revision) number, 9 or 10.

Examples

if (FALSE) {
ukb_icd_diagnosis(my_ukb_data, id = "123456", icd.version = 10)
}