The first integration most healthcare CRM projects build is "sync patients and appointments from the EHR." It sounds like a weekend of mapping fields. The part that actually takes months is identity: deciding whether the person in this message is someone you already have.
Get it wrong in one direction and you create duplicates, so a patient gets two reminder texts and two versions of their history. Get it wrong in the other direction and you merge two different people, which in healthcare is a privacy incident, not just a data bug. Here is how I approach it.
Never use your own key as the match key
The CRM will have its own contact ID. The EHR has a medical record number (MRN), and larger organizations may have an enterprise master patient index (EMPI) ID that spans several EHR instances. Store the external identifiers as a separate table, not as fields on the contact:
CREATE TABLE contact_identifier (
contact_id UUID REFERENCES contact(id),
system TEXT NOT NULL, -- 'ehr_main', 'ehr_clinic_b', 'empi'
value TEXT NOT NULL,
assigned_at TIMESTAMPTZ NOT NULL,
retired_at TIMESTAMPTZ,
UNIQUE (system, value)
);
Patients collect identifiers over time: a second MRN after an acquisition, a new EMPI ID after a merge. A table handles that; a column doesn't.
Match in tiers, not with one rule
When a message arrives without a known identifier (a web form, a call center lead, a referral fax turned into data), match in order of confidence:
- Exact external ID – automatic link.
- Strong demographic match – same last name, date of birth and either phone or email. Link automatically, but log the reason.
- Weak match – same date of birth and a similar name, or same phone with different name. Do not link. Put it in a review queue.
- No match – create a new contact.
Normalize before comparing: strip punctuation from phones and store E.164, lowercase emails, handle hyphenated and compound surnames, and be careful with nicknames. Tier 3 matters most. Shared family phone numbers and twins with the same birthday are common enough to bite you in the first month.
Handle EHR merges and unmerges
EHRs merge duplicate patient records, and occasionally unmerge them. In HL7 v2 these arrive as ADT^A40 (merge) and related events; in FHIR you may see a Patient.link with replaced-by. Your CRM must follow: re-point identifiers, combine activity history and keep an audit row. Unmerges are rarer but painful, so keep enough history to split a contact apart.
Keep consent and preferences on the person, with provenance
Contact preferences (no texts, no marketing email) must survive merges. When two records merge, the most restrictive preference should win, and you should keep where each preference came from. A patient who opted out through the portal should never be opted back in because a marketing import said otherwise.
Measure it
Track a few numbers weekly: new contacts created per day, automatic matches by tier, review queue size and age, and confirmed duplicates found later. If duplicates keep appearing, tighten the strong-match rules; if the review queue grows faster than staff can work it, look at which pattern is filling it.
Pick tools that respect this
When you evaluate products, ask how each one models external identifiers, what matching it does out of the box, and how it processes EHR merge events. Many look identical until you ask. This guide to healthcare CRM systems and their EHR integrations is a useful map of the main products before you dig into these questions with vendors.
Identity is not the exciting part of a CRM project, but every campaign, outreach list and report depends on it.
Top comments (0)