Skip to content

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

@ericbuckley

Description

@ericbuckley

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.

Metadata

Metadata

Assignees

Labels

apiNew API feature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions