forked from MeasureAuthoringTool/madie-qdm-elm-translation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from MeasureAuthoringTool/MAT-6401_noContextError
MAT-6401 missing context error
- Loading branch information
Showing
7 changed files
with
265 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
src/main/java/gov/cms/mat/cql_elm_translation/exceptions/MissingContextException.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package gov.cms.mat.cql_elm_translation.exceptions; | ||
|
||
import org.cqframework.cql.cql2elm.CqlCompilerException; | ||
import org.cqframework.cql.elm.tracking.TrackBack; | ||
import org.hl7.elm.r1.VersionedIdentifier; | ||
|
||
public class MissingContextException extends CqlCompilerException { | ||
private static final long serialVersionUID = -8499197087358679644L; | ||
private static final String MESSAGE = "Measure CQL must contain a Context."; | ||
|
||
public MissingContextException(VersionedIdentifier identifier, int lineNumber) { | ||
super( | ||
MESSAGE, | ||
CqlCompilerException.ErrorSeverity.Error, | ||
new TrackBack(identifier, lineNumber, 0, lineNumber, 0)); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.