{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.gefyra.de/sandbox/StructureDefinition/MeinTestPatientProfil",
  "version": "1.0",
  "name": "MeinTestPatientProfil",
  "title": "Test für Profil Patient",
  "status": "draft",
  "date": "2023-04-12T13:37:16.5089828+00:00",
  "description": "Dieses Profil beschreibt die Constraints auf dem Ressourcentyp \"Patient\"",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.extension:Spezies",
        "path": "Patient.extension",
        "sliceName": "Spezies",
        "min": 1,
        "max": "4",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.gefyra.de/sandbox/StructureDefinition/Spezies2"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:Spezies.value[x]",
        "path": "Patient.extension.value[x]",
        "min": 1
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "constraint": [
          {
            "key": "kv-num-test",
            "severity": "warning",
            "human": "Die Versichertennummer muss zehnstellig sein!",
            "expression": "matches('[A-Z][0-9]{9}')"
          }
        ]
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "min": 1,
        "fixedBoolean": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ],
          "rules": "open"
        },
        "patternHumanName": {
          "use": "official"
        }
      },
      {
        "id": "Patient.name:offiziellerName",
        "path": "Patient.name",
        "sliceName": "offiziellerName",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name:offiziellerName.use",
        "path": "Patient.name.use",
        "min": 1,
        "fixedCode": "official"
      },
      {
        "id": "Patient.name:offiziellerName.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name:offiziellerName.given",
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "id": "Patient.name:GeburtsName",
        "path": "Patient.name",
        "sliceName": "GeburtsName",
        "max": "1"
      },
      {
        "id": "Patient.name:GeburtsName.use",
        "path": "Patient.name.use",
        "min": 1,
        "fixedCode": "maiden"
      },
      {
        "id": "Patient.name:GeburtsName.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "mustSupport": true
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "mustSupport": true
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "mustSupport": true
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}