Chapter 05 · Bundles & Transactions · Beat 1 — One call, many resources
So far, one resource at a time. A clinical event arrives all at once.
A patient, the encounter, the readings — they all reference each other, and they need to land together. This chapter is how you post the whole thing in one call. We read the Bundle types, compose a transaction that creates several linked resources atomically, and use the conditional operations that keep your writes idempotent.
What you will be able to do
Bundle types — transaction · batch · document · message · searchset
Transaction atomicity — all-or-nothing vs best-effort
Conditional ops — create · update · delete
And the trick that makes it work
A placeholder id that does not exist yet — we build to it