Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR supports two "new" categories of modules:
Templates
Templates are snippets of modules intended to help authors create a new module quickly. A corresponding change to the module builder (synthetichealth/module-builder#329) adds the ability to load these templates. After submitting this PR I will put together some documentation on how to use these to create a new module.
Keep Modules
Keep modules have been supported for a while; this PR adds a set of built-in keep modules and updates the
-k
flag to support either arbitrary paths or these built-in ones. We had two alreadymust_have_cabg.json
andmust_have_cardiac_surgery.json
which I moved from the repo root to this new directory so any existing scripts that reference them can still work without changes. This should work both running via gradle/run_synthea or as a JAR file.Tech Notes:
Module.fixPathFromJar
into the Utilities class since I was using it in App as well nowGenerator.keepPatientsModulePath
from File to Path since you can't reference files in a zip/jar as a File