-
Notifications
You must be signed in to change notification settings - Fork 23
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
Comments
Looks like it works as expected on MAC if the path includes '/bundles', This is likely due to an expectation for use with IG repository directory structure. thanks @c-schuler for his time on this issue. However, I tested it on Windows and Linux(Ubuntu) but it ended up with empty subfolders for the input folder. Windows as an administrator: Linux as a root account: FWIW, it is not a blocker for HEDIS extraction as I do part of the process using Python on Windows to complete the extraction. |
Thanks @reza-smilecdr ! I will look further into this issue and repro on a Windows environment to ensure compatibility. To outline potential improvements to the operation, the following enhancements are recommended:
|
@echicoine-icf as it appears that you are the main developer for this bit of tooling, I would appreciate your input. |
No problem! I can look into it immediately. |
@c-schuler a PR has been created here: #539 This change enhances how we establish the bundles folder and it's corresponding parent folder, and if such checks don't pass, the process will use the location of the bundle file itself as the location to output the extraction. |
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:
download the jar file tooling-cli-3.6.0.jar
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)
Run with command ' java -jar "tooling-cli-3.6.0.jar" -ExtractMatBundle "CMS124FHIR-v0-0-005-FHIR-4-0-1.json" -v=r4
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
CMS124FHIR-v0-0-005-FHIR-4-0-1.json
The text was updated successfully, but these errors were encountered: