Match rules

Thresholds, weighted attributes, blocking keys, deterministic rules, vetoes, linkage and the rule tester.

One rule set exists per resource type, pre-loaded with sensible rules for every type (families: person, organization, definitional, product, financial, scheduling, clinical event, relationship). Editing needs mdm:rules.manage; Reset to standard rules restores a type, and History lists earlier saved versions.

Match rules: choosing the resource type
Match rules: choosing the resource type
  1. Filter – Type part of a resource type name to shorten the list.
  2. Family heading – Types are grouped by matching family (people, organizations, canonical definitions…).
  3. Selected type – The rule set shown on the right; badges show off (matching disabled) and custom (edited).

The list on the left filters and groups the types; the selected type is highlighted and badges tell whether matching is off or the rules are customised.

Thresholds

Thresholds and the score bar
Thresholds and the score bar
  1. Automatic merge at – Pairs scoring at or above this value are merged without a steward.
  2. Review at – Pairs from here up to the automatic threshold become possible matches in the Remediation queue.
  3. Minimum attributes – How many attributes must have a value on both sides before a score is trusted.
  4. Max. blocking group – Blocks with more records than this are skipped – protects against keys like a shared birth date.
  5. Score bar – The three zones update as you edit: no match, steward review, automatic merge.
  6. Scale – The two thresholds marked on the 0 to 1 scale.
  7. Legend – Plain-language reading of the current settings.
Automatic merge at
Pairs scoring at or above are merged without review (person default 0.92).
Review at
Pairs from here to the automatic threshold become possible matches (person default 0.75). Below: ignored.
Minimum attributes compared
How many attributes must have values on both sides.
Max. blocking group
Larger blocks are skipped.
Score bar
Three zones – No match, Steward review, Automatic merge – redrawn as you type. A warning appears if review is above automatic.
ExampleStricter automation

Raise Automatic merge at from 0.92 to 0.96 and keep review at 0.75: fewer automatic merges, a longer queue, more control.

ExampleWide net for a messy source

Lower Review at to 0.65. More candidates appear; check the tester first (below).

Weighted attributes

Weighted attributes
Weighted attributes
  1. Attribute – A label for people, and underneath the technical id used by vetoes.
  2. Where – Element paths read from the record (comma separated), or for a relationship attribute: resource type, referencing path and value path.
  3. Comparator – How two values are compared (fuzzy text, date, phone, identifier, shared references…). The box below takes JSON parameters.
  4. Weight – How much the attribute counts when it agrees.
  5. Penalty – How much it counts against the pair when it disagrees.
  6. Options – required: a missing value means no match. agree only: only agreement counts, disagreement is ignored.
  7. Order and delete – Move the attribute up or down, or remove it.

The buttons under the table are + Attribute (compare values of the record itself) and + Relationship attribute (compare related resources, e.g. the insurance member id of Coverage resources that reference the patient). The table fits the page (no horizontal scrolling); long paths wrap and the text boxes grow as you type. Each attribute contributes weight × similarity − penalty × (1 − similarity) to the score, and the sum is divided by the sum of weights of the attributes that have a value on both sides.

ExampleAdd an e-mail attribute to a person rule

Click + Attribute: label E-mail address, where telecom[system=email], comparator E-mail address, weight 2, penalty 0, agree only ticked. Two records with the same e-mail raise the score; different e-mails do not lower it.

ExampleCompare organizations by name and city

Attribute 1: name comparator Word overlap weight 3 penalty 1. Attribute 2: address.city comparator exact weight 1.

Every comparator is described in Comparators.

Blocking keys, deterministic rules, vetoes, linkage

Blocking keys, deterministic rules and vetoes
Blocking keys, deterministic rules and vetoes
  1. Blocking key – Each key has parts: element paths plus a transform (soundex, first letters, year, digits…). Records sharing a key are compared.
  2. Deterministic rule – Automatic match without a score, e.g. the same identifier system and value.
  3. Veto – If the chosen attribute's similarity is below the limit, the score is capped, so a steward must decide.
Blocking key
One or more parts, each an element path with a transform (Soundex of first word, first N characters, year, full date, last N digits, postal code, identifier…). Two records are compared when they share at least one complete key.
Deterministic rule
Same identifier (system + value, optionally restricted to listed systems or value only) or all equal (several paths): automatic match, no score.
Veto
If the attribute's similarity is below the limit, the score is capped, so a human decides.
Linkage awareness
Patient.link and Linkage resources merge automatically; seealso raises the score by the configured amount.
ExampleBlock on postal code + initial

Key parts: address.postalCode transform postal code and name.given transform initial letter.

ExampleNever auto-merge different genders

Veto on attribute gender, below 0.5, cap 0.85.

Rule tester

The rule tester
The rule tester
  1. Test on sample – Runs the rule set currently on screen – saved or not – over a sample of source records; nothing is changed.
  2. Result tiles – Sample size, candidate pairs, how many would merge automatically, go to review, or match by identifier.
  3. Score distribution – How many scored pairs fall in each score band; helps place the thresholds.

Test on sample runs the rules currently on screen (saved or not) over a sample of source records and shows how many pairs would merge automatically, go to review or match by identifier, with a score histogram. Nothing is written.

In the background

Scoring is described in How a pair is scored.