arkhn / Cohort360

A web application to find patients, build cohorts and visualize data
Apache License 2.0
0 stars 0 forks source link

Sorting by search param `date` doesn't work on `DocumentReference`s #115

Open Jasopaum opened 3 years ago

Jasopaum commented 3 years ago

Description

A query where sorting is done by date on DocumentReference returns an empty bundle even if some DocumentReferences should be returned. Maybe it's in part due to the fact that the fields corresponding to the date param are empty?

Because of this, we can't dort documents by date in cohortInfo.tsx.

Reproduction

  1. Try this query /DocumentReference?_sort=-date

Resolution

  1. Try to see if this comes from hapi or not
  2. ...