CemDatabaseBackend | R Documentation |
An interface to the common evidence model that uses works directly with a database schema
data.frame of sources
data.frame of condition concept_id and concept_name
data.frame of condition concept_id and concept_name
CemConnector::AbstractCemBackend
-> CemDatabaseBackend
connection
ConnectionHandlder instance
cemDatabaseSchema
schema of CEM database
vocabularyDatabaseSchema
OMOP vocabulary schema (must include concept and concept ancestor tables)
sourceDatabaseSchema
schema containing source_info table
new()
initialize backend object.
CemDatabaseBackend$new( connectionDetails, cemDatabaseSchema, vocabularyDatabaseSchema, sourceDatabaseSchema, usePooledConnection = FALSE )
connectionDetails
DatabaseConnector connection details object
cemDatabaseSchema
Schema name including CEM unified and matrix_summary tables
vocabularyDatabaseSchema
OMOP vocabulary
sourceDatabaseSchema
Schema containing CEM source information table
usePooledConnection
Used a pooled connection object rather than a database connector object.
finalize()
Closes connection Condition evidence summary
CemDatabaseBackend$finalize()
getConditionEvidenceSummary()
Returns set of ingredient concepts for a given conceptset of outcomes
CemDatabaseBackend$getConditionEvidenceSummary( conditionConceptSet, siblingLookupLevels = 0 )
conditionConceptSet
data.frame conforming to conceptset format, must be standard SNOMED conditions
siblingLookupLevels
where mapping is not found it may be beneficial to lookup siblings in the concept ancestry. This defines the number of levels to jump Condition evidence
getConditionEvidence()
Returns set of relationships that exist within CEM for a condition conceptset of interest
CemDatabaseBackend$getConditionEvidence( conditionConceptSet, siblingLookupLevels = 0 )
conditionConceptSet
data.frame conforming to conceptset format, must be standard SNOMED conditions
siblingLookupLevels
where mapping is not found it may be beneficial to lookup siblings in the concept ancestry. This defines the number of levels to jump Ingredient evidence summary
getIngredientEvidenceSummary()
Returns set of outcome concepts for a given conceptset of ingredients/exposures
CemDatabaseBackend$getIngredientEvidenceSummary(ingredientConceptSet)
ingredientConceptSet
data.frame conforming to conceptset format, must be standard RxNorm Ingredients Ingredient conceptset evidence
getIngredientEvidence()
for a concept set of rxnorm ingredients (or their ancestors) list the evidence stored in the CEM Utilises matrix summary table for optimisation.
CemDatabaseBackend$getIngredientEvidence(ingredientConceptSet)
ingredientConceptSet
data.frame conforming to conceptset format, must be standard RxNorm Ingredients
getRelationships()
From a unified CEM relationships table, for a conceptSet of drug ingredients and a conceptSet of conditions,
CemDatabaseBackend$getRelationships( ingredientConceptSet, conditionConceptSet, conditionSiblingLookupLevels = 0 )
ingredientConceptSet
data.frame conforming to conceptset format, must be standard RxNorm Ingredients
conditionConceptSet
data.frame conforming to conceptset format, must be standard SNOMED conditions
conditionSiblingLookupLevels
integer - where mapping is not found it may be beneficial to lookup siblings in the concept ancestry. This defines the number of levels to jump
getCemSourceInfo()
Get CEM source info as a dataframe
CemDatabaseBackend$getCemSourceInfo()
getSuggestedControlCondtions()
Get negative control snomed condition concepts for a given conceptset These are ranked by co-occurrence accross ohdsi studies A negative control for a submitted concept_set is valid if there is no evidence for the outcome
CemDatabaseBackend$getSuggestedControlCondtions( ingredientConceptSet, nControls = 100 )
ingredientConceptSet
data.frame conforming to conceptset format, must be standard RxNorm Ingredients
nControls
topN controls to select - the maximum number will be limited by available concepts without related evidence
getSuggestedControlIngredients()
Get negative control rxnorm ingredient concepts for a given conceptset These are ranked by co-occurrence accross ohdsi studies A negative control for a submitted concept_set is valid if there is no evidence for the ingredient/condition combination
CemDatabaseBackend$getSuggestedControlIngredients( conditionConceptSet, siblingLookupLevels = 0, nControls = 100 )
conditionConceptSet
data.frame conforming to conceptset format, must be standard SNOMED conditions
siblingLookupLevels
where mapping is not found it may be beneficial to lookup siblings in the concept ancestry. This defines the number of levels to jump
nControls
topN controls to select - the maximum number will be limited by available concepts without related evidence
clone()
The objects of this class are cloneable with this method.
CemDatabaseBackend$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.