-
Notifications
You must be signed in to change notification settings - Fork 41
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
Configure unique identifier assignment #3075
Conversation
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3075 +/- ##
=========================================
- Coverage 29.6% 28.3% -1.3%
- Complexity 658 720 +62
=========================================
Files 239 266 +27
Lines 11204 12689 +1485
Branches 1948 2244 +296
=========================================
+ Hits 3323 3600 +277
- Misses 7447 8614 +1167
- Partials 434 475 +41
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
This PR introduces a new configuration for unique ID assignments. Refer to the QuestionnaireConfig docs session to find out more. Here is a sample config: {
"uniqueIdAssignment": {
"linkId": "phn",
"idFhirPathExpression": "Group.characteristic.where(exclude=false and code.text='phn').first().value.text",
"readOnly": false,
"resource": "Group",
"sortConfigs": [
{
"paramName": "_lastUpdated",
"dataType": "DATE",
"order": "DESCENDING"
}
],
"resourceFilterExpression": {
"conditionalFhirPathExpressions": [
"Group.active = true and Group.type = 'device' and Group.name = 'Unique IDs'"
],
"matchAll": true
}
}
} |
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
51e3c72
to
5e4f19e
Compare
@@ -325,3 +326,43 @@ triggerConditions | This defines an array of condition for to be met for the eve | |||
eventResourceId | uniqueId of resource id to be closed | yes | | | |||
eventResources | A list of resources to close(Type of ResourceConfig) | yes | | | | |||
|
|||
|
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.
@ellykits do we dictate where in the Patient, Group e.t.c resource is added?
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.
Which resources are you referring to here @dubdabasoduba? The resource used to sync unique identifiers? This new configuration (see the sample in the comment) is added to the Questionnaire config.
@@ -325,3 +326,43 @@ triggerConditions | This defines an array of condition for to be met for the eve | |||
eventResourceId | uniqueId of resource id to be closed | yes | | | |||
eventResources | A list of resources to close(Type of ResourceConfig) | yes | | | | |||
|
|||
|
|||
## Unique ID assignment | |||
|
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.
@allan-on can you please add a sub-section here describing
docs/engineering/android-app/configuring/config-types/questionnaire.mdx
Outdated
Show resolved
Hide resolved
@allan-on please add a top level feature for unique ID assignment here, https://docs.opensrp.io/features/app-features, then tag @rowo and me to review it |
@allan-on I will add the remaining tests to improve the coverage during CHT this week. |
can add an issue that refs this pr? |
Sure |
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Looks like |
Remove unused import
Removed since this it isn't a supported search param
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes 3048
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