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

Patient Details Endpoints #174

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

cbrinson-rise8
Copy link
Collaborator

@cbrinson-rise8 cbrinson-rise8 commented Jan 21, 2025

Description

Add two new API endpoints that allow users to directly add/update patient record details in the MPI.

Related Issues

closes #159

Additional Notes

POST /patient -d '{"record": "...", "person": "person_reference_id"}'
Add the above endpoint to allow users to directly add a patient record to the MPI, skipping the record linkage algorithm.

PATCH /patient/<patient-reference-id> -d '{"record": "...", "person": "person_reference_id"}'
Add the above endpoint to allow users to update an existing patient record in the MPI.
NOTE: For this operation, the record and person attributes are optional. If not specified, the existing value will stay unchanged. However, at least 1 must be specified.

<--------------------- REMOVE THE LINES BELOW BEFORE MERGING --------------------->

Checklist

Please review and complete the following checklist before submitting your pull request:

  • I have ensured that the pull request is of a manageable size, allowing it to be reviewed within a single session.
  • I have reviewed my changes to ensure they are clear, concise, and well-documented.
  • I have updated the documentation, if applicable.
  • I have added or updated test cases to cover my changes, if applicable.
  • I have minimized the number of reviewers to include only those essential for the review.

Checklist for Reviewers

Please review and complete the following checklist during the review process:

  • The code follows best practices and conventions.
  • The changes implement the desired functionality or fix the reported issue.
  • The tests cover the new changes and pass successfully.
  • Any potential edge cases or error scenarios have been considered.

@cbrinson-rise8 cbrinson-rise8 self-assigned this Jan 21, 2025
@cbrinson-rise8 cbrinson-rise8 added the feature New feature or request label Jan 21, 2025
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.65%. Comparing base (9bd3778) to head (5d6ef0f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
+ Coverage   97.56%   97.65%   +0.08%     
==========================================
  Files          31       31              
  Lines        1521     1576      +55     
==========================================
+ Hits         1484     1539      +55     
  Misses         37       37              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ericbuckley ericbuckley marked this pull request as ready for review January 24, 2025 21:26
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 this pull request may close these issues.

API endpoints to add patient details directly to MPI [MPIAPI]
2 participants