decompose {Rdiagnosislist} | R Documentation |
Decomposes a SNOMED CT term into separate components according to the SNOMED CT information model and text parsing. Each term may have a number of possible decompositions. Requires a CDB environment created by createCDB.
decompose(
conceptIds,
diagnosis_text = NULL,
CDB,
SNOMED = getSNOMED(),
noisy = FALSE,
omit_unmatched = TRUE
)
conceptIds |
vector of SNOMED CT concepts to decompose |
diagnosis_text |
vector of SNOMED CT terms (or in theory any text that has the same meaning as the SNOMED CT concept). If NULL, decompositions are created for all SNOMED CT synonyms of the concepts. |
CDB |
an environment containing CDB files, as created by createCDB |
SNOMED |
an environment containing the SNOMED CT dictionary |
noisy |
whether to output messages (for debugging) |
omit_unmatched |
whether to omit rows in which some attributes could not be matched to SNOMED CT concepts |
a SNOMEDfinding objects, which is a data.table with
miniCDB <- createCDB(SNOMED = sampleSNOMED())
D <- decompose(as.SNOMEDconcept('Cor pulmonale',
SNOMED = sampleSNOMED()), CDB = miniCDB, SNOMED = sampleSNOMED())
# -------------------------------------------------------
# 83291003 | Cor pulmonale (disorder)
# -------------------------------------------------------
# Root : 367363000 | Right ventricular failure (disorder)
# - Due to : 70995007 | Pulmonary hypertension (disorder)