PUBH-450 · Lesson 7 of 12 · 20 min
Linking and protecting health data
▶ Video coming soon A video version of this lesson is on the way.
In September 2026, Dr. Sorensen asked a question that no single data source in Kestrel Valley could answer: of the 38 people in the region who died of drug toxicity in 2025, how many had visited an emergency department for a non-fatal overdose in the year before they died, and how long before? If many had, the emergency department visit was a missed opportunity, and a program connecting people to treatment and harm reduction after an overdose visit might save lives. Answering the question meant linking records about the same people from the medical examiner, the hospital and the health department’s own case files.
It also meant handling some of the most sensitive information that exists about people: their drug use, their mental health and the circumstances of their deaths. Before any records moved, the team needed legal authority, an agreement with each data holder, a privacy impact assessment, a plan for securing the data and a plan for reporting results without identifying anyone. This lesson covers both halves of that work: the methods of record linkage, and the law, ethics and techniques that protect people whose data are used.
Why link data?
Each data source sees only part of a person’s story. Linking records from different sources about the same individual creates a fuller picture, at much lower cost than collecting new data. Linkage supports surveillance in many ways:
- Outcomes after an event: linking overdose emergency visits to later deaths, or births to infant deaths, to measure risk and missed opportunities.
- Completeness checks and capture-recapture, as described in lesson 6.
- Enriching case data: adding vaccination history from an immunization registry to case reports to measure vaccine effectiveness, or adding hospitalization and death to case records to measure severity.
- Chronic disease surveillance from linked hospital, physician and prescription records over many years.
- Social determinants: linking health data with census, income or housing data, usually within a national statistical agency, to describe inequities.
Methods of record linkage
Deterministic linkage joins records that agree exactly on an identifier or a set of identifiers. The United States has no universal health identifier. Social Security numbers are incomplete or absent in many health records, and each health system uses its own medical record numbers, so linkage usually relies on combinations of name, birth date, sex and address. A deterministic rule might require agreement on last name, first name and full birth date. Exact rules are simple and transparent but miss true matches when a value is misspelled, missing or changed, as when a person changes name after marriage or a name is transliterated differently.
Probabilistic linkage, formalized by Ivan Fellegi and Alan Sunter in 1969 (Fellegi worked at Statistics Canada and later led it), allows for errors. Each pair of records is compared field by field. Each field has two probabilities: the m-probability, the chance that the field agrees if the two records truly belong to the same person, and the u-probability, the chance that it agrees by coincidence if they belong to different people. Fields that rarely agree by chance, such as a full birth date or an unusual surname, carry more weight than fields that often do, such as sex. The weights for all fields are added to give a total score, and pairs above an upper threshold are accepted as matches, pairs below a lower threshold are rejected, and pairs in between go to clerical review by a trained person.
Worked problem
Calculating probabilistic match weights
For linking emergency department and death records, suppose the birth date field has m = 0.95 and u = 0.001, and the sex field has m = 0.98 and u = 0.5. Using weights in base-2 logarithms, calculate the agreement weight for each field and the disagreement weight for birth date. Two records agree on sex but disagree on birth date. What is their combined weight from these two fields?
Show solution
- Agreement weight = log2(m ÷ u). Birth date: 0.95 ÷ 0.001 = 950; log2(950) is about 9.9.
- Sex: 0.98 ÷ 0.5 = 1.96; log2(1.96) is about 1.0.
- Disagreement weight = log2((1 − m) ÷ (1 − u)). Birth date: 0.05 ÷ 0.999 = 0.050; log2(0.050) is about −4.3.
- Combined weight for agreement on sex and disagreement on birth date: 1.0 + (−4.3) = −3.3.
Answer: Agreement on birth date adds strong evidence for a match (about +9.9), agreement on sex adds little (+1.0), and disagreement on birth date counts strongly against (−4.3). The pair scores −3.3 from these fields; other fields such as names and postal code would be added before comparing the total with the thresholds.
Linkage error and bias
Linkage can go wrong in two directions. A false match joins records of two different people; a missed match fails to join records of the same person. Both bias results. In Dr. Sorensen’s question, missed matches would make it look as if fewer people had a prior overdose visit than really did. Linkage errors are rarely random: names with multiple spellings, people with frequent address changes, newcomers, people experiencing homelessness, Indigenous people whose names are recorded inconsistently and women who change surnames are all more likely to be missed. That can create false differences between groups. Good practice is to measure linkage quality, for example by clerical review of a sample, and to report it alongside results.
Linked data infrastructure
Because linkage needs expertise, security and legal authority, many jurisdictions have built specialized organizations to do it. In the United States, examples include NCHS’s data linkage program, which links national survey participants with death records from the National Death Index and with Medicare and Medicaid data; state linked birth and infant death files; state all-payer claims databases; and research networks that link electronic health records using privacy-preserving methods.
Privacy-preserving record linkage (PPRL) allows linkage without revealing identities to the analysts. Identifiers are transformed, for example by cryptographic hashing or encoding in Bloom filters, before they leave the data holder, and only the transformed values are compared. A related principle, the separation principle, keeps identifying information and health content apart: a linkage unit sees names and birth dates but not health data and creates a link key, and analysts receive health data with the link key but no names.
The legal framework
Health information is protected by law in both countries, and public health has specific authority to collect and use it.
In the United States, the HIPAA Privacy Rule protects individually identifiable health information held by covered entities (health plans, health care clearinghouses and most health care providers) and their business associates. Its public health provision, at 45 CFR 164.512(b), allows covered entities to disclose protected health information without the individual’s authorization to a public health authority that is authorized by law to collect it for preventing or controlling disease, injury or disability, including disease reporting, vital events, surveillance, investigations and interventions. Health departments themselves are generally governed by state public health and privacy laws, which often add stricter protections for conditions such as HIV and for genetic information. Federal rules at 42 CFR Part 2 add protections for records of substance use disorder treatment programs, revised in 2024 to align more closely with HIPAA.
HIPAA itself was in flux. A proposed overhaul of the HIPAA Security Rule, published in January 2025, would make many safeguards such as encryption and multi-factor authentication mandatory; in mid-2026 HHS projected a final rule for July 2027. A 2024 amendment adding protections for reproductive health information was vacated by a federal district court in 2025.
Federal interoperability law also affects public health. The 21st Century Cures Act of 2016 led to federal rules against information blocking, which took effect in 2021 and restrict practices by health care providers, health information networks and health IT developers that unreasonably interfere with access, exchange or use of electronic health information. The national Trusted Exchange Framework and Common Agreement (TEFCA), which began operating in 2023, includes public health as one of its exchange purposes, so that health departments can query and receive data through qualified networks. Under HIPAA, covered entities may reasonably rely on a public health authority’s statement that the information it requests is the minimum necessary for its purpose.
Techniques for protecting data
Law sets the boundaries; practice keeps data safe within them. A widely used way to organize protections is the Five Safes framework: safe projects (is the use appropriate and lawful?), safe people (are users trained and trustworthy?), safe settings (does the environment prevent unauthorized use?), safe data (has identifiability been reduced as far as the purpose allows?) and safe outputs (are results checked so that they cannot identify anyone?).
De-identification removes or transforms direct identifiers (name, health number, address) and reduces indirect identifiers (birth date, postal code, rare conditions) that could identify someone in combination. HIPAA allows two methods: the Safe Harbor method, which removes 18 listed identifiers, and the Expert Determination method, in which a qualified expert certifies that the risk of re-identification is very small. HIPAA also allows a limited data set, which keeps some dates and geography, to be shared under a data use agreement. Pseudonymization replaces identifiers with a code, allowing records to be linked over time; it reduces but does not remove risk.
For published statistics, the main tool is small cell suppression: counts below a threshold, commonly fewer than 5 or fewer than 10, are not shown, and other cells are suppressed as well where the hidden value could be worked out by subtraction, called complementary or secondary suppression. Alternatives include combining categories or years, rounding, and adding controlled noise. Formal approaches such as k-anonymity, which ensures every record is indistinguishable from at least k − 1 others on indirect identifiers, and differential privacy, which adds calibrated random noise so that any one person’s inclusion makes little difference to results, are used for some large releases; the United States Census Bureau adopted differential privacy for its 2020 census products.
Organizational safeguards matter as much as technical ones. A privacy impact assessment identifies risks before a new system or linkage begins. A data sharing agreement specifies purpose, data elements, security, retention, destruction and publication rules. Access is limited to people who need it, logged and audited. Data are encrypted in storage and in transit. And every organization needs a breach response plan, because breaches happen, and the law in both countries requires notification of affected people and regulators in many circumstances.
Indigenous data sovereignty
Protecting data is not only about individuals. Groups can be harmed when data about them are used to stigmatize or misrepresent, and Indigenous peoples have experienced this repeatedly. Tribal nations have sovereign authority over data about their citizens, and the CARE principles call for collective benefit, authority to control, responsibility and ethics. Federal and state health agencies increasingly share data with Tribal Epidemiology Centers, which have public health authority status for certain purposes, and work under data sharing agreements that respect tribal decisions on use and publication. Misclassification of Indigenous identity in records, often through missed linkage or incorrect recording, also leads to undercounting, which hides real burdens; partnerships to improve identification are part of the answer.
For Dr. Sorensen’s question, the team found that 21 of the 38 people who died had at least one emergency department visit for any reason in the previous year, and 9 had a visit for a non-fatal overdose, a median of 74 days before death. The results were reported only as these totals and a few broad categories, with no cells smaller than 5, and the findings went to the hospital and the region’s harm reduction partners to plan a follow-up program for people seen after an overdose.
Common mistakes
MistakeAssuming linked data are error-free.
InsteadMeasure and report false and missed matches; linkage errors are often unequal across groups.
MistakeTreating de-identified data as anonymous.
InsteadDe-identified record-level data can often be re-identified in combination with other data; treat them as personal information with safeguards.
MistakeSuppressing small cells without secondary suppression.
InsteadHide additional cells or combine categories when a suppressed value could be calculated from totals.
MistakeBelieving privacy law forbids public health from receiving identifiable data.
InsteadThe HIPAA public health provision and state laws explicitly permit disclosure to public health authorities acting under legal authority.
MistakeAnalyzing Indigenous data without involving Indigenous governments or organizations.
InsteadWork in partnership under agreements that respect data sovereignty principles.
Summary and key terms
- Record linkage combines records about the same people from different sources to answer questions none can answer alone.
- Deterministic linkage uses exact agreement on identifiers; probabilistic linkage uses m- and u-probabilities to weight agreement and sends uncertain pairs to clerical review.
- False and missed matches bias results and often differ across groups; privacy-preserving linkage and the separation principle reduce exposure of identities.
- HIPAA permits disclosures to public health authorities under 45 CFR 164.512(b); state laws and 42 CFR Part 2 add protections; a Security Rule overhaul was projected for 2027.
- Protection uses the Five Safes, de-identification, small cell suppression, privacy impact assessments, agreements, security and respect for Indigenous data sovereignty.
- Record linkage
- The process of identifying records that belong to the same person or event across data sources.
- Deterministic linkage
- Linkage that accepts pairs of records only when they agree exactly on specified identifiers.
- Probabilistic linkage
- Linkage that weights agreement and disagreement on each field to estimate the likelihood that two records match.
- m-probability
- The probability that a field agrees given that two records truly belong to the same person.
- u-probability
- The probability that a field agrees by chance given that two records belong to different people.
- Privacy-preserving record linkage
- Methods that link records using encoded identifiers so that analysts do not see identities.
- De-identification
- Removing or transforming identifiers to reduce the risk that individuals can be identified.
- Small cell suppression
- Withholding published counts below a threshold, and related cells, to prevent identification.
- Five Safes
- A framework for data access built on safe projects, people, settings, data and outputs.
- Privacy impact assessment
- A structured review of the privacy risks of a new program, system or data use, with mitigation measures.
Practice problems
Work each problem on paper first, then reveal the answer to check.
A surname field has m = 0.9 and u = 0.01. What is its agreement weight in base-2 logarithms?
Show answer
log2(0.9 ÷ 0.01) = log2(90), which is about 6.5.
Why are deterministic linkage results likely to undercount matches for people who change their names?
Show answer
Exact rules require agreement on name, so records under a former and current name are not joined; probabilistic methods or additional identifiers help.
A table shows 3 cases in one cell and a row total of 40. Why is suppressing only the 3 not enough?
Show answer
If the other cells in the row are shown, the hidden 3 can be calculated by subtracting them from 40, so at least one other cell must also be suppressed or categories combined.
Name the five elements of the Five Safes framework.
Show answer
Safe projects, safe people, safe settings, safe data and safe outputs.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.