FHIR Implementation Guide Test Data Guide

FHIR Implementation Guide Test Data Guide

Overview

This guide explains how to incorporate and manage test data in FHIR Implementation Guides, with a specific focus on FUT's Implementation Guide. The need for comprehensive test data is twofold: to exemplify profiling work and to accelerate development processes for both client and server implementations.

Understanding Test Data in FHIR Implementation Guides

FHIR Implementation Guides (including FUT's Implementation Guide) can incorporate test data that serves multiple purposes:

  • Exemplifying profiles: Shows how data profiles should be structured and used

  • Accelerate development: Provides ready-to-use examples for client and server development

  • Validation: Examples are verified by the toolchain that builds Implementation Guides, ensuring profiles work as intended

Finding Examples in the Implementation Guide

  1. Navigate to the specific profile (e.g., ehealth-patient profile)

testdata-1.png
  1. Click on the "Examples" tab

    testdata-2.png
  2. View the available example data that the author has included. For the ehealth-patient profile, you can find:

What Test Data Can Cover

  • Arbitrary data graphs

  • Complex profiling scenarios

  • Multiple related resources

  • Various use cases and edge cases

Current Limitations

  • State Changes: Test data cannot express state transitions or temporal changes

  • Dynamic Scenarios: Limited to static snapshots of data

Governance Considerations

The second part of managing test data involves governance decisions around:

  1. Deployment Frequency: How often test data should be deployed to environments

  2. Environment Resets: When and how often environments should be reset

  3. Data Set Management: Establishing and maintaining larger test data sets

Industry Standards

This approach follows standard FHIR practices used across the ecosystem:

  • HL7 Denmark: https://hl7.dk/fhir/core/StructureDefinition-dk-core-patient-examples.html

  • MedCom Implementation Guides: Similar structure and approach

  • International FHIR Implementation Guides: Consistent methodology worldwide

Best Practices

For Implementation Guide Authors

  1. Start Small: Begin with basic examples and expand as needed

  2. Quality Over Quantity: Focus on meaningful examples rather than volume

  3. Maintenance Planning: Consider long-term maintenance when adding examples

  4. Documentation: Document the purpose and context of each example