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: Filter WebAPI results based upon created or modified date #2293

Open TomWhite-MedStar opened 12 months ago

TomWhite-MedStar commented 12 months 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 5 months ago

Related to #2294