Households without members are not synced down (from the server) correctly #2502
Closed
dubdabasoduba
started this conversation in
General
Replies: 2 comments
-
I edited the solutions to be labelled by letters so they don't conflict w/the problem description options |
Beta Was this translation helpful? Give feedback.
0 replies
-
We decided to use Option 3 for search parameters and communicate to the QA and external teams that every HH will need at least 1 HH member otherwise the risks above apply. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem Description
We currently use the
sync_config.json
file to define how search is done when querying the server for data. We have three ways of defining the household search, but all three have risks of not syncing down data.For example,
Option 1
{"resource":{"resourceType":"SearchParameter","name":"organization","code":"managing-entity.patient.organization","base":["Group"],"type":"token","expression":"#organization"}}
Option 2,
{"resource":{"resourceType":"SearchParameter","name":"organization","code":"managing-entity","base":["Group"],"type":"token","expression":"#organization"}}
Option 3
{"resource":{"resourceType":"SearchParameter","name":"organization","code":"member.organization","base":["Group"],"type":"token","expression":"#organization"}}
Additionally, we cannot define all three options at the same time because the definition is executed as an
AND
instead of anOR
.Risks
The risks posed by this problem include the possibility that some required data is not synced to the app, and the introduction of a new point of data duplication. Since some HHs are not synced down, users may end up creating new HHs to add their members, which means the server will have multiple
Group
resources representing the same HH. This problem will manifest while writing reports that require checking for activeGroup
resources representing HHs.Possible Solutions
Option A
Wait for the Gateway server to be fully tested and switch the apps to that.
Pros
Cons
Option B
Update how we reference the HH head on the
Group
resource by adding the reference to theGroup.Characteristics
and leaving themanagingEntity
for the Practitioner Organization Reference. This means we also have to update some code that supports the Change HH Head functionality. Update thesync_config.json
to use Option 2 on the sync types.Pros
Cons
Beta Was this translation helpful? Give feedback.
All reactions