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.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b7ea796279b76661a8d081ca2ca7b6a7b766128c3042163bae6869a13544e6 |
|
MD5 | b4ab50c4f1776b35d7e1629a60b10edb |
|
BLAKE2b-256 | 7230b91f2fbc504c998e26318c181a8d3d4cf0952d7a8a9a7f1bfdc1e53a0a50 |
Close
Hashes for helix.personmatching-1.0.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93d032db5b5974e01fa2c93ed0c1b4781e35418f690c0c05c6462968835f7893 |
|
MD5 | ff298200f588debf3a6c257921c5a2a4 |
|
BLAKE2b-256 | 2dd01f75a140d73371beee64f4292dc835801fd210fc81349e0f5da424e79707 |