Patient identity and health card numbers
Two apps can share a chart only if they agree on who the patient is. These rules make every app identify a patient the same way, and stop two apps on one project from opening two charts for one person.
The Patient profile is OpenOrchid Core Patient (oo-patient). It derives
from CA Core+ patient-ca-core, which defines two identifier slices: JHN for a health card number and MRN for a
chart number.
ID-1 Every Patient conforms to OpenOrchid Core Patient
An app SHALL write every Patient so that it passes oo-patient: at least one name, a birth date, an administrative
gender, and a health card number or a chart number (invariant oo-pat-1).
- Who: platform, once a project can require profiles. Until then, the app.
- Enforced by: Gap.
Project.defaultProfileapplies a profile only when a resource names none, so it does not enforce one. OPE-71 adds a setting that requires profiles; OPE-60 turns it on in the project template. - Check: validate every Patient an app writes against
oo-patient.
ID-2 A health card number uses its issuer's system
A health card number SHALL be an identifier with type JHN from http://terminology.hl7.org/CodeSystem/v2-0203,
and a system from the table below for the province, territory or federal program that issued the card (invariant
oo-pat-2). An identifier with one of those systems SHALL have that type (invariant oo-pat-6), so the format
checks below cannot be skipped by leaving the type out. An app SHALL NOT use the generic
https://fhir.infoway-inforoute.ca/NamingSystem/ca-jhn, because another app could not tell which jurisdiction issued
the number.
- Who: app; the platform checks it under ID-1.
- Check:
oo-pat-2andoo-pat-6.
The systems are the Canadian URI Registry's, each read from its
registry entry on 2026-12-05. Every system starts https://fhir.infoway-inforoute.ca/NamingSystem/.
| Issuer | System (after the prefix) | OID | Registry status |
|---|---|---|---|
| Alberta | ca-ab-patient-healthcare-id | 2.16.840.1.113883.4.20 | active |
| British Columbia | ca-bc-patient-healthcare-id | 2.16.840.1.113883.4.50 | draft |
| Manitoba | ca-mb-patient-healthcare-id | 2.16.840.1.113883.4.12 | draft |
| New Brunswick | ca-nb-patient-healthcare-id | 2.16.840.1.113883.4.51 | draft |
| Newfoundland and Labrador | ca-nl-patient-healthcare-id | 2.16.840.1.113883.4.52 | draft |
| Nova Scotia | ca-ns-patient-healthcare-id | 2.16.840.1.113883.4.53 | draft |
| Northwest Territories | ca-nt-patient-healthcare-id | 2.16.840.1.113883.4.54 | draft |
| Nunavut | ca-nu-patient-healthcare-id | 2.16.840.1.113883.4.55 | draft |
| Ontario | ca-on-patient-hcn | 2.16.840.1.113883.4.59 | draft |
| Prince Edward Island | ca-pe-patient-healthcare-id | 2.16.840.1.113883.4.13 | draft |
| Quebec | ca-qc-patient-healthcare-id | 2.16.840.1.113883.4.56 | draft |
| Saskatchewan | ca-sk-patient-healthcare-id | 2.16.840.1.113883.4.57 | draft |
| Yukon | ca-yt-patient-healthcare-id | 2.16.840.1.113883.4.58 | draft |
| Canadian Armed Forces | ca-armed-forces-health-id | 2.16.840.1.113883.4.389 | draft |
| Royal Canadian Mounted Police | ca-royal-mounted-police-health-id | 2.16.840.1.113883.4.379 | draft |
| Correctional Service Canada | ca-correctional-service-health-id | 2.16.840.1.113883.4.377 | draft |
| Veterans Affairs Canada | ca-veterans-affairs-health-id | 2.16.840.1.113883.4.376 | draft |
The Interim Federal Health Program has no registry entry (searched 2026-12-05). An app SHALL NOT record an IFHP
number as a JHN identifier until the registry lists a system for it and this spec adds it to the table.
Most entries are drafts in the registry. A registry change that renames a system is a breaking change to this spec and takes a new major version (see decision 0001).
ID-3 A health card number is stored bare, with its version code apart
The value of a health card number SHALL hold only capital letters and digits: no spaces, dashes or other
punctuation (invariant oo-pat-3). An Ontario health card number SHALL be exactly ten digits (invariant oo-pat-4).
Where the card has a version code, such as Ontario's one or two letters, an app SHALL record it in the CA Baseline
extension http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion (valueString) on that
identifier, and SHALL NOT append it to the number. A card that is replaced with a new version code keeps the same
identifier; only the extension changes.
- Who: app; the platform checks it under ID-1.
- Check:
oo-pat-3andoo-pat-4.
Only Ontario's format is checked in this version, because it is the one where a version code is often typed onto the number. Formats for the other issuers can be added in a minor version once each is confirmed against the issuer.
ID-4 A chart number names the clinic that assigned it
A clinic's own chart number SHALL be an identifier with type MR from v2-0203, a system that is an absolute
URI owned by that clinic or its EMR and used for no other numbering, and the number in value. An app SHOULD set
assigner to the clinic's Organization.
Two clinics on one project keep separate chart numbers. Each uses its own system, so chart number 1001 at one clinic
never matches 1001 at another.
- Who: app.
- Enforced by:
oo-pat-5in the Patient profile. CA Core+ also requires both, but the server's validator does not check the elements inside a slice (OPE-70), so OpenOrchid repeats the rule as an invariant. - Check: every
MRidentifier has an absolutesystemand avalue.
ID-5 An app looks for the patient before it creates one
Before an app creates a Patient, it SHALL look for an existing chart, so that two apps on one project do not open two charts for one person:
- When it has a health card number, the app SHALL create the Patient with a conditional create:
POST Patientwith the headerIf-None-Exist: identifier=<system>|<value>for that number. When a chart with that number exists, the server returns it instead of creating a second one, and the app SHALL use it. - When it has no health card number, the app SHALL call
Patient/$matchwith the name, birth date and any other identifiers it has, and SHALL show the candidates to the person registering the patient before it creates a new chart.
- Who: app. The platform provides both operations.
- Enforced by: conditional create and
Patient/$matchin the server. Gap: nothing stops an app that skips this rule from creating a second Patient with the same health card number. A uniqueness check onJHNidentifiers within a project is needed in the server (Phase 3, OPE-4). - Check: create the same patient twice through the app; the project holds one Patient.
ID-6 A duplicate chart is linked, not deleted
When an app finds two Patients for one person, it SHALL keep both and link them:
- the chart that is kept gets a
linkwithtypereplacespointing at the duplicate; - the duplicate gets a
linkwithtypereplaced-bypointing at the chart that is kept, andactiveset tofalse.
An app SHALL NOT delete a duplicate chart, because other apps' records may point at it. A reader that finds a Patient
with a replaced-by link SHALL follow the link and show the records of both charts together.
- Who: app.
- Enforced by: apps. The server's
$everythingand$summaryfollow neither link, so an app reading through them SHALL read the linked chart as well. - Check: a test that marks a duplicate, then opens the duplicate through another app, follows its
replaced-bylink to the kept chart, and sees both charts' records.
ID-7 A health card number never appears in a URL or a log
An app SHALL NOT put a health card number in a URL, including a query string, a resource id or a page address. It
SHALL search by health card number with POST Patient/_search and the parameters in the form body, or with
Patient/$match, never with GET Patient?identifier=.... An app SHALL NOT write a health card number to its own
logs, error reports or analytics.
The reason: web servers, proxies and browsers record full URLs, and the server logs each request's path and query string when request logging is on.
- Who: app.
- Enforced by: Gap. The server writes the query of every search, which can hold a health card number, into the
audit event for that search (
entity.query). Search events are never saved, but they go to the audit log stream whenlogAuditEventsis on. That includes the searches that a conditional create (If-None-Exist) andPatient/$matchrun, which ID-5 asks apps to use. The server needs to mask identifier values there (Phase 3, OPE-4). - Check: run the app's registration and search flows behind a proxy that records URLs; no URL holds a health card number.