searchStrategy: Report the search strategy used to identify codes when using...

View source: R/searchStrategy.R

searchStrategyR Documentation

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)

Arguments

x

A codelist.

Value

A tibble with the search strategy

Examples


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()


CodelistGenerator documentation built on Dec. 17, 2025, 5:06 p.m.