fhir-hl7-health-data

fhir-hl7-health-data is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 47 tokens per session (1,835 once invoked), scanned A, original, MIT.

A guide to exchanging healthcare data using FHIR and HL7, standards used by hospitals and health systems. It covers patient-record resources, older HL7 messages, SMART on FHIR login and permissions, HAPI FHIR, and HIPAA-aware exchange.

In plain words
What is it for?
Use it to model patients and clinical events, convert HL7 messages into FHIR bundles, connect to HAPI FHIR, apply SMART OAuth permissions, and prevent duplicate records.
Why use it?
It helps applications share clinical records between different electronic health record systems while following established data formats and access controls.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to model patients and clinical events, convert HL7 messages into FHIR bundles, connect to HAPI FHIR, apply SMART OAuth permissions, and prevent duplicate records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/fhir-hl7-health-data
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill fhir-hl7-health-data
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fhir-hl7-health-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/fhir-hl7-health-data/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/fhir-hl7-health-data)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/fhir-hl7-health-data"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/fhir-hl7-health-data/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fhir-hl7-health-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/fhir-hl7-health-data"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/fhir-hl7-health-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01835
Opus 5 $0.00023 $0.00918
Sonnet 5 $0.00009 $0.00367
Haiku 4.5 $0.00005 $0.00184

Measured 8d ago against content hash 238812d4868a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fhir-hl7-health-data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Digital Health and BioTech (FHIR and HL7)/fhir-hl7-health-data/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FHIR R4/R5 & HL7 v2 Health Data Integration

Overview

This skill provides standards for digital health interoperability using HL7 FHIR (Fast Healthcare Interoperability Resources) R4/R5 and legacy HL7 v2.x messaging. It covers FHIR JSON resources (Patient, Observation, Encounter, Condition), SMART on FHIR OAuth2 scoping, HL7 v2 MLLP framing/parsing, and HIPAA-compliant data security.


1. Healthcare Data Interoperability Principles

  1. FHIR Spec Compliance: Stick strictly to standard FHIR R4/R5 resource schemas. Use extensions (Extension) only when necessary and register custom profiles via StructureDefinition.
  2. SMART on FHIR Security: Enforce fine-grained OAuth2 scopes (patient/Patient.read, user/Observation.write, launch/patient). Enforce OpenID Connect for practitioner identity verification.
  3. HL7 v2 to FHIR Mapping: Convert incoming legacy HL7 v2 pipeline messages (ADT, ORU, MDM) into standard FHIR bundles (Bundle of type transaction or batch) for modern storage.
  4. Idempotent Resource Mutations: Use conditional updates (PUT /Patient?identifier=system|value) to prevent duplicating patient records across EHR sync pipelines.
  5. HIPAA & PHI Security: Encrypt all Protected Health Information (PHI) in transit (TLS 1.3) and at rest (AES-256). Audit access via FHIR AuditEvent resources.

2. Health Data Pipeline Architecture

[ Legacy EHR System ] ──(HL7 v2 ADT/ORU over MLLP)
                                 │
                                 ▼
[ Interoperability Engine ] ──(HL7 v2 Parser & FHIR Converter)
                                 │
                                 │ FHIR Transaction Bundle (HTTPS / SMART on FHIR)
                                 ▼
[ HAPI FHIR / Medplum Server ] ◀──(OAuth2 Bearer Token)── [ Patient Portal / Mobile App ]
FHIR Resource Primary Medical Data Key Search Parameters
Patient Demographics, Identifiers, Contact Info _id, identifier, name, birthdate
Observation Lab Results, Vital Signs, Social History patient, category, code (LOINC), date
Condition Diagnoses, Problems, Medical History patient, clinical-status, code (SNOMED CT)
Encounter Inpatient/Outpatient visits, Stays patient, status, class, date
Bundle Container for multiple resources type=transaction, type=searchset

Read the full file on GitHub · 200 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 200 lines · 47 tokens per session scan A 238812d4868a

Subscribe to this mod's changes

fhir-hl7-health-data is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 1,835 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.