-
Notifications
You must be signed in to change notification settings - Fork 0
Description
FML Execution Validation Test Suite Requirements
Purpose
Define a FHIR IG-based validation test suite for FML using FHIR TestPlan, with real-world test cases sourced (with license compliance) from community FML projects.
Directory Structure
- FSH TestPlan:
input/fsh/tests/FMLExecutionValidationTestPlan.fsh - Test Data:
input/testdata/- All imported test cases will be stored here, with subfolders as needed.
- License and attribution headers must be preserved and included at the top of every imported file.
Test Data Sources
Importing from ahdis/matchbox and FHIR/fhir-test-cases
- ahdis/matchbox:
- Import
.map,.json, and.xmltest files from matchbox-server/src/test/resources. - Add Apache 2.0 license and attribution at the top of each file.
- Import
- FHIR/fhir-test-cases:
- Import all relevant files from FHIR/fhir-test-cases/r5/structure-mapping.
- Add the FHIR license and attribution at the top of each file.
- Note: fhir-test-cases LICENSE is an HL7 copyright.
How are input, output, and map files connected?
- In fhir-test-cases/r5/structure-mapping:
- Test cases are often defined by filename conventions or manifest files (e.g., YAML or JSON manifests).
- Common pattern:
*-map.txtor.map— FML mapping specification*-input.jsonor.xml— FHIR resource to be mapped*-output.jsonor.xml— Expected output after applying the map- Sometimes, a manifest or README describes more complex scenarios or links files together.
- Mapping strategy:
- When importing, pair files with the same base name, e.g.
patient-map.txt,patient-input.json,patient-output.json. - For ambiguous cases, consult any manifest/readme, or use the test specification logic from the source repository.
- When importing, pair files with the same base name, e.g.
TestPlan/TestScript Design
- Each test case in FML Execution Validation:
- References a map file, an input file, and an expected output file.
- Uses FHIRPath assertions for output validation.
- All file references are relative to
input/testdata/.
Attribution & License Compliance
- Each imported file must include, at the top:
- Source repository and URL
- Original license statement (Apache 2.0 for matchbox, HL7 copyright/license for fhir-test-cases)
- A statement of compliance with original contribution requirements.
To Do
- Script/process to import and attribute test data from
@ahdis/matchboxandFHIR/fhir-test-cases - Explicitly map
.mapfiles to their input/output test cases - Draft FSH TestPlan/TestScript resources
- Migrate all relevant tests and update documentation
- update the README and documentation to add reference to where the resulting published testplan documentation will live on gh-pages.
Copilot
Metadata
Metadata
Assignees
Labels
No labels