# \donttest{
library(omock)
library(CDMConnector)
# Creating CDM object
cdm <- mockCdmFromDataset(datasetName = "GiBleed")
# Create codelist from a codelist_with_details
codelist <- getDrugIngredientCodes(cdm,
name = "acetaminophen",
nameStyle = "{concept_name}",
type = "codelist_with_details")
asCodelist(codelist)
# Create codelist from a candidate_codes
codelist <- getCandidateCodes(cdm,
keywords = "arthritis")
asCodelist(codelist)
# }
Run the code above in your browser using DataLab