{
  "resourceType": "StructureDefinition",
  "id": "MaiaFachabteilung",
  "url": "https://tiplu.de/fhir/maia/StructureDefinition/MaiaFachabteilung",
  "version": "1.0.0",
  "name": "MaiaFachabteilung",
  "title": "Maia Fachabteilung",
  "status": "active",
  "experimental": false,
  "date": "2023-02-27",
  "publisher": "Tiplu GmbH",
  "description": "Das vorliegende Organization-Profil im UseCase einer Fachabteilung beschreibt alle verpflichtenden und optionalen Informationen, die ein Datenlieferant für Maia liefern muss.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization.id",
        "path": "Organization.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:FachabteilungsId",
        "path": "Organization.identifier",
        "sliceName": "FachabteilungsId",
        "min": 1,
        "max": "*",
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "code": "XX",
                "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
              }
            ]
          }
        },
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:FachabteilungsId.type",
        "path": "Organization.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:FachabteilungsId.system",
        "path": "Organization.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:FachabteilungsId.value",
        "path": "Organization.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.type:Organization-type",
        "path": "Organization.type",
        "sliceName": "Organization-type",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "dept",
              "system": "http://terminology.hl7.org/CodeSystem/organization-type"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Organization.type:Fachabteilungsschluessel",
        "path": "Organization.type",
        "sliceName": "Fachabteilungsschluessel",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.de/ValueSet/dkgev/Fachabteilungsschluessel"
        }
      },
      {
        "id": "Organization.type:Fachabteilungsschluessel-erweitert",
        "path": "Organization.type",
        "sliceName": "Fachabteilungsschluessel-erweitert",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.de/ValueSet/dkgev/Fachabteilungsschluessel-erweitert"
        }
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}