{
  "resourceType": "StructureDefinition",
  "id": "Person",
  "url": "https://www.oegd.de/fhir/seu/StructureDefinition/Person",
  "name": "Person",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension:Geburtsort",
        "path": "Patient.extension",
        "sliceName": "Geburtsort",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-birthPlace"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:Staatsangehoerigkeit",
        "path": "Patient.extension",
        "sliceName": "Staatsangehoerigkeit",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-nationality"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:SperreReligion",
        "path": "Patient.extension",
        "sliceName": "SperreReligion",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/PersonUebermittlungsssperreReligionEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:SperrePolitik",
        "path": "Patient.extension",
        "sliceName": "SperrePolitik",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/PersonUebermittlungsssperrePolitikEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:SperreJubilaen",
        "path": "Patient.extension",
        "sliceName": "SperreJubilaen",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/PersonUebermittlungsssperreJubilaenEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:SperreAddressbuch",
        "path": "Patient.extension",
        "sliceName": "SperreAddressbuch",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/PersonUebermittlungsssperreAdressbuchEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:SperreBundeswehr",
        "path": "Patient.extension",
        "sliceName": "SperreBundeswehr",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/PersonUebermittlungsssperreBundeswehrEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:Migrationshintergrund",
        "path": "Patient.extension",
        "sliceName": "Migrationshintergrund",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/PersonMigrationshintergrundEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:SteuerId",
        "path": "Patient.identifier",
        "sliceName": "SteuerId",
        "min": 0,
        "max": "1",
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "code": "tax-id",
                "system": "https://www.oegd.de/fhir/seu/"
              }
            ]
          }
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:SteuerId.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:SteuerId.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:SteuerId.value",
        "path": "Patient.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name",
        "path": "Patient.name",
        "sliceName": "Name",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "http://fhir.de/StructureDefinition/humanname-de-basis"
            ]
          }
        ],
        "patternHumanName": {
          "use": "official"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.use",
        "path": "Patient.name.use",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.family",
        "path": "Patient.name.family",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.family.extension:namenszusatz",
        "path": "Patient.name.family.extension",
        "sliceName": "namenszusatz",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.family.extension:nachname",
        "path": "Patient.name.family.extension",
        "sliceName": "nachname",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.family.extension:vorsatzwort",
        "path": "Patient.name.family.extension",
        "sliceName": "vorsatzwort",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.given",
        "path": "Patient.name.given",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.prefix",
        "path": "Patient.name.prefix",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.prefix.extension:prefix-qualifier",
        "path": "Patient.name.prefix.extension",
        "sliceName": "prefix-qualifier",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.prefix.extension:prefix-qualifier.value[x]",
        "path": "Patient.name.prefix.extension.value[x]",
        "fixedCode": "AC"
      },
      {
        "id": "Patient.name:Geburtsname",
        "path": "Patient.name",
        "sliceName": "Geburtsname",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "http://fhir.de/StructureDefinition/humanname-de-basis"
            ]
          }
        ],
        "patternHumanName": {
          "use": "maiden"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.name:Geburtsname.use",
        "path": "Patient.name.use",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name:Geburtsname.family",
        "path": "Patient.name.family",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name:Geburtsname.family.extension:namenszusatz",
        "path": "Patient.name.family.extension",
        "sliceName": "namenszusatz",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Geburtsname.family.extension:nachname",
        "path": "Patient.name.family.extension",
        "sliceName": "nachname",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Geburtsname.family.extension:vorsatzwort",
        "path": "Patient.name.family.extension",
        "sliceName": "vorsatzwort",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Geburtsname.given",
        "path": "Patient.name.given",
        "max": "0"
      },
      {
        "id": "Patient.name:Geburtsname.prefix",
        "path": "Patient.name.prefix",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.gender.extension:Geschlecht-Administrativ",
        "path": "Patient.gender.extension",
        "sliceName": "Geschlecht-Administrativ",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.de/StructureDefinition/gender-amtlich-de"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift",
        "path": "Patient.address",
        "sliceName": "Strassenanschrift",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis"
            ]
          }
        ],
        "patternAddress": {
          "type": "both"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.extension:wohnungsinhaber",
        "path": "Patient.address.extension",
        "sliceName": "wohnungsinhaber",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/WohnungsInhaberEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.type",
        "path": "Patient.address.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line",
        "path": "Patient.address.line",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Strasse",
        "path": "Patient.address.line.extension",
        "sliceName": "Strasse",
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Hausnummer",
        "path": "Patient.address.line.extension",
        "sliceName": "Hausnummer",
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Adresszusatz",
        "path": "Patient.address.line.extension",
        "sliceName": "Adresszusatz",
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Postfach",
        "path": "Patient.address.line.extension",
        "sliceName": "Postfach",
        "max": "0"
      },
      {
        "id": "Patient.address:Strassenanschrift.city",
        "path": "Patient.address.city",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.city.extension:gemeindeschluessel",
        "path": "Patient.address.city.extension",
        "sliceName": "gemeindeschluessel",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.de/StructureDefinition/destatis/ags"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.city.extension:frueherergemeindename",
        "path": "Patient.address.city.extension",
        "sliceName": "frueherergemeindename",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/FruehererGemeindeNameEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.postalCode",
        "path": "Patient.address.postalCode",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.country",
        "path": "Patient.address.country",
        "min": 1,
        "constraint": [
          {
            "key": "address-cnt-2or3-char",
            "severity": "warning",
            "human": "The content of the country element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, IF the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2.",
            "expression": "country.empty() or (country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2') or country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))",
            "source": "https://www.oegd.de/fhir/seu/StructureDefinition/Person"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach",
        "path": "Patient.address",
        "sliceName": "Postfach",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis"
            ]
          }
        ],
        "patternAddress": {
          "type": "postal"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.type",
        "path": "Patient.address.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.line",
        "path": "Patient.address.line",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.line.extension:Strasse",
        "path": "Patient.address.line.extension",
        "sliceName": "Strasse",
        "max": "0"
      },
      {
        "id": "Patient.address:Postfach.line.extension:Hausnummer",
        "path": "Patient.address.line.extension",
        "sliceName": "Hausnummer",
        "max": "0"
      },
      {
        "id": "Patient.address:Postfach.line.extension:Adresszusatz",
        "path": "Patient.address.line.extension",
        "sliceName": "Adresszusatz",
        "max": "0"
      },
      {
        "id": "Patient.address:Postfach.line.extension:Postfach",
        "path": "Patient.address.line.extension",
        "sliceName": "Postfach",
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.city",
        "path": "Patient.address.city",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.postalCode",
        "path": "Patient.address.postalCode",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.country",
        "path": "Patient.address.country",
        "min": 1,
        "constraint": [
          {
            "key": "address-cnt-2or3-char",
            "severity": "warning",
            "human": "The content of the country element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, IF the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2.",
            "expression": "country.empty() or (country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2') or country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))",
            "source": "https://www.oegd.de/fhir/seu/StructureDefinition/Person"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 2,
        "mustSupport": true
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "mustSupport": true
      },
      {
        "id": "Patient.communication.preferred",
        "path": "Patient.communication.preferred",
        "mustSupport": true
      },
      {
        "id": "Patient.communication:deutsch",
        "path": "Patient.communication",
        "sliceName": "deutsch",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.communication:deutsch.extension",
        "path": "Patient.communication.extension",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.communication:deutsch.extension:deutschkenntnis",
        "path": "Patient.communication.extension",
        "sliceName": "deutschkenntnis",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://www.oegd.de/fhir/seu/StructureDefinition/PersonDeutschkenntnisEX"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.communication:deutsch.language",
        "path": "Patient.communication.language",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "de",
              "system": "urn:ietf:bcp:47",
              "display": "German"
            }
          ]
        }
      },
      {
        "id": "Patient.communication:erstsprache",
        "path": "Patient.communication",
        "sliceName": "erstsprache",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.communication:erstsprache.preferred",
        "path": "Patient.communication.preferred",
        "patternBoolean": true
      }
    ]
  }
}