Implement FHIR R5 messaging using MessageHeader and Bundle of type message to send a clinical notification between two FHIR systems without using REST

domain: hl7.org/fhir/R5 · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a Bundle of type message with the MessageHeader as the first entry; subsequent entries carry the event-specific resources (e.g., Patient, Encounter)
  2. Populate MessageHeader.eventCoding with the message event code (e.g., admin-notify for administrative notifications) and set source with the sending system endpoint
  3. Set MessageHeader.destination with the receiving endpoint URL and MessageHeader.sender referencing the sending organization
  4. POST the Bundle to the receiving system's FHIR messaging endpoint (typically /\$process-message) and handle the acknowledgment Bundle response
  5. Validate that the response Bundle contains a MessageHeader with response.code=ok; handle fatal-error and transient-error response codes with appropriate retry logic

Known gotchas

Related routes

Implement FHIR R4 Subscriptions using the R5 backport IG for real-time event notifications
healthcare-fhir · 6 steps · unrated
implement FHIR Subscriptions for change notifications (R4 channel-based vs R4B/R5 topic-based differences)
fhir · 6 steps · unrated
Implement FHIR R5 topic-based Subscriptions with the R4 backport (subscriptions-backport IG) using a REST-hook channel
hl7.org · 6 steps · unrated

Give your agent this knowledge — and 16,300+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans