CemWebApiBackend | R Documentation |
An interface to the common evidence model that uses http requests
data.frame of condition concept_id and concept_name
data.frame of condition concept_id and concept_name
CemConnector::AbstractCemBackend
-> CemWebApiBackend
apiUrl
url for the common evidence model hosted api instance
new()
initialize object
CemWebApiBackend$new(apiUrl)
apiUrl
String URL parameter for hosted
request()
Do a web request
CemWebApiBackend$request(method, endpoint, ...)
method
string "POST", "GET", "PUT" (not implemented), "DELETE" (not implemented)
endpoint
URL endpoint string
...
list params for httr method
getStatus()
GET server status
CemWebApiBackend$getStatus()
getConditionEvidenceSummary()
Returns set of ingredient concepts for a given conceptset of outcomes
CemWebApiBackend$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
getIngredientEvidenceSummary()
Returns set of outcome concepts for a given conceptset of ingredients
CemWebApiBackend$getIngredientEvidenceSummary(ingredientConceptSet)
ingredientConceptSet
data.frame conforming to conceptset format, must be standard RxNorm Ingredients
getConditionEvidence()
Returns ingredient evidence for a given conceptset of conditions
CemWebApiBackend$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
getIngredientEvidence()
Returns condtion evidence for a given conceptset of ingredients
CemWebApiBackend$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,
CemWebApiBackend$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()
Returns data.frame of sources that made the CEM
CemWebApiBackend$getCemSourceInfo()
getVersion()
getVersion information from api
CemWebApiBackend$getVersion()
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
CemWebApiBackend$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
CemWebApiBackend$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.
CemWebApiBackend$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.