Stream: cql
Topic: ELM generation failed
Richard Stanley (Aug 03 2021 at 00:11):
Hi. Can I have a hint as the way to troubleshoot this error: "ELM generation failed with the following error: Cannot determine expression for data requirement because source is not an AliasedQuerySource or LetClause". ELM generation from the Atom plugin shows no errors. The CQL seems to evaluate correctly with test data. (The error is reported out from running _refresh.sh)
Bryn Rhodes (Aug 04 2021 at 13:33):
Hi Richard, that's an issue I'm currently working on, we've recently added some data requirements analysis to the refresh and it (apparently) has some issues. Do you have a repro library I could use to make sure I address the issue for your case as well?
Richard Stanley (Aug 04 2021 at 14:48):
Hi Bryn, thanks! It's KitchenSink.cql here: https://github.com/intrahealth/simple-hiv-ig/blob/master/input/cql/KitchenSink.cql
Bryn Rhodes (Aug 06 2021 at 16:24):
Hi Richard, I believe I've fixes this, can you update your CQF Tooling and try again?
Richard Stanley (Aug 06 2021 at 16:36):
Hi. Awesome. Indeed, it gets past that error now. I see an error with not seeing FHIR Helpers although it is copied into input/resources:
No paths found for the Directory /Users/richard/src/github.com/intrahealth/simple-hiv-ig/input/tests/measure/KitchenSink:
12:29:42.414 [main] WARN o.o.cqf.tooling.utilities.LogUtils - Measure-HIVSimpleGenderSuppDataIndiv could not be processed:
Resource could not be processed: KitchenSink
1 included cql Libraries not found:
FHIRHelpers MISSING
Bryn Rhodes (Aug 06 2021 at 16:38):
Hmm.... do you have a FHIRHelpers.cql source file?
Bryn Rhodes (Aug 06 2021 at 16:38):
You shouldn't need it, but it sounds like maybe the bundling we're doing is requiring it.
Bryn Rhodes (Aug 06 2021 at 16:39):
Yeah, looking through different projects that are all known to be working right now, they all have a FHIRHelpers.cql source file.
Richard Stanley (Aug 06 2021 at 16:40):
Sure, I'll get one and try it.
Bryn Rhodes (Aug 06 2021 at 16:40):
Use the one from here as the source of truth:
Bryn Rhodes (Aug 06 2021 at 16:40):
https://github.com/cqframework/cqf/blob/master/input/cql/FHIRHelpers.cql
Richard Stanley (Aug 06 2021 at 16:52):
Ok, that seems to be accepted. Great. Next error :)
2 missing ValueSets:
http://fhir.org/guides/cqf/cqf-common/ValueSet/inactive-condition MISSING
http://fhir.org/guides/cqf/cqf-common/ValueSet/active-condition MISSING
12:51:19.145 [main] WARN o.o.cqf.tooling.utilities.LogUtils - Measure will not be bundled because ValueSet bundling failed.
No paths found for the Directory /Users/richard/src/github.com/intrahealth/simple-hiv-ig/input/tests/measure/KitchenSink:
12:51:19.145 [main] WARN o.o.cqf.tooling.utilities.LogUtils - Measure-HIVSimpleGenderSuppDataIndiv could not be processed:
Resource could not be processed: KitchenSink
2 missing ValueSets:
http://fhir.org/guides/cqf/cqf-common/ValueSet/inactive-condition MISSING
http://fhir.org/guides/cqf/cqf-common/ValueSet/active-condition MISSING
Richard Stanley (Aug 06 2021 at 16:54):
'inactive-condition' is in my FHIRCommon
Richard Stanley (Aug 06 2021 at 17:04):
Is there a canonical fhir common to use?
Richard Stanley (Aug 06 2021 at 17:10):
Weird, still seeing bundling errors with FHIR Helpers
java.lang.RuntimeException: /Users/richard/src/github.com/intrahealth/simple-hiv-ig/fsh-generated/resources/FHIRHelpers.json (No such file or directory)
at org.opencds.cqf.tooling.utilities.IOUtils.readResource(IOUtils.java:240)
at org.opencds.cqf.tooling.utilities.IOUtils.readResource(IOUtils.java:203)
at org.opencds.cqf.tooling.utilities.ResourceUtils.getR4DepLibraryResources(ResourceUtils.java:219)
at org.opencds.cqf.tooling.utilities.ResourceUtils.getDepLibraryResources(ResourceUtils.java:136)
at org.opencds.cqf.tooling.library.LibraryProcessor.bundleLibraryDependencies(LibraryProcessor.java:67)
at org.opencds.cqf.tooling.measure.MeasureProcessor.bundleMeasures(MeasureProcessor.java:124)
at org.opencds.cqf.tooling.processor.IGBundleProcessor.bundleIg(IGBundleProcessor.java:25)
at org.opencds.cqf.tooling.processor.IGProcessor.publishIG(IGProcessor.java:79)
at org.opencds.cqf.tooling.operation.RefreshIGOperation.execute(RefreshIGOperation.java:34)
at org.opencds.cqf.tooling.Main.main(Main.java:195)
13:09:27.870 [main] WARN o.o.cqf.tooling.utilities.LogUtils - Measure will not be bundled because Library Dependency bundling failed.
Bryn Rhodes (Aug 06 2021 at 17:26):
FHIRCommon in CQF is the source of truth.
Bryn Rhodes (Aug 06 2021 at 17:27):
I can’t run refresh on your ig though because there’s no ig reaource; coming from sushi and I don’t have that
Richard Stanley (Aug 06 2021 at 18:26):
After running sushi it will be in fsh-generated/resources. I'll try the only true and living fhircommon and see how that goes.
Last updated: Apr 12 2022 at 19:14 UTC