Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

feat: allow sorting by date type parameters #60

Merged
merged 4 commits into from
Apr 22, 2021
Merged

feat: allow sorting by date type parameters #60

merged 4 commits into from
Apr 22, 2021

Conversation

carvantes
Copy link
Contributor

@carvantes carvantes commented Apr 21, 2021

see: https://www.hl7.org/fhir/search.html#sort

example: GET [base]/Observation?_sort=status,-date,category

only date is supported for now since that's the only one required to unblock $docref(plus, it may be the most useful for customers), I'll add a backlog item to support the other types.

Edit: updated to also work with fields of type Period (they have a start and an end) turns out that $docref needs that

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

src/QueryBuilder/sort.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@rsmayda rsmayda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor questions/comments

@carvantes carvantes requested a review from rsmayda April 22, 2021 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants