Creates a composition lookup table for a set of SNOMED CT concepts based on output of `decompose', and adds it to the CDB
addComposeLookupToCDB(
decompositions,
CDB,
maxcol = 10,
SNOMED = getSNOMED(),
...
)
CDB environment with an additional data.table `COMPOSELOOKUP' with columns rootId, attr_1 ... attr_X (up to maxcol), with, due_to, without, origId (all with data type integer64 and class 'SNOMEDconcept')
vector of filenames of decompose output (read by fread) or data.frame containing outputs of decompose function
concept database environment, containing a table called FINDINGS
maximum number of attributes columns. If NULL it is determined from the data. It might be helpful to specify it so that downstream databases and programs know exactly how many columns to expect. We suggest setting it to 10 which should handle all possible SNOMED CT concept decompositions.
environment containing a SNOMED CT dictionary
other arguments to pass to fread
decompose, compose, batchDecompose
Other CDB functions:
addWordnet()
,
batchDecompose()
,
createCDB()
,
downloadOrphanet()
,
downloadWordnet()