Validate resources against US Core profiles and check must-support field compliance

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

Steps

  1. Identify the relevant US Core profile for the resource type (e.g., US Core Patient, US Core Observation Lab) from the US Core Implementation Guide at hl7.org/fhir/us/core.
  2. Invoke the server's $validate operation: POST [base]/[ResourceType]/$validate with the resource as the body and profile parameter set to the US Core profile canonical URL.
  3. Review the returned OperationOutcome for issues with severity 'error' (profile violations) vs. 'warning' (recommendations); must-support fields that are absent generate warnings, not errors, unless populated with a value.
  4. Check that must-support fields are present when data is available; must-support means senders must populate the field if the data exists, and receivers must handle it if present.
  5. For US Core Patient, verify that at minimum identifier, name, gender, and birthDate are present; for US Core Observation Lab, check status, category, code, subject, and effective[x] are present.
  6. Use a FHIR validator tool (e.g., the HL7 FHIR Validator JAR) locally to pre-validate before submitting to production servers, reducing rejected resource errors.

Known gotchas

Related routes

validate FHIR resources against profiles using the $validate operation and US Core
fhir · 6 steps · unrated
Validate US Core 7.0.0 Patient must-support data elements on inbound resources
hl7.org/fhir/us/core · 5 steps · unrated
Ensure US Core Provenance must-support elements are correctly populated for exchanged clinical resources
healthcare-fhir · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ 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