Skip to content
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

Fix issue 2036 [Configuration-Filtering registers based on resources attributes ] #2070

Merged
merged 26 commits into from
Mar 3, 2023

Conversation

SebaMutuku
Copy link
Contributor

@SebaMutuku SebaMutuku commented Feb 21, 2023

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #2036

Checklist

  • I have written Unit tests for any new feature(s) and edge cases for bug fixes
  • I have added any strings visible on UI components to the strings.xml file
  • I have updated the CHANGELOG.md file for any notable changes to the codebase
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the project's style guide
  • I have built and run the fhircore app to verify my change fixes the issue and/or does not break the app

@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Merging #2070 (7f88d81) into main (4faa694) will decrease coverage by 13.53%.
The diff coverage is n/a.

❗ Current head 7f88d81 differs from pull request most recent head ebd084d. Consider uploading reports for the commit ebd084d to get more accurate results

@@              Coverage Diff              @@
##               main    #2070       +/-   ##
=============================================
- Coverage     57.87%   44.34%   -13.53%     
+ Complexity     1038       20     -1018     
=============================================
  Files           219        5      -214     
  Lines          8462      230     -8232     
  Branches       1598       33     -1565     
=============================================
- Hits           4897      102     -4795     
+ Misses         2639      113     -2526     
+ Partials        926       15      -911     
Flag Coverage Δ
engine ?
geowidget 44.34% <ø> (ø)
quest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...core/engine/configuration/ConfigurationRegistry.kt
...gine/configuration/profile/ManagingEntityConfig.kt
...e/engine/data/local/register/RegisterRepository.kt
...ister/fhircore/engine/domain/model/ActionConfig.kt
...er/fhircore/engine/domain/repository/Repository.kt
...ister/fhircore/engine/rulesengine/RulesExecutor.kt
...ircore/quest/data/register/RegisterPagingSource.kt
...est/data/report/measure/MeasureReportRepository.kt
...egister/fhircore/quest/navigation/NavigationArg.kt
...ister/fhircore/quest/ui/profile/ProfileFragment.kt
... and 203 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@SebaMutuku SebaMutuku changed the title Issue 2036 Fix issue 2036 [Configuration-Filtering registers based on resources attributes ] Feb 22, 2023
Copy link
Member

@pld pld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to rework this not have anything specific to a Practioner in it. The goal of the issue is to allow filtering or an arbitrary resource by arbitrary attributes in that resource. Looking through a code it looks this is mainly a naming problem the architecture looks like it's on the correct path overall.

I put some ideas towards that as suggested changes, I'm not sure how practitionerId generalizes, or if it's acutally needed

SebaMutuku and others added 14 commits February 23, 2023 09:14
* Add Parcelizer and implement Parcelable
RegisterViewModel
* Add a hashmap to be used when interpolating over values and retrieve registerData
ProfileViewModel
* Add a hashmap to be used when interpolating over values and retrieve registerData
ActionParamType
*Add a Generic Data Pass identifier type
* Test load register with map containing params included
* Test countRegisterData when params is passed
@SebaMutuku SebaMutuku marked this pull request as ready for review March 2, 2023 12:55
Copy link
Member

@pld pld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome progress towards configurable filters! left some pretty straightforward comments, looks very close to merging.

one broader question, is there a name more specific than params we can use throughout? What exactly do these params represent?

SebaMutuku and others added 3 commits March 2, 2023 17:11
@SebaMutuku SebaMutuku added DNM DO NOT MERGE Documentation Improvements or additions to documentation labels Mar 3, 2023
@pld pld removed the DNM DO NOT MERGE label Mar 3, 2023
@pld pld merged commit dd73a72 into main Mar 3, 2023
@pld pld deleted the issue_1965 branch March 3, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Configuration] Filtering registers based on resources attributes
3 participants