Health Data in the Corridor: Who Holds What, and What It Can't See
Day 1 showed that payment leaves records behind. Today is about those records: who holds them in Ontario and Quebec, how researchers get access, and what privacy rules apply to anything you take out. Most of all, it is about what each source cannot see. You will profile the Corridor Health registry and measure person-time. You will find a gap in drug data that would wreck a naive analysis. Then you will make a table safe to release.
By the end of today you can
- say who holds Ontario and Quebec health data, and name one way the two provinces' files differ
- explain PHIPA and prescribed entities, Quebec's 2024 health information act, and the small-cell rule
- computed person-time and death rates from the registry
- explain why Ontario drug studies often start at age 66
- know which unit
count(*)counts in every query I write suppress()hides small cells, with secondary suppression, and I wrote a data request
Today's 5.5-hour plan
In this lesson
2.1 Who holds which data (40 min)
| Holder | What it holds | Typical use |
|---|---|---|
| ICES (Ontario) | Ontario's health administrative data, linked person by person with an encrypted key: the registry (RPDB), OHIP physician claims, hospital (DAD) and emergency (NACRS) records from CIHI, ODB drug claims, and many registries and surveys | Most Ontario population studies and HEOR real-world evidence |
| CIHI (national) | Hospital discharges (DAD; Quebec's are in the Hospital Morbidity Database), emergency visits (NACRS), public drug plan claims (NPDUIS), physician payments, health spending | Cross-province comparisons, hospital costing (Day 3), health system indicators |
| RAMQ (Quebec) | Registry of insured persons, physician claims, public drug plan claims | Quebec claims studies |
| MSSS (Quebec) | Hospital discharges in MED-ÉCHO, Quebec's own system (not DAD) | Quebec hospital studies |
| ISQ (Quebec) | Statistics, and support for research access to linked Quebec data | Linked Quebec studies |
| Statistics Canada | Surveys such as the Canadian Community Health Survey (CCHS), accessed through Research Data Centres | Health-related quality of life, risk factors, self-reported conditions (Day 16) |
| HDRN Canada | A network that coordinates access requests across provinces | Multi-province studies |
Two warnings. First, the provinces' files do not share a format: Quebec's hospital data come from MED-ÉCHO, not DAD, and RAMQ's claims layouts differ from OHIP's. Corridor Health uses one harmonized format for both provinces. That keeps the lessons simple, but in real work, harmonizing the files is part of the job. Second, these are administrative data. They were collected to pay providers and manage hospitals, not for research. Every variable records what someone was paid for or reported, not necessarily what happened to the patient.
Why it matters at work: the first page of every real-world evidence protocol lists its data sources and their known gaps. Reviewers at CDA-AMC and INESSS check that page first.
Where you'll meet this: RWE protocols (Module 3) · CDA-AMC's real-world evidence guidance · ICES project descriptions · HDRN multi-province requests
2.2 Access, privacy and identifiers (40 min)
Ontario. The Personal Health Information Protection Act (PHIPA) governs health information. ICES is a prescribed entity under PHIPA, which allows it to receive and link personal health information for analysis without individual consent, under strict rules. Analysts work with coded data inside ICES's secure environment, and only results that pass a privacy review leave it.
Quebec. Most of the Act respecting health and social services information came into force on 1 July 2024. It sets one framework for health information across the Quebec system, including how researchers can be authorized to access it. It also lets people restrict access to their information, including by researchers.
Kinds of identifiers.
| Kind | Examples | Rule |
|---|---|---|
| Direct identifiers | Name, health card number, address | Removed before analysis; replaced by an encrypted key |
| Quasi-identifiers | Birth date, sex, postal code, dates of events, rare diagnoses | Kept only as needed; coarsened when possible (birth year, age group, region) |
| Linkage keys | ICES's encrypted health card number; person_id in this course | Used to join tables, never released |
Small cells. A table that shows "2 deaths among women aged 18–44 in the North region" can identify someone. Many Canadian data holders, ICES among them, do not allow counts from 1 to 5 to leave the secure environment. Some holders have stricter rules, so check the agreement for each project.
Minimum necessary. Ask only for the variables and years your question needs. Every extra variable adds privacy risk and slows the approval.
Try it (5 min). Which of these columns in persons.csv are quasi-identifiers? person_id, province, region, sex, birth_date, income_quintile, rural, registry_start, death_date.
Solution
All of them except person_id, which is a linkage key. The riskiest are birth_date and death_date: exact dates are close to unique (you will measure this in 2.6). registry_start can reveal a recent move to the province.
2.3 Profile the registry: people and person-time (45 min)
The registry tells you who could have generated records, and when. Corridor Health follows people from registry_start (1 January 2019, or their arrival in the province) until death. For 2024, each person contributes person-time from their later of registry_start and 1 January to their earlier of death and 31 December:
Rates use person-time in the denominator, because someone who arrived in November could not have had a hospital stay in March.
"""Day 2.3: profile the registry - who is in it, and for how long in 2024?"""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import connect, show # noqa: E402
con = connect()
con.execute("""
CREATE TEMP VIEW observed_2024 AS
SELECT p.*,
greatest(registry_start, DATE '2024-01-01') AS obs_start,
least(coalesce(death_date, DATE '2024-12-31'), DATE '2024-12-31') AS obs_end
FROM persons p
WHERE registry_start <= DATE '2024-12-31'
AND (death_date IS NULL OR death_date >= DATE '2024-01-01')""")
print("--- Who is in the registry")
show(con, """
SELECT province,
count(*) AS people,
round(100 * avg((sex = 'F')::INT), 1) AS pct_female,
round(100 * avg(rural), 1) AS pct_rural,
count_if(registry_start > DATE '2019-01-01') AS joined_after_2019,
count_if(registry_start > DATE '2024-01-01') AS joined_in_2024
FROM persons GROUP BY 1 ORDER BY 1""")
print("\n--- Age groups on 1 January 2024 (people)")
show(con, """
PIVOT (SELECT province,
CASE WHEN a < 45 THEN '18-44' WHEN a < 65 THEN '45-64'
WHEN a < 80 THEN '65-79' ELSE '80+' END AS age_group
FROM (SELECT province, age_on(birth_date, DATE '2024-01-01') AS a FROM persons))
ON age_group USING count(*) GROUP BY province ORDER BY province""")
print("\n--- Person-time in 2024 and the crude death rate")
show(con, """
SELECT province,
count(*) AS people_observed,
round(sum(date_diff('day', obs_start, obs_end) + 1) / 365.25)::BIGINT AS person_years,
count(death_date) AS deaths,
round(1000 * count(death_date)
/ (sum(date_diff('day', obs_start, obs_end) + 1) / 365.25), 2) AS deaths_per_1000_py
FROM observed_2024 GROUP BY 1 ORDER BY 1""")
print("\n--- Deaths per 1,000 person-years by age group")
show(con, """
PIVOT (SELECT province, age_group,
round(1000 * count(death_date) / (sum(days) / 365.25), 1) AS rate
FROM (SELECT province, death_date,
CASE WHEN a < 45 THEN '18-44' WHEN a < 65 THEN '45-64'
WHEN a < 80 THEN '65-79' ELSE '80+' END AS age_group,
date_diff('day', obs_start, obs_end) + 1 AS days
FROM (SELECT *, age_on(birth_date, DATE '2024-01-01') AS a FROM observed_2024))
GROUP BY ALL)
ON age_group USING first(rate) GROUP BY province ORDER BY province""")
--- Who is in the registry
province people pct_female pct_rural joined_after_2019 joined_in_2024
ON 155122 51.0 11.6 19451 844
QC 94878 50.7 20.0 12165 546
--- Age groups on 1 January 2024 (people)
province 18-44 45-64 65-79 80+
ON 67566 49675 28505 9376
QC 41447 30282 17372 5777
--- Person-time in 2024 and the crude death rate
province people_observed person_years deaths deaths_per_1000_py
ON 155122 154461 1529 9.90
QC 94878 94450 950 10.06
--- Deaths per 1,000 person-years by age group
province 18-44 45-64 65-79 80+
ON 0.5 4.3 19 82.5
QC 0.4 4.0 20 83.9
The two provinces have similar age structures and death rates. 2024's crude death rate is about 10 per 1,000 person-years, rising from under 1 at ages 18–44 to more than 80 at ages 80+. When you compare provinces later in the course, differences in rates will come from the data, not the population.
Try it (10 min). Compute person-years, deaths and the death rate per 1,000 person-years for each region, sorted from highest rate to lowest.
Solution
"""Day 2 exercise 2.3: person-years and deaths per 1,000 by region."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import connect, show # noqa: E402
con = connect()
show(con, """
WITH obs AS (
SELECT region, death_date,
date_diff('day', greatest(registry_start, DATE '2024-01-01'),
least(coalesce(death_date, DATE '2024-12-31'), DATE '2024-12-31')) + 1 AS days
FROM persons
WHERE registry_start <= DATE '2024-12-31'
AND (death_date IS NULL OR death_date >= DATE '2024-01-01'))
SELECT o.region, r.name, round(sum(days) / 365.25)::BIGINT AS person_years, count(death_date) AS deaths,
round(1000 * count(death_date) / (sum(days) / 365.25), 2) AS per_1000_py
FROM obs o JOIN regions r USING (region)
GROUP BY ALL ORDER BY per_1000_py DESC""")
region name person_years deaths per_1000_py
QC-07 Outaouais 4714 57 12.09
QC-13 Laval 4720 53 11.23
QC-03 Capitale-Nationale 8448 94 11.13
ON-NTH North 7797 84 10.77
ON-WST West 27582 296 10.73
QC-OTH Other regions 36801 372 10.11
ON-CEN Central 46304 450 9.72
QC-16 Montérégie 16961 164 9.67
ON-TOR Toronto 32569 313 9.61
ON-EST East (incl. Ottawa) 40209 386 9.60
QC-06 Montréal 22806 210 9.21
The rates differ more by region than by province, and the smallest regions (Outaouais, Laval) have the widest swings. With about 55 deaths, one region's rate can move by a point from chance alone. Always report counts next to rates.
2.4 What drug claims cannot see (40 min)
Physician claims cover everyone, because the province pays every doctor. Drug claims in provincial data cover only people on a public plan. The next script counts, per 1,000 adults, people with a diabetes visit (ICD-9 code 250) and people with a metformin claim, by province and age group:
"""Day 2.4: what each data source can and cannot see.
Physician claims cover everyone (medically necessary physician care is insured).
Public drug claims cover only people while they are on a public drug plan.
"""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import connect, show # noqa: E402
con = connect()
con.execute("""
CREATE TEMP VIEW people AS
SELECT person_id, province,
CASE WHEN age_on(birth_date, DATE '2024-07-01') < 45 THEN '18-44'
WHEN age_on(birth_date, DATE '2024-07-01') < 65 THEN '45-64'
ELSE '65+' END AS age_group
FROM persons
WHERE registry_start <= DATE '2024-07-01'
AND (death_date IS NULL OR death_date >= DATE '2024-07-01')""")
con.execute("""
CREATE TEMP VIEW flags AS
SELECT p.*,
person_id IN (SELECT person_id FROM physician_claims WHERE dx_code = '250') AS diabetes_visit,
person_id IN (SELECT r.person_id FROM drug_claims r JOIN drugs d USING (din)
WHERE d.ingredient = 'metformin') AS metformin_claim,
person_id IN (SELECT person_id FROM drug_plan_eligibility
WHERE start_date <= DATE '2024-07-01'
AND (end_date IS NULL OR end_date >= DATE '2024-07-01')) AS public_plan
FROM people p""")
print("--- Per 1,000 adults alive on 1 July 2024")
show(con, """
SELECT province, age_group, count(*) AS people,
round(1000 * avg(diabetes_visit::INT), 1) AS with_diabetes_visit,
round(1000 * avg(metformin_claim::INT), 1) AS with_metformin_claim,
round(100 * avg(public_plan::INT), 1) AS pct_public_plan
FROM flags GROUP BY ALL ORDER BY 1, 2""")
print("\n--- Among people with a diabetes visit: how many have a metformin claim we can see?")
show(con, """
SELECT province, age_group,
count(*) AS diabetes_visit_people,
round(100 * avg(metformin_claim::INT), 1) AS pct_metformin_visible,
round(100 * avg(metformin_claim::INT) FILTER (public_plan), 1) AS pct_if_public_plan
FROM flags WHERE diabetes_visit GROUP BY ALL ORDER BY 1, 2""")
--- Per 1,000 adults alive on 1 July 2024
province age_group people with_diabetes_visit with_metformin_claim pct_public_plan
ON 18-44 66287 32.0 3.6 12.8
ON 45-64 49545 101.8 10.2 7.3
ON 65+ 38525 255.0 223.2 100.0
QC 18-44 40648 32.5 11.9 39.0
QC 45-64 30243 99.6 38.0 38.7
QC 65+ 23517 257.3 209.7 93.7
--- Among people with a diabetes visit: how many have a metformin claim we can see?
province age_group diabetes_visit_people pct_metformin_visible pct_if_public_plan
ON 18-44 2118 11.0 88.0
ON 45-64 5043 9.5 85.5
ON 65+ 9824 84.6 84.6
QC 18-44 1323 35.1 84.9
QC 45-64 3011 37.0 86.1
QC 65+ 6051 78.7 83.6
Read the first table across. Diabetes visits look almost identical in the two provinces. Metformin claims do not: in Ontario at ages 45–64 only 10.2 per 1,000 adults have one, against 38.0 in Quebec. A naive analyst would conclude that Quebec treats middle-aged diabetes four times as often. The real reason is in the last column: 7.3% of these Ontarians have a public drug plan, against 38.7% in Quebec.
The second table says the same thing from the patient side. Among Ontarians with a diabetes visit aged 45–64, only 9.5% have a visible metformin claim. Among those with a public plan, 85.5% do, which is as high as in Quebec. The drug data are complete for the people they cover.
The lesson for the rest of the course: a drug-based study in Ontario is a study of seniors and people on social assistance, unless you restrict it to the covered population and say so. This is why so many Ontario drug studies start at age 66. That gives everyone at least a year of ODB history before the study starts (Day 5).
Why it matters at work: an RWE study of Renavex in Ontario under 65 would be biased toward low-income patients without saying so. CDA-AMC reviewers look for this.
Where you'll meet this: "age 66+" cohort restrictions in ICES drug studies · generalizability sections · choosing between Ontario and Quebec data for a question
2.5 Counting claims instead of people (20 min)
Bug of the day. A quick "diabetes prevalence" from physician claims:
"""Day 2 bug of the day: counting claims instead of people."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import connect # noqa: E402
con = connect()
adults = con.sql("SELECT count(*) FROM persons").fetchall()[0][0]
# the bug: one row per claim, so a person with eight diabetes visits counts eight times
claims = con.sql("SELECT count(*) FROM physician_claims WHERE dx_code = '250'").fetchall()[0][0]
# the fix: one row per person
people = con.sql("SELECT count(DISTINCT person_id) FROM physician_claims WHERE dx_code = '250'").fetchall()[0][0]
print(f"Adults in the registry: {adults:>9,}")
print(f"Diabetes claims (dx 250): {claims:>9,} -> 'prevalence' {100 * claims / adults:5.1f}%")
print(f"People with at least one such claim: {people:>9,} -> {100 * people / adults:5.1f}%")
print(f"Claims per person: {claims / people:.2f}")
Adults in the registry: 250,000
Diabetes claims (dx 250): 101,218 -> 'prevalence' 40.5%
People with at least one such claim: 27,648 -> 11.1%
Claims per person: 3.66
Counting rows gives 40.5%. Counting people gives 11.1%. People with diabetes see their doctor for it 3.66 times a year on average, so every row-based count overstates prevalence about four-fold. The rule: decide the unit of your answer first (people, stays, claims, or dollars), and make sure count(*) counts that unit. Even 11.1% is not prevalence yet. One claim with code 250 can be a rule-out visit, which is why Day 5 uses validated case definitions.
2.6 Mini-project: could someone be recognized? (55 min)
Part A. For different combinations of quasi-identifiers, what share of people are unique, the only person with that combination? Part B. Build a table of 2024 deaths by region and age group, then make it safe to release: hide counts from 1 to 5, and hide one more cell in any row where a single hidden cell could be recovered from the row total.
"""Day 2: small-cell suppression for tables that leave the secure environment.
Many Canadian data holders (ICES among them) do not allow counts of 1 to 5 to be
released, because a small count can identify a person. Zero is usually allowed.
"""
import pandas as pd
SMALL = 6 # counts 1..SMALL-1 are suppressed
def suppress(table, small=SMALL, secondary=True):
"""Return a copy of a wide count table (rows x columns) with small cells hidden.
Primary suppression hides counts 1..small-1. If a row then has exactly one
hidden cell, the row total would give it away, so (secondary=True) the
smallest other non-zero cell in that row is hidden too.
"""
counts = table.copy()
hide = (counts > 0) & (counts < small)
if secondary:
for idx in counts.index:
row = hide.loc[idx]
if row.sum() == 1:
others = counts.loc[idx][(~row) & (counts.loc[idx] > 0)]
if len(others):
hide.loc[idx, others.idxmin()] = True
out = counts.astype(object)
out[hide] = f"<{small}"
return out, int(hide.values.sum())
def uniqueness(df, columns):
"""Share of people who are the only person with their combination of `columns`."""
sizes = df.groupby(columns, dropna=False).size()
return float((sizes == 1).sum() / len(df)), int(sizes.size)
__all__ = ["SMALL", "suppress", "uniqueness", "pd"]
"""Day 2 mini-project: could someone be recognized from what we release?
Part A: how many people are unique on a few everyday facts (quasi-identifiers)?
Part B: suppress small cells in a table of 2024 deaths before it leaves the
secure environment.
"""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import connect # noqa: E402
from corridor.privacy import suppress, uniqueness # noqa: E402
con = connect()
df = con.sql("""SELECT province, region, sex, birth_date, year(birth_date) AS birth_year,
(2024 - year(birth_date)) // 5 * 5 AS age_5yr, rural, income_quintile, death_date
FROM persons""").df()
print("--- A. Share of people who are unique on each combination")
combos = [
["birth_date", "sex", "region"],
["birth_date", "sex", "province"],
["birth_year", "sex", "region", "rural", "income_quintile"],
["birth_year", "sex", "region"],
["age_5yr", "sex", "region"],
["birth_date", "sex", "region", "death_date"],
]
for cols in combos:
share, groups = uniqueness(df, cols)
print(f"{' + '.join(cols):<52}{groups:>8,} groups {100 * share:5.1f}% unique")
dead = df[df.death_date.notna()].copy()
share, _ = uniqueness(dead, ["birth_year", "sex", "region"])
print(f"\nAmong the {len(dead):,} people who died in 2024, "
f"{100 * share:.1f}% are unique on birth year + sex + region.")
print("\n--- B. Deaths in 2024 by region and age group, before and after suppression")
dead["age_group"] = (2024 - dead.birth_year).map(
lambda a: "18-44" if a < 45 else "45-64" if a < 65 else "65-79" if a < 80 else "80+")
table = dead.pivot_table(index="region", columns="age_group", values="sex", aggfunc="count", fill_value=0)
table["total"] = table.sum(axis=1)
print(table.to_string())
safe, hidden = suppress(table.drop(columns="total"))
safe["total"] = table["total"]
print()
print(safe.to_string())
print(f"\n{hidden} cells hidden.")
--- A. Share of people who are unique on each combination
birth_date + sex + region 186,168 groups 54.6% unique
birth_date + sex + province 92,419 groups 10.3% unique
birth_year + sex + region + rural + income_quintile 14,207 groups 0.5% unique
birth_year + sex + region 1,800 groups 0.0% unique
age_5yr + sex + region 395 groups 0.0% unique
birth_date + sex + region + death_date 186,852 groups 55.1% unique
Among the 2,479 people who died in 2024, 12.5% are unique on birth year + sex + region.
--- B. Deaths in 2024 by region and age group, before and after suppression
age_group 18-44 45-64 65-79 80+ total
region
ON-CEN 8 58 157 227 450
ON-EST 11 57 116 202 386
ON-NTH 3 6 33 42 84
ON-TOR 4 42 102 165 313
ON-WST 6 35 96 159 296
QC-03 0 16 30 48 94
QC-06 3 20 82 105 210
QC-07 1 8 16 32 57
QC-13 1 6 19 27 53
QC-16 6 22 52 84 164
QC-OTH 5 32 135 200 372
age_group 18-44 45-64 65-79 80+ total
region
ON-CEN 8 58 157 227 450
ON-EST 11 57 116 202 386
ON-NTH <6 <6 33 42 84
ON-TOR <6 <6 102 165 313
ON-WST 6 35 96 159 296
QC-03 0 16 30 48 94
QC-06 <6 <6 82 105 210
QC-07 <6 <6 16 32 57
QC-13 <6 <6 19 27 53
QC-16 6 22 52 84 164
QC-OTH <6 <6 135 200 372
12 cells hidden.
What to take from it:
- Exact birth dates are nearly unique. Birth date + sex + region singles out 54.6% of people. Birth year + sex + region singles out almost no one, until you look at a small group: 12.5% of the people who died in 2024 are unique even on birth year + sex + region. Small groups break coarse identifiers.
- Secondary suppression matters. In the ON-TOR row, hiding only the 4 would let anyone recover it from the total (313). So the 42 is hidden too. Without that step, the table would still leak.
- Zero is shown. QC-03 had no deaths at 18–44, and zeros are usually allowed.
Try it (10 min). Some agreements use a stricter threshold, such as hiding counts under 11. Apply that to the same table (without the total column). How many of the 44 cells survive?
Solution
"""Day 2 exercise 2.6: the same death table with a stricter threshold (counts under 11 hidden)."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from corridor.db import connect # noqa: E402
from corridor.privacy import suppress # noqa: E402
con = connect()
dead = con.sql("""SELECT region,
CASE WHEN 2024 - year(birth_date) < 45 THEN '18-44'
WHEN 2024 - year(birth_date) < 65 THEN '45-64'
WHEN 2024 - year(birth_date) < 80 THEN '65-79' ELSE '80+' END AS age_group
FROM persons WHERE death_date IS NOT NULL""").df()
table = dead.pivot_table(index="region", columns="age_group", aggfunc="size", fill_value=0)
for small in (6, 11):
safe, hidden = suppress(table, small=small)
print(f"threshold <{small}: {hidden} of {table.size} cells hidden")
safe, _ = suppress(table, small=11)
print(safe.to_string())
threshold <6: 12 of 44 cells hidden
threshold <11: 18 of 44 cells hidden
age_group 18-44 45-64 65-79 80+
region
ON-CEN <11 <11 157 227
ON-EST 11 57 116 202
ON-NTH <11 <11 33 42
ON-TOR <11 <11 102 165
ON-WST <11 <11 96 159
QC-03 0 16 30 48
QC-06 <11 <11 82 105
QC-07 <11 <11 16 32
QC-13 <11 <11 19 27
QC-16 <11 <11 52 84
QC-OTH <11 <11 135 200
At under 11, 18 of 44 cells are hidden, and the youngest age group is almost entirely gone. The fix is usually to merge categories (18–64 instead of 18–44 and 45–64) rather than to publish a table full of hidden cells.
2.7 Write a data request (30 min)
Data holders approve projects, not curiosity. Write a half-page request for a future study: "Kidney outcomes and costs in adults with type 2 diabetes and chronic kidney disease in Ontario and Quebec, 2019–2025, before and after Renavex was listed." Use these headings:
- Question (one sentence)
- Population (who, which years, which provinces)
- Data sources and variables: name each table and justify every variable you ask for
- What you will not request, and why
- Outputs: what leaves the secure environment, and the small-cell rule you will apply
Example answer (shortened)
Question. Did Renavex's listing change the rate of kidney failure and the costs of care for adults with type 2 diabetes and CKD? Population. Adults 18+ with diabetes and CKD by validated algorithms, Ontario and Quebec, 2019–2025. Sources and variables. Registry: encrypted ID, birth year and month (for age and the age-65 drug-plan rule), sex, region, income quintile, rurality, death date. Physician claims: date, diagnosis code, fee code, specialty, amount (case definitions, visits, costs). Hospital abstracts: dates, diagnoses, interventions, CMG, RIW (outcomes, costs). Public drug claims: date, DIN, quantity, days' supply, plan paid (exposure, drug costs). Drug plan eligibility dates (to know when drug data can be seen). Not requested. Names, health card numbers, postal codes (region and rurality are enough), exact birth day (month is enough for the age-65 rule), and drug claims for unrelated conditions. Outputs. Aggregate tables and model estimates only. No cell from 1 to 5, with secondary suppression. Age groups merged where needed.
Day 2 checklist
- I can say who holds Ontario and Quebec health data, and name one way the two provinces' files differ
- I can explain PHIPA and prescribed entities, Quebec's 2024 health information act, and the small-cell rule
- I computed person-time and death rates from the registry
- I can explain why Ontario drug studies often start at age 66
- I know which unit
count(*)counts in every query I write -
suppress()hides small cells, with secondary suppression, and I wrote a data request
Bloc français (30 min)
Thème : les données et la vie privée.
Les données administratives de santé sont recueillies pour payer les soins, pas pour la recherche. Pour réaliser une étude, le chercheur présente une demande d'accès qui précise sa question, la population visée et les variables nécessaires. Les identifiants directs, comme le nom ou le numéro d'assurance maladie, sont retirés et remplacés par une clé chiffrée qui permet de jumeler les fichiers. Avant de sortir un tableau de l'environnement sécurisé, on masque les cellules de faible effectif. Enfin, les taux sont calculés en personnes-années, car chaque personne n'est pas suivie pendant toute l'année.
| Français | English |
|---|---|
| les données administratives | administrative data |
| les renseignements de santé | health information |
| une demande d'accès | an access request |
| un chercheur, une chercheuse | a researcher |
| le numéro d'assurance maladie | the health insurance (card) number |
| une clé chiffrée | an encrypted key |
| jumeler (apparier) des fichiers | to link files |
| une cellule de faible effectif | a small cell |
| masquer | to suppress (hide) |
| les personnes-années | person-years |
| le taux de mortalité | the death rate |
| le dénominateur | the denominator |
Exercices
- Translate: "Drug claims only cover people who have a public plan."
- Translate: « On masque toute cellule de un à cinq. »
- In three French sentences, explain to a colleague why the Ontario metformin rate at ages 45–64 is so low (2.4).
Réponses
- Les demandes de remboursement de médicaments (les réclamations) ne couvrent que les personnes inscrites à un régime public.
- "Any cell from one to five is suppressed."
- Example: En Ontario, la plupart des adultes de 45 à 64 ans ont une assurance privée. Leurs médicaments n'apparaissent donc pas dans les données du Programme de médicaments de l'Ontario. Le taux est faible parce que les données ne voient pas ces personnes, pas parce qu'elles ne sont pas traitées.