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

[Unarchive patient] Patients query updates #6062

Closed
johanna-skylight opened this issue Jul 3, 2023 · 0 comments · Fixed by #6164
Closed

[Unarchive patient] Patients query updates #6062

johanna-skylight opened this issue Jul 3, 2023 · 0 comments · Fixed by #6164
Assignees

Comments

@johanna-skylight
Copy link
Contributor

Background

To implement the unarchive patient flow we need to be able to retrieve archived patients only . For a more detailed explanation of the unarchive patient flow please check the findings of the spike ticket.

Action requested

Modify the patients query to receive a parameter that allows to refine the patients search to three states: all (all patients) | archived (archive patients only) | unarchived (unarchived patients only).
Remove the includeArchived parameter and make necessary changes to migrate the logic that uses it to the new parameter.

Acceptance Criteria

  • Patients query is able to return only archived patients, only unarchived patients and all type of patients depending on the parameter value passed.
  • The application's functionality is not impacted in any way.
  • The usage of the includeArchive parameter has been cleaned up.

Additional Context

This query allows to refine the retrieval of patients somehow with the includeArchive parameter however this boolean parameter does not allow for a selective retrieval of patients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants