Learn R Programming

CodelistGenerator (version 4.0.0)

searchStrategy: Report the search strategy used to identify codes when using the getCandidateCodes() function

Description

Report the search strategy used to identify codes when using the getCandidateCodes() function

Usage

searchStrategy(x)

Value

A tibble with the search strategy

Arguments

x

A codelist.

Examples

Run this code
# \donttest{
library(omock)
library(CodelistGenerator)
library(dplyr, warn.conflicts = FALSE)

# Create CDM object
cdm <- mockCdmFromDataset(datasetName = "GiBleed")
codes <- getCandidateCodes(cdm = cdm,
                           keywords = c("sprain", "fracture"),
                           exclude = "knee",
                           domains = "Condition",
                           standardConcept = "Standard",
                           searchNonStandard = FALSE,
                           searchInSynonyms = TRUE,
                           includeDescendants = TRUE,
                           includeAncestor = FALSE)

searchStrategy(codes) |>
    glimpse()
# }

Run the code above in your browser using DataLab