{
  "resourceType": "StructureDefinition",
  "id": "gender-identity-ca-core",
  "url": "http://fhir.infoway-inforoute.ca/ca-ext/StructureDefinition/genderIdentity",
  "name": "GenderIdentity",
  "title": "Gender Identity",
  "status": "retired",
  "experimental": false,
  "date": "2025-01-02",
  "description": "An extension that represents the gender identity with which the client identifies, based on the Gender Identity Value Set.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "CACDI",
      "name": "Canadian Core Data for Interoperability (CACDI)"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "expression": "Patient",
      "type": "element"
    },
    {
      "expression": "Person",
      "type": "element"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "definition": "A code that represents the gender identity with which the client identifies, based on the Gender Identity Value Set.",
        "mapping": [
          {
            "identity": "CACDI",
            "map": "Person Gender Identity"
          }
        ]
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://fhir.infoway-inforoute.ca/ca-ext/StructureDefinition/genderIdentity"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/genderidentityvaluecode"
        },
        "mapping": [
          {
            "identity": "CACDI",
            "map": "Person Gender Identity.Person Gender Identity Code"
          }
        ]
      }
    ]
  }
}