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 coroner, the hospital and the public health unit’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.

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. Canada has an advantage here: each province and territory issues a personal health number used throughout its health system, so linkage within a province is often deterministic and highly accurate. Linkage across provinces or with non-health data is harder. 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
  1. Agreement weight = log2(m ÷ u). Birth date: 0.95 ÷ 0.001 = 950; log2(950) is about 9.9.
  2. Sex: 0.98 ÷ 0.5 = 1.96; log2(1.96) is about 1.0.
  3. Disagreement weight = log2((1 − m) ÷ (1 − u)). Birth date: 0.05 ÷ 0.999 = 0.050; log2(0.050) is about −4.3.
  4. 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.

A histogram of total match weights for record pairs, with two overlapping humps: non-matches on the left and true matches on the right. Two vertical lines mark a lower threshold and an upper threshold; pairs below the lower are rejected, pairs above the upper are accepted and pairs between are sent to clerical review.
Distribution of total match weights in probabilistic linkage. Thresholds trade false matches against missed matches; pairs in the overlap zone go to clerical review. Illustrative.

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 Canada, examples include ICES in Ontario, a prescribed entity under the province’s health privacy law that holds linked health administrative data for nearly all Ontarians; Population Data BC; the Manitoba Centre for Health Policy’s population research data repository; and Statistics Canada’s Social Data Linkage Environment, which links health records with census and tax data under strict controls. Health Data Research Network Canada connects these provincial organizations. PHAC’s Canadian Chronic Disease Surveillance System uses a distributed model in which each province links its own data and shares only aggregate results.

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.

Health information is protected by law in both countries, and public health has specific authority to collect and use it.

In Canada, health privacy is governed mainly by provincial and territorial laws. Several provinces have dedicated health information statutes, including Ontario’s Personal Health Information Protection Act, 2004 (PHIPA), Alberta’s Health Information Act, Saskatchewan’s Health Information Protection Act and Manitoba’s Personal Health Information Act, with similar laws in New Brunswick, Nova Scotia, Newfoundland and Labrador and elsewhere. Quebec brought into force a new Act respecting health and social services information in 2024. These laws allow health information custodians to disclose information without consent where required or permitted by law, including reporting to medical officers of health under public health statutes, and many provide for prescribed entities and research approvals. Public sector privacy laws, and for PHAC the federal Privacy Act, govern government bodies. The federal Personal Information Protection and Electronic Documents Act (PIPEDA) applies to personal information in commercial activities, but in provinces with substantially similar laws, as Ontario, New Brunswick, Nova Scotia and Newfoundland and Labrador have for health information, the provincial law applies instead.

Federal privacy law was under reform in late 2026. Bill C-36, which would enact the Protecting Privacy and Consumer Data Act and replace the privacy part of PIPEDA, was introduced on June 15, 2026, and was at second reading in the House of Commons at the end of November 2026. Like the earlier Bill C-27, which died when Parliament was prorogued in January 2025, it keeps a distinction between de-identified information, which remains personal information, and anonymized information, which does not, and it prohibits re-identification with limited exceptions. Separately, Bill S-5, which revives the Connected Care for Canadians Act first introduced in 2024, was before the Senate in 2026; it would set interoperability standards for health information technology and prohibit data blocking, and Health Canada has said it would also make de-identified data easier to use for research and public health.

Agreements between governments also shape what public health can share. Provinces and territories share data with PHAC under bilateral and multilateral agreements that set out purposes, data elements and protections, and the federal, provincial and territorial commitments on health data made in 2023 call for more consistent sharing for public health. Within provinces, data flow between hospitals, laboratories and public health under the authority of public health statutes and health information laws, and some provinces have created health data agencies or designated organizations to hold integrated data for planning and research.

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. In Canadian law, de-identified information that could reasonably be re-identified is still personal information. 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. The First Nations principles of OCAP®, together with Inuit and Métis governance approaches, mean that linkage and analysis involving First Nations, Inuit or Métis data should be done in partnership with the relevant governments and organizations, under agreements that set out who decides on analysis and publication. In some provinces, First Nations organizations hold their own linked data or co-govern analyses with provincial agencies. 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.

    InsteadProvincial health information laws explicitly permit disclosure to public health authorities acting under legal authority.

  • MistakeAnalysing 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.
  • Provincial and territorial health information laws, public sector privacy laws and PIPEDA govern health data; Bill C-36 and Bill S-5 were before Parliament in late 2026.
  • 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Take the quiz