A bundle is an infrastructure container for a group of gathered resources with containing context that is treated as a single instance. A bundle does not have narrative and is used to group collections of resources for transmission, persistence, or processing.
There are two ways to collect resources together for transport and persistence purposes—contained resources and bundles. There is an important difference between the two:
A FHIR bundle contains an array of entries, each of which represents an operation, such as create, update, or delete, on a resource, such as an Observation or a Patient. Opala’s bundles paginate with 50 resources per page. To see the next 50, use the next link in the bundle’s header.
NOTE: Opala does not currently support Live Bundles.
There are several reasons to bundle resources:
As a bundle is a group of transactions, each element within a bundle is validated as a transaction. The bundle is the container which wraps around the grouped resources.
However, there are also three administrative and infrastructure resources that support grouping content. These resources do not contain other resources directly; instead, they use [Reference] to point to the grouped resources.
These three resources represent meaningful groupings of the resources they refer to (e.g. a discharge medication List, a Group of participants for a clinical trial, a set of resources that form a signed document), while a Bundle is merely is a container for resources used for transfer and storage. This list is not exhaustive; other resources also provde grouping functionality.