sql-on-fhir

Official

Transform FHIR data into SQL-friendly tables.

Authoraehrc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies the complex task of querying and transforming hierarchical FHIR data into a flat, tabular format suitable for standard data analytics tools and SQL databases.

Core Features & Use Cases

  • FHIR Data Flattening: Create SQL-friendly views from FHIR resources using ViewDefinitions.
  • FHIRPath Extraction: Define columns using FHIRPath expressions for precise data extraction.
  • Complex Data Unnesting: Handle nested structures and arrays using forEach, forEachOrNull, and repeat for recursive traversal.
  • Filtering and Constants: Apply where clauses for filtering and use constants for reusable values.
  • Operations: Execute ViewDefinitions synchronously with $run or asynchronously with $export for bulk data retrieval.
  • Use Case: You need to analyze patient demographics and their associated conditions. This Skill can generate a ViewDefinition to flatten Patient and Condition resources into a single, queryable table.

Quick Start

Use the sql-on-fhir skill to create a ViewDefinition for patient demographics.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sql-on-fhir
Download link: https://github.com/aehrc/pathling/archive/main.zip#sql-on-fhir

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.