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.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e659f313cdfd8cb39f66a8fc32e806f5b654d7d8ea68f9b04ce08e24548b1e |
|
MD5 | 35c91b145d528b11df39d77d13f5eb5b |
|
BLAKE2b-256 | 61c3890348528af10fb1f2d3aa88f5ee8c0d14c173bda629c260c83e1ad17537 |
Close
Hashes for helix.personmatching-1.0.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7719b52a841cda8d5ab19e6d050ad6b8cce8b4f8e5d806cc8935751aa654bf5b |
|
MD5 | 334910145f43f9700de0240a448d185b |
|
BLAKE2b-256 | b4a86f236baeb069add4bb30d4280fbfa9e7616b2e2d58ebeb23da03cb4e8ff0 |