OHDSI / WebAPI

OHDSI WebAPI contains all OHDSI services that can be called from OHDSI applications
Apache License 2.0
126 stars 156 forks source link

Enhancement: cohortdefinition/info/afterdate GET request #2294

Open TomWhite-MedStar opened 12 months ago

TomWhite-MedStar commented 12 months ago

Desired behavior

Simple mechanism to get listing of all cohort definition runs (optionally after a specified date). This is meant to support operational monitoring and data governance of an Atlas instance - e.g. which cohorts and data sources are in active use.

Actual behavior

If want to know which cohorts were processed for which data sources, one must make repeated calls to: WebAPI/cohortdefinition/{id}/info

When there are large numbers of cohort definitions, this can take quite some time.

Enhancement request:

  1. New GET request like WebAPI/cohortdefinition/info that returns all records of runs of all cohorts across all data sources.
  2. New GET request like WebAPI/cohortdefinition/info/afterdate that just returns the records of runs started after afterdate
anthonysena commented 5 months ago

Thinking that the endpoint may resemble something like: WebAPI/cohortdefinition/info?last_generated_time=<YYYY-MM-DD>&source_id={optional}