Nerve
FHIRResources

Bundle

Maturity LevelSecurity CategoryResource Category
3Unclassified
Foundation Resources

A container for a collection of resources.

Resource Content

Name
Required
Type
Description & Constraints
identifierIdentifierPersistent identifier for the bundle
typecodedocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
timestampinstantWhen the bundle was assembled
totalunsignedIntIf search, the total number of matches
linkBackboneElementLinks related to this Bundle
└─ relationstringSee http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1
└─ urluriReference details for the link
entryBackboneElementEntry in the bundle - will have a resource or information
└─ linkBackboneElementLinks related to this entry
└─ fullUrluriURI for resource (Absolute URL server address or URI for UUID/OID)
└─ resourceResourceA resource in the bundle
└─ searchBackboneElementSearch related information
└─── modecodematch | include | outcome - why this is in the result set
└─── scoredecimalSearch ranking (between 0 and 1)
└─ requestBackboneElementAdditional execution information (transaction/batch/history)
└─── methodcodeGET | HEAD | POST | PUT | DELETE | PATCH
└─── urluriURL for HTTP equivalent of this entry
└─── ifNoneMatchstringFor managing cache currency
└─── ifModifiedSinceinstantFor managing cache currency
└─── ifMatchstringFor managing update contention
└─── ifNoneExiststringFor conditional creates
└─ responseBackboneElementResults of execution (transaction/batch/history)
└─── statusstringStatus response code (text optional)
└─── locationuriThe location (if the operation returns a location)
└─── etagstringThe Etag for the resource (if relevant)
└─── lastModifiedinstantServer's date time modified
└─── outcomeResourceOperationOutcome with hints and warnings (for batch/transaction)
signatureSignatureDigital Signature

Search Parameters

NameTypeDescriptionExpression
compositionreferenceThe first resource in the bundle, if the bundle type is "document" - this is a composition, and this parameter provides access to search its contentsBundle.entry[0].resource
identifiertokenPersistent identifier for the bundleBundle.identifier
messagereferenceThe first resource in the bundle, if the bundle type is "message" - this is a message header, and this parameter provides access to search its contentsBundle.entry[0].resource
timestampdateWhen the bundle was assembledBundle.timestamp
typetokendocument | message | transaction | transaction-response | batch | batch-response | history | searchset | collectionBundle.type

Scope and Usage

A Bundle is used to gather collections of FHIR resources into a single instance with containing context. Common use cases include:

  • Server Operations
    • Returning resources that meet search criteria
    • Providing version histories of resources
  • Data Exchange
    • Sending resources in message exchanges
    • Grouping resources into clinical documents
  • Batch Operations
    • Creating/updating/deleting multiple resources atomically
    • Managing collections of resources as transactions
  • Storage
    • Persisting related resources together

Boundaries and Relationships

Resource Collection Methods

There are two primary approaches for collecting resources:

  1. Contained Resources

    • Resources exist within the container resource
    • Can only be interpreted/modified in container context
  2. Bundles

    • Resources maintain independent existence
    • Can be accessed directly via RESTful API

While Bundles serve as technical containers, FHIR provides three additional resources for logical grouping:

1. List Resource

  • Manages flat collections of resources
  • Dynamic nature - items can be added/removed
  • Supports curation with specific business meaning
  • References other resources directly

2. Group Resource

  • Defines collections of specific entities (people, animals, devices)
  • Can enumerate explicitly or describe qualifying characteristics
  • Commonly used for:
    • Public health (at-risk populations)
    • Clinical trials (test subject pools)
    • Group-level operations/observations

3. Composition Resource

  • Assembles healthcare information into logical documents
  • Provides structure for FHIR documents
  • Establishes context and clinical attestation
  • Often references Lists within sections
  • Full content expressed using Bundles

Note: While these resources create meaningful groupings with specific purposes, a Bundle primarily serves as a technical container for resource transfer and storage. Additional resources may provide other grouping functionality.

Referenced Elements

N/A

On this page