Elements Parameter
A client can request a specific set of elements be returned as part of a
resource in the search results using the _elements
parameter.
GET [base]/Patient?_elements=identifier,active
Example Response
{
"resourceType": "Bundle",
"id": "d9dcca52-b714-47df-a9e7-f6e3edd031d5",
"meta": {
"lastUpdated": "2024-02-26T09:27:20.680+00:00"
},
"type": "searchset",
"total": 1,
"link": [ {
"relation": "self",
"url": "http://localhost:3003/oracle-fhir-server/fhir/Patient?_elements=identifier%2Cactive"
}, {
"relation": "next",
"url": "http://localhost:3003/oracle-fhir-server/fhir?_getpages=d9dcca52-b714-47df-a9e7-f6e3edd031d5&_getpagesoffset=1&_count=1&_pretty=true&_bundletype=searchset&_elements=active,identifier"
} ],
"entry": [ {
"fullUrl": "http://localhost:3003/oracle-fhir-server/fhir/Patient/1",
"resource": {
"resourceType": "Patient",
"id": "1",
"meta": {
"versionId": "1",
"lastUpdated": "2024-02-26T06:59:39.364+00:00",
"source": "#rIx8lDj54KOhTZF0",
"tag": [ {
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationValue",
"code": "SUBSETTED",
"display": "Resource encoded in summary mode"
} ]
},
"identifier": [ {
"use": "usual",
"type": {
"coding": [ {
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
} ]
},
"system": "urn:oid:1.2.36.146.595.217.0.1",
"value": "12345",
"period": {
"start": "2001-05-06"
},
"assigner": {
"display": "Acme Healthcare"
}
} ],
"active": true
},
"search": {
"mode": "match"
}
} ]
}
Parent topic: Modify Search Results