Implement FML Execution Validation Test Suite with FHIR IG-based TestPlan #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements a comprehensive FHIR IG-based validation test suite for FML (FHIR Mapping Language) execution as requested in issue #XXX. The test suite provides a complete framework for validating FML execution capabilities using real-world test cases sourced from community FML projects with proper license compliance.
🎯 Key Features
FHIR IG Test Structure
FMLExecutionValidationTestPlan.fshdefining test cases, validation requirements, and test data referencesinput/testdata/directory with subfolders for different test sourcesTest Case Import and Attribution
scripts/import-test-data.jsimports test cases from ahdis/matchbox and FHIR/fhir-test-cases repositoriesscripts/explore-test-repos.jsdiscovers available test files in external repositoriesTest Data Management
test-manifest.jsonexplicitly maps.mapfiles to their corresponding input/output test casesscripts/validate-test-data.jsensures test data integrity and validates JSON structure📂 Directory Structure
🛠 Usage
The test suite includes convenient NPM scripts:
📋 Test Case Structure
Each test case follows standardized naming conventions:
*-transform.mapor*.map— FML mapping specification*-input.json— FHIR resource to be mapped*-output.json— Expected output after applying the mapFiles are paired by base name (e.g.,
patient-transform.map,patient-input.json,patient-output.json) and explicitly mapped in the test manifest.📚 Documentation
https://litlfred.github.io/fmlrunner/TestPlan/FMLExecutionValidationTestPlan.html✅ Validation Results
All test cases validate successfully:
This implementation provides a solid foundation for comprehensive FML execution testing while maintaining full compliance with external project licensing requirements.
Note: This implementation uses FHIR TestPlan resources only, without TestScript resources, as requested.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.