A comprehensive collection of AI prompts for authoring FHIR Implementation Guides (IGs) using FHIR Shorthand (FSH). This repository provides structured prompts that guide you through creating FHIR artifacts, from initial planning to final validation.
- Structured AI Prompts for every aspect of FHIR IG authoring
- Complete Workflow Examples showing prompts in action
- Organized FSH Structure following FHIR IG best practices
- Real-World Guidance based on FHIR DevDays 2025 experience
- Validation-Focused prompts ensuring SUSHI and IG Publisher compatibility
Navigate to input/pagecontent/ to find comprehensive prompts for:
- Profile Creation
- Extension Definition
- Value Set Creation
- Examples Creation
- Validation & Testing
- Troubleshooting
Check out the complete working example in input/fsh/ that demonstrates:
- How to use prompts to create FHIR artifacts
- Proper folder organization for FSH files
- Complete workflow from prompts to implementation
Copy the relevant prompts from the documentation and customize them for your specific FHIR IG needs.
Before building your IG, you'll need to install the required tools:
SUSHI is the compiler that converts your FSH files into FHIR artifacts.
Installation:
# Using npm
npm install -g fsh-sushiDocumentation: Visit FSH School for comprehensive SUSHI documentation, tutorials, and examples.
The IG Publisher generates the final HTML documentation from your compiled FHIR artifacts.
First Time Setup:
# On macOS/Linux
sh _updatePublisher.sh
# On Windows
_updatePublisher.batThis script will:
- Download the latest IG Publisher (~200 MB)
- Create an
input-cache/folder - Update all build scripts to the latest versions
The sushi-config.yaml file controls how SUSHI processes your FSH files and generates your Implementation Guide. This file is essential for customizing your IG's metadata, structure, and behavior.
For complete configuration options, see the SUSHI Configuration Documentation.
# Compile your FSH files to FHIR artifacts
sushi
# This creates the 'fsh-generated' folder with compiled resources# Generate the IG once (Recommended)
sh _genonce.sh # macOS/Linux
_genonce.bat # Windows
# Or generate continuously (watches for changes)
sh _gencontinuous.sh # macOS/Linux
_gencontinuous.bat # WindowsThe repository includes several build scripts that handle different aspects of IG generation:
| Script | Purpose | When to Use |
|---|---|---|
_updatePublisher.sh/.bat |
Downloads latest IG Publisher and updates all scripts | First time setup, when updating tools |
_genonce.sh/.bat |
Generates the IG once from current artifacts | When you want to build the final IG |
_gencontinuous.sh/.bat |
Watches for changes and regenerates automatically | During development and testing |
_build.sh/.bat |
Complete build process (SUSHI + IG Publisher) | Full build from FSH to final IG |
After running the build scripts, you'll find:
fsh-generated/- FHIR artifacts compiled from your FSH filesoutput/- Final HTML documentation and IG resourcestemp/- Temporary files used during generationqa/- Quality assurance reports and validation results
# Check FSH syntax
sushi --lint .
# Validate against FHIR spec
sushi --validate .- Missing dependencies: Ensure all referenced resources exist
- Invalid references: Check that resource IDs match exactly
- Terminology issues: Verify value set and code system references
For more detailed troubleshooting, see the Troubleshooting guide.
The repository includes a complete example showing proper FHIR IG folder structure:
input/fsh/
βββ codesystems/ - Code system definitions
βββ valuesets/ - Value set definitions
βββ extensions/ - Extension definitions
βββ profiles/ - Profile definitions
βββ instances/ - Example instances
βββ patient.fsh - Overview and workflow documentation
The repository demonstrates a complete workflow using prompts:
-
Code System Creation β
CommonColors.fsh- Uses prompts from
value-set-creation.md - Creates a code system for basic colors
- Uses prompts from
-
Value Set Creation β
FavoriteColors.fsh- Uses prompts from
value-set-creation.md - References the color code system
- Uses prompts from
-
Extension Creation β
PatientFavoriteColor.fsh- Uses prompts from
extension-definition.md - Bound to the color value set
- Uses prompts from
-
Profile Integration β
MyPatient.fsh- Uses prompts from
extension-definition.md - Includes the favorite color extension
- Uses prompts from
-
Example Creation β
PatientExample.fsh- Uses prompts from
examples-creation.md - Demonstrates the complete profile
- Uses prompts from
- Structured Prompts: Each prompt is designed for specific FHIR artifacts
- Validation Focus: All prompts ensure SUSHI and IG Publisher compatibility
- Best Practices: Built-in guidance for FHIR R4/R5 standards
- Real Examples: Working FSH code that demonstrates proper usage
- Terminology: Code systems, value sets, and terminology bindings
- Profiling: Resource profiles, extensions, and constraints
- Examples: Instance creation and workflow documentation
- Quality: Validation, testing, and troubleshooting guidance
- Copy-Paste Ready: Prompts can be used directly with AI assistants
- Contextual Guidance: Each prompt includes relevant FHIR specifications
- Workflow Integration: Prompts work together to create complete IGs
- Maintenance: Organized structure for long-term project management
input/pagecontent/
βββ getting-started.md - Getting started guide
βββ profile-creation.md - Profile creation prompts
βββ extension-definition.md - Extension definition prompts
βββ value-set-creation.md - Value set creation prompts
βββ examples-creation.md - Example creation prompts
βββ validation-testing.md - Validation and testing prompts
βββ troubleshooting.md - Troubleshooting guidance
βββ llm-integration.md - LLM integration strategies
βββ prompt-templates.md - Reusable prompt structures
βββ publishing-deployment.md - Publishing and deployment
βββ index.md - Main documentation index
- Start with Getting Started
- Review the FSH examples to see prompts in action
- Use Profile Creation prompts for basic profiles
- Explore Extension Definition prompts
- Use Value Set Creation for terminology
- Create Examples to validate your profiles
- Master Validation & Testing workflows
- Use LLM Integration for complex scenarios
- Implement Publishing & Deployment strategies
- Copy the exact prompts from the documentation
- Customize the context for your specific use case
- Provide existing artifacts when asking for modifications
- Validate results with SUSHI and IG Publisher
You are a FHIR [Specialist Type] Expert.
[Copy the prompt from the relevant documentation]
My [artifact type] will be used by [describe your implementers]
for [describe your specific scenarios].
- FHIR R4/R5 compatibility
- SUSHI for FSH processing (Installation Guide)
- IG Publisher for IG generation
- AI Assistant (Claude, GPT, etc.) for prompt usage
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Add your prompts or improve existing ones
- Test with SUSHI and IG Publisher
- Submit a pull request
- Follow the existing prompt structure
- Include working FSH examples
- Ensure SUSHI validation passes
- Add appropriate documentation
- Test with real FHIR IGs
- Check the Troubleshooting guide
- Review Validation & Testing prompts
- Ensure your FSH follows the examples structure
- FHIR Community
- FHIR DevDays
- HL7 FHIR
- FSH School - SUSHI documentation and tutorials
This project is licensed under the LICENSE file.
This IG is using the custom Topology FHIR IG template
To return this to default FHIR IG template set the ig.ini template paramter to template = fhir.base.template#current this will return the IG to the default template when you run the publisher again.