Skip to content
Partner Developer Portal

Field Filtering

The EMIS-X FHIR Platform supports selective field filtering via the standard FHIR _elements search parameter.

This allows consumers to request only the specific elements needed for their workflow, reducing bandwidth, serialisation overhead, and memory consumption.

Specify a comma-delimited list of base resource element names in the _elements query parameter:

GET /FHIR/R4/1/Patient/ern:emis:patient:uuid:1c0188f4-2787-f730-22ec-237d3ec27b48/Condition?_elements=id,code,clinicalStatus

In accordance with the HL7 FHIR R4 specification, the server always includes mandatory resource elements in the response even if they are omitted from _elements:

  • resourceType: Identifies the resource schema.
  • id: Unique resource identifier (when assigned).
  • Any element defined with a minimum cardinality of 1 (1..1 or 1..*) in the underlying FHIR profile.

Requesting _elements=id,code,clinicalStatus on a Condition resource:

{
"resourceType": "Condition",
"id": "a2aa38e2-0738-4ba0-a8aa-f2faaf6ad0de",
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active"
}
]
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "195967001",
"display": "Asthma"
}
]
}
}

Elements not specified in _elements (such as verificationStatus, category, severity, subject, onsetDateTime, recordedDate) are omitted from the payload.

  • _elements applies to top-level elements of the target resource. Deep field projections (such as filtering elements nested inside a complex backbone element) are not supported.
  • _elements cannot be used to exclude mandatory elements or compromise clinical safety requirements.