dictis {CALIBERcodelists} | R Documentation |
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
.
dictis(dictName1, dictName2 = NULL, dictName3 = NULL)
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 |
A selection object.
Get and set dictionary: getdictionary
, setdictionary
Other functions for selecting terms in master dictionary: assigncat
, codematch
, explode
, termhas
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')