View source: R/asCodelistWithDetails.R
| asCodelistWithDetails | R Documentation |
Coerce to a codelist with details
asCodelistWithDetails(x, cdm, ...)
## S3 method for class 'codelist_with_details'
asCodelistWithDetails(x, ...)
## S3 method for class 'codelist'
asCodelistWithDetails(x, cdm, ...)
## S3 method for class 'candidate_codes'
asCodelistWithDetails(x, cdm, ...)
x |
Only codelist and candidate_codes are currently supported. |
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). |
... |
For extensibility |
codelist
library(omock)
library(CDMConnector)
# Creating CDM object
path <- downloadMockDataset(datasetName = "GiBleed",
path = NULL,
overwrite = NULL)
cdm <- mockCdmFromDataset(datasetName = "GiBleed")
# Create codelist_with_details from a codelist
codelist <- getDrugIngredientCodes(cdm,
name = "acetaminophen",
nameStyle = "{concept_name}",
type = "codelist")
asCodelistWithDetails(codelist, cdm)
# Create codelist from a candidate_codes
codelist <- getCandidateCodes(cdm,
keywords = "arthritis")
asCodelistWithDetails(codelist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.