You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CQL Compiler runs into an Internal Translator Error when processing dependent libraries.
Component
Workflow module
To Reproduce
Create a CQL with a dependent library (e.g. FHIR Helpers)
Create an FHIR Library with a text/cql attachment of 1.
Try to evaluate the library in a given patient.
The stacktrace should be:
org.opencds.cqf.cql.engine.exception.CqlException: Translation of library ImmunityCheck failed with the following message: Internal translator error.
at org.opencds.cqf.cql.evaluator.engine.execution.TranslatingLibraryLoader.translate(TranslatingLibraryLoader.java:130)
at org.opencds.cqf.cql.evaluator.engine.execution.TranslatingLibraryLoader.load(TranslatingLibraryLoader.java:74)
at org.opencds.cqf.cql.evaluator.engine.execution.CacheAwareLibraryLoaderDecorator.load(CacheAwareLibraryLoaderDecorator.java:48)
at org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:256)
at org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:159)
at org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:148)
at org.opencds.cqf.cql.evaluator.CqlEvaluator.evaluate(CqlEvaluator.java:89)
at org.opencds.cqf.cql.evaluator.library.LibraryEvaluator.evaluate(LibraryEvaluator.java:47)
at org.opencds.cqf.cql.evaluator.library.LibraryProcessor.evaluate(LibraryProcessor.java:158)
at org.opencds.cqf.cql.evaluator.library.LibraryProcessor.evaluate(LibraryProcessor.java:92)
at com.google.android.fhir.workflow.FhirOperator.evaluateLibrary(FhirOperator.kt:207)
at org.pathcheck.cqleditorapp.WorkflowTest$compileEvaluateTest$1.invokeSuspend(WorkflowTest.kt:56)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)
at org.pathcheck.cqleditorapp.WorkflowTest.compileEvaluateTest(WorkflowTest.kt:52)
Expected behavior
The compiler should find, compile and load dependent libraries.
Smartphone (please complete the following information):
All Versions are affected.
Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered:
Describe the bug
CQL Compiler runs into an Internal Translator Error when processing dependent libraries.
Component
Workflow module
To Reproduce
The stacktrace should be:
Expected behavior
The compiler should find, compile and load dependent libraries.
Smartphone (please complete the following information):
All Versions are affected.
Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered: