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

cqf-tooling issue with Bundle Extraction #537

Open
reza-smilecdr opened this issue Nov 4, 2024 · 0 comments
Open

cqf-tooling issue with Bundle Extraction #537

reza-smilecdr opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@reza-smilecdr
Copy link

reza-smilecdr commented Nov 4, 2024

an error occurred while attempting to extract a MAT bundle "CMS124FHIR-v0-0-005-FHIR-4-0-1.json" , attached, using cqf-tooling (tooling-cli-3.6.0.jar).

Steps to reproduce the behavior:

  1. download the jar file tooling-cli-3.6.0.jar

  2. copy MAT bundle and jar file into the same directory and change to the directory (make sure java has been installed on the local Windows machine)

  3. Run with command ' java -jar "tooling-cli-3.6.0.jar" -ExtractMatBundle "CMS124FHIR-v0-0-005-FHIR-4-0-1.json" -v=r4

  4. Looks as result 'Exception in thread "main" java.lang.reflect.InvocationTargetException
    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.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
    Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 26
    at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4608)
    at java.base/java.lang.String.substring(String.java:2711)
    at org.opencds.cqf.tooling.operation.ExtractMatBundleOperation.moveAndRenameFiles(ExtractMatBundleOperation.java:301)
    at org.opencds.cqf.tooling.operation.ExtractMatBundleOperation.processSingleFile(ExtractMatBundleOperation.java:265)
    at org.opencds.cqf.tooling.operation.ExtractMatBundleOperation.execute(ExtractMatBundleOperation.java:144)
    at org.opencds.cqf.tooling.cli.Main.main(Main.java:303)
    ... 8 more'

We expect to extract FHIR resources plus cql files

  • OS: Windows 10 Business
  • Java Version: "17.0.10" 2024-01-16 LTS

CMS124FHIR-v0-0-005-FHIR-4-0-1.json

@reza-smilecdr reza-smilecdr added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant