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.48.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 170cbabde4c19693ab5c0372ace31bcbb9881bee156d4e1015cedd44bddb3560 |
|
MD5 | a72ebc37100561fa8e3b3ab0e2cad3c1 |
|
BLAKE2b-256 | 50569d223d77ba754fd38db2656d71bbcb63943bc4b59d59aae84437934da124 |
Close
Hashes for helix.personmatching-1.0.48-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 125999a7ff8c50f28af0d66d7e221a0011af6f38e8192417cc624a927324fdc0 |
|
MD5 | 53c8d37ca843a14cab7b30a35a3c796e |
|
BLAKE2b-256 | 2a417b9c87ed82a6b5a519d2e442a32967987ad3dee8d04146dd60e8647a3ef4 |