{
  "resourceType": "StructureDefinition",
  "id": "TestAktin",
  "meta": {
    "lastUpdated": "2022-06-21T10:29:25.968+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Individuals"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "https://example.org/fhir/StructureDefinition/AK_Patient",
  "name": "AKNPatient",
  "status": "draft",
  "experimental": true,
  "date": "2022-06-21T10:18:25.5533627+00:00",
  "description": "Dieses Profil beschreibt die Nutzung von administrativen Patientendaten in AKTIN",
  "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.id",
        "path": "Patient.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:Versichertennummer-GKV",
        "path": "Patient.identifier",
        "sliceName": "Versichertennummer-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:Versichertennummer-GKV.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:Versichertennummer-GKV.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:Versichertennummer-GKV.value",
        "path": "Patient.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:Patientennummer",
        "path": "Patient.identifier",
        "sliceName": "Patientennummer",
        "min": 1,
        "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:Patientennummer.type",
        "path": "Patient.identifier.type",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:Patientennummer.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:Patientennummer.value",
        "path": "Patient.identifier.value",
        "mustSupport": true
      },
      {
        "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": false
      },
      {
        "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.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.identifier:eGK-Nummer",
        "path": "Patient.identifier",
        "sliceName": "eGK-Nummer",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:eGK-Nummer.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:eGK-Nummer.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:eGK-Nummer.value",
        "path": "Patient.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "comment": "In order to maintain the differntiations of name parts as given in the VSDM dataset or qualify prefixes as academic titles, vendors can opt to support the extensions specified in the German HumanName Base Profile https://simplifier.net/basisprofil-de-r4/humannamedebasis\r\nThis is however not required within the scope of this specification.",
        "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,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Name.family.extension:vorsatzwort",
        "path": "Patient.name.family.extension",
        "sliceName": "vorsatzwort",
        "min": 0,
        "max": "1",
        "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:Name.prefix.extension:prefix-qualifier.url",
        "path": "Patient.name.prefix.extension.url",
        "fixedUri": "prefix-qualifier"
      },
      {
        "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,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.name:Geburtsname.family.extension:vorsatzwort",
        "path": "Patient.name.family.extension",
        "sliceName": "vorsatzwort",
        "min": 0,
        "max": "1",
        "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.telecom.system",
        "path": "Patient.telecom.system",
        "min": 1
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "min": 1
      },
      {
        "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: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.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Patient.birthDate.extension:Alter-in-Jahren",
        "path": "Patient.birthDate.extension",
        "sliceName": "Alter-in-Jahren",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-alter-in-jahren"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.birthDate.extension:Geburtsjahr",
        "path": "Patient.birthDate.extension",
        "sliceName": "Geburtsjahr",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-geburtsjahr"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "comment": "In order to differentiate between post box addresses and physical addresses, street names and house numbers, and to add city district names, vendors can opt to support the extensions as suggested in the German Address Base Profile http://fhir.de/StructureDefinition/address-de-basis.\r\nSuch differentiations are however not required within the scope of this specification.",
        "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.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.postalCode",
        "path": "Patient.address.postalCode",
        "slicing": {
          "description": "PLZ / 3-stellige PLZ",
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.postalCode:Postleitzahl_dreistellig",
        "path": "Patient.address.postalCode",
        "sliceName": "Postleitzahl_dreistellig",
        "min": 1,
        "maxLength": 3,
        "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://gematik.de/fhir/ISiK/v2/StructureDefinition/ISiKPatient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address:Strassenanschrift.period",
        "path": "Patient.address.period",
        "max": "0"
      },
      {
        "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.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.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://gematik.de/fhir/ISiK/v2/StructureDefinition/ISiKPatient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.identifier.system",
        "path": "Patient.generalPractitioner.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.de/StructureDefinition/identifier-lanr"
      }
    ]
  }
}