Skip to content

_sort in _history #4237

Description

@Sundaresan-JSE-PMS

Hi.
I'm having an observation resource and when I try to get it's history with the query below, I get the lastUpdated history first. But what I want is the first updated history of that particular day/time period. I tried _sort=-_lastUpdated, but I'm getting the following error:
FHIRPersistenceException: Unrecognized history parameter: '_sort'

How do I solve this?

API Query I used to get the history:
http://<IP ADDRESS>:9443/fhir-server/api/v4/Observation/18a9731c288-08443bac-c0f7-40ee-8f5a-94b2454f8cc6/_history?_count=1&_since=2023-09-19T00:00:00Z

Environment:
Docker image of the server in an Ubuntu machine.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions