performStringSearchForConcepts: Get concepts that match a string search

View source: R/PerformStringSearchForConcepts.R

performStringSearchForConceptsR Documentation

Get concepts that match a string search

Description

Get concepts that match a string search

Usage

performStringSearchForConcepts(
  searchPhrases,
  vocabularyDatabaseSchema = "vocabulary",
  connection = NULL,
  connectionDetails = NULL,
  vocabularyIdOfInterest = c("SNOMED", "HCPCS", "ICD10CM", "ICD10", "ICD9CM", "ICD9",
    "Read"),
  domainIdOfInterest = c("Condition", "Procedure", "Observation"),
  retrieveInvalidConcepts = FALSE
)

Arguments

searchPhrases

An array of phrases (each phrase may be multiple words, but each phrase should be quoted and comma separated) to search for. Phrases that have a character length of <4 are not searched.

vocabularyDatabaseSchema

The schema name of containing the vocabulary tables.

connection

An object of type connection as created using the connect function in the DatabaseConnector package. Can be left NULL if connectionDetails is provided, in which case a new connection will be opened at the start of the function, and closed when the function finishes.

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package. Can be left NULL if connection is provided.

vocabularyIdOfInterest

A list of vocabulary ids to filter the results.

domainIdOfInterest

A list of domain ids to filter the results.

retrieveInvalidConcepts

Do you want to retrieve invalid concepts. Default = FALSE


OHDSI/ConceptSetDiagnostics documentation built on Feb. 26, 2023, 1:31 a.m.