Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

helix.personmatching

Continuous Integration GitHub license

Entrypoint

helix_personmatching/matchers/matcher.py

Inputs

This code takes in:

  1. A source Patient/Person resource or a Bundle of Patient/Person resources
  2. A target Patient/Person resource or a Bundle of Patient/Person resources
  3. A set of rule options/weights
  4. Whether to return only successful matches or all match results
  5. (Optional) Matching threshold (between 0 and 1). Can also be set as an environment variable: PERSON_MATCH_THRESHOLD
  6. (Optional) Average score boost (between 0 and 1). Can also be set as an environment variable: PERSON_MATCH_AVERAGE_SCORE_BOOST

Outputs

  1. A list of match results where id_source is id of source record and id_target is id of matched record.

Logic

  1. The code runs through each rule and calculates a uniqueness probability (between 0 and 1) if the rule matches.
  2. The code then picks the rule with the highest uniqueness probability and uses that probability
  3. The code then calculates the average of all the other rule probabilities and boosts the uniqueness probability by it.
  4. 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:

  1. Field present in both sides and match -> exact_match
  2. Field present in both sides and partial match -> partial_match
  3. Field missing in both sides -> missing
  4. Field missing in one side -> missing
  5. Field present in both sides but do not match -> 0.0

For boosting rules, there is an additional boost weight.

Metadata

Release files for helix.personmatching 1.0.53a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for helix.personmatching 1.0.53a1
File Size Uploaded Provenance Actions
helix_personmatching-1.0.53a1.tar.gz 46.8 kB Without provenance Details for helix_personmatching-1.0.53a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for helix.personmatching 1.0.53a1
File Interpreter ABI Platform Actions
helix.personmatching-1.0.53a1-py3-none-any.whl Python 3 none any Details for helix.personmatching-1.0.53a1-py3-none-any.whl

Total release size: 130.8 kB

Release files / helix_personmatching-1.0.53a1.tar.gz

Download URL helix_personmatching-1.0.53a1.tar.gz
Size 46.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fa51fdfde001fc8a829ae299b1767f80cb50137b7083cab59b47eecb8b645c68
BLAKE2b-256 checksum
How to use checksums
4deec043ee29d13f86eef6084691352d4e5d059b9e5f0a082631ff534e16bcf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.9

Release files / helix.personmatching-1.0.53a1-py3-none-any.whl

Download URL helix.personmatching-1.0.53a1-py3-none-any.whl
Size 84.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8e0b1c4d110549825976d3155f3d845e67fa38fbead2b539c64d0518f04eeea
BLAKE2b-256 checksum
How to use checksums
e1fada8fc031004599ff2848a8623c295a0df221a5605714d680d29524f160be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.9

Security for helix.personmatching 1.0.53a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page