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.
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/orphanedA paginated list of all the persons with no members.
GET /patient/orphanedA paginated list of all the patients not yet assigned to a person cluster.
Background / Context
GET /person/orphanedcould 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.