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:
Prefix | Description |
---|---|
eq | equals, matches |
ne | not equal, does not match |
lt | less than |
gt | greater than |
ge | greater than or equal to |
le | less than or equal to |
sa | starts after |
eb | ends before |
ap | approximately the same |
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