Skip to content
Back to skills

Fhir R4

ASecurity

FHIR R4 resource shapes, required elements, cardinality, and value sets for interoperability work. Use when validating, authoring, or debugging FHIR resources, or explaining why a resource is rejected by a server or profile.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
ai-agentsdebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add sinteco/healthit-copilot --skill fhir-r4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fhir R4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fhir R4
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sinteco-fhir-r4/badge)](https://www.skillsdirectory.com/skills/sinteco-fhir-r4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fhir-r4
description: FHIR R4 resource shapes, required elements, cardinality, and value sets for interoperability work. Use when validating, authoring, or debugging FHIR resources, or explaining why a resource is rejected by a server or profile.
---

# FHIR R4 reference

Call `validate_fhir` before explaining. Read its errors/warnings, then teach.

## Common rejection causes (integration reality)

- **Missing required element** — Observation/DiagnosticReport need `status` AND
  `code` (both 1..1). Servers reject with a structure error, not a hint.
- **Bad status code** — status is a bound value set; `"finalized"` != `"final"`.
- **Observation with no value** — needs one of value[x], dataAbsentReason, or
  component. A result with none is a mapping gap, usually a lost OBX-5.
- **Reference targets** — `subject.reference` must resolve inside the Bundle
  (transaction) or on the server. Dangling references fail on $validate.
- **Cardinality on arrays** — `name`, `identifier` are 0..* but profiles
  (US Core) often tighten to must-support; plain R4 won't catch that.
- **Profile vs base** — base R4 passing != US Core / national profile passing.
  Say which you checked. For profile validation recommend the HAPI validator CLI
  with the relevant IG package.

## Quick shapes

- **Patient**: identifier[], name[] (family, given[]), birthDate, gender.
- **Observation**: status, code{coding[{system,code,display}]}, subject,
  effective[x], value[x].
- **DiagnosticReport**: status, code, subject, effective[x], issued, result[]
  (-> Observation refs).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…