### eRef /Bundle Resource Profile **completeness: 20% - Early Draft** [view discussion space](https://3.basecamp.com/3573371/buckets/7773495/documents/1125071490) ### LEGEND * ~~strikethrough~~ indicates the the element is not included in this profile * `red` indicates that the field is likely useful in a future iteration of the specification **Canonical URl for this profile:** http://fhir.infoway-inforoute.ca/StructureDefinition/ca-eReferral-Bundle | Name | Card | Type | Comments |Terminology Binding| |---|---|---|---| |~~identifier~~| ~~0..*~~| ~~Identifier~~ | | | type | 1..1 | code | always sent as "transaction", responses are "transaction-response" | timestamp | 0..1 | instant | The time when the bundle was created by the transmitter. | | total | 0..1 | unsignedInt | If search, the total number of matches. Otherwise not used. | `link` | 0..1 | BackboneElement | `for future use` used to support paging functions | `link.relation` | 1..1 | string | `for future use` | `link.url` | 1..1 | url | `for future use` | entry | 0..* | BackboneElement | | `entry.link` | 0..* | link | `for future use` | entry.fullUrl | 0..1 | url | | entry.resource | 0..1 | Resource | Holds each resource in the bundle | `entry.search` | 0..1 | BackboneElementnt | `for future use` | `entry.search.mode` | 0..1 | code | `for future use` | `entry.search.score` | 0..1 | decimal | `for future use` | entry.request | 0..1 | BackboneElement | | entry.request.method | 1..1 | code | POST for new resources. PUT for updates. GET to retrieve resources. HEAD \ DELETE \ PATCH not supported | entry.request.url | 1..1 | code | URL for HTTP equivalent of this entry | `entry.request.ifNoneMatch` | 0..1 | string | `for future use` | `entry.request.ifModifiedSince` | 0..1 | instant | `for future use` | `entry.request.ifMatch` | 0..1 | string | `for future use` | `entry.request.ifNoneExist` | 0..1 | string | `for future use` | response | 0..1 | BackboneElement | Transaction Related Information | response.status | 1..1 | string | Status response code (text optional) | response.location | 0..1 | uri | The location, if the operation returns a location | response.etag | 0..1 | string | The etag for the resource (if relevant) | response.lastModified | 0..1 | instant | server's date time modified | response.outcome | 0..1 | Resource | OperationOutcome with hints and warnings (for batch/transaction) | `signature` | 0..1 | Signature | `for future use` One common operation performed with resources is to gather a collection of resources into a single instance with containing context. In FHIR this is referred to as "bundling" the resources together. These resource bundles are useful for a variety of different reasons, including: 1. Returning a set of resources that meet some criteria as part of a server operation 2. Returning a set of versions of resources as part of the history operation on a server 3. Sending a set of resources as part of a message exchange 4. Grouping a self-contained set of resources to act as an exchangeable and persistable collection with clinical integrity - e.g. a clinical document 5. Creating/updating/deleting a set of resources on a server as a single operation (including doing so as a single atomic transaction) 6. Storing a collection of resources In this eReferral specificaiton, ServicesRequest resources are sent in a bundle with all of the relevant resources (patient, practitioner, organization, etc...). Thus, the eReferral specification applies scenario 4) & 5 listed above.