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.

- Filter – Type part of a resource type name to shorten the list.
- Family heading – Types are grouped by matching family (people, organizations, canonical definitions…).
- 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

- Automatic merge at – Pairs scoring at or above this value are merged without a steward.
- Review at – Pairs from here up to the automatic threshold become possible matches in the Remediation queue.
- Minimum attributes – How many attributes must have a value on both sides before a score is trusted.
- Max. blocking group – Blocks with more records than this are skipped – protects against keys like a shared birth date.
- Score bar – The three zones update as you edit: no match, steward review, automatic merge.
- Scale – The two thresholds marked on the 0 to 1 scale.
- 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.
Raise Automatic merge at from 0.92 to 0.96 and keep review at 0.75: fewer automatic merges, a longer queue, more control.
Lower Review at to 0.65. More candidates appear; check the tester first (below).
Weighted attributes

- Attribute – A label for people, and underneath the technical id used by vetoes.
- Where – Element paths read from the record (comma separated), or for a relationship attribute: resource type, referencing path and value path.
- Comparator – How two values are compared (fuzzy text, date, phone, identifier, shared references…). The box below takes JSON parameters.
- Weight – How much the attribute counts when it agrees.
- Penalty – How much it counts against the pair when it disagrees.
- Options – required: a missing value means no match. agree only: only agreement counts, disagreement is ignored.
- 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.
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.
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 key – Each key has parts: element paths plus a transform (soundex, first letters, year, digits…). Records sharing a key are compared.
- Deterministic rule – Automatic match without a score, e.g. the same identifier system and value.
- 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.
Key parts: address.postalCode transform postal code and name.given transform initial letter.
Veto on attribute gender, below 0.5, cap 0.85.
Rule tester

- Test on sample – Runs the rule set currently on screen – saved or not – over a sample of source records; nothing is changed.
- Result tiles – Sample size, candidate pairs, how many would merge automatically, go to review, or match by identifier.
- 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.
Scoring is described in How a pair is scored.