Open
Description
Describe the bug
When a patient is deleted in homestore1, but another store2 which has not manually synced, now can create vaccination event for that deleted patient and that record is saved as well.
To reproduce
Steps to reproduce the behaviour:
- Create a patient in store1 and sync.
- Make that patient visible in store2 as well.
- Now, delete that patient from store1 and sync
- In store2, do not sync and search that patient online and create a vaccination event.
- It allows. Save it and sync.
- Now, further vaccination event cannot be added but latest record has been saved to a deleted patient.
Expected behaviour
??
Proposed Solution
Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.
Version and device info
- App version: latest apk
Additional context
Add any other context about the problem here.