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

Create API endpoints to manage orphaned data [MPIAPI] #163

Open
ericbuckley opened this issue Dec 20, 2024 · 0 comments
Open

Create API endpoints to manage orphaned data [MPIAPI] #163

ericbuckley opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@ericbuckley
Copy link
Collaborator

Summary

Create 3 new API endpoints to assign with managing orphaned (unlinked) data.

Details / Tasks

DELETE /person/<person-reference-id>
This should delete an EMPTY person cluster, if the person cluster has members this should result in an error.

GET /person/orphaned
A paginated list of all the persons with no members.

GET /patient/orphaned
A paginated list of all the patients not yet assigned to a person cluster.

Background / Context

GET /person/orphaned could be an expensive query to run, give this query a lot of consideration so we know it will scale with large databases.

Related Issues/PRs

#155

Notes / Comments

This will complete use cases 12 and 13 in #155.

@ericbuckley ericbuckley added the feature New feature or request label Dec 20, 2024
@ericbuckley ericbuckley added this to the v25.3.0 milestone Feb 11, 2025
@m-goggins m-goggins self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants