dictis {CALIBERcodelists}R Documentation

Which terms are in a particular dictionary

Description

This function is intended for use when selecting terms to include in a codelist, if you want to filter by terms in a particular dictionary without altering the global dictionary selection of setdictionary.

Usage

dictis(dictName1, dictName2 = NULL, dictName3 = NULL)

Arguments

dictName1

Name of the first dictionary to include, or a vector of dictionary names (from read, icd10, opcs).

dictName2

Name of another dictionary to include

dictName3

Name of another dictionary to include

Value

A selection object.

See Also

Get and set dictionary: getdictionary, setdictionary Other functions for selecting terms in master dictionary: assigncat, codematch, explode, termhas

Examples

setdictionary('icd10', 'read')

# Select a specific ICD-10 code without including mapped Read terms
assigncat(1, 'direct', codematch('I200', 'icd10', exact=TRUE) & dictis('icd10'))
as.codelist('icd10')

# Select only mapped Read terms but not the original ICD-10 terms
assigncat(2, 'mapped', codematch('I200', 'icd10', exact=TRUE) & dictis('read'))
as.codelist('read')

[Package CALIBERcodelists version 0.2-11 Index]