Skip to content
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

CQL-to-ELM Translator - STDOUT Option #731

Open
joelmontavon opened this issue Mar 7, 2022 · 4 comments
Open

CQL-to-ELM Translator - STDOUT Option #731

joelmontavon opened this issue Mar 7, 2022 · 4 comments
Labels

Comments

@joelmontavon
Copy link

I'm trying to use the --stdout option for the CQL-to-ELM Translator but am getting an error that stdout is not a recognized option.

D:\projects\cql\clinical_quality_language\Src\java>"C:\Program Files\Java\jdk-11.0.10\bin\java.exe" -classpath "D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\cql-to-elm-1.5.4.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\elm-1.5.4.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\model-1.5.4.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\quick-1.5.4.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\qdm-1.5.4.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jaxb2-basics-0.12.0.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jackson-module-jaxb-annotations-2.10.1.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jakarta.xml.bind-api-2.3.3.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jackson-databind-2.10.1.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jackson-annotations-2.10.1.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\org.eclipse.persistence.moxy-2.7.7.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\cql-1.5.4.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jopt-simple-4.7.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\ucum-1.0.3.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jaxb2-basics-tools-0.12.0.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jaxb2-basics-runtime-0.12.0.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\javaparser-1.0.11.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jakarta.activation-api-1.2.2.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\org.eclipse.persistence.core-2.7.7.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\antlr4-runtime-4.9.1.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\commons-lang3-3.10.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\xpp3-1.1.4c.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\xpp3_xpath-1.1.4c.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jackson-core-2.10.1.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\jcl-over-slf4j-1.7.7.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\slf4j-api-1.7.7.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\commons-beanutils-1.9.3.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\org.eclipse.persistence.asm-2.7.7.jar;D:\projects\cql\clinical_quality_language\Src\java\cql-to-elm\build\install\cql-to-elm\lib\commons-collections-3.2.2.jar" org.cqframework.cql.cql2elm.CqlTranslator --input D:\projects\cql\cql-execution\examples\node\test.cql --stdout
Exception in thread "main" joptsimple.UnrecognizedOptionException: 'stdout' is not a recognized option
at joptsimple.OptionException.unrecognizedOption(OptionException.java:89)
at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:447)
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
at joptsimple.OptionParser.parse(OptionParser.java:379)
at org.cqframework.cql.cql2elm.CqlTranslator.main(CqlTranslator.java:768)

@csandersdev
Copy link
Contributor

The CqlTranslator does not currently define a stdout option in is options parser definition. You can either use the output option to define a target file or folder or, if not present, the translator will automatically determine a target relative to the CQL source that is being translated.

I do see that the Overview.MD mentions it, so maybe this is a documentation issue? It would be pretty trivial to add support if there was a need for this feature.

@joelmontavon
Copy link
Author

@brynrhodes brynrhodes added the bug label Mar 17, 2022
@brynrhodes
Copy link
Member

@joelmontavon , what do you need the stdout option to do? Is it just to route the message output or are you trying to capture the actual translated ELM output?

@joelmontavon
Copy link
Author

I am trying to capture the message output. There are probably other ways to accomplish this and have started a thread in FHIR chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants