NameFlagsCard.TypeDescription & Constraintsdoco
.. Bundle NResourceContains a collection of resources
+ Rule: total only when a search or history
+ Rule: entry.search only when a search
+ Rule: FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)
+ Rule: A document must have an identifier with a system and a value
+ Rule: A document must have a date
+ Rule: A document must have a Composition as the first resource
+ Rule: A message must have a MessageHeader as the first resource
+ Rule: A subscription-notification must have a SubscriptionStatus as the first resource
+ Rule: entry.request.method PATCH not allowed for history
+ Rule: Bundle resources where type is not transaction, transaction-response, batch, or batch-response or when the request is a POST SHALL have Bundle.entry.fullUrl populated
+ Rule: Issue.severity for all issues within the OperationOutcome must be either 'information' or 'warning'.
+ Rule: Use and meaning of issues for documents has not been validated because the content will not be rendered in the document.
+ Rule: Self link is required for searchsets.
+ Rule: For collections of type document, message, searchset or collection, all entries must contain resources, and not have request or response elements
+ Rule: For collections of type history, all entries must contain request or response elements, and resources if the method is POST, PUT or PATCH
+ Rule: For collections of type transaction or batch, all entries must contain request elements, and resources if the method is POST, PUT or PATCH
+ Rule: For collections of type transaction-response or batch-response, all entries must contain response elements

Elements defined in Ancestors: id, meta, implicitRules, language
... identifier ΣC0..1IdentifierPersistent identifier for the bundle
... type ΣC1..1codedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection | subscription-notification
Binding: Bundle Type (Required)
... timestamp ΣC0..1instantWhen the bundle was assembled
... total ΣC0..1unsignedIntIf search, the total number of matches
... link ΣC0..*BackboneElementLinks related to this Bundle

.... relation ΣC1..1codeSee http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1
Binding: Link Relation Types (Required)
.... url ΣC1..1uriReference details for the link
... entry ΣC0..*BackboneElementEntry in the bundle - will have a resource or information
+ Rule: must be a resource unless there's a request or response
+ Rule: fullUrl cannot be a version specific reference
This repeating element order: For bundles of type 'document' and 'message', the first resource is special (must be Composition or MessageHeader respectively). For all bundles, the meaning of the order of entries depends on the bundle type
.... link Σ0..*see linkLinks related to this entry

.... fullUrl ΣC0..1uriURI for resource (e.g. the absolute URL server address, URI for UUID/OID, etc.)
.... resource ΣC0..1ResourceA resource in the bundle
.... search ΣC0..1BackboneElementSearch related information
..... mode Σ0..1codematch | include - why this is in the result set
Binding: Search Entry Mode (Required)
..... score Σ0..1decimalSearch ranking (between 0 and 1)
.... request ΣC0..1BackboneElementAdditional execution information (transaction/batch/history)
..... method ΣC1..1codeGET | HEAD | POST | PUT | DELETE | PATCH
Binding: H T T P Verb (Required)
..... url Σ1..1uriURL for HTTP equivalent of this entry
..... ifNoneMatch Σ0..1stringFor managing cache validation
..... ifModifiedSince Σ0..1instantFor managing cache currency
..... ifMatch Σ0..1stringFor managing update contention
..... ifNoneExist Σ0..1stringFor conditional creates
.... response ΣC0..1BackboneElementResults of execution (transaction/batch/history)
..... status Σ1..1stringStatus response code (text optional)
..... location Σ0..1uriThe location (if the operation returns a location)
..... etag Σ0..1stringThe Etag for the resource (if relevant)
..... lastModified Σ0..1instantServer's date time modified
..... outcome Σ0..1ResourceOperationOutcome with hints and warnings (for batch/transaction)
... signature ΣTU0..1SignatureDigital Signature
... issues ΣCTU0..1ResourceIssues with the Bundle

doco Documentation for this format