{
  "resourceType": "StructureDefinition",
  "id": "ie-core-ethnicity",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-ethnicity",
  "name": "IECoreEthnicity",
  "title": "IE Core Ethnicity",
  "status": "draft",
  "description": "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": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "expression": "Patient",
      "type": "element"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "IE Core Ethnicity",
        "definition": "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."
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-ethnicity"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "comment": "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": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "https://hl7-ie.github.io/ie-core/fhir/ie/core/ValueSet/ie-core-ethnicity"
        }
      }
    ]
  }
}