-
Notifications
You must be signed in to change notification settings - Fork 65
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
Retrieve ServiceStatus from a list of Tasks #2715
Conversation
# Conflicts: # android/engine/src/test/java/org/smartregister/fhircore/engine/rulesengine/RulesEngineServiceTest.kt
@ageryck |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2715 +/- ##
=======================================
Coverage 27.0% 27.1%
Complexity 720 720
=======================================
Files 269 269
Lines 13517 13522 +5
Branches 2433 2434 +1
=======================================
+ Hits 3662 3665 +3
- Misses 9373 9374 +1
- Partials 482 483 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
android/engine/src/main/java/org/smartregister/fhircore/engine/rulesengine/RulesFactory.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: Elly Kitoto <[email protected]>
Sample {
"name": "serviceStatus",
"condition": "true",
"priority": 2,
"actions": [
"data.put('serviceStatus', service.taskServiceStatusExist(availableTasks, 'OVERDUE') == true ? 'OVERDUE': service.taskServiceStatusExist(availableTasks, 'DUE') == true ? 'DUE' : 'DUE')"
]
} Where, {
"id": "tasks",
"resource": "Task",
"searchParameter": "subject"
}, |
Signed-off-by: Elly Kitoto <[email protected]>
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
* taskList status for Household item in hh-register, from 0.2.5 * Refactor getting status from list of Tasks Signed-off-by: Elly Kitoto <[email protected]> * Format code Signed-off-by: Elly Kitoto <[email protected]> --------- Signed-off-by: Elly Kitoto <[email protected]> Co-authored-by: Ager Wasongah <[email protected]> Co-authored-by: Elly Kitoto <[email protected]>
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #[issue number] or Closes #[issue number]
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