cqframework / cqf-exercises Goto Github PK
View Code? Open in Web Editor NEWExercises for CQL
License: Apache License 2.0
Exercises for CQL
License: Apache License 2.0
cqf-exercises/input/cql/Exercises04Key.cql
Line 238 in 59dd08f
Currently looks like:
= { 1, 2, 3, { 'a', 'b' }, 'x', 'y' }
Think it should be:
= { 1, 2, 3, { 'a', 'b' }, {'x', 'y'} }
Executing CQL...
CQL path: c:\Project\sqf-exercises\cqf-exercises\input\cql
Data path: c:\Project\sqf-exercises\cqf-exercises\input\tests\Exercises05
Terminology path: c:\Project\sqf-exercises\cqf-exercises\input\vocabulary\valueset
Patient=null
Patient Gender=null
Patient Gender is Male=null
Patient Marital Status=null
Patient is Married (~)=Patient.maritalStatus - Married
Married in Marital Status=true
Great work on this plugin!
Only issue is that I'm getting the following exception (it doesn't seem to stop me from getting the CQL output though):
11:29:49.936 [pool-2-thread-1] INFO ca.uhn.fhir.context.FhirContext - Creating new FHIR context for FHIR version [R4]
11:29:49.937 [pool-2-thread-1] INFO o.o.cqf.cql.ls.server.manager.IgContextManager - Searching for ini file in file:///Users/wvw/git/fhir/cqf-exercises/input
11:29:49.937 [pool-2-thread-1] INFO o.o.cqf.cql.ls.server.manager.IgContextManager - Attempting to read ini from path file:///Users/wvw/git/fhir/cqf-exercises/ig.ini
11:29:49.937 [pool-2-thread-1] WARN org.opencds.cqf.cql.ls.core.ContentService - error opening stream for: file:///Users/wvw/git/fhir/cqf-exercises/ig.ini
java.io.FileNotFoundException: /Users/wvw/git/fhir/cqf-exercises/ig.ini (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:111)
at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:189)
at java.base/java.net.URL.openStream(URL.java:1161)
at org.opencds.cqf.cql.ls.core.ContentService.read(ContentService.java:43)
at org.opencds.cqf.cql.ls.server.service.FederatedContentService.read(FederatedContentService.java:41)
at org.opencds.cqf.cql.ls.server.manager.IgContextManager.findIgContext(IgContextManager.java:85)
at org.opencds.cqf.cql.ls.server.manager.IgContextManager.readContext(IgContextManager.java:48)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
at org.opencds.cqf.cql.ls.server.manager.IgContextManager.getContext(IgContextManager.java:39)
at org.opencds.cqf.cql.ls.server.command.CqlCommand.call(CqlCommand.java:123)
at org.opencds.cqf.cql.ls.server.command.CqlCommand.call(CqlCommand.java:38)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.opencds.cqf.cql.ls.server.command.DebugCqlCommandContribution.executeCql(DebugCqlCommandContribution.java:45)
at org.opencds.cqf.cql.ls.server.command.DebugCqlCommandContribution.executeCommand(DebugCqlCommandContribution.java:76)
at org.opencds.cqf.cql.ls.server.service.CqlWorkspaceService.executeCommandFromContributions(CqlWorkspaceService.java:165)
at org.opencds.cqf.cql.ls.server.service.CqlWorkspaceService.executeCommand(CqlWorkspaceService.java:110)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.