Fhir Data Access logo

Fhir Data Access

Organization
Open-Medica
fhir-data-access

Connect to FHIR-compliant electronic health record systems to query, retrieve, and analyze patient data using natural language. Supports full CRUD operations on FHIR resources with SMART-on-FHIR authentication.

Overview

PublisherOpen-Medica
Repositoryopen-medical-skills
Skill namefhir-data-access
Stars
32
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Open-Medica on GitHub. Read the source before you install it.

Installation

Install the Fhir Data Access AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Open-Medica/open-medical-skills/tree/main/skills/fhir-data-access
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Open-Medica/open-medical-skills.git /tmp/open-medical-skills
mkdir -p .claude/skills
cp -r /tmp/open-medical-skills/skills/fhir-data-access .claude/skills/fhir-data-access
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fhir Data Access in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fhir Data Access on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fhir Data Access is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

FHIR Healthcare Data Access

Connect to FHIR-compliant (Fast Healthcare Interoperability Resources) electronic health record systems to query, retrieve, and analyze patient data using natural language. This skill supports full CRUD operations on FHIR R4 resources with SMART-on-FHIR OAuth2 authentication, enabling AI agents to interact with EHR data in a standards-compliant, auditable manner.

Quick Install

bash
npx skills add Open-Medica/open-medical-skills --skill fhir-data-access

What It Does

  • Natural language to FHIR query translation: Converts plain-language clinical questions (e.g., "Show me this patient's last three A1C results") into proper FHIR RESTful API queries against the appropriate resource endpoints (Observation, Condition, MedicationRequest, etc.)
  • SMART-on-FHIR authentication: Implements the SMART App Launch Framework for secure OAuth2-based authorization, supporting both standalone launch and EHR launch contexts with appropriate scope negotiation (patient/.read, user/.write, etc.)
  • Multi-resource retrieval: Queries across FHIR resource types including Patient, Encounter, Observation, Condition, MedicationRequest, AllergyIntolerance, Procedure, DiagnosticReport, DocumentReference, and CarePlan
  • Data aggregation and analysis: Combines data from multiple FHIR resources to build longitudinal patient summaries, trend vital signs and lab values over time, and correlate medication changes with clinical outcomes
  • Write-back operations: Supports creating and updating FHIR resources (e.g., posting new Observations, updating CarePlans, creating CommunicationRequests) with full audit trail logging and validation against FHIR profiles

Clinical Use Cases

  • Point-of-care data retrieval: A physician asks "What medications is this patient currently taking and when were they last prescribed?" The skill queries MedicationRequest resources with status=active and returns a formatted current medication list with prescriber and date information
  • Population health queries: A quality improvement team needs to identify all diabetic patients in their panel with A1C > 9% who have not had a nephrology referral. The skill constructs a FHIR search query combining Condition (diabetes), Observation (A1C), and ServiceRequest (referral) resources
  • Clinical decision support integration: An AI agent performing medication reconciliation uses the skill to pull the patient's current medication list from the EHR, compare it against a discharge medication list, and flag discrepancies for pharmacist review
  • Research data extraction: An IRB-approved retrospective study needs to extract vital signs, lab results, and diagnosis codes for a cohort of patients. The skill retrieves FHIR Bundles with the relevant resources while respecting access scopes and consent directives

Safety & Evidence

  • Safety Classification: Restricted — This skill accesses real patient health data in electronic health record systems. It requires proper SMART-on-FHIR authorization, institutional approval, and appropriate access scopes. Write operations modify clinical records and must be used with extreme caution under clinician supervision. All data access is logged for audit purposes. The skill must never be deployed without institutional security review and BAA (Business Associate Agreement) compliance.
  • Evidence Level: High — FHIR R4 is the HL7-endorsed interoperability standard mandated by ONC for certified EHR technology under the 21st Century Cures Act. SMART-on-FHIR is the established authorization framework for third-party clinical applications. Implementation follows published HL7 FHIR specifications.

Example Usage

Patient data query:

Connect to FHIR server and retrieve:
- Patient demographics
- Active medications
- Last 5 lab results for hemoglobin A1C
- Active problem list

Patient ID: 12345
FHIR Server: https://fhir.hospital.org/api/v4

Patient Summary (FHIR R4):

Demographics: Name: [Retrieved from Patient resource] DOB: [Retrieved] | Age: [Calculated] | Sex: [Retrieved] MRN: 12345

Active Medications (MedicationRequest, status=active):

  1. Metformin 1000mg BID — prescribed 2025-11-15
  2. Lisinopril 20mg daily — prescribed 2025-08-22
  3. Atorvastatin 40mg daily — prescribed 2025-06-10

A1C History (Observation, LOINC 4548-4):

DateA1CStatus
2026-02-157.8%Final
2025-11-108.2%Final
2025-08-058.9%Final
2025-05-129.1%Final
2025-02-088.7%Final
Trend: Improving (9.1% -> 7.8% over 12 months)

Active Conditions (Condition, clinicalStatus=active):

  1. Type 2 diabetes mellitus (E11.9)
  2. Essential hypertension (I10)
  3. Hyperlipidemia (E78.5)

5 FHIR queries executed in 1.2s. All access logged under session [ID].

Technical Details

  • Category: Diagnosis
  • Author: OMS Contributors
  • License: Apache-2.0
  • Version: 1.0.0
  • Specialty: Health Informatics, Clinical Data Management

References

  • HL7 FHIR R4 Specification — hl7.org/fhir/R4/
  • SMART App Launch Implementation Guide (HL7) — build.fhir.org/ig/HL7/smart-app-launch/
  • 21st Century Cures Act, Section 4003 — ONC interoperability and patient access requirements
  • Mandel JC, et al. "SMART on FHIR: a standards-based, interoperable apps platform for electronic health records." J Am Med Inform Assoc. 2016;23(5):899-908.
  • ONC Health IT Certification Program — healthit.gov

This skill is part of Open Medical Skills, a curated marketplace of medical AI skills maintained by physicians for physicians and the healthcare industry.

Frequently asked questions

What does the Fhir Data Access AI skill do?

Connect to FHIR-compliant electronic health record systems to query, retrieve, and analyze patient data using natural language. Supports full CRUD operations on FHIR resources with SMART-on-FHIR authentication.

Why use Fhir Data Access on TypingMind?

Because you install it once and use it with any model. Fhir Data Access is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fhir Data Access in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Open-Medica/open-medical-skills/tree/main/skills/fhir-data-access. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Fhir Data Access?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fhir Data Access?

As many as you like. As long as a model supports skills, you can use Fhir Data Access with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fhir Data Access AI skill free?

Yes. It is published on GitHub by Open-Medica under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇