-
Notifications
You must be signed in to change notification settings - Fork 59
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
[ZEIR] - Growth Monitoring : Z-Score Computation #2745
Conversation
Add basic resource in bundle when CQL is executed for zeir growth monitoring
Codecov Report
@@ Coverage Diff @@
## main #2745 +/- ##
=========================================
+ Coverage 64.5% 65.5% +1.0%
+ Complexity 1075 1051 -24
=========================================
Files 218 220 +2
Lines 9635 9821 +186
Branches 1897 1802 -95
=========================================
+ Hits 6218 6441 +223
- Misses 2234 2276 +42
+ Partials 1183 1104 -79
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
questionnaire.cqfLibraryIds().forEach { libraryId -> | ||
if ( | ||
libraryId == "223758" | ||
) { // Resource id for Library that calculates Z-score in ZEIR application | ||
// Adding 4 basic resources which contain the Data needed for Z-score calculation | ||
val basicResourceIds = listOf("223754", "223755", "223756", "223757") | ||
basicResourceIds.forEach { resourceId -> | ||
val basicResource = defaultRepository.loadResource(resourceId) as Basic? | ||
bundle.addEntry(Bundle.BundleEntryComponent().setResource(basicResource)) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please create a new issue to make this generic with a proposal on how to do this and add a TODO on line 577 that links to that issue
bundle = newBundle, | ||
questionnaire = questionnaire, | ||
) | ||
withContext(Dispatchers.IO) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use dispatcherProvider.io()
here instead? The provider is already injected as a constructor parameter
…g' into issue-1535-zeir-growth-monitoring
Linked Issue: https://github.com/onaio/fhir-resources/issues/1535
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes https://github.com/onaio/fhir-resources/issues/1535
Engineer Checklist
strings.xml
file./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the project's style guideCode Reviewer Checklist
strings.xml
file