plain-language

HL7 FHIR Implementation Guide Analyzer

This project contains the plain language summaries for published HL7 implementation guides, and also AI based scripts to fetch, analyze, and summarize HL7 FHIR Implementation Guides (IGs).

Plain Language Summaries

As an example, https://fhir.org/guides/acme/HotBeverage/1.4.2022/ has a plain language summary:

example summary

This is authored by the file summaries/fhir.acme.hotbeverage.md:

# General

This (fake) standard was published on 1st April 2022 as an insider's April Fools Joke. No further versions are planned (unless/until someone else *likes* the joke)

# 1.4.2022

This (fake) version of the standard was published on 1st April 2022 as an insider's April Fools Joke. No further versions are planned (unless/until someone else *likes* the joke)

If it matters, the markdown syntax is commonmark

AI Scripts

Prerequisites

Setup

  1. Clone this repository:
    git clone <repository-url>
    cd <repository-name>
    
  2. Install dependencies:
    bun install
    
  3. Set up Google Cloud credentials:
    gcloud auth application-default login
    
  4. Set your Anthropic API key as an environment variable:
    export ANTHROPIC_API_KEY=your_api_key_here
    

Usage

1. Fetch HL7 Repositories

Run the hl7repo.ts script to fetch HL7 repositories:

bun run hl7repo.ts

This script will:

2. Process Repositories

After fetching the repositories, you can process them using the process_repo.ts script:

bun run process_repo.ts repos/<repository-name>

Replace <repository-name> with the name of the repository you want to process.

This script will:

Output

Each summary in the summaries/ directory is a markdown file named after the IG, containing a concise, plain-language description of the IG’s purpose, features, and relevance.

Notes

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

The code in this project is licensed under the MIT License. The summaries themselves are Creative Commons Public Domain.