{
  "resourceType": "StructureDefinition",
  "id": "demis-rki-de-sd-submittingRole",
  "url": "https://demis.rki.de/fhir/StructureDefinition/SubmittingRole",
  "version": "1.0",
  "name": "SubmittingRole",
  "title": "Einsender-Rolle",
  "status": "draft",
  "date": "2020-04-08",
  "description": "Die Einsender-Rolle ist erforderlich, um eine Unterscheidung zwischen Einsender und Einsender-Einrichtung vornehmen zu können. Sie beinhaltet lediglich Verweise auf die Einsendende Person oder die Einsendende Einrichtung.",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole",
        "path": "PractitionerRole",
        "constraint": [
          {
            "key": "personOrFacilityCount",
            "severity": "error",
            "human": "Es muss mindestens eine Einsendende Person oder eine Einsendende Einrichtung angegeben werden.",
            "expression": "practitioner.count()=1 or organization.count()=1",
            "source": "PractitionerRole"
          },
          {
            "key": "personOrFacilityNotEmpty",
            "severity": "error",
            "human": "Der Einsender ist entweder eine Einsendende Person oder eine Einsendende Einrichtung.",
            "expression": "practitioner.empty() or organization.empty()",
            "source": "PractitionerRole"
          }
        ]
      },
      {
        "id": "PractitionerRole.practitioner",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "PractitionerRole.practitioner",
        "short": "Verweis auf die Einsendende Person",
        "definition": "Verweis auf die Einsendende Person",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/StructureDefinition/SubmittingPerson"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.practitioner.reference",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "PractitionerRole.practitioner.reference",
        "min": 1
      },
      {
        "id": "PractitionerRole.organization",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "PractitionerRole.organization",
        "short": "Verweis auf die Einsendende Einrichtung",
        "definition": "Verweis auf die Einsendende Einrichtung",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/StructureDefinition/SubmittingFacility"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.organization.reference",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "PractitionerRole.organization.reference",
        "min": 1
      }
    ]
  }
}