<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ie-core-ethnicity" />
  <url value="https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-ethnicity" />
  <name value="IECoreEthnicity" />
  <title value="IE Core Ethnicity" />
  <status value="draft" />
  <description value="A patient's ethnicity (repeat the extension for more than one ethnic background). GDPR Art. 9 special-category data. HIQA PS 1.4.10 (Required 0..*, coded). It is NOT part of the HIQA ePrescription/eDispensation dataset and is prohibited in IECorePatientEPrescription (ADR-002). HIQA: 'not used for patient identification'; collected with appropriate safeguards and consent." />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Patient" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="IE Core Ethnicity" />
      <definition value="A patient's ethnicity (repeat the extension for more than one ethnic background). GDPR Art. 9 special-category data. HIQA PS 1.4.10 (Required 0..*, coded). It is NOT part of the HIQA ePrescription/eDispensation dataset and is prohibited in IECorePatientEPrescription (ADR-002). HIQA: 'not used for patient identification'; collected with appropriate safeguards and consent." />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-ethnicity" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <comment value="HIQA PS 1.4.10. HIQA names the CSO as a source for coded values; verification of the CSO classification is Requires Clarification (OI-005)." />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://hl7-ie.github.io/ie-core/fhir/ie/core/ValueSet/ie-core-ethnicity" />
      </binding>
    </element>
  </differential>
</StructureDefinition>