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.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3e9d04baabca531461e25283aae9ade182dafdd9510401801c9c869edbdb59d |
|
MD5 | c433e8b90db216030bb99a93d4cc6576 |
|
BLAKE2b-256 | 3ca5be11419ef6c0ee4c18b7a9aa720fce2a3d724d4d0391de3394da27f70fe4 |
Close
Hashes for helix.personmatching-1.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e16cb1d394a784c1b750bc4afbb1d845cf957fa3038b00a2e584b1ec20ebf5a |
|
MD5 | 2a70b6db17c41066db335aff4a4f2b47 |
|
BLAKE2b-256 | 754fd9c2c05d36621e81deef08fc141c5868fc06d6182666e1fa6bd5341d2514 |