CDCgov / RecordLinker

The RecordLinker is a service that links records from two datasets based on a set of common attributes. The service is designed to be used in a variety of public health contexts, such as linking patient records from different sources or linking records from different public health surveillance systems.
https://cdcgov.github.io/RecordLinker/
Apache License 2.0
2 stars 0 forks source link

feat(mpi): redesign mpi schema #12

Closed alhayward closed 1 month ago

alhayward commented 2 months ago

Description

Schema

erDiagram
    Person {
        int id
        uuid internal_id
    }

    ExternalPerson {
        int id
        int person_id 
        string source
        string external_id
    }

    Patient {
        int id
        int person_id
        string data
    }

    BlockingKey {
        int id
        string key
    }

    BlockingValue {
        int id
        int patient_id
        int blockingkey_id
        string value
    }

    Person ||--o{ ExternalPerson: "has"
    Person ||--o{ Patient : "has"
    Patient ||--o{ BlockingValue : "has"
    BlockingKey ||--o{ BlockingValue: "has"

Related Issues

Closes #8

Checklist

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

Checklist for Reviewers

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

ericbuckley commented 1 month ago

@alhayward one last thing, please add yourself to the list of contributors in the pyproject.toml file