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 in the left panel
Match rules: choosing the resource type in the left panel
  1. Filter – Type part of a resource type name to shorten the list; matching groups open.
  2. Collapse all – Closes every group.
  3. Family group – Types are grouped by matching family (people, organizations, canonical definitions…); the arrow opens or closes a group.
  4. Selected type – The rule set shown on the right; an orange dot means the rules changed since the last MDM run, badges show off (matching disabled) and custom (edited).

The resource types are listed in the left panel under the MDM menu, grouped like in the other modules: type in Filter resource types to find one, open or close a group with its arrow, and Collapse all to close every group. The selected type is highlighted; an orange dot means its rules changed since the last MDM run, 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 (sounds alike: first word in any script, 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. Choose a second attribute under together with and the veto only fires when both attributes clearly disagree; an attribute that one of the two records lacks is left out of that check.
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.

Documents (DocumentReference)

Besides the patient, type and date, the standard DocumentReference rules compare the document itself: Content address (URL) (content.attachment.url, comparator Web address), Content title (content.attachment.title), Description and, when both records have one, Same content (hash). Candidate pairs also come from the same address, the same hash, or the same patient with a title that starts the same.

The veto Content address and title clearly differ caps the score at 0.5, below the review threshold: two documents whose address and title are both clearly different are never matched, not even as a possible match. A different address alone does not trigger it, because the same document can be stored in two systems; with the same title such a pair goes to the stewards. Relative addresses such as Binary/123 are only compared between records of the same source system.

ExampleOne discharge summary, two systems

Hospital and clinic both send Discharge summary 2 March for the same patient, at https://dms.example.org/docs/ds-1001.pdf: matched automatically. If the clinic's copy has the address https://archive.example.org/2026/77812, the pair becomes a possible match for review. A X-ray left knee document from the same day at another address is never matched with it.

Names in Arabic, Chinese and other scripts

Name comparators know which script a value is written in and compare like with like:

Normalisation
Before any comparison: Unicode NFKC; Arabic diacritics and tatweel removed, alif forms, alif maqsura, ta marbuta and hamza carriers unified, Arabic-Indic digits converted; traditional Chinese characters converted to simplified; accents removed in Latin, Greek and Cyrillic.
Arabic names
Abd is joined to the next word, bin / bint / ibn and the article al- are ignored, so عبد الله, عبدالله and Abdullah compare as one name.
Chinese names
Compared by characters and by Pinyin (with the correct reading of surnames such as 曾 Zeng and 单 Shan, and compound surnames such as 欧阳). Homophones written with different characters still score high.
Across scripts
Chinese characters against a Latin Pinyin spelling, and Arabic against a Latin transliteration (Mohammed / Muhammad / محمد), score 0.95 when they sound the same. Chinese against Arabic is not compared.
Sound keys
Sounds alike and the blocking transform Sounds alike: first word (any script) use Soundex plus a consonant key for Latin, the consonant key for Arabic and Pinyin for Chinese, so records written in different scripts land in the same block. initial letter (any script) works the same way.

Common values count less

Tick common values count less on an attribute (standard for family and given names of persons) and agreement on a value many records share counts for less: fully at 1 % of the records or fewer, half at 10 % or more. It needs at least 200 records with a value. The evidence of a pair shows Common value: N % of the records. Two different people called Mohammed Al-Harbi no longer reach the review threshold on the name alone.

National identity numbers

The standard person rules check national numbers: the Saudi national ID and Iqama (nphies systems, Luhn check), the Chinese resident ID (MOD 11-2 check and a valid birth date), the German KVNR and the Dutch BSN. The same valid number merges automatically (deterministic rule Same national identity number (checked)); two different valid numbers from the same country are a veto, so such a pair is never merged automatically. Invalid numbers are ignored.

Changed since the last MDM run

Rules take effect at the next MDM run, so the editor shows what is different from the rules the last run of the type used. Types whose rules changed carry a changed mark in the list. In the editor a banner names the run, and new or changed attributes, blocking keys, deterministic rules and vetoes are highlighted (new or changed); a changed threshold shows its old value (was 0.92) and removed rules are listed in the banner. Unsaved edits are highlighted too. The comparison uses the version in History that was in force when the run started; only finished runs count, and a run limited to some types counts for those types only.

Standard rule sets that you have not edited are updated to the new standard rules when the suite is upgraded (a new version with the note Standard rules of a new release appears in History). Customised rule sets are left unchanged; use Reset to standard rules to take over the new rules.

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.