On this page

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.defaultProfile applies 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-2 and oo-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/.

IssuerSystem (after the prefix)OIDRegistry status
Albertaca-ab-patient-healthcare-id2.16.840.1.113883.4.20active
British Columbiaca-bc-patient-healthcare-id2.16.840.1.113883.4.50draft
Manitobaca-mb-patient-healthcare-id2.16.840.1.113883.4.12draft
New Brunswickca-nb-patient-healthcare-id2.16.840.1.113883.4.51draft
Newfoundland and Labradorca-nl-patient-healthcare-id2.16.840.1.113883.4.52draft
Nova Scotiaca-ns-patient-healthcare-id2.16.840.1.113883.4.53draft
Northwest Territoriesca-nt-patient-healthcare-id2.16.840.1.113883.4.54draft
Nunavutca-nu-patient-healthcare-id2.16.840.1.113883.4.55draft
Ontarioca-on-patient-hcn2.16.840.1.113883.4.59draft
Prince Edward Islandca-pe-patient-healthcare-id2.16.840.1.113883.4.13draft
Quebecca-qc-patient-healthcare-id2.16.840.1.113883.4.56draft
Saskatchewanca-sk-patient-healthcare-id2.16.840.1.113883.4.57draft
Yukonca-yt-patient-healthcare-id2.16.840.1.113883.4.58draft
Canadian Armed Forcesca-armed-forces-health-id2.16.840.1.113883.4.389draft
Royal Canadian Mounted Policeca-royal-mounted-police-health-id2.16.840.1.113883.4.379draft
Correctional Service Canadaca-correctional-service-health-id2.16.840.1.113883.4.377draft
Veterans Affairs Canadaca-veterans-affairs-health-id2.16.840.1.113883.4.376draft

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-3 and oo-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-5 in 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 MR identifier has an absolute system and a value.

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:

  1. When it has a health card number, the app SHALL create the Patient with a conditional create: POST Patient with the header If-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.
  2. When it has no health card number, the app SHALL call Patient/$match with 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/$match in 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 on JHN identifiers 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 link with type replaces pointing at the duplicate;
  • the duplicate gets a link with type replaced-by pointing at the chart that is kept, and active set to false.

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 $everything and $summary follow 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-by link 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 when logAuditEvents is on. That includes the searches that a conditional create (If-None-Exist) and Patient/$match run, 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.