Use the FHIR $convert operation to transform a resource from one format or version to another, and handle version-specific differences between FHIR R4 and R4B resources

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

Steps

  1. POST to /\$convert with the source resource in the request body and Content-Type indicating the source format (e.g., application/fhir+json for FHIR R4)
  2. Set Accept to the target format or include a targetFormat parameter if the server supports version-targeted conversion (e.g., from R4 to R4B)
  3. Compare the converted resource against the source to identify fields that changed, were removed, or were mapped differently between versions
  4. Focus on known R4-to-R4B differences: Citation, Evidence, and EvidenceReport are new in R4B; MedicinalProduct resources were restructured; Subscription moved to topic-based model
  5. Validate the converted resource against the target version's profile using $validate on a server running the target FHIR version

Known gotchas

Related routes

Use FHIR resource versioning interactions: vread a specific version and retrieve a resource history via _history
hl7.org · 6 steps · unrated
Perform conditional create and conditional update to avoid duplicate FHIR resources
hl7.org/fhir/R4 · 5 steps · unrated
Implement FHIR R4 resource versioning and use the history interaction ([base]/[Resource]/[id]/_history) to retrieve the complete version history of a clinical resource and detect changes between versions
hl7.org/fhir · 5 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