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 #11 from MeasureAuthoringTool/feature/MAT-7439-enf…
…orce-FHIRHelpers Feature/mat 7439 enforce fhir helpers
- Loading branch information
Showing
3 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...n/java/gov/cms/mat/cql_elm_translation/exceptions/MissingLibraryCqlCompilerException.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,19 @@ | ||
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 MissingLibraryCqlCompilerException extends CqlCompilerException { | ||
private static final String MESSAGE = | ||
"%s is required as an included library for QI-Core. " | ||
+ "Please add the appropriate version of %s to your CQL."; | ||
|
||
public MissingLibraryCqlCompilerException( | ||
final String library, VersionedIdentifier identifier, int lineNumber) { | ||
super( | ||
String.format(MESSAGE, library, library), | ||
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