This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions 
Formal definitions for the elements in the Query resource.
| Query | |
| Definition | A description of a query with a set of parameters. |
| Control | 1..1 |
| Query.identifier | |
| Definition | Links query and its response(s). |
| Control | 1..1 |
| Type | uri |
| Query.parameter | |
| Definition | Set of query parameters with values. |
| Control | 1..* |
| Type | Extension |
| Comments | Unless otherwise specified, parameters are usually strings. |
| Query.response | |
| Definition | If this is a response to a query. |
| Control | 0..1 |
| Query.response.identifier | |
| Definition | Links response to source query. |
| Control | 1..1 |
| Type | uri |
| To Do | Need to explain if/how this differs from value of Query.identifier. |
| Query.response.outcome | |
| Definition | Outcome of processing the query. |
| Control | 1..1 |
| Binding | QueryOutcome: The outcome of processing a query request (see http://hl7.org/fhir/query-outcome for values) |
| Type | code |
| Query.response.total | |
| Definition | Total number of matching records. |
| Control | 0..1 |
| Type | integer |
| Query.response.parameter | |
| Definition | Parameters server used. |
| Control | 0..* |
| Type | Extension |
| Query.response.first | |
| Definition | To get first page (if paged). |
| Control | 0..* |
| Type | Extension |
| Query.response.previous | |
| Definition | To get previous page (if paged). |
| Control | 0..* |
| Type | Extension |
| Query.response.next | |
| Definition | To get next page (if paged). |
| Control | 0..* |
| Type | Extension |
| Query.response.last | |
| Definition | To get last page (if paged). |
| Control | 0..* |
| Type | Extension |
| Query.response.reference | |
| Definition | Resources that are the results of the search. |
| Control | 0..* |
| Type | Resource(Any) |
| Comments | Is query only used in messaging?. |