Closed seanmcilvenna closed 1 week ago
The pull request introduces a README.md
file for the measureeval
module, providing comprehensive instructions for building and using the module as a command-line interface (CLI). It also adds the FileSystemInvocation
class for evaluating healthcare measures using FHIR resources from the filesystem, along with modifications to the pom.xml
file to support multiple execution profiles. The changes enhance the usability and configurability of the measure evaluation process.
File Path | Change Summary |
---|---|
Java/measureeval/README.md |
Added documentation for building and running the measureeval module as a CLI. |
Java/measureeval/pom.xml |
Added <mainClass> configuration and introduced api and cli profiles for dynamic execution. |
Java/measureeval/src/main/java/com/lantanagroup/link/measureeval/FileSystemInvocation.java |
Introduced FileSystemInvocation class for command-line measure evaluations, including methods for loading and evaluating measure and patient bundles. |
Java/measureeval/src/main/resources/logback-cli.xml |
Added logging configuration for CLI application using Logback. |
Objective | Addressed | Explanation |
---|---|---|
Ability to run measure eval using a command line interface (LNK-2950) | ✅ |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@smailliwcs In this round of changes I added a logback.xml
file to support logging when running as a CLI... It doesn't seem to be conflicting with spring-boot... But, what do you think? Is that a problem?
Pushed a commit to allow choosing (at build time via a Maven profile) whether to use the API (default) or the CLI as the main class. This allows you to run the CLI via java -jar
without the loader.main
/PropertiesLauncher
rigmarole. Updated the README to reflect this change.
@smailliwcs In this round of changes I added a
logback.xml
file to support logging when running as a CLI... It doesn't seem to be conflicting with spring-boot... But, what do you think? Is that a problem?
In my testing, logback.xml
overrides logback-spring.xml
, so I don't think that will work. One option would be to specify a CLI-specific configuration file at invocation time:
java -Dlogback.configurationFile=/path/to/logback-cli.xml -jar measureeval.jar ...
Adding FileSystemInvocation class that allows evaluating a measure using a data from the locally running file system
Format:
java -jar measureeval.jar -cp com.lantanagroup.link.measureeval.FileSystemInvocation "<measure-bundle-path>" "<patient-bundle-path>" "<start>" "<end>"
Example:
java -jar measureeval.jar -cp com.lantanagroup.link.measureeval.FileSystemInvocation "C:/path/to/measure-bundle.json" "C:/path/to/patient-bundle.json" "2021-01-01" "2021-12-31"
Or directly via IntelliJ with a debug configuration.
Summary by CodeRabbit
New Features
Bug Fixes