FHIR Chat · Editor packages · cql

Stream: cql

Topic: Editor packages


view this post on Zulip Frank Adrian (Dec 09 2021 at 10:16):

I've enjoyed using the CQL packages for the Atom editor in the past. Our team has recently upgraded our compiler to accept FHIR 4.0.1. However, the Atom CQL package doesn't seem to recognize this FHIR version. Does anyone know of any plans to update the CQL packages in Atom to support FHIR 4.0.1? Or am I missing some updates from somewhere?

I've also tried the plugins for VSCode. In my setup, they tend to spew NPEs into the output tab and don't show errors in the problems tab. It could be that there's something wrong with my setup.

So are there any working editor environments for CQL using FHIR 4.0.1 right now? If not, are there any plans to get them to a working state? Or am I doing something wrong?

view this post on Zulip JP (Dec 09 2021 at 17:22):

Atom should support 4.0.1. All of the Measures in the ecqm-content-r4 ig here were authored using Atom/VS Code. Do you have a repro? I'm happy to take a look.

Same goes for VS Code. Where are you seeing the NPEs?

view this post on Zulip Frank Adrian (Dec 10 2021 at 19:06):

Thanks, JP. I started with a vanilla Atom editor. I added the packages language-cql 2.10.1 and language-preview-cql 0.0.8. As far as I know these are the most recent versions. When I load a library using FHIR version 4.0.1, I get an error that says:
"Could not resolve model info provider for model FHIR, version 4.0.1."

Similarly in VSCode, I installed the Clinical Quality Language v0.1.1 extension. I am now getting NPEs on hover:

[Error - 10:42:59 AM] Request textDocument/hover failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.NullPointerException
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:747)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)
at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2182)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:279)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NullPointerException

as well as:

Dec 10, 2021 10:43:12 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 6400

That's basically what's going on. PM me if you need more info.

view this post on Zulip JP (Dec 10 2021 at 20:07):

Try uninstalling language-preview-cql 0.0.8. Those two extensions may be conflicting.

view this post on Zulip Frank Adrian (Dec 11 2021 at 13:53):

Perfect! Thanks for your help. I had no idea that those packages interfered with each other.
Any idea about VSCode (which is my preferred editor these days).

view this post on Zulip JP (Dec 11 2021 at 18:12):

Nothing offhand. I’ll take a look this weekend and see if I can repro the issue.

view this post on Zulip JP (Dec 11 2021 at 21:20):

@Frank Adrian - Messed with it a bit and the VS Code plugin seems to be working as expected for the igs I tried. Do you have a couple CQL files that I can use to attempt to repro?

view this post on Zulip Frank Adrian (Dec 13 2021 at 14:22):

JP said:

Frank Adrian - Messed with it a bit and the VS Code plugin seems to be working as expected for the igs I tried. Do you have a couple CQL files that I can use to attempt to repro?

Unfortunately, nothing I can share. Oddly enough, I do not get the errors on the NCQA digital measures I have checked. I'll do a bit more digging from my side.

view this post on Zulip Frank Adrian (Dec 15 2021 at 02:26):

By the way, JP, I don't seem to be getting warning messages out of the Atom package. I used to get warnings like this one:
"Warning:[459:12, 459:28] List-valued expression was demoted to a singleton.", but I haven't seen any from the latest CQL package. Is there some configuration setting I'm overlooking?

view this post on Zulip JP (Dec 15 2021 at 22:50):

Are you still getting any warnings at all? Or just not that specific one?

view this post on Zulip Frank Adrian (Dec 17 2021 at 16:18):

Hi JP. I'm not getting any, but then that's sort of hard to tell because it's hard to tell the absence of something. I know that I get the demotion warnings on another CQL->ELM translator setup, and I don't have any other ones coming out of it, so I figure there are no other ones there.

view this post on Zulip JP (Dec 17 2021 at 19:51):

Gave Atom a whirl and it seems to be working ok. Not sure how to best help resolve your issues without some type of repro of the issue. :frown:


Last updated: Apr 12 2022 at 19:14 UTC