View source: R/summariseOrphanCodes.R
| summariseOrphanCodes | R Documentation |
Find orphan codes related to a codelist using achilles counts and, if available, PHOEBE concept recommendations
summariseOrphanCodes(
x,
cdm,
domain = c("condition", "device", "drug", "measurement", "observation", "procedure",
"visit")
)
x |
A codelist. |
cdm |
A cdm reference to an OMOP CDM dataset. If data is held within a database, the vocabulary tables should be in the same schema as the clinical tables (person, observation period, and so on). |
domain |
Character vector with one or more of the OMOP CDM domains. The results will be restricted to the given domains. Check the available ones by running availableDomains(). If NULL, all supported domains are included: Condition, Drug, Procedure, Device, Observation, and Measurement. |
A summarised result containg the frequency of codes related to (but not in) the codelist.
library(CodelistGenerator)
cdm <- mockVocabRef("database")
codes <- getCandidateCodes(cdm = cdm,
keywords = "Musculoskeletal disorder",
domains = "Condition",
includeDescendants = FALSE)
codelist <- omopgenerics::newCodelist(list("msk" = codes$concept_id))
orphan_codes <- summariseOrphanCodes(x = codelist,
cdm = cdm)
orphan_codes
CDMConnector::cdmDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.