{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-AW-Bezugsperson",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Bezugsperson",
  "version": "1.3.0",
  "name": "KBV_PR_AW_Bezugsperson",
  "status": "draft",
  "copyright": "Copyright © [2022], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "RelatedPerson",
  "baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.3.0",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedPerson.id",
        "path": "RelatedPerson.id",
        "min": 1
      },
      {
        "id": "RelatedPerson.meta",
        "path": "RelatedPerson.meta",
        "min": 1
      },
      {
        "id": "RelatedPerson.meta.versionId",
        "path": "RelatedPerson.meta.versionId",
        "min": 1
      },
      {
        "id": "RelatedPerson.meta.lastUpdated",
        "path": "RelatedPerson.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "RelatedPerson.meta.profile",
        "path": "RelatedPerson.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Bezugsperson|1.3.0"
      },
      {
        "id": "RelatedPerson.text",
        "path": "RelatedPerson.text",
        "min": 1
      },
      {
        "id": "RelatedPerson.text.status",
        "path": "RelatedPerson.text.status",
        "short": "extensions",
        "fixedCode": "extensions"
      },
      {
        "id": "RelatedPerson.identifier",
        "path": "RelatedPerson.identifier",
        "max": "0"
      },
      {
        "id": "RelatedPerson.active",
        "path": "RelatedPerson.active",
        "max": "0"
      },
      {
        "id": "RelatedPerson.patient",
        "path": "RelatedPerson.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Patient|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.relationship",
        "path": "RelatedPerson.relationship",
        "max": "1"
      },
      {
        "id": "RelatedPerson.relationship.coding",
        "path": "RelatedPerson.relationship.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.relationship.coding.system",
        "path": "RelatedPerson.relationship.coding.system",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship.coding.code",
        "path": "RelatedPerson.relationship.coding.code",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship.coding.userSelected",
        "path": "RelatedPerson.relationship.coding.userSelected",
        "max": "0"
      },
      {
        "id": "RelatedPerson.relationship.text",
        "path": "RelatedPerson.relationship.text",
        "max": "0"
      },
      {
        "id": "RelatedPerson.name",
        "path": "RelatedPerson.name",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.name.family",
        "path": "RelatedPerson.name.family",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.name.given",
        "path": "RelatedPerson.name.given",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.telecom",
        "path": "RelatedPerson.telecom",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.telecom.rank",
        "path": "RelatedPerson.telecom.rank",
        "max": "0"
      },
      {
        "id": "RelatedPerson.telecom.period",
        "path": "RelatedPerson.telecom.period",
        "max": "0"
      },
      {
        "id": "RelatedPerson.gender",
        "path": "RelatedPerson.gender",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.gender.extension",
        "path": "RelatedPerson.gender.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0
      },
      {
        "id": "RelatedPerson.gender.extension:gender_amtlich",
        "path": "RelatedPerson.gender.extension",
        "sliceName": "gender_amtlich",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.de/StructureDefinition/gender-amtlich-de|1.3.2"
            ]
          }
        ]
      },
      {
        "id": "RelatedPerson.birthDate",
        "path": "RelatedPerson.birthDate",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.address",
        "path": "RelatedPerson.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://fhir.de/StructureDefinition/address-de-basis|1.3.2"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.address:Strassenanschrift",
        "path": "RelatedPerson.address",
        "sliceName": "Strassenanschrift",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.address:Postfach",
        "path": "RelatedPerson.address",
        "sliceName": "Postfach",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.photo",
        "path": "RelatedPerson.photo",
        "max": "0"
      },
      {
        "id": "RelatedPerson.period",
        "path": "RelatedPerson.period",
        "max": "0"
      },
      {
        "id": "RelatedPerson.communication",
        "path": "RelatedPerson.communication",
        "max": "0"
      }
    ]
  }
}