-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
age.cql Example #229
Comments
Thanks for reporting this, @joelmontavon. This is neither user error nor a bug. It's actually just an important piece of information we forgot to document! Thank you for pointing it out! That example uses an example data model called the If you adjust your command to be this instead, it should work:
(Note that I also left removed the |
Thanks for clarifying! I am now able to create the JSON file for the example. |
Thanks for confirming. I am going to close this issue but create a new one to update the documentation to reflect the need to pass in the |
Hey @cmoesel
The error is:
The same command does seem to be working for |
Hi @csenn. Sorry for the delay. It looks like something changed in the CQL-to-ELM translator so that it no longer properly supports the |
It turns out there is already a bug filed for that (and I contributed to the conversation). It's referenced above. I added a comment to bump it. |
@cmoesel - I can still see that bug is still in Open state and not resolved. So, whats the workaround for this problem? |
Hi @rohituks -- I just tried this again and can confirm it is still broken. Since the bug is in the CQL-to-ELM translator, I'd recommend commenting on the issue there (cqframework/clinical_quality_language#619) to see if there are plans to fix it soon. The only workaround I'm aware of would be to create a Java script that can use the cql-to-elm translator library and invoke it via its API to load the custom model. Perhaps someone who works on the Translator might have a better idea though. All that said, to be clear -- this is only needed if you're using a custom model (like the |
@rohituks just to confirm what @cmoesel said, I ended up using the FHIR v4 model (which was essentially what I was trying to do get working in the first place). For instance something like:
|
When I try to create the JSON file for the age.sql example, I get the error:
joel@ubuntu:~/Documents/clinical_quality_language/Src/java$ ./cql-to-elm/build/install/cql-to-elm/bin/cql-to-elm --format=JSON --input /home/joel/Documents/cql-execution/examples/node/age.cql --output /home/joel/Documents/cql-execution/examples/node
TRANSLATE /home/joel/Documents/cql-execution/examples/node/age.cql
Translation failed due to errors:
Error:[5:1, 5:28] Could not resolve model info provider for model Simple, version 1.0.0.
Error:[9:1, 9:15] Could not resolve context name Patient in model System.
Error:[12:5, 12:44] Could not resolve identifier Patient in the current library.
Is this user error or a bug?
The text was updated successfully, but these errors were encountered: