Stream: cql
Topic: CQL Translator 1.5.6 Release
Bryn Rhodes (Dec 30 2021 at 23:10):
We have released an update to the 1.5 CQL-to-ELM translator and directly associated tooling. The release packages have been uploaded to the sonatype repositories.
Release notes are available here:
Release CQL 1.5 Maintenance Release (v1.5.6)
https://github.com/cqframework/clinical_quality_language/releases/tag/v1.5.6
Tien Thai (Feb 15 2022 at 19:06):
Hi,
I am getting the following error but not sure if the CQL-to-ELM translator I am using is outdated. Can you please advise? Thank you very much for your help.
Regards,
Tien Thai
C:\CQL_Project\clinical_quality_language-master\Src\java\cql-to-elm\build\install\cql-to-elm\bin>cql-to-elm --input C:\CQL_Project\AHRQ-CDS-Connect-CQL-SERVICES-2.0.0\config\libraries\guidance_for_osteoporosis\Guidance-for-Osteoporosis.cql --output C:\CQL_Project\AHRQ-CDS-Connect-CQL-SERVICES-2.0.0\config\libraries\guidance_for_osteoporosis -f JSON
================================================================================
TRANSLATE C:\CQL_Project\AHRQ-CDS-Connect-CQL-SERVICES-2.0.0\config\libraries\guidance_for_osteoporosis\Guidance-for-Osteoporosis.cql
Translation failed due to errors:
Error:[4:1, 4:58] Invalid version format
Error:[11:3, 11:36] Could not resolve identifier Recommendations-for-Osteoporosis in the current library.
Error:[15:7, 15:32] Could not validate reference to expression Has Fall Risk Conditions because its definition contains errors.
Error:[18:4, 18:27] Could not validate reference to expression MeetsInclusionCriteria because its definition contains errors.
Error:[27:10, 27:33] Could not validate reference to expression MeetsInclusionCriteria because its definition contains errors.
Chris Moesel (Feb 15 2022 at 19:59):
It says there is an invalid version format on line 4. What is line 4 in your CQL?
Tien Thai (Feb 15 2022 at 20:14):
Yes, it is the line that includes the external CQL library (i.e. Recommendations-for-Osteoporosis) which is also present in the same folder. I am sure why it says "Could not resolve identifier Recommendations-for-Osteoporosis in the current library" when this library does exist in the same package.
Tien Thai (Feb 15 2022 at 20:15):
guidance_for_osteoporosis_v_cql.zip
Chris Moesel (Feb 15 2022 at 21:15):
It failed CQL-to-ELM for me too. I experimented with it and found that if I changed the name of the library "Recommendations-for-Osteoporosis"
to "RecommendationsForOsteoporosis"
, then it worked correctly. @Bryn Rhodes -- is there possibly a bug in the CQL-to-ELM translator related to using include
with a quoted library name containing the -
character?
Tien Thai (Feb 16 2022 at 17:43):
It is working now. Thanks Chris!
Chris Moesel (Feb 16 2022 at 17:54):
You're welcome. I think that quoted library names with -
are technically allowed, but not encouraged (and apparently not fully supported by CQL-to-ELM right now). The FHIR Clinical Guidelines IG contains some guidance for authoring CQL libraries, and says:
The library identifier SHALL be a valid un-quoted identifier and SHALL NOT contain underscores
Since -
only works in a quoted identifier, then according to that guidance, -
should not be used in a library identifier.
Tien Thai (Feb 16 2022 at 19:06):
Yes, I forgot the naming convention for CQL library. However, the "Invalid Version Format" error message seems to be a bit confusing. Thank you very much for your help.
Bryn Rhodes (Feb 16 2022 at 20:48):
Yes, it sounds like the translator might be doing something wrong there. I've submitted an issue to follow up on this: https://github.com/cqframework/clinical_quality_language/issues/726
Last updated: Apr 12 2022 at 19:14 UTC