fhir-bulk-data

Implement HL7 FHIR Bulk Data Access with $export and NDJSON workflows.

133|23|Updated Mar 23, 2020
One-click install
npx skills add https://github.com/aehrc/pathling --skill fhir-bulk-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fhir-bulk-data
Source: https://github.com/aehrc/pathling/tree/main/.claude/skills/fhir-bulk-data
Command: npx skills add https://github.com/aehrc/pathling --skill fhir-bulk-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for implementing and utilizing the HL7 FHIR Bulk Data Access specification, simplifying the export and management of large FHIR datasets.

Core Features & Use Cases

  • FHIR Bulk Export: Implement server-side $export operations or client-side data retrieval.
  • Asynchronous Workflows: Understand and implement the polling mechanism for large data transfers.
  • NDJSON Handling: Process and generate data in the Newline Delimited JSON format.
  • Authorization: Integrate with SMART Backend Services for secure data access.
  • Use Case: A healthcare analytics platform needs to ingest daily patient data from multiple FHIR servers. This Skill guides the implementation of a robust client to handle the $export operation, process the NDJSON files, and manage authentication.

Quick Start

Use the fhir-bulk-data skill to understand how to initiate a Patient $export operation for Observation and Condition resources since January 1st, 2024.

Frequently Asked Questions about fhir-bulk-data

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

FAQPage Schema
How do I implement a FHIR $export operation for bulk data access?

FHIR bulk data access uses the $export operation to initiate large dataset retrievals. You trigger the export via a specific endpoint, then implement an asynchronous polling workflow to check status and retrieve generated NDJSON files when ready.

What is the NDJSON format used for in FHIR bulk data exports?

NDJSON, or Newline Delimited JSON, is the file format used in FHIR bulk data exports to stream large volumes of resources. Each line contains a single FHIR resource, allowing efficient processing of large datasets without loading entire files into memory.

How does SMART Backend Services authorization work for FHIR bulk data?

SMART Backend Services authorization secures FHIR bulk data access by using asymmetric cryptography. Clients authenticate via a signed JWT token to obtain access tokens, enabling machine-to-machine data retrieval without interactive user consent.

How do I build a client to handle asynchronous FHIR bulk data polling?

Building a FHIR bulk data client requires initiating the $export request, receiving a polling URL, and periodically checking its status. Once complete, the client downloads and processes the output NDJSON files from the provided links.

Can I export specific FHIR resources like Observation and Condition using bulk data access?

FHIR bulk data access supports exporting specific resources like Observation and Condition. You can use type-level $export operations or apply parameters to filter data by resource type and date ranges.

What are the limitations of asynchronous polling in FHIR bulk data workflows?

Asynchronous polling in FHIR bulk data workflows requires handling potential timeouts and large file downloads. Servers may delete output files quickly after generation, so clients must download NDJSON files immediately upon completion.