fetching-fhir-resources

Fetch clinical narratives from FHIR R4 resources with Bundle pagination.

5.0k|615|Updated Oct 4, 2025
One-click install
npx skills add https://github.com/maziyarpanahi/openmed --skill fetching-fhir-resources
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetching-fhir-resources
Source: https://github.com/maziyarpanahi/openmed/tree/main/skills/fetching-fhir-resources
Command: npx skills add https://github.com/maziyarpanahi/openmed --skill fetching-fhir-resources

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill retrieves clinical narratives from FHIR R4 servers and prepares them for OpenMed de-identification and analysis, eliminating manual chart extraction while protecting sensitive patient data.

Core Features & Use Cases

  • FHIR Resource Retrieval: Fetches and pages Patient, DocumentReference, DiagnosticReport, Observation, and Condition resources from EHR APIs.
  • Narrative Extraction: Decodes base64-encoded text attachments and identifies clinical content in DocumentReference and DiagnosticReport resources.
  • Safe Clinical Processing: Routes extracted narratives through OpenMed de-identification and analysis workflows while preserving patient and encounter rejoin keys.
  • Use Case: Retrieve a patient's clinical notes from an Epic, Cerner, HAPI, or US Core server, de-identify the narratives, analyze them, and group the resulting findings by patient and encounter.

Quick Start

Use the fetching-fhir-resources skill to page through the patient's FHIR DocumentReference records, decode text attachments, de-identify the narratives, and analyze them with OpenMed.

Frequently Asked Questions about fetching-fhir-resources

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract clinical narratives from FHIR R4 resources for de-identification?

To extract clinical narratives from FHIR R4 resources, fetch Patient, DocumentReference, DiagnosticReport, Observation, and Condition resources, then decode base64-encoded text attachments to prepare the clinical content for de-identification and analysis workflows.

Does this skill support Epic, Cerner, and other US Core servers for EHR chart retrieval?

Yes, FHIR R4 resource retrieval supports Epic, Cerner, HAPI, Medplum, HealthLake, and other US Core servers for EHR chart retrieval, including handling paginated searches and patient or encounter rejoining across these platforms.

How do I handle Bundle pagination and base64 attachments when fetching FHIR resources?

When fetching FHIR resources, the skill automatically handles Bundle pagination to retrieve complete result sets and decodes base64 attachments found in DocumentReference and DiagnosticReport resources to extract the underlying clinical text narratives.

Can I use SMART-on-FHIR authentication considerations when retrieving patient records?

SMART-on-FHIR authentication considerations are accounted for during patient records retrieval, requiring standard FHIR REST access to securely fetch and route clinical narratives through OpenMed privacy processing while preserving patient and encounter rejoin keys.

What's the best way to de-identify EHR clinical notes retrieved from FHIR APIs?

The best way to de-identify EHR clinical notes from FHIR APIs is to route the extracted narratives through OpenMed de-identification workflows, which removes sensitive patient data while preserving the necessary patient and encounter rejoin keys for grouping.

Why does my FHIR DocumentReference retrieval return non-text content and how is it routed?

FHIR DocumentReference retrieval may return non-text content if resources lack base64 text attachments, and this non-text routing is handled automatically by separating clinical narratives from unsupported content during the extraction and de-identification process.