{
  "resourceType": "StructureDefinition",
  "id": "c6fb6742-6954-44c6-a5b8-a37d8bff6939",
  "meta": {
    "lastUpdated": "2019-12-10T14:53:24.162+00:00"
  },
  "url": "http://digen.nublar.de/fhir/StructureDefinition/DigenNotfallkontaktRelatedPerson",
  "name": "DigenNotfallkontaktRelatedPerson",
  "status": "draft",
  "date": "2019-12-10T14:53:24.1143888+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "RelatedPerson",
  "baseDefinition": "http://digen.nublar.de/fhir/StructureDefinition/DigenRelatedPersonAbstract",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedPerson.relationship.coding",
        "path": "RelatedPerson.relationship.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "min": 2,
        "max": "2"
      },
      {
        "id": "RelatedPerson.relationship.coding:emergencyContactCoding",
        "path": "RelatedPerson.relationship.coding",
        "sliceName": "emergencyContactCoding"
      },
      {
        "id": "RelatedPerson.relationship.coding:emergencyContactCoding.id",
        "path": "RelatedPerson.relationship.coding.id",
        "max": "0"
      },
      {
        "id": "RelatedPerson.relationship.coding:emergencyContactCoding.system",
        "path": "RelatedPerson.relationship.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0131"
      },
      {
        "id": "RelatedPerson.relationship.coding:emergencyContactCoding.version",
        "path": "RelatedPerson.relationship.coding.version",
        "max": "0"
      },
      {
        "id": "RelatedPerson.relationship.coding:emergencyContactCoding.code",
        "path": "RelatedPerson.relationship.coding.code",
        "min": 1,
        "fixedCode": "C"
      },
      {
        "id": "RelatedPerson.relationship.coding:emergencyContactCoding.display",
        "path": "RelatedPerson.relationship.coding.display",
        "min": 1,
        "fixedString": "Emergency Contact"
      },
      {
        "id": "RelatedPerson.relationship.coding:emergencyContactCoding.userSelected",
        "path": "RelatedPerson.relationship.coding.userSelected",
        "max": "0"
      },
      {
        "id": "RelatedPerson.relationship.coding:relationshipCoding",
        "path": "RelatedPerson.relationship.coding",
        "sliceName": "relationshipCoding",
        "binding": {
          "strength": "extensible",
          "description": "ValueSet for relationship codes for DiGeN relatedPerson",
          "valueSetUri": "http://digen.nublar.de/fhir/ValueSet/relatedPersonRelationshipForDigen"
        }
      },
      {
        "id": "RelatedPerson.relationship.coding:relationshipCoding.id",
        "path": "RelatedPerson.relationship.coding.id",
        "max": "0"
      },
      {
        "id": "RelatedPerson.relationship.coding:relationshipCoding.system",
        "path": "RelatedPerson.relationship.coding.system",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship.coding:relationshipCoding.version",
        "path": "RelatedPerson.relationship.coding.version",
        "max": "0"
      },
      {
        "id": "RelatedPerson.relationship.coding:relationshipCoding.code",
        "path": "RelatedPerson.relationship.coding.code",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship.coding:relationshipCoding.display",
        "path": "RelatedPerson.relationship.coding.display",
        "min": 1
      },
      {
        "id": "RelatedPerson.relationship.coding:relationshipCoding.userSelected",
        "path": "RelatedPerson.relationship.coding.userSelected",
        "max": "0"
      },
      {
        "id": "RelatedPerson.telecom",
        "path": "RelatedPerson.telecom",
        "max": "1"
      },
      {
        "id": "RelatedPerson.address",
        "path": "RelatedPerson.address",
        "max": "0"
      }
    ]
  }
}