helix.personmatching
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for helix.personmatching-1.0.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b71e690178cc3f5f427a779cee1249dab077f1674af839b181019b4bd4613369 |
|
MD5 | a0b22c8f6f88eef088647d79c6f42b96 |
|
BLAKE2b-256 | e30f226fad428f4c94687dfb1624379246adcd6de9f657b68d325a4e9b3334f2 |
Close
Hashes for helix.personmatching-1.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d9c3895cd22f45f7910fe695425841a850514652861e9d00e98f1894aecaa5d |
|
MD5 | 9d2ca356ea5aeac5f7f507ce39699f16 |
|
BLAKE2b-256 | b0e808baa1ae5ed91402f9334e83df1e38d2d8196b32cdff72e258173b67f9e0 |