OHDSI / ROhdsiWebApi

An R package for interfacing with a WebAPI instance
https://ohdsi.github.io/ROhdsiWebApi
10 stars 17 forks source link

is there a more efficient way to return all results from incidence rate id #102

Closed gowthamrao closed 4 years ago

gowthamrao commented 4 years ago
 url <- sprintf("%1s/ir/%2s/report/%3s?targetId=%4s&outcomeId=%5s", 
                 baseUrl, 
                 incidenceRateId, 
                 sourceKey, 
                 targetCohortId, 
                 outcomeCohortId
  )

Current approach appears to be do a seperate call for every combination of targetId, outcomeId, sourceKey

Can we create a new endpoint (or do we have an alternative) that is able to get all the results, for all target/comparator id combination AND sourceKeys?

@anthonysena @chrisknoll

anthonysena commented 4 years ago

@gowthamrao - I haven't looked deeply into the package but you can obtain a summary for a given IR ID using this WebAPI endpoint WebAPI/ir/<id>/info and then for each source, get a summary via: WebAPI/ir/<id>/info/<sourceKey>/. Apologies if you've already implemented this but for the URL above, that's is what is currently offered from WebAPI to facilitate the operations required by ATLAS.

gowthamrao commented 4 years ago

@anthonysena thank you.