OHDSI / WebAPI

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

Enhancement: Filter WebAPI results based upon created or modified date #2293

Open TomWhite-MedStar opened 1 year ago

TomWhite-MedStar commented 1 year ago

Desired behavior

API calls that return large JSON objects can be filtered to just retrieve values since a specific date. For example:

  1. cohortdefinition - where coalesce(modifiedDate,createdDate) > 'YYYY-MM-DD'
  2. cohortdefinition/{id}/info - where startTime > 'YYYY-MM-DD'
  3. conceptset - where coalesce(modifiedDate,createdDate) > 'YYYY-MM-DD'
  4. estimation - where coalesce(modifiedDate,createdDate) > 'YYYY-MM-DD'
  5. ir - where coalesce(modifiedDate,createdDate) > 'YYYY-MM-DD'

Actual behavior

Although the APIs work OK as-is, they do not lend themselves to incremental loads. As the data volume grows, this becomes increasingly burdensome.

Enhancement Request

Add afterdate option to relevant GET requests to return just the subset of the results where the start/modified/created dates are after the specified date.

anthonysena commented 10 months ago

Related to #2294