OpenOrchid Core Patient
A patient's chart identity. Tightens CA Core+ Patient so every app can tell who the patient is: a name, a birth date, an administrative gender, and a health card number or a chart number. See the identity rules for how health card numbers are written.| Canonical URL | https://openorchid.ca/fhir/core/StructureDefinition/oo-patient |
|---|---|
| Version | 0.1.0 |
| Record | Patient |
| Derives from | http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core |
| Download | StructureDefinition (JSON) |
What this profile adds
Everything else is as in the profile it derives from.
| Element | Requires |
|---|---|
Patient | oo-pat-1: The patient has a health card number (type JHN) or a chart number (type MR).FHIRPathidentifier.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0203' and (code = 'JHN' or code = 'MR')).exists()).exists() |
Patient | oo-pat-2: A health card number uses the system of the province, territory or federal program that issued it, from the Canadian URI Registry.FHIRPathidentifier.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0203' and code = 'JHN').exists()).all(system in ('https://fhir.infoway-inforoute.ca/NamingSystem/ca-ab-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-mb-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nb-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nl-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-ns-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nt-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nu-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-pe-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-qc-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-sk-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-yt-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-armed-forces-health-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-royal-mounted-police-health-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-correctional-service-health-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-veterans-affairs-health-id')) |
Patient | oo-pat-3: A health card number is stored as capital letters and digits only: no spaces or dashes.FHIRPathidentifier.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0203' and code = 'JHN').exists()).all(value.matches('^[0-9A-Z]+$')) |
Patient | oo-pat-4: An Ontario health card number is ten digits. Its version code goes in the version-code extension, not on the number.FHIRPathidentifier.where(system = 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn').all(value.matches('^[0-9]{10}$')) |
Patient | oo-pat-5: A chart number (type MR) has a system and a value.FHIRPathidentifier.where(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0203' and code = 'MR').exists()).all(system.exists() and value.exists()) |
Patient | oo-pat-6: An identifier with a health card system is typed JHN, so the health card checks apply to it.FHIRPathidentifier.where(system in ('https://fhir.infoway-inforoute.ca/NamingSystem/ca-ab-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-mb-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nb-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nl-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-ns-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nt-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-nu-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-pe-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-qc-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-sk-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-yt-patient-healthcare-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-armed-forces-health-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-royal-mounted-police-health-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-correctional-service-health-id' | 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-veterans-affairs-health-id')).all(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0203' and code = 'JHN').exists()) |
Patient.identifier | At least 1 |
Patient.name | At least 1 |
Patient.gender | At least 1 |
Patient.birthDate | At least 1 |
Examples
Records that pass this profile:
Patient-oo-patient-example
{
"resourceType": "Patient",
"id": "oo-patient-example",
"meta": {
"profile": [
"https://openorchid.ca/fhir/core/StructureDefinition/oo-patient"
]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "JHN"
}
]
},
"extension": [
{
"url": "http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion",
"valueString": "AB"
}
],
"system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
"value": "9876543217"
},
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"system": "https://example-clinic.ca/fhir/chart-number",
"value": "C-00412"
}
],
"name": [
{
"family": "Tremblay",
"given": [
"Élise"
]
}
],
"gender": "female",
"birthDate": "1984-03-12"
}
Records that fail it, each breaking one rule above:
Breaks birthDate
{
"resourceType": "Patient",
"id": "invalid-patient-no-birth-date",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-patient"]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"system": "https://example-clinic.ca/fhir/chart-number",
"value": "C-00413"
}
],
"name": [
{
"family": "Nguyen",
"given": ["Minh"]
}
],
"gender": "male"
}
Breaks oo-pat-2
{
"resourceType": "Patient",
"id": "invalid-patient-generic-jhn-system",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-patient"]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "JHN"
}
]
},
"system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-jhn",
"value": "9876543217"
}
],
"name": [
{
"family": "Tremblay",
"given": ["\u00c9lise"]
}
],
"gender": "female",
"birthDate": "1984-03-12"
}
Breaks oo-pat-3
{
"resourceType": "Patient",
"id": "invalid-patient-health-number-with-spaces",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-patient"]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "JHN"
}
]
},
"system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-qc-patient-healthcare-id",
"value": "TREE 8403 1212"
}
],
"name": [
{
"family": "Tremblay",
"given": ["Élise"]
}
],
"gender": "female",
"birthDate": "1984-03-12"
}
Breaks oo-pat-4
{
"resourceType": "Patient",
"id": "invalid-patient-version-code-on-number",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-patient"]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "JHN"
}
]
},
"system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
"value": "9876543217AB"
}
],
"name": [
{
"family": "Tremblay",
"given": ["Élise"]
}
],
"gender": "female",
"birthDate": "1984-03-12"
}
Breaks oo-pat-5
{
"resourceType": "Patient",
"id": "invalid-patient-chart-number-no-system",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-patient"]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"value": "C-00412"
}
],
"name": [
{
"family": "Tremblay",
"given": ["\u00c9lise"]
}
],
"gender": "female",
"birthDate": "1984-03-12"
}
Breaks oo-pat-6
{
"resourceType": "Patient",
"id": "invalid-patient-untyped-health-card",
"meta": {
"profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-patient"]
},
"identifier": [
{
"system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-patient-healthcare-id",
"value": "9876 543 217"
},
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"system": "https://example-clinic.ca/fhir/chart-number",
"value": "C-00412"
}
],
"name": [
{
"family": "Tremblay",
"given": ["\u00c9lise"]
}
],
"gender": "female",
"birthDate": "1984-03-12"
}