بنقرة واحدة
fhir-ig-to-ai
Convert a FHIR Implementation Guide full zip download into a single AI-friendly markdown document
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Convert a FHIR Implementation Guide full zip download into a single AI-friendly markdown document
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | fhir-ig-to-ai |
| description | Convert a FHIR Implementation Guide full zip download into a single AI-friendly markdown document |
| argument-hint | <path-to-full-ig.zip> [output-directory] |
Convert the FHIR Implementation Guide zip file at $ARGUMENTS into a single, consolidated, AI-optimized markdown document.
If only one argument is provided, it is the zip file path and the output will be placed in the same directory as the zip file. If two arguments are provided, the second is the output directory.
_ig_extract_temp/ next to the zip)site/ai.zip inside (the IG publisher generates this) — if found, extract it to _ig_extract_temp/ai/ai.zip, fall back to collecting .md files from site/ImplementationGuide-*.json in the site rootsite/index.md or site/index.html for the IG metadatasequoia.fhir.us.rce)1.12.0)4.0.1)active)Read all the markdown files and categorize them:
index.md, specification pages, change logs — these contain the human-readable guidanceStructureDefinition-*.md — contain profile constraints as prose + JSONOperationDefinition-*.md — custom operationsOrganization-*.md, Endpoint-*.md, Patient-*.md, etc. — example resource instancesCreate a SINGLE markdown file with this structure. The goal is to be information-dense but readable for an AI model consuming it in a context window:
Use this pattern: {short-ig-name}-v{version}-ai-friendly.md
rce-ig-v1.12.0-ai-friendly.md, us-core-v6.1.0-ai-friendly.md, udap-security-v1.1.0-ai-friendly.md# {IG Title} v{Version}
> **Package**: `{packageId}#{version}`
> **FHIR Version**: {fhirVersion}
> **Status**: {status} as of {date}
> **Publisher**: {publisher}
> **Official URL**: {url}
---
## 1. Overview
{Content from index.md / introduction — the narrative overview, stripped of navigation boilerplate}
### Dependencies
{Table of IG dependencies with package IDs and versions}
## 2. Specification
{Content from specification/guidance pages — the normative text about actors, API details, general guidance}
{Strip navigation boilerplate like TOC links, "Formal Views" references, CSV/Excel/Schematron links}
## 3. Resource Profiles
{For each StructureDefinition profile:}
### 3.N {Profile Title}
| | |
|---|---|
| **URL** | `{canonical URL}` |
| **Base** | `{base profile name}` |
{Description paragraph}
**Key Constraints:**
{Table of invariants with ID, severity, human-readable description}
**Key Element Requirements:**
{Bullet list of important differential elements with cardinalities, must-support flags, bindings, fixed values}
{Focus on WHAT IS DIFFERENT from the base — the differential, not the full snapshot}
{Do NOT include the full raw JSON StructureDefinition — it's too verbose for AI consumption.
DO preserve: constraint expressions, binding strengths/valuesets, cardinality changes, pattern values, slicing details}
## 4. Extensions
{Table of extensions with name, used-on, and description}
{If extensions are defined externally, note where they come from}
## 5. Terminology
{Tables of CodeSystems and ValueSets with URLs and key codes}
## 6. Operations
{For each OperationDefinition: name, URL, scope, description, parameters (in/out)}
## 7. Capability Statements
{If present: server/client capabilities}
## 8. Examples
{Include 1-2 representative examples per profile in full JSON}
{For large sets of similar examples (like 16 Organization examples), include just the most illustrative ones
and summarize the rest in prose or ASCII diagrams showing the relationships}
## 9. Profile Inheritance Chain
{ASCII diagram showing the inheritance hierarchy}
## 10. Change Log
{Recent changes in compact table format — date, version, summary}
date fields in JSON_ig_extract_temp/)site/ at the top level, look for the content directly in the root