{
  "resourceType": "StructureDefinition",
  "id": "Patient",
  "url": "http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-patient",
  "version": "1.0.0",
  "name": "PatientEHR",
  "title": "Patient EHR",
  "status": "active",
  "description": "Demographics and other administrative information about an individual receiving care or other health-related services.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "type"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:JHN",
        "path": "Patient.identifier",
        "sliceName": "JHN",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:JHN.extension:versionCode",
        "path": "Patient.identifier.extension",
        "sliceName": "versionCode",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier:JHN.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "code": "JHN"
            }
          ]
        },
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type"
        }
      },
      {
        "id": "Patient.identifier:JHN.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:JHN.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:JHN.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "JHN",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:JHN.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "example": [
          {
            "valueUri": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:JHN.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:MRN",
        "path": "Patient.identifier",
        "sliceName": "MRN",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:MRN.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "code": "MR"
            }
          ]
        },
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type"
        }
      },
      {
        "id": "Patient.identifier:MRN.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:MRN.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:MRN.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "MR",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:MRN.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:MRN.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "mustSupport": true
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "mustSupport": true
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "mustSupport": true
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "mustSupport": true
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom.extension:telephone-note",
        "path": "Patient.telecom.extension",
        "sliceName": "telephone-note",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-ext-note"
            ]
          }
        ]
      },
      {
        "id": "Patient.telecom.system",
        "path": "Patient.telecom.system",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "mustSupport": true
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "mustSupport": true
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "mustSupport": true
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "mustSupport": true
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "mustSupport": true
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/province-state-code"
        }
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "mustSupport": true
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/country-code"
        }
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.relationship",
        "path": "Patient.contact.relationship",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/patient-contact-relationship"
        }
      },
      {
        "id": "Patient.contact.relationship.coding",
        "path": "Patient.contact.relationship.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.contact.relationship.coding.display.extension:translation",
        "path": "Patient.contact.relationship.coding.display.extension",
        "sliceName": "translation"
      },
      {
        "id": "Patient.contact.relationship.coding.display.extension:translation.extension",
        "path": "Patient.contact.relationship.coding.display.extension.extension",
        "min": 2
      },
      {
        "id": "Patient.contact.name",
        "path": "Patient.contact.name",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name.use",
        "path": "Patient.contact.name.use",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name.family",
        "path": "Patient.contact.name.family",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name.given",
        "path": "Patient.contact.name.given",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name.prefix",
        "path": "Patient.contact.name.prefix",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name.suffix",
        "path": "Patient.contact.name.suffix",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.telecom",
        "path": "Patient.contact.telecom",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address",
        "path": "Patient.contact.address",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address.use",
        "path": "Patient.contact.address.use",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address.line",
        "path": "Patient.contact.address.line",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address.city",
        "path": "Patient.contact.address.city",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address.state",
        "path": "Patient.contact.address.state",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/province-state-code"
        }
      },
      {
        "id": "Patient.contact.address.postalCode",
        "path": "Patient.contact.address.postalCode",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address.country",
        "path": "Patient.contact.address.country",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/country-code"
        }
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "mustSupport": true
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/human-language"
        }
      },
      {
        "id": "Patient.communication.language.coding",
        "path": "Patient.communication.language.coding",
        "max": "1"
      },
      {
        "id": "Patient.communication.language.coding.system",
        "path": "Patient.communication.language.coding.system",
        "min": 1
      },
      {
        "id": "Patient.communication.language.coding.display.extension:translation",
        "path": "Patient.communication.language.coding.display.extension",
        "sliceName": "translation"
      },
      {
        "id": "Patient.communication.language.coding.display.extension:translation.extension",
        "path": "Patient.communication.language.coding.display.extension.extension",
        "min": 2
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-practitioner",
              "http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-practitionerRole"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.generalPractitioner.reference",
        "path": "Patient.generalPractitioner.reference",
        "mustSupport": true
      }
    ]
  }
}