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

Rework patient assignment API endpoints [MPIAPI] #158

Open
ericbuckley opened this issue Dec 20, 2024 · 0 comments · May be fixed by #172
Open

Rework patient assignment API endpoints [MPIAPI] #158

ericbuckley opened this issue Dec 20, 2024 · 0 comments · May be fixed by #172
Assignees
Labels
feature New feature or request

Comments

@ericbuckley
Copy link
Collaborator

ericbuckley commented Dec 20, 2024

Summary

Copy the existing two assign patient API endpoints to use new urls on the /person namespace

Details / Tasks

POST /patient/<patient_reference_id>/person -> POST /person
Copy the functionality of assigning a patient (or list of patients) to a new person cluster using POST /person, this endpoint should accept a list of patient reference ids (eg '{"patients": ["<patient-reference-id>"]}')

PATCH /patient/<patient_reference_id>/person -> PATCH /person/<person-reference-id>
Copy the functionality of assigning a patient (or list of patients) to an existing person cluster using PATCH /person/<person-reference-id>, this endpoint should accept a list of patient reference ids (eg '{"patients": ["<patient-reference-id>"]}')

In the API docs, mark the existing /patient/X/person endpoints as "DEPRECATED".

NOTE: At this time, do not delete the existing /patient endpoints that we are copying, although they will be deleted in the future.

Related Issues/PRs

#155

Notes / Comments

This work will complete use cases 1, 2, 3 and 6 specified in #155

@ericbuckley ericbuckley added the feature New feature or request label Dec 20, 2024
@ericbuckley ericbuckley changed the title Rework patient assignment API endpoints Rework patient assignment API endpoints [MPIAPI] Dec 20, 2024
@ericbuckley ericbuckley self-assigned this Jan 7, 2025
@ericbuckley ericbuckley linked a pull request Jan 16, 2025 that will close this issue
9 tasks
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

Successfully merging a pull request may close this issue.

1 participant