ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.

TestPlan

The test plan for a FHIR IG or implementation: scenarios, dependencies, test data, expectations. The quality governance layer.

Purpose

TestPlan structures the test plan applicable to a FHIR project: functional scenarios, data sets, dependencies, acceptance criteria. It complements TestScript (executable test cases) by formalising what must be tested before go-live and who signs off the results. A key tool of HL7 connectathons and ONC certification.

Key elements

FieldTypeCardinalityRole
urluri0..1Canonical URL.
identifierIdentifier[]0..*External identifiers.
statuscode1..1`draft`, `active`, `retired`, `unknown`.
categoryCodeableConcept[]0..*Category (functional, performance, security).
scopeReference(Any)[]0..*Scope.
testCaseBackboneElement[]0..*Test cases (scenarios, dependencies, data).
dependencyBackboneElement[]0..*External dependencies.
exitCriteriamarkdown0..1Exit acceptance criteria.

JSON example

json testplan-example.json
{
  "resourceType": "TestPlan",
  "id": "example-testplan-ig-fr",
  "url": "https://ans.gouv.fr/fhir/TestPlan/ig-fr-core-2026",
  "version": "1.0.0",
  "name": "TestPlanFRCoreCore2026",
  "title": "Plan de tests IG FR Core 2026",
  "status": "active",
  "date": "2026-05-15",
  "category": [{
    "coding": [{
      "system": "http://hl7.org/fhir/CodeSystem/testscript-scope",
      "code": "conformance"
    }]
  }],
  "testCase": [{
    "sequence": 1,
    "scope": [{
      "reference": "StructureDefinition/FRCorePatient"
    }],
    "assertion": [{
      "type": [{
        "coding": [{
          "system": "http://hl7.org/fhir/testplan-assertion-type",
          "code": "must-support"
        }]
      }],
      "object": [{
        "coding": [{
          "system": "http://hl7.org/fhir/test-data-type",
          "code": "ins-nir"
        }]
      }]
    }]
  }]
}

Common pitfalls

  • TestPlan / TestScript confusion: TestPlan is documentary; TestScript is executable.
  • No exitCriteria: no end-of-test measure.
  • Test cases without data: non-reproducible.