{
  "resourceType": "StructureDefinition",
  "url": "https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/Patient",
  "version": "2.0.0-ballot2",
  "name": "Patient",
  "title": "Patient",
  "status": "active",
  "date": "2022-11-15T20:25:39.7046615+00:00",
  "description": "Dieses Profil beschreibt eine Patient*in",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "constraint": [
          {
            "key": "mii-pat-1",
            "severity": "error",
            "human": "Falls die Geschlechtsangabe 'other' gewählt wird, muss die amtliche Differenzierung per Extension angegeben werden",
            "expression": "gender.exists() and gender='other' implies gender.extension('http://fhir.de/StructureDefinition/gender-amtlich-de').exists()"
          }
        ]
      },
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "mustSupport": true
      },
      {
        "id": "Patient.meta",
        "path": "Patient.meta",
        "mustSupport": true
      },
      {
        "id": "Patient.meta.source",
        "path": "Patient.meta.source",
        "mustSupport": true
      },
      {
        "id": "Patient.meta.profile",
        "path": "Patient.meta.profile",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV",
        "path": "Patient.identifier",
        "sliceName": "versichertenId_GKV",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.de/StructureDefinition/identifier-kvid-10"
            ]
          }
        ],
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                "code": "GKV"
              }
            ]
          }
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.value",
        "path": "Patient.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.assigner",
        "path": "Patient.identifier.assigner",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.assigner.identifier",
        "path": "Patient.identifier.assigner.identifier",
        "min": 1,
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.de/StructureDefinition/identifier-iknr"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.assigner.identifier.type",
        "path": "Patient.identifier.assigner.identifier.type",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.assigner.identifier.system",
        "path": "Patient.identifier.assigner.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertenId_GKV.assigner.identifier.value",
        "path": "Patient.identifier.assigner.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:pid",
        "path": "Patient.identifier",
        "sliceName": "pid",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.de/StructureDefinition/identifier-pid"
            ]
          }
        ],
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                "code": "MR"
              }
            ]
          }
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:pid.type",
        "path": "Patient.identifier.type",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:pid.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:pid.value",
        "path": "Patient.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:pid.assigner",
        "path": "Patient.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:pid.assigner.identifier.type",
        "path": "Patient.identifier.assigner.identifier.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "code": "XX"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:pid.assigner.identifier.system",
        "path": "Patient.identifier.assigner.identifier.system",
        "constraint": [
          {
            "key": "mii-pat-1",
            "severity": "error",
            "human": "Entweder IKNR oder MII Core Location Identifier muss verwendet werden",
            "expression": "$this = 'http://fhir.de/NamingSystem/arge-ik/iknr' or $this = 'https://www.medizininformatik-initiative.de/fhir/core/CodeSystem/core-location-identifier'"
          }
        ]
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv",
        "path": "Patient.identifier",
        "sliceName": "versichertennummer_pkv",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.de/StructureDefinition/identifier-pkv"
            ]
          }
        ],
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
                "code": "PKV"
              }
            ]
          }
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.use",
        "path": "Patient.identifier.use",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.value",
        "path": "Patient.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.assigner",
        "path": "Patient.identifier.assigner",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.assigner.identifier.type",
        "path": "Patient.identifier.assigner.identifier.type",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.assigner.identifier.system",
        "path": "Patient.identifier.assigner.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.assigner.identifier.value",
        "path": "Patient.identifier.assigner.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:versichertennummer_pkv.assigner.display",
        "path": "Patient.identifier.assigner.display",
        "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",
        "path": "Patient.name.family.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.name:name.family.extension:namenszusatz",
        "path": "Patient.name.family.extension",
        "sliceName": "namenszusatz",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.family.extension:nachname",
        "path": "Patient.name.family.extension",
        "sliceName": "nachname",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.family.extension:vorsatzwort",
        "path": "Patient.name.family.extension",
        "sliceName": "vorsatzwort",
        "min": 0,
        "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",
        "path": "Patient.name.prefix.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.name:name.prefix.extension:prefix-qualifier",
        "path": "Patient.name.prefix.extension",
        "sliceName": "prefix-qualifier",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.name:geburtsname",
        "path": "Patient.name",
        "sliceName": "geburtsname",
        "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",
        "path": "Patient.name.family.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.name:geburtsname.family.extension:namenszusatz",
        "path": "Patient.name.family.extension",
        "sliceName": "namenszusatz",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.name:geburtsname.family.extension:nachname",
        "path": "Patient.name.family.extension",
        "sliceName": "nachname",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.name:geburtsname.family.extension:vorsatzwort",
        "path": "Patient.name.family.extension",
        "sliceName": "vorsatzwort",
        "min": 0,
        "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.name:geburtsname.prefix.extension",
        "path": "Patient.name.prefix.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.name:geburtsname.prefix.extension:prefix-qualifier",
        "path": "Patient.name.prefix.extension",
        "sliceName": "prefix-qualifier",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.gender.extension",
        "path": "Patient.gender.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.gender.extension:other-amtlich",
        "path": "Patient.gender.extension",
        "sliceName": "other-amtlich",
        "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.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.birthDate.extension:data-absent-reason",
        "path": "Patient.birthDate.extension",
        "sliceName": "data-absent-reason",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "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",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis"
            ]
          }
        ],
        "patternAddress": {
          "type": "both"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.extension",
        "path": "Patient.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.address:Strassenanschrift.extension:Stadtteil",
        "path": "Patient.address.extension",
        "sliceName": "Stadtteil",
        "min": 0,
        "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",
        "path": "Patient.address.line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Strasse",
        "path": "Patient.address.line.extension",
        "sliceName": "Strasse",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Hausnummer",
        "path": "Patient.address.line.extension",
        "sliceName": "Hausnummer",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Adresszusatz",
        "path": "Patient.address.line.extension",
        "sliceName": "Adresszusatz",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.line.extension:Postfach",
        "path": "Patient.address.line.extension",
        "sliceName": "Postfach",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Patient.address:Strassenanschrift.city",
        "path": "Patient.address.city",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.city.extension",
        "path": "Patient.address.city.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "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.postalCode",
        "path": "Patient.address.postalCode",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.country",
        "path": "Patient.address.country",
        "min": 1,
        "constraint": [
          {
            "key": "pat-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'))"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach",
        "path": "Patient.address",
        "sliceName": "Postfach",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis"
            ]
          }
        ],
        "patternAddress": {
          "type": "postal"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.extension",
        "path": "Patient.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.address:Postfach.extension:Stadtteil",
        "path": "Patient.address.extension",
        "sliceName": "Stadtteil",
        "min": 0,
        "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",
        "path": "Patient.address.line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.address:Postfach.line.extension:Strasse",
        "path": "Patient.address.line.extension",
        "sliceName": "Strasse",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Patient.address:Postfach.line.extension:Hausnummer",
        "path": "Patient.address.line.extension",
        "sliceName": "Hausnummer",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Patient.address:Postfach.line.extension:Adresszusatz",
        "path": "Patient.address.line.extension",
        "sliceName": "Adresszusatz",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Patient.address:Postfach.line.extension:Postfach",
        "path": "Patient.address.line.extension",
        "sliceName": "Postfach",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.city",
        "path": "Patient.address.city",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.city.extension",
        "path": "Patient.address.city.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.address:Postfach.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:Postfach.postalCode",
        "path": "Patient.address.postalCode",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Postfach.country",
        "path": "Patient.address.country",
        "min": 1,
        "constraint": [
          {
            "key": "pat-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'))"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "mustSupport": true
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "mustSupport": false
      },
      {
        "id": "Patient.link.other",
        "path": "Patient.link.other",
        "mustSupport": false
      },
      {
        "id": "Patient.link.type",
        "path": "Patient.link.type",
        "mustSupport": false
      }
    ]
  }
}