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

New /link API endpoint #5

Closed
4 tasks done
ericbuckley opened this issue Sep 5, 2024 · 0 comments · Fixed by #79
Closed
4 tasks done

New /link API endpoint #5

ericbuckley opened this issue Sep 5, 2024 · 0 comments · Fixed by #79
Assignees
Labels
feature New feature or request

Comments

@ericbuckley
Copy link
Collaborator

ericbuckley commented Sep 5, 2024

Summary

Create a new API endpoint, /link, that behaves similar to the existing /link-record endpoint. The difference is that it will accept a raw PII payload rather than a FHIR bundle.

Acceptance Criteria

  • A new API endpoint /link that returns matches
  • Renaming the person.internal_id column
  • Adding the patient.reference_id column
  • Test cases for the new API

Details / Tasks

Inputs

The new endpoint should accept the other parameters like external_person_id and algorithm, the new record parameter should map to the PIIRecord class. That is the PIIRecord class should act as a validator and serializer for the incoming data.

Outputs

The output will be different in that we will no longer return a FHIR bundle. Instead a payload should be returned with the following information.

  • is_match: bool
  • patient_reference_id: uuid
  • person_reference_id: uuid

Model Changes

  • rename person.internal_id to person.reference_id
  • add patient.reference_id to the Patient table (uuid with a default value of uuid.uuid4())
@ericbuckley ericbuckley added the feature New feature or request label Sep 5, 2024
@ericbuckley ericbuckley changed the title Stub out new API endpoint for raw patient data New /link API endpoint Oct 7, 2024
@cbrinson-rise8 cbrinson-rise8 mentioned this issue Oct 16, 2024
10 tasks
This was referenced Oct 16, 2024
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.

2 participants