Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Searching for an Encounter based on time has a number of issues. #52

@VictorHarris

Description

@VictorHarris

timeDate can represent periods of time rather than discrete datetime values. Because they are used in Encounter periods, there are a number of related issues around the way in which searches should behave.

Any query for an Encounter which includes a time should return Encounters that only have dates recorded given that a date alone encompasses a range of times. For example, Encounter?date=2017-10-17T13:58 should return 4509 which has a start and end dates but no times. Those Encounters which only have a start date should be handled this way also.

Ref: https://www.hl7.org/fhir/search.html#date
The range of the value as defined above; e.g. For example, the date 2013-01-10 specifies all the time from 00:00 on 10-Jan 2013 to immediately before 00:00 on 11-Jan 2013

date=2017-10-17T13:59 should return 4129 which has a start time of 13:59. This works ok but it should also be returning Encounters such as 4139 that starts at 13:39 and finishes at 14:15.

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