<!-- COPYRIGHT NOTICE This file is part of the "Universal Biomedical Skills" project. Copyright c 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu All Rights Reserved. This code is proprietary and confidential. Unauthorized copying of this file, via any medium is strictly prohibited. Provenance:
Install with the open skills CLI (global, non-interactive — available in every Claude Code session):
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill "ehr-fhir-integration" -g -a claude-code -yOr manually — clone and copy the skill directory (SKILL.md + companion files):
git clone --depth 1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills /tmp/OpenClaw-Medical-Skills && cp -r /tmp/OpenClaw-Medical-Skills/skills/ehr-fhir-integration ~/.claude/skills/ehr-fhir-integrationThis skill is a directory: SKILL.md is the entry point; the files below ship with it.
<!--
# COPYRIGHT NOTICE
# This file is part of the "Universal Biomedical Skills" project.
# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>
# All Rights Reserved.
#
# This code is proprietary and confidential.
# Unauthorized copying of this file, via any medium is strictly prohibited.
#
# Provenance: Authenticated by MD BABU MIA
-->
---
name: 'ehr-fhir-integration'
description: 'Provides comprehensive tools for working with Electronic Health Records (EHR) using the HL7 FHIR standard.'
measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes.
allowed-tools:
- read_file
- run_shell_command
---
# EHR/FHIR Integration
The **EHR/FHIR Integration Skill** enables AI agents to interact with FHIR servers to search, read, and analyze clinical data.
## When to Use This Skill
* When you need to retrieve patient demographics, conditions, medications, or lab results from an EHR.
* When performing population health analysis on a cohort of patients.
* When validating clinical data against the FHIR R4 standard.
## Core Capabilities
1. **Patient Search**: Find patients by name, birthdate, or ID.
2. **Clinical Data Retrieval**: Fetch Conditions, Observations, MedicationRequests, and Procedures.
3. **Data Export**: Export clinical data to JSON or Pandas-ready formats.
## Workflow
1. **Configure**: Set up the FHIR server URL and authentication (if needed).
2. **Execute**: Run the `fhir_client.py` script with the desired resource and parameters.
## Example Usage
**User**: "Find patient John Smith born after 1980."
**Agent Action**:
```bash
python3 Skills/Clinical/EHR_FHIR_Integration/fhir_client.py \
--server https://hapi.fhir.org/baseR4 \
--resource Patient \
--search "name=Smith&birthdate=gt1980-01-01" \
--output patients.json
```
<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->Build fully-integrated 3-statement models (IS, BS, CF) in Excel with working capital schedules, D&A roll-forwards, debt schedule, and the plugs that make cash and retained earnings tie. Pairs with excel-author.
Airtable REST API via curl. Records CRUD, filters, upserts.
Search arXiv papers by keyword, author, category, or ID.