Date Search

In the resources where the date search parameter is supported, it is possible to search for a specific date/time or period. See the FHIR specification for details on search by date.

The date parameter uses the standard XML format as shown below:

yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]

The following date search prefixes are supported:

PrefixDescription
eqequals, matches
nenot equal, does not match
ltless than
gtgreater than
gegreater than or equal to
leless than or equal to
sastarts after
ebends before
apapproximately the same

Examples

Search for a specific date.

https://greathospital.com:8100/sites/123/Observation?patient=1&&date=2017-05-30

Search for a specific time.

https://greathospital.com:8100/sites/123/Observation?patient=1&date=2017-05-30T01:00:00-05:00

Search for a date range.

https://greathospital.com:8100/sites/123/Observation?patient=1&date=ge2017-06-07&date=le2017-06-08

© T-System, Inc. 2023 All Rights Reserved.