helix.personmatching
Entrypoint
helix_personmatching/matchers/matcher.py
Inputs
This code takes in:
- A source Patient/Person resource or a Bundle of Patient/Person resources
- A target Patient/Person resource or a Bundle of Patient/Person resources
- A set of rule options/weights
- Whether to return only successful matches or all match results
- (Optional) Matching threshold (between 0 and 1). Can also be set as an environment variable:
PERSON_MATCH_THRESHOLD - (Optional) Average score boost (between 0 and 1). Can also be set as an environment variable:
PERSON_MATCH_AVERAGE_SCORE_BOOST
Outputs
- A list of match results where id_source is id of source record and id_target is id of matched record.
Logic
- The code runs through each rule and calculates a uniqueness probability (between 0 and 1) if the rule matches.
- The code then picks the rule with the highest uniqueness probability and uses that probability
- The code then calculates the average of all the other rule probabilities and boosts the uniqueness probability by it.
- The code then sees if any other boosting rules were requested and boosts the probability by those
Weights
There are five cases when matching fields of two records in a rule and the weights that are applied for each case:
- Field present in both sides and match ->
exact_match - Field present in both sides and partial match ->
partial_match - Field missing in both sides ->
missing - Field missing in one side ->
missing - Field present in both sides but do not match -> 0.0
For boosting rules, there is an additional boost weight.
Metadata
Release files for helix.personmatching 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| helix_personmatching-2.0.0.tar.gz | 51.8 kB | Without provenance | Details for helix_personmatching-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| helix_personmatching-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for helix_personmatching-2.0.0-py3-none-any.whl |
Total release size: 140.9 kB
Release files / helix_personmatching-2.0.0.tar.gz
| Download URL | helix_personmatching-2.0.0.tar.gz |
|---|---|
| Size | 51.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0b8d58ddf5cfcec745d5f2ac4c8b69f90ebff3db72ad09d104422232c0c066d
|
|
BLAKE2b-256 checksum How to use checksums |
fe9721edce712c6f52b56faee2244b6552d5ed7e1f8c7874b9cf2c59682412f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / helix_personmatching-2.0.0-py3-none-any.whl
| Download URL | helix_personmatching-2.0.0-py3-none-any.whl |
|---|---|
| Size | 89.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8140005409d5ba6c9035552c1401a913f5105cc4d7f0584e45de73a954051d47
|
|
BLAKE2b-256 checksum How to use checksums |
1879d5e6162a3bc7f44e6da2c6838c34dad1df82600440ddb5b15489019ad3e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for helix.personmatching 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.