<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="patient-ca-core" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2" />
  </extension>
  <url value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core" />
  <version value="1.1.0" />
  <name value="PatientCACore" />
  <title value="Patient (CA-Core)" />
  <status value="active" />
  <experimental value="false" />
  <date value="2025-08-27" />
  <publisher value="Canada Health Infoway" />
  <contact>
    <name value="National Standards Release Centre" />
    <telecom>
      <system value="url" />
      <value value="http://www.infoway-inforoute.ca" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="standards@infoway-inforoute.ca" />
    </telecom>
  </contact>
  <description value="This profile applies constraints to the Patient resource for CA Core+ to support identity, demographics, and administrative data in the pan-Canadian context." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="CA" />
    </coding>
  </jurisdiction>
  <copyright value="Copyright © 2025+ Canada Health Infoway. All rights reserved. [Terms of Use and License Agreements](https://ic.infoway-inforoute.ca/en/about/tou). [Privacy Policy](https://www.infoway-inforoute.ca/en/legal/privacy-policy)." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="CACDI" />
    <name value="Canadian Core Data for Interoperability (CACDI)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient.extension">
      <path value="Patient.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.extension:indigenousIdentity">
      <path value="Patient.extension" />
      <sliceName value="indigenousIdentity" />
      <short value="Extension for representing a code classifying a person's indigenous identity." />
      <definition value="A code classifying a person's self-identification as either First Nations, Inuk/Inuit and/or Métis." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.infoway-inforoute.ca/ca-ext/StructureDefinition/patient-indigenousIdentity" />
      </type>
      <mapping>
        <identity value="CACDI" />
        <map value="Indigenous Identity" />
      </mapping>
    </element>
    <element id="Patient.extension:racializedGroup">
      <path value="Patient.extension" />
      <sliceName value="racializedGroup" />
      <short value="Extension for representing a code classifying a person's racialized group." />
      <definition value="A code that identifies a social construct most often characterized by phenotype or appearance (e.g. skin colour) in which the client identifies." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.infoway-inforoute.ca/ca-ext/StructureDefinition/patient-racializedGroup" />
      </type>
    </element>
    <element id="Patient.extension:recordedSexOrGender">
      <path value="Patient.extension" />
      <sliceName value="recordedSexOrGender" />
      <short value="Recorded sex or gender (RSG) information includes the various sex and gender concepts." />
      <definition value="Recorded sex or gender (RSG) information includes the various sex and gender concepts that are often used in existing systems but are known NOT to represent a gender identity, sex parameter for clinical use, or attributes related to sexuality, such as sexual orientation, sexual activity, or sexual attraction." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender" />
      </type>
      <mapping>
        <identity value="CACDI" />
        <map value="Gender Used" />
      </mapping>
    </element>
    <element id="Patient.extension:recordedSexOrGender.extension:value">
      <path value="Patient.extension.extension" />
      <sliceName value="value" />
    </element>
    <element id="Patient.extension:recordedSexOrGender.extension:value.value[x]">
      <path value="Patient.extension.extension.value[x]" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/recordedgender" />
      </binding>
    </element>
    <element id="Patient.extension:recordedSexOrGender.extension:type">
      <path value="Patient.extension.extension" />
      <sliceName value="type" />
    </element>
    <element id="Patient.extension:recordedSexOrGender.extension:type.value[x]">
      <path value="Patient.extension.extension.value[x]" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="99502-7" />
          <display value="Recorded sex or gender" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/recordedgendertype" />
      </binding>
    </element>
    <element id="Patient.extension:genderIdentity">
      <path value="Patient.extension" />
      <sliceName value="genderIdentity" />
      <short value="Extension for representing how the person prefers to self-describe." />
      <definition value="A code that specifies an individual's personal experience of being a woman, man, nonbinary, or how the person prefers to self-describe. People may identify with more than one gender identity or use different gender identities in different settings." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/individual-genderIdentity" />
      </type>
      <mapping>
        <identity value="CACDI" />
        <map value="Gender Identity" />
      </mapping>
    </element>
    <element id="Patient.extension:genderIdentity.extension:value">
      <path value="Patient.extension.extension" />
      <sliceName value="value" />
    </element>
    <element id="Patient.extension:genderIdentity.extension:value.value[x]">
      <path value="Patient.extension.extension.value[x]" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/genderidentityvaluecode" />
      </binding>
    </element>
    <element id="Patient.extension:pronouns">
      <path value="Patient.extension" />
      <sliceName value="pronouns" />
      <short value="Third-person pronouns that may reference a person's gender identity (e.g. he, she, they)" />
      <definition value="A linguistic tool used to refer to people instead of using their name, a noun, or a noun phrase. Gender pronouns are third-person pronouns that may reference a person's gender identity (e.g. he, she, they) and that may be a part of their gender expression." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.infoway-inforoute.ca/ca-ext/StructureDefinition/individualPronouns" />
      </type>
      <mapping>
        <identity value="CACDI" />
        <map value="Personal Pronouns" />
      </mapping>
    </element>
    <element id="Patient.extension:birthsex">
      <path value="Patient.extension" />
      <sliceName value="birthsex" />
      <short value="A code that specifies the sex of a person at birth which is a clinical finding" />
      <definition value="A code that specifies the sex of a person at birth which is a clinical finding, usually determined by a clinician based on phenotypic (e.g. genitals or gonads), physiologic (e.g. hormone levels) and/or genetic characteristics." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.infoway-inforoute.ca/ca-ext/StructureDefinition/patient-birthSex" />
      </type>
      <mapping>
        <identity value="CACDI" />
        <map value="Sex at Birth" />
      </mapping>
    </element>
    <element id="Patient.extension:CommunicationBarrier">
      <path value="Patient.extension" />
      <sliceName value="CommunicationBarrier" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.infoway-inforoute.ca/ca-ext/StructureDefinition/patient-communicationBarrier" />
      </type>
    </element>
    <element id="Patient.identifier">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="type" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <requirements value="Patients are generally assigned specific alphanumeric identifiers." />
    </element>
    <element id="Patient.identifier.type">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.type" />
      <example>
        <label value="Jurisdictional Health Number" />
        <valueCodeableConcept>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="JHN" />
          </coding>
        </valueCodeableConcept>
      </example>
      <example>
        <label value="Medical Record Number" />
        <valueCodeableConcept>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="MR" />
          </coding>
        </valueCodeableConcept>
      </example>
      <example>
        <label value="Passport Number" />
        <valueCodeableConcept>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="PPN" />
          </coding>
        </valueCodeableConcept>
      </example>
      <example>
        <label value="National Unique Identifier (Placeholder Concept)" />
        <valueCodeableConcept>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="NH" />
          </coding>
        </valueCodeableConcept>
      </example>
      <mapping>
        <identity value="CACDI" />
        <map value="Person Identifier Type" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Party Non-Health Identifier Type" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Patient Health Identifier Type" />
      </mapping>
    </element>
    <element id="Patient.identifier.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.system" />
      <mapping>
        <identity value="CACDI" />
        <map value="Party Non-Health Identifier System" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Patient Health Identifier System" />
      </mapping>
    </element>
    <element id="Patient.identifier.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.value" />
      <mapping>
        <identity value="CACDI" />
        <map value="Person Identifier Value" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Party Non-Health Identifier" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Patient Health Identifier" />
      </mapping>
    </element>
    <element id="Patient.identifier.period.start">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.period.start" />
      <comment value="This attribute is considered 'Recommended - No Absent' in the current version of CACDI. Implementers are encouraged to support the element. Implementers that support this element should sent it if available and receivers should not produce failures or rejections if this element is provided (a base tenet of FHIR)." />
      <mapping>
        <identity value="CACDI" />
        <map value="Party Non-Health Identifier Effective Date" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Patient Health Identifier Effective Date" />
      </mapping>
    </element>
    <element id="Patient.identifier.period.end">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.period.end" />
      <comment value="This attribute is considered 'Recommended - Allow Absent' in the current version of CACDI. Implementers are encouraged to support the element. Implementers that support this element should sent it if available and receivers should not produce failures or rejections if this element is provided (a base tenet of FHIR)." />
      <mapping>
        <identity value="CACDI" />
        <map value="Party Non-Health Identifier Expiry Date" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Patient Health Identifier Expiry Date" />
      </mapping>
    </element>
    <element id="Patient.identifier.assigner">
      <path value="Patient.identifier.assigner" />
      <mapping>
        <identity value="CACDI" />
        <map value="Identifier Issuing Organization Code" />
      </mapping>
    </element>
    <element id="Patient.identifier:JHN">
      <path value="Patient.identifier" />
      <sliceName value="JHN" />
      <short value="Jurisdictional Health Number" />
      <definition value="Patient and person health numbers used by all jurisdictions across Canada" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Patient.identifier:JHN.extension:versionCode">
      <path value="Patient.identifier.extension" />
      <sliceName value="versionCode" />
      <short value="Health Number Version Code" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion" />
      </type>
    </element>
    <element id="Patient.identifier:JHN.type">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.type" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="JHN" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier:JHN.type.coding.display">
      <path value="Patient.identifier.type.coding.display" />
      <comment value="This V2 Code has a display value of &quot;Jurisdictional Health Number&quot;. Display values are not fixed to prevent errors when using this profile to validate a resource instance in a multilingual context or where the display may be different from its source." />
    </element>
    <element id="Patient.identifier:JHN.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.system" />
      <short value="A Health Number Naming System from the Canadian URI Registry" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="example" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/sharedpatientjurisdictionalhealthidentifiertype" />
      </binding>
    </element>
    <element id="Patient.identifier:JHN.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier:MRN">
      <path value="Patient.identifier" />
      <sliceName value="MRN" />
      <short value="Medical Record Number" />
      <definition value="A local patient identifier from the submitting PoS System" />
      <comment value="Some jurisdictions may consider the MRN identifier type to be an alternative to the JHN identifier type under certain scenarios. These business rules are outside the scope of this profile, however the slice is socialized to prepare implementers for potential use of this pattern within certain jurisdictions" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Patient.identifier:MRN.type">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.type" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="MR" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier:MRN.type.coding.display">
      <path value="Patient.identifier.type.coding.display" />
      <comment value="This V2 Code has a display value of &quot;Medical Record Number&quot;. Display values are not fixed to prevent errors when using this profile to validate a resource instance in a multilingual context or where the display may be different from its source." />
    </element>
    <element id="Patient.identifier:MRN.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.system" />
      <short value="An identifier for the system supplying the MRN" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier:MRN.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.active">
      <path value="Patient.active" />
      <comment value="it is strongly recommended to populate the active element, as it is a modifier element which changes the context of the resource. It is very valuable to include, especially for its search capabilities, e.g. searching for only active patients" />
    </element>
    <element id="Patient.name">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.name" />
      <requirements value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name.&#xA;The Alphabetic representation of the name SHALL be always provided" />
      <constraint>
        <key value="ca-core-pat-1" />
        <severity value="error" />
        <human value="Either Patient.name.given and/or Patient.name.family SHALL be present." />
        <expression value="(family.exists() or given.exists())" />
        <xpath value="(/f:name/f:family or /f:name/f:given)" />
        <source value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core" />
      </constraint>
    </element>
    <element id="Patient.name.use">
      <path value="Patient.name.use" />
      <mapping>
        <identity value="CACDI" />
        <map value="Name Used" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Name Type" />
      </mapping>
    </element>
    <element id="Patient.name.text">
      <path value="Patient.name.text" />
      <definition value="Text representation of the full name. Due to the cultural variance around the world a consuming system may not know how to present the name correctly; moreover not all the parts of the name go in given or family. Creators are therefore strongly encouraged to provide through this element a presented version of the name. Future versions of this guide may require this element" />
      <comment value="Some systems will not have a field for representing the full name as a string, these systems are still expected to be able to demonstrate they can construct name.text when developing the patient summary instance" />
    </element>
    <element id="Patient.name.family">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.name.family" />
      <mapping>
        <identity value="CACDI" />
        <map value="Surname" />
      </mapping>
    </element>
    <element id="Patient.name.given">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.name.given" />
      <orderMeaning value="Patient.name.given[0] is expected to be the first name in a sequence. Patient.name.given[i], where i&gt;0, is expected to express a Patient's middle name(s)" />
      <mapping>
        <identity value="CACDI" />
        <map value="Given Name" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Middle Name" />
      </mapping>
    </element>
    <element id="Patient.name.period.start">
      <path value="Patient.name.period.start" />
      <comment value="This attribute is considered 'Recommended - No Absent' in the current version of CACDI. Implementers are encouraged to support the element. Implementers that support this element should sent it if available and receivers should not produce failures or rejections if this element is provided (a base tenet of FHIR)." />
    </element>
    <element id="Patient.name.period.end">
      <path value="Patient.name.period.end" />
      <comment value="This attribute is considered 'Recommended - Allow Absent' in the current version of CACDI. Implementers are encouraged to support the element. Implementers that support this element should sent it if available and receivers should not produce failures or rejections if this element is provided (a base tenet of FHIR)." />
    </element>
    <element id="Patient.telecom">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.telecom" />
    </element>
    <element id="Patient.telecom.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.telecom.system" />
    </element>
    <element id="Patient.telecom.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.telecom.value" />
    </element>
    <element id="Patient.telecom.use">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.telecom.use" />
    </element>
    <element id="Patient.gender">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.gender" />
      <short value="The documented sex or gender of an individual used for clinical, official, or legal purposes where only one data field for sex and gender is available, and where it is the value found in the local system and/or historical documentation." />
      <definition value="The documented sex or gender of an individual used for clinical, official, or legal purposes where only one data field for sex and gender is available, and where it is the value found in the local system and/or historical documentation." />
    </element>
    <element id="Patient.birthDate">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.birthDate" />
      <mapping>
        <identity value="CACDI" />
        <map value="Date of Birth" />
      </mapping>
    </element>
    <element id="Patient.birthDate.extension">
      <path value="Patient.birthDate.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.birthDate.extension:birthTime">
      <path value="Patient.birthDate.extension" />
      <sliceName value="birthTime" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime" />
      </type>
    </element>
    <element id="Patient.deceased[x]">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.deceased[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.deceased[x]:deceasedDateTime">
      <path value="Patient.deceased[x]" />
      <sliceName value="deceasedDateTime" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="CACDI" />
        <map value="Date of Death" />
      </mapping>
    </element>
    <element id="Patient.address">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.address" />
      <type>
        <code value="Address" />
        <profile value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/address-ca-core" />
      </type>
    </element>
    <element id="Patient.address.line">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.address.line" />
    </element>
    <element id="Patient.address.postalCode">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.address.postalCode" />
    </element>
    <element id="Patient.address.country">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.address.country" />
    </element>
    <element id="Patient.contact.relationship">
      <path value="Patient.contact.relationship" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/personalrelationshipcodes" />
      </binding>
    </element>
    <element id="Patient.contact.name">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="MAY:populate-if-known" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer" />
        </extension>
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer" />
        </extension>
      </extension>
      <path value="Patient.contact.name" />
    </element>
    <element id="Patient.communication">
      <path value="Patient.communication" />
      <comment value="where applicable, SHOULD be used to identify the preferred communication language for the patient" />
    </element>
    <element id="Patient.communication.language">
      <path value="Patient.communication.language" />
      <binding>
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/additional-binding">
          <extension url="purpose">
            <valueCode value="candidate" />
          </extension>
          <extension url="valueSet">
            <valueCanonical value="https://fhir.infoway-inforoute.ca/ValueSet/iso6393" />
          </extension>
          <extension url="documentation">
            <valueMarkdown value="ISO 639-3 Language Codes" />
          </extension>
        </extension>
        <strength value="preferred" />
        <valueSet value="http://hl7.org/fhir/ValueSet/languages" />
      </binding>
      <mapping>
        <identity value="CACDI" />
        <map value="Service Language" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Party Role Service Language" />
      </mapping>
    </element>
    <element id="Patient.generalPractitioner">
      <path value="Patient.generalPractitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/practitioner-ca-core" />
        <targetProfile value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/practitionerRole-ca-core" />
        <targetProfile value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/organization-ca-core" />
      </type>
    </element>
    <element id="Patient.managingOrganization">
      <path value="Patient.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/organization-ca-core" />
      </type>
    </element>
  </differential>
</StructureDefinition>