Add pre-evaluation validation framework for Measure operations (DQM-570)#1010
Draft
lukedegruchy wants to merge 2 commits into
Draft
Add pre-evaluation validation framework for Measure operations (DQM-570)#1010lukedegruchy wants to merge 2 commits into
lukedegruchy wants to merge 2 commits into
Conversation
Validate prerequisites (library resolution, ValueSet availability, parameter configuration, expression references) before CQL evaluation begins. Validation runs after MeasureDef construction but before engine setup, avoiding wasted compute and providing structured, actionable error feedback with machine-readable codes and remediation guidance. New domain core (common/): - ValidationSeverity, ValidationIssue, ValidationResult model - MeasureDefValidator strategy interface + CompositeMeasureDefValidator - MeasureDefValidationContext record, MeasureValidationException - ParameterConfigurationValidator base class New R4 validators: - R4CqlLibraryValidator: LIBRARY_NOT_FOUND (ERROR) - R4ValueSetAvailabilityValidator: VALUESET_UNAVAILABLE (WARNING) - R4ParameterConfigurationValidator: MISSING_REQUIRED_PARAMETER (ERROR), UNKNOWN_PARAMETER (WARNING) - R4ExpressionReferenceValidator: EXPRESSION_NOT_FOUND (WARNING) Validation issues surface as contained OperationOutcome resources in MeasureReport with appropriate severity, IssueType, and error codes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…easure-validation
|
Formatting check succeeded! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Validate prerequisites (library resolution, ValueSet availability, parameter configuration, expression references) before CQL evaluation begins. Validation runs after MeasureDef construction but before engine setup, avoiding wasted compute and providing structured, actionable error feedback with machine-readable codes and remediation guidance.
New domain core (common/):
New R4 validators:
Validation issues surface as contained OperationOutcome resources in MeasureReport with appropriate severity, IssueType, and error codes.