{
  "resourceType": "StructureDefinition",
  "id": "NotifiedPerson",
  "url": "https://demis.rki.de/fhir/StructureDefinition/NotifiedPerson",
  "version": "2.0.0",
  "name": "NotifiedPerson",
  "title": "Betroffene Person",
  "status": "active",
  "date": "2024-06-18",
  "description": "Die betroffene Person enthält relevante Angaben zum Patienten, die entsprechend der aktuellen Planung aus den Auftragsdaten extrahiert werden, die der Einsender dem jeweiligen Labor übermittelt hat. Dies werden in der Mehrzahl der Fälle die Angaben von der eGK der betroffenen Person sein (Versichertenstammdaten).",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "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",
        "path": "Patient",
        "constraint": [
          {
            "key": "validFamilyName",
            "severity": "error",
            "human": "Der Nachname muss valide sein.",
            "expression": "name.family.matches('^[^@\\\\*?$|=´\"\\\\[\\\\]{}<>0-9]{0,100}$')"
          },
          {
            "key": "validGivenName",
            "severity": "error",
            "human": "Die Vornamen muss valide sein.",
            "expression": "name.given.all(matches('^[^@\\\\*?$|=´\"\\\\[\\\\]{}<>0-9]{0,100}$'))"
          }
        ]
      },
      {
        "id": "Patient.meta",
        "path": "Patient.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.meta.profile",
        "path": "Patient.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://demis.rki.de/fhir/StructureDefinition/NotifiedPerson",
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "short": "Name",
        "definition": "Name der betroffenen Person. Mindestens ein Vorname und der Nachname müssen angegeben werden.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "http://fhir.de/StructureDefinition/humanname-de-basis"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "short": "Nachname",
        "definition": "Nachname der betroffenen Person. Es muss genau ein Nachname angegeben werden.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "short": "Vorname",
        "definition": "Vorname der betroffenen Person. Es muss mindestens ein Vorname angegeben werden.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "short": "Kontaktangaben",
        "definition": "Kontaktangaben der betroffenen Person. Telefonnummern oder E-Mailadressen können angegeben werden.",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:Email",
        "path": "Patient.telecom",
        "sliceName": "Email"
      },
      {
        "id": "Patient.telecom:Email.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "email",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:Email.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "constraint": [
          {
            "key": "validEmailAddress",
            "severity": "error",
            "human": "Die E-Mail-Adresse muss valide sein.",
            "expression": "$this.matches('^[a-zA-Z0-9._%+-]+@(?:[a-zA-Z0-9-]+[.])+[a-zA-Z0-9]{2,63}$')"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:Phone",
        "path": "Patient.telecom",
        "sliceName": "Phone"
      },
      {
        "id": "Patient.telecom:Phone.extension",
        "path": "Patient.telecom.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.telecom:Phone.extension:comment",
        "path": "Patient.telecom.extension",
        "sliceName": "comment",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/Comment"
            ]
          }
        ]
      },
      {
        "id": "Patient.telecom:Phone.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "fixedCode": "phone",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:Phone.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "constraint": [
          {
            "key": "validPhoneNumber",
            "severity": "error",
            "human": "Die Telefonnummer muss valide sein.",
            "expression": "$this.matches('^[0+][0-9 \\\\-\\\\(\\\\)]{6,50}$')"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "short": "Geschlecht",
        "definition": "Geschlecht der betroffenen Person",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "short": "Geburtsdatum",
        "definition": "Geburtsdatum der betroffenen Person",
        "constraint": [
          {
            "key": "validBirthDate",
            "severity": "error",
            "human": "Das Geburtsjahr muss mit 19 oder 20 beginnen.",
            "expression": "$this.toString().matches('^19[0-9]{2}-[0-9]{2}-[0-9]{2}|20[0-9]{2}-[0-9]{2}-[0-9]{2}|19[0-9]{2}-[0-9]{2}|20[0-9]{2}-[0-9]{2}|19[0-9]{2}|20[0-9]{2}$')"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "comment": "Diese Angabe betrifft nur die DEMIS-Erkrankungsmeldung (https://simplifier.net/rki.demis.disease): Angaben zum Tod der betroffenen Person sollen ausschließlich über den Fragebogen DiseaseQuestionsCommon dokumentiert werden, siehe dazu linkId isDead und deathDate in https://simplifier.net/guide/rki.demis.disease/Home/resources/questionnaires/guide-diseasequestionscommon.md?version=current."
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "extension('https://demis.rki.de/fhir/StructureDefinition/AddressUse').value"
            }
          ],
          "rules": "closed"
        },
        "short": "Adresse",
        "definition": "Adresse der betroffenen Person. Über die Extension \"addressUse\" kann angegeben werden, um welche Art von Adresse es sich handelt. Ist die betroffene Person in einer Einrichtung untergebracht, kann über die Extension die Einrichtung angegeben werden.",
        "max": "3",
        "mustSupport": true
      },
      {
        "id": "Patient.address:hauptwohnung",
        "path": "Patient.address",
        "sliceName": "hauptwohnung",
        "max": "1",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis"
            ]
          }
        ]
      },
      {
        "id": "Patient.address:hauptwohnung.extension",
        "path": "Patient.address.extension",
        "min": 1
      },
      {
        "id": "Patient.address:hauptwohnung.extension:addressUse",
        "path": "Patient.address.extension",
        "sliceName": "addressUse",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/AddressUse"
            ]
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Patient.address:hauptwohnung.extension:addressUse.value[x]",
        "path": "Patient.address.extension.value[x]",
        "fixedCoding": {
          "system": "https://demis.rki.de/fhir/CodeSystem/addressUse",
          "code": "primary"
        }
      },
      {
        "id": "Patient.address:hauptwohnung.extension:facility",
        "path": "Patient.address.extension",
        "sliceName": "facility",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/FacilityAddressNotifiedPerson"
            ]
          }
        ]
      },
      {
        "id": "Patient.address:hauptwohnung.use",
        "path": "Patient.address.use",
        "max": "0"
      },
      {
        "id": "Patient.address:hauptwohnung.line",
        "path": "Patient.address.line",
        "short": "Anschriftenzeile",
        "definition": "Anschriftenzeile. Die Angabe eines Postfaches ist nicht erlaubt.",
        "max": "1"
      },
      {
        "id": "Patient.address:hauptwohnung.line.extension",
        "path": "Patient.address.line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.address:hauptwohnung.line.extension:Postfach",
        "path": "Patient.address.line.extension",
        "sliceName": "Postfach",
        "max": "0"
      },
      {
        "id": "Patient.address:hauptwohnung.city",
        "path": "Patient.address.city",
        "short": "Stadt",
        "definition": "Stadt"
      },
      {
        "id": "Patient.address:hauptwohnung.postalCode",
        "path": "Patient.address.postalCode",
        "definition": "Postleitzahl. Der Wert muss entsprechend des vom RKI definierten ValueSets (https://demis.rki.de/fhir/ValueSet/postalCode) im coding Element dargestellt werden.",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://demis.rki.de/fhir/ValueSet/postalCode"
        }
      },
      {
        "id": "Patient.address:hauptwohnung.country",
        "path": "Patient.address.country",
        "short": "Land",
        "definition": "Land",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort",
        "path": "Patient.address",
        "sliceName": "gewoehnlicherAufenthaltsort",
        "max": "1",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis"
            ]
          }
        ]
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.extension",
        "path": "Patient.address.extension",
        "min": 1
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.extension:addressUse",
        "path": "Patient.address.extension",
        "sliceName": "addressUse",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/AddressUse"
            ]
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.extension:addressUse.value[x]",
        "path": "Patient.address.extension.value[x]",
        "fixedCoding": {
          "system": "https://demis.rki.de/fhir/CodeSystem/addressUse",
          "code": "ordinary"
        }
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.extension:facility",
        "path": "Patient.address.extension",
        "sliceName": "facility",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/FacilityAddressNotifiedPerson"
            ]
          }
        ]
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.use",
        "path": "Patient.address.use",
        "max": "0"
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.line",
        "path": "Patient.address.line",
        "short": "Anschriftenzeile",
        "definition": "Anschriftenzeile. Die Angabe eines Postfaches ist nicht erlaubt.",
        "max": "1"
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.line.extension",
        "path": "Patient.address.line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.line.extension:Postfach",
        "path": "Patient.address.line.extension",
        "sliceName": "Postfach",
        "max": "0"
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.city",
        "path": "Patient.address.city",
        "short": "Stadt",
        "definition": "Stadt"
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.postalCode",
        "path": "Patient.address.postalCode",
        "definition": "Postleitzahl. Der Wert muss entsprechend des vom RKI definierten ValueSets (https://demis.rki.de/fhir/ValueSet/postalCode) im coding Element dargestellt werden.",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://demis.rki.de/fhir/ValueSet/postalCode"
        }
      },
      {
        "id": "Patient.address:gewoehnlicherAufenthaltsort.country",
        "path": "Patient.address.country",
        "short": "Land",
        "definition": "Land",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort",
        "path": "Patient.address",
        "sliceName": "derzeitigerAufenthaltsort",
        "max": "1",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis"
            ]
          }
        ]
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.extension",
        "path": "Patient.address.extension",
        "min": 1
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.extension:addressUse",
        "path": "Patient.address.extension",
        "sliceName": "addressUse",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/AddressUse"
            ]
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.extension:addressUse.value[x]",
        "path": "Patient.address.extension.value[x]",
        "fixedCoding": {
          "system": "https://demis.rki.de/fhir/CodeSystem/addressUse",
          "display": "current"
        }
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.extension:facility",
        "path": "Patient.address.extension",
        "sliceName": "facility",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/FacilityAddressNotifiedPerson"
            ]
          }
        ]
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.use",
        "path": "Patient.address.use",
        "max": "0"
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.line",
        "path": "Patient.address.line",
        "short": "Anschriftenzeile",
        "definition": "Anschriftenzeile. Die Angabe eines Postfaches ist nicht erlaubt.",
        "max": "1"
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.line.extension",
        "path": "Patient.address.line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.line.extension:Postfach",
        "path": "Patient.address.line.extension",
        "sliceName": "Postfach",
        "max": "0"
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.city",
        "path": "Patient.address.city",
        "short": "Stadt",
        "definition": "Stadt"
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.postalCode",
        "path": "Patient.address.postalCode",
        "definition": "Postleitzahl. Der Wert muss entsprechend des vom RKI definierten ValueSets (https://demis.rki.de/fhir/ValueSet/postalCode) im coding Element dargestellt werden.",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://demis.rki.de/fhir/ValueSet/postalCode"
        }
      },
      {
        "id": "Patient.address:derzeitigerAufenthaltsort.country",
        "path": "Patient.address.country",
        "short": "Land",
        "definition": "Land",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      },
      {
        "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.contact",
        "path": "Patient.contact",
        "short": "Kontaktperson",
        "definition": "Kontaktperson der betroffenen Person",
        "mustSupport": true
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}