Spec reference:
https://hl7.org/fhir/bundle.html
Bundle is FHIR’s container for grouping multiple resources together. You’ll encounter bundles in search results, batch operations, and transactions.
What You’ll See
Every bundle has atype and an array of entry objects:
Common Bundle Types
| Type | When You See It |
|---|---|
searchset | Search results (most common) |
history | Resource version history |
transaction | Atomic multi-operation requests |
batch | Multiple independent operations |
collection | Arbitrary groupings |
Search Results (searchset)
Search operations always return bundles:Pagination
Use thelink array to navigate pages:
Transactions & Batch
Send multiple operations in one request. See Batch & Transaction for details.References Within Bundles
When resources reference each other in a bundle, includefullUrl so references resolve correctly:
Try It
1
See a search bundle
Search operations return bundles automatically:Notice the
Bundle with type: "searchset" and entries.2
Use bundles for transactions
See Batch & Transaction for batch and
transaction examples.