Healthcare / FHIR API
Sorting
FHIR R4Sort FHIR search results using the standard _sort parameter and supported resource fields.
Authentication
OAuth 2.0
Bearer token
Scope
healthcare.read
Required
Standard
HL7 FHIR R4
FHIR R4
Rate limit
600 requests / min
Default
Response
Bundle / JSON
application/fhir+json
Sort syntax
Ascending
https://api.mediloop.com/fhir/r4/Observation?patient=pat_123&_sort=dateAscending & descending
Descending
https://api.mediloop.com/fhir/r4/Observation?patient=pat_123&_sort=-dateSupported fields
| Resource | Common sortable fields |
|---|---|
| Patient | _lastUpdated, birthdate |
| Observation | date, _lastUpdated |
| Encounter | date, _lastUpdated |
| MedicationRequest | authoredon, _lastUpdated |
Multiple fields
Multiple sort keys
?_sort=-date,statusExamples
Limitations
Only server-declared sort fields should be relied upon. Inspect metadata for authoritative resource capabilities.