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

Avni to Bahmni - Handle duplicate Avni subjects(having same identifier) #58

Open
hithacker opened this issue May 18, 2021 · 0 comments
Open

Comments

@hithacker
Copy link
Contributor

hithacker commented May 18, 2021

Tasks:

  • SubjectWorker: Query Avni subject API with the identifier. If it returns multiple results then skip the subject and log duplicate results error.
  • Enrolment and Encounter worker: Look for the duplicate results error record with the given subject id. If an error is logged then do not process the entity.

Scenarios:

  • Subject voided, have voided duplicates
    • process.
  • Subject voided, have non voided duplicates
    • skip.
  • Subject voided, have no duplicates
    • process.
  • Subject not voided, have voided duplicates
    • process.
  • Subject not voided, have non voided duplicates
    • create error. skip.
  • Subject not voided, have no duplicates
    • process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant