Skip to content

Add Endpoint for getting orphaned patients#222

Merged
m-goggins merged 22 commits into
mainfrom
feature/163-get-orphaned-patients
Feb 25, 2025
Merged

Add Endpoint for getting orphaned patients#222
m-goggins merged 22 commits into
mainfrom
feature/163-get-orphaned-patients

Conversation

@m-goggins

@m-goggins m-goggins commented Feb 20, 2025

Copy link
Copy Markdown
Collaborator

Description

This PR adds an endpoint that returns a paginated list of patients not yet assigned to a person cluster.

Related Issues

#163

Additional Notes

I opted for cursor/keyset pagination to hopefully ensure that the query scales as the DB grows.

Another thing I considered was adding another flag (or endpoint) for returning all results at once (something like while next is not None, but we may encounter lots of results and may want to consider some safeguards.

@codecov

This comment was marked as outdated.

@m-goggins m-goggins marked this pull request as ready for review February 24, 2025 21:16
@m-goggins m-goggins marked this pull request as draft February 24, 2025 21:22
@m-goggins m-goggins marked this pull request as ready for review February 24, 2025 22:14
Comment thread src/recordlinker/routes/patient_router.py Outdated
Comment thread src/recordlinker/routes/patient_router.py Outdated
Comment thread tests/unit/routes/test_patient_router.py Outdated
Comment thread src/recordlinker/routes/patient_router.py
Comment thread src/recordlinker/database/mpi_service.py Outdated
Comment thread src/recordlinker/schemas/mpi.py Outdated
Comment thread tests/unit/database/test_mpi_service.py Outdated
m-goggins and others added 4 commits February 25, 2025 12:48
Co-authored-by: Eric Buckley <eric.buckley@gmail.com>
Co-authored-by: Eric Buckley <eric.buckley@gmail.com>

@ericbuckley ericbuckley left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @m-goggins

@m-goggins m-goggins merged commit d54af84 into main Feb 25, 2025
@m-goggins m-goggins deleted the feature/163-get-orphaned-patients branch February 25, 2025 22:55
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

Successfully merging this pull request may close these issues.

2 participants