sql-on-fhir
OfficialTransform FHIR data into SQL-friendly tables.
Data & Analytics#data transformation#fhir#clinical analytics#sql on fhir#viewdefinition#fhirstar#fhIRPath
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, andrepeatfor recursive traversal. - Filtering and Constants: Apply
whereclauses for filtering and use constants for reusable values. - Operations: Execute ViewDefinitions synchronously with
$runor asynchronously with$exportfor bulk data retrieval. - Use Case: You need to analyze patient demographics and their associated conditions. This Skill can generate a
ViewDefinitionto flattenPatientandConditionresources 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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.