dictis: Which terms are in a particular dictionary

Description Usage Arguments Value See Also Examples

View source: R/dictis.R

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

1
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

1
2
3
4
5
6
7
8
9
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')

CALIBERcodelists documentation built on Feb. 28, 2020, 3:01 a.m.