<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-patient" />
  <meta>
    <lastUpdated value="2024-10-17T18:16:09.3649248+00:00" />
  </meta>
  <url value="https://simplifier.net/omd-cdss/patientprofile" />
  <version value="0.1.1" />
  <name value="PatientProfile" />
  <title value="Patient Profile" />
  <status value="draft" />
  <date value="2021-10-24T22:36:49.0268882+00:00" />
  <publisher value="OMD" />
  <description value="Proposed constraints and extensions on the Patient Resource" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="CDSS5.1" />
    <uri value="www.ontariomd.com" />
    <name value="CDS-S 5.1" />
  </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">
      <path value="Patient" />
      <short value="Patient Profile 3" />
      <definition value="The Patient Profile is based upon the core FHIR Patient Resource" />
      <mustSupport value="true" />
      <isModifier value="false" />
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="type" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.identifier.type">
      <path value="Patient.identifier.type" />
      <min value="1" />
      <example>
        <label value="Pattern" />
        <valueCodeableConcept>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="MR" />
          </coding>
        </valueCodeableConcept>
      </example>
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier.system">
      <path value="Patient.identifier.system" />
      <min value="1" />
      <mustSupport value="true" />
      <isModifier value="false" />
    </element>
    <element id="Patient.identifier.value">
      <path value="Patient.identifier.value" />
      <short value="The value that is unique within the system" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The number used by the medical practice to identify the associated hardcopy chart." />
      <min value="1" />
      <mustSupport value="true" />
      <isModifier value="false" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.012" />
        <comment value="Chart Number" />
      </mapping>
    </element>
    <element id="Patient.identifier:PPN">
      <path value="Patient.identifier" />
      <sliceName value="PPN" />
      <short value="Canada Passport Number" />
      <mustSupport value="false" />
    </element>
    <element id="Patient.identifier:PPN.type">
      <path value="Patient.identifier.type" />
      <short value="Passport number identifier type" />
      <min value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="PPN" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Patient.identifier:PPN.system">
      <path value="Patient.identifier.system" />
      <short value="A Canadian passport number Naming System from the Canadian URI Registry" />
      <min value="1" />
      <fixedUri value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-passport-number" />
    </element>
    <element id="Patient.identifier:PPN.value">
      <path value="Patient.identifier.value" />
      <short value="A Canadian passport number" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:JPID">
      <path value="Patient.identifier" />
      <sliceName value="JPID" />
      <short value="Jurisdictional Person Identification" />
      <definition value="Federal patient and person identifiers used by all jurisdictions across Canada" />
      <mustSupport value="false" />
    </element>
    <element id="Patient.identifier:JPID.type">
      <path value="Patient.identifier.type" />
      <short value="Jurisdictional Person Identification" />
      <min value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="JPID" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Patient.identifier:JPID.system">
      <path value="Patient.identifier.system" />
      <short value="Jurisdictional Person identification Naming System from the Canadian URI Registry" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:JPID.value">
      <path value="Patient.identifier.value" />
      <short value="Jurisdictional Person identification number" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;SIN is a nine-digit number assigned by the Government of Canada to individuals that allows them to work in the country and access certain government programs and benefits." />
      <min value="1" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.024" />
        <comment value="Social Insurance Number (SIN)" />
      </mapping>
    </element>
    <element id="Patient.identifier:JHN">
      <path value="Patient.identifier" />
      <sliceName value="JHN" />
      <short value="Jurisdictional Health Number" />
      <definition value="Federal patient and person health numbers used by all jurisdictions across Canada" />
    </element>
    <element id="Patient.identifier:JHN.extension:JHNVersionCode">
      <path value="Patient.identifier.extension" />
      <sliceName value="JHNVersionCode" />
      <short value="Health Card Version Code" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The two-digit code associated with the Ontario health card number that uniquely identifies the status of that health card." />
      <type>
        <code value="Extension" />
        <profile value="https://simplifier.net/omd-cdss/jhnversioncode" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.009" />
        <comment value="Health Card Version Code" />
      </mapping>
    </element>
    <element id="Patient.identifier:JHN.type">
      <path value="Patient.identifier.type" />
      <min value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="JHN" />
        </coding>
      </fixedCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier:JHN.system">
      <path value="Patient.identifier.system" />
      <short value="A Health Number Naming System from the Canadian URI Registry" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Establishes the namespace for the value - that is, a URL that describes a set values that are unique.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE RESOURCE: &#xD;&#xA;The legal entity (province) responsible for assigning the health card number." />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.010" />
        <comment value="Health Card Province" />
      </mapping>
    </element>
    <element id="Patient.identifier:JHN.value">
      <path value="Patient.identifier.value" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The lifetime identification number assigned to all eligeble residents within a jursidiction (province) to receive provincially funded insured health services." />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.008" />
        <comment value="Health Card Number (HCN)" />
      </mapping>
    </element>
    <element id="Patient.identifier:JHN.period.end">
      <path value="Patient.identifier.period.end" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The expiration date of the health card number." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.011" />
        <comment value="Health Card Expiry Date" />
      </mapping>
    </element>
    <element id="Patient.active">
      <path value="Patient.active" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;Whether this patient record is in active use. &#xA;Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.&#xA;&#xA;It is often used to filter patient lists to exclude inactive patients&#xA;&#xA;Deceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Patient Status):&#xD;&#xA;Refers to whether the &quot;Primary Physician&quot; considers the patient to be active, inactive, deceased, or other values as supported by the practice. &#xD;&#xA;&#xD;&#xA;Combining the Patient Status and Enrolement Status in a single field is not as acceptable solution. &#xD;&#xA;&#xD;&#xA;To indicate the status s deceased: &#xD;&#xA;Patient.active= FALSE &#xD;&#xA;Patient.deceased[x] = TRUE &#xD;&#xA;&#xD;&#xA;Patient.deceased[x] = FALSE otherwise to indicate patient status. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Enrolment Status): &#xD;&#xA;Refers to whether the patient: &#xD;&#xA;- is enroled&#xD;&#xA;- enrolment has been terminated or, &#xD;&#xA;- has never ben enroled &#xD;&#xA;&#xD;&#xA;May have additionl statuses that are related to the &quot;enrolment&quot; such as &quot;enrolment in progress&quot; &#xD;&#xA;&#xD;&#xA;Combining &quot;Enroled Status&quot; and &quot;Patient Status&quot; in a single field is not an acceptable solution." />
      <comment value="If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-008: Patient Status&#xD;&#xA;&#xD;&#xA;CT-009: Enrolment Status" />
      <meaningWhenMissing value="This resource is generally assumed to be active if no value is provided for the active element." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.016" />
        <comment value="Patient Status" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.019" />
        <comment value="Enrolment Status" />
      </mapping>
    </element>
    <element id="Patient.active.extension">
      <path value="Patient.active.extension" />
      <comment value="The date associated with 'Patient Status' refers to the date the patient becomes 'active' or the date the status has been changed." />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.017" />
      </mapping>
    </element>
    <element id="Patient.active.extension:relativeDateTime">
      <path value="Patient.active.extension" />
      <sliceName value="relativeDateTime" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/cqf-relativeDateTime" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="CDSS5.2" />
        <map value="DE01.017" />
        <comment value="Patient Status Date" />
      </mapping>
    </element>
    <element id="Patient.active.extension:relativeDateTime.extension">
      <path value="Patient.active.extension.extension" />
      <min value="4" />
    </element>
    <element id="Patient.name">
      <path value="Patient.name" />
      <constraint>
        <key value="ca-baseline-name" />
        <severity value="error" />
        <human value="Patient.name.given  or Patient.name.family or both SHALL be present" />
        <expression value="family.exists() or given.exists()" />
        <xpath value="f:given or f:family" />
        <source value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Patient.name.family">
      <path value="Patient.name.family" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The patient's surname or family name" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.002" />
        <comment value="Last Name" />
      </mapping>
    </element>
    <element id="Patient.name.given">
      <path value="Patient.name.given" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Given name.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The patient's other given name(s) (e.g., middle name) that is/are not the first name(s).&#xD;&#xA;&#xD;&#xA;The patient's other given name(s) should be listed after the first name, when possible." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.003" />
        <comment value="First Name" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.004" />
        <comment value="Middle Name" />
      </mapping>
    </element>
    <element id="Patient.name.prefix">
      <path value="Patient.name.prefix" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. &#xD;&#xA;and that appears at the start of the name.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;An honorific title used when addressing a person by name." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-001: Name Prefix" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="Name Prefix" />
        <valueSet value="http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifierR2" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.001" />
        <comment value="Name Prefix" />
      </mapping>
    </element>
    <element id="Patient.name.suffix">
      <path value="Patient.name.suffix" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;An additional term placed after a person's name." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-005: Name Suffix" />
      <binding>
        <strength value="preferred" />
        <description value="Name Suffix" />
        <valueSet value="https://www.hl7.org/fhir/valueset-name-part-qualifier.html" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.005" />
        <comment value="Name Suffix" />
      </mapping>
    </element>
    <element id="Patient.telecom">
      <path value="Patient.telecom" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom.system">
      <path value="Patient.telecom.system" />
      <min value="1" />
    </element>
    <element id="Patient.telecom.value">
      <path value="Patient.telecom.value" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Residence Phone): &#xD;&#xA;The phone number where the patient lives. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Cell Phone): &#xD;&#xA;The cell phone number for contacting the patient. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Work Phone): &#xD;&#xA;The organization work phone number where the patient can be reached during working hours. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Work Phone Extension): &#xD;&#xA;The number used to access the patient's work phone number within an organization. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Patient E-Mail Address): &#xD;&#xA;The e-mail address preferred by the patient." />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.007" />
        <comment value="Residence Phone" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.008" />
        <comment value="Cell Phone" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.009" />
        <comment value="Work Phone" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.010" />
        <comment value="Work Phone Extension" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.011" />
        <comment value="Patient E-Mail Address" />
      </mapping>
    </element>
    <element id="Patient.gender">
      <path value="Patient.gender" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The reported sexual identity of a person for administrative purposes." />
      <comment value="The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.)  However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice.  Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a &quot;hard&quot; error.  See the Patient Gender and Sex section for additional information about communicating patient gender and sex.&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-006: Gender" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.006" />
        <comment value="Gender" />
      </mapping>
    </element>
    <element id="Patient.birthDate">
      <path value="Patient.birthDate" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;The date of birth for the individual.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The date on which the patient was born." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.007" />
        <comment value="Date of Birth" />
      </mapping>
    </element>
    <element id="Patient.deceased[x]">
      <path value="Patient.deceased[x]" />
      <definition value="Indicates if the individual is deceased or not.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;&quot;Refers to whether the 'Primary Physician' considers the patient to be active, inactive, deceased or other values as supported by the practice.&#xA;&#xA;Combining Patient Status and Enrolment Status a single field is not an acceptable solution.&#xA;&#xA;To indicate the status of deceased:&#xA;Patient.deceasedBoolean = TRUE&quot;" />
    </element>
    <element id="Patient.address.use">
      <path value="Patient.address.use" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The purpose of this address.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;Indicates type of address for the patient (e.g., is it the permanent residence, a mailing address)." />
      <comment value="Applications can assume that an address is current unless it explicitly says that it is temporary or old.&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-011 Address Type" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.001" />
        <comment value="Address Type" />
      </mapping>
    </element>
    <element id="Patient.address.line">
      <path value="Patient.address.line" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The street address." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.002" />
        <comment value="Street Address" />
      </mapping>
    </element>
    <element id="Patient.address.city">
      <path value="Patient.address.city" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The name of the city, town, suburb, village or other community or delivery center.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;A city, town or village associated with the Address Type." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.003" />
        <comment value="City" />
      </mapping>
    </element>
    <element id="Patient.address.state">
      <path value="Patient.address.state" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The province/state associated with the Address Type." />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="Canadian Provinces" />
        <valueSet value="http://hl7.org/fhir/ValueSet/iso3166-1-2" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.004" />
        <comment value="Province/State" />
      </mapping>
    </element>
    <element id="Patient.address.postalCode">
      <path value="Patient.address.postalCode" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;A postal code designating a region defined by the postal service.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The postal code or zip code associated with the Address Type." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.006" />
        <comment value="Postal/Zip Code" />
      </mapping>
    </element>
    <element id="Patient.address.country">
      <path value="Patient.address.country" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;Country - a nation as commonly understood or generally accepted.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The country associated with the Address Type." />
      <binding>
        <strength value="required" />
        <description value="Country" />
        <valueSet value="http://hl7.org/fhir/ValueSet/iso3166-1-2" />
      </binding>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE02.005" />
        <comment value="Country" />
      </mapping>
    </element>
    <element id="Patient.contact.relationship">
      <path value="Patient.contact.relationship" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The nature of the relationship between the patient and the contact person. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;The type of a contact person that describes the reason or circumstances under which to contact the person. (e.g., Emergency Contact, Substitute Decision Maker)." />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-014: Contact Purpose" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.003" />
        <comment value="Contact Purpose" />
      </mapping>
    </element>
    <element id="Patient.contact.name.family">
      <path value="Patient.contact.name.family" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION:&#xD;&#xA;The contact's surname or family name." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.002" />
        <comment value="Contact Last Name" />
      </mapping>
    </element>
    <element id="Patient.contact.name.given">
      <path value="Patient.contact.name.given" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;Given name.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION :&#xD;&#xA;The contact's given first name." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.001" />
        <comment value="Contact First Name" />
      </mapping>
    </element>
    <element id="Patient.contact.telecom">
      <path value="Patient.contact.telecom" />
      <mustSupport value="false" />
    </element>
    <element id="Patient.contact.telecom.extension">
      <path value="Patient.contact.telecom.extension" />
      <mapping>
        <identity value="CDSS5.2" />
        <map value="DE03.009" />
        <comment value="Contact Note" />
      </mapping>
    </element>
    <element id="Patient.contact.telecom.value">
      <path value="Patient.contact.telecom.value" />
      <definition value="BASE RESOURCE DEFINITION:&#xD;&#xA;The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Contact Residence Phone):&#xD;&#xA;The phone number where the contact person lives. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Contact Cell Phone):&#xD;&#xA;The cell phone number of the contact person. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Contact Work Phone):&#xD;&#xA;The organization work phone number  where the contact person can be reached during working hours. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Contact Work Phone Extension):&#xD;&#xA;The number used to access the contact person's work phone number within an organization. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Contact E-Mail Address):&#xD;&#xA;The e-mail address preferred by the contact person." />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.004" />
        <comment value="Contact Residence Phone" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.005" />
        <comment value="Contact Cell Phone" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.006" />
        <comment value="Contact Work Phone" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.007" />
        <comment value="Contact Work Phone Extension" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE03.008" />
        <comment value="Contact E-Mail Address" />
      </mapping>
    </element>
    <element id="Patient.communication.language">
      <path value="Patient.communication.language" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION: &#xD;&#xA;Official languages are English and French. &#xD;&#xA;&quot;Patient.communication.preferred&quot; is required to store and not for display. &#xD;&#xA;&#xD;&#xA;Preferred Official Language: Patient.communication.preferred=FALSE &#xD;&#xA;Preferred Spoken Language: Patient.communication.preferred=TRUE &#xD;&#xA;&#xD;&#xA;MUST SUPPORT Preferred Spoken Language." />
      <comment value="The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;CODE SET TABLE: &#xD;&#xA;CT-007: Official Language" />
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.013" />
        <comment value="Preferred Official Language" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.014" />
        <comment value="Preferred Spoken Langugae" />
      </mapping>
    </element>
    <element id="Patient.generalPractitioner">
      <path value="Patient.generalPractitioner" />
      <definition value="BASE RESOURCE DEFINITION: &#xD;&#xA;Patient's nominated care provider.&#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Primary Physician): &#xD;&#xA;Refers to the most responsible provider to whom the patient record is assigned. &#xD;&#xA;&#xD;&#xA;By assigning a patient to a &quot;Primary Physician&quot; the patient is becoming part of his/her &quot;roster lsit&quot; &#xD;&#xA;&#xD;&#xA;A &quot;Primary Physician&quot; might have patients who are on his/her &quot;roster&quot; but not on the &quot;enrolment list&quot;. (Refer to &quot;Enroled To Physician&quot; data element.) &#xD;&#xA;&#xD;&#xA;Combining &quot;Primary Physician&quot; and &quot;Enroled to Physician&quot; in a single field is not an acceptable solution. &#xD;&#xA;&#xD;&#xA;CDS-S PROFILE DEFINITION (Enroled to Physician): &#xD;&#xA;Refers to the physician to whom the patient is enroled as per the MOH enrolment process. &#xD;&#xA;&#xD;&#xA;By enrolling a patient to a physician, the patient is becoming part of his/her &quot;enrolment list&quot; &#xD;&#xA;&#xD;&#xA;Combining &quot;Enroled to Physician&quot; and &quot;Primary Physician&quot; in a single field is not an acceptable solution." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="https://simplifier.net/omd-cdss/practitionerprofile" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="CDSS5.2" />
        <map value="DE01.015" />
        <comment value="Primary Physician" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.015" />
        <comment value="Primary Physician" />
      </mapping>
      <mapping>
        <identity value="CDSS5.1" />
        <map value="DE01.018" />
        <comment value="Enroled to Physician" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>