clinical_quality_language icon indicating copy to clipboard operation
clinical_quality_language copied to clipboard

CQL to ELM conversion error

Open shardulbanker opened this issue 4 years ago • 2 comments

Hi, I have configured project and performed all required steps before CQL to ELM conversion. Now I am using given CQL example file: ChlamydiaScreening_CQM.cql for ELM conversion but it is throwing below error.

Please let me know how to resolve this error and proceed further.

_D:\git_workspace\cql\Src\java\cql-to-elm\build\install\cql-to-elm\bin>cql-to-elm --input D:\git_workspace\cql\Examples\ChlamydiaScreening_CQM.cql

TRANSLATE D:\git_workspace\cql\Examples\ChlamydiaScreening_CQM.cql Translation failed due to errors: Warning:[37:14, 37:50] Could not resolve code path item.code for the type of the retrieve QUICK.DiagnosticOrder. Warning:[37:14, 37:50] Could not resolve membership operator for terminology target of the retrieve. Warning:[38:14, 38:44] Could not resolve code path item.code for the type of the retrieve QUICK.DiagnosticOrder. Warning:[38:14, 38:44] Could not resolve membership operator for terminology target of the retrieve. Warning:[39:14, 39:62] Could not resolve code path item.code for the type of the retrieve QUICK.DiagnosticOrder. Warning:[39:14, 39:62] Could not resolve membership operator for terminology target of the retrieve. Warning:[40:14, 40:81] Could not resolve code path item.code for the type of the retrieve QUICK.DiagnosticOrder. Warning:[40:14, 40:81] Could not resolve membership operator for terminology target of the retrieve. Error:[51:1, 51:18] Could not resolve context name Population in model QUICK._

Thanks and regards, Shardul

shardulbanker avatar Apr 08 '20 08:04 shardulbanker

Thank you for the report, it looks the issue is that since the example doesn't use a versioned reference to QUICK, when the new translator was released, it bumped the latest version of QUICK to 4.0.0. If you set the version of QUICK for that example to "1.6" that should address the issue. We will add this to the backlog to fix the examples based on the new version of QUICK.

brynrhodes avatar Apr 08 '20 14:04 brynrhodes

Hi,

I have configured project and performed all required steps before CQL to ELM conversion. When i am executing below command C:\Documents\HDE\clinical_quality_language-master\clinical_quality_language-master\Src\java> ./cql-to-elm/build/install/cql-to-elm/bin/cql-to-elm --format=JSON --input ../../../../cql-execution-master/examples/node/age.cql --output ../../../../cql-execution-master/customCQL I am getting this error

Error: Main method not found in class org.cqframework.cql.cql2elm.CqlTranslator, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application

Please let me know how to resolve this error .

Thank you.

nehaghub avatar Jul 28 '22 17:07 nehaghub

for the error Error:[51:1, 51:18] Could not resolve context name Population in model QUICK. when running the example, I found commenting out the line, context Population works in clinical_quality_language/Examples/ChlamydiaScreening_CQM.cql

dqtran91 avatar Dec 05 '23 21:12 dqtran91

Closing as duplicate of #462

JPercival avatar Jan 20 '24 02:01 JPercival