{
  "resourceType": "StructureDefinition",
  "id": "Ambulanz",
  "url": "https://tiplu.de/fhir/StructureDefinition/Ambulanz",
  "version": "2.0.2",
  "name": "Ambulanz",
  "title": "Ambulanz",
  "status": "active",
  "date": "2026-04-02",
  "publisher": "Tiplu GmbH",
  "contact": [
    {
      "name": "Tiplu GmbH",
      "telecom": [
        {
          "system": "email",
          "value": "fhir@tiplu.de"
        }
      ]
    }
  ],
  "description": "Dieses Profil bildet die Ambulanz in einem Krankenhaus ab und wird von der KBV-Basis-Organisation abgeleitet. ",
  "copyright": "Tiplu GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization.extension",
        "path": "Organization.extension",
        "min": 1
      },
      {
        "id": "Organization.extension:Gueltigkeit",
        "path": "Organization.extension",
        "sliceName": "Gueltigkeit",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/organization-period"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Organization.extension:Gueltigkeit.value[x]",
        "path": "Organization.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "Organization.extension:Gueltigkeit.value[x].start",
        "path": "Organization.extension.value[x].start",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.extension:Gueltigkeit.value[x].end",
        "path": "Organization.extension.value[x].end",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:Kuerzel",
        "path": "Organization.identifier",
        "sliceName": "Kuerzel",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://tiplu.de/fhir/StructureDefinition/identifier-kuerzel"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:Kuerzel.type",
        "path": "Organization.identifier.type",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:Kuerzel.system",
        "path": "Organization.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:Kuerzel.value",
        "path": "Organization.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Organization.type.coding",
        "path": "Organization.type.coding",
        "min": 1
      },
      {
        "id": "Organization.type.coding:OrganizationType",
        "path": "Organization.type.coding",
        "sliceName": "OrganizationType",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "code": "ambulanz",
          "system": "https://tiplu.de/fhir/CodeSystem/Organisationstyp"
        },
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://tiplu.de/fhir/ValueSet/Organisationstyp"
        }
      },
      {
        "id": "Organization.type.coding:Ambulanztyp",
        "path": "Organization.type.coding",
        "sliceName": "Ambulanztyp",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_VERSORGUNGSBEREICH"
        }
      },
      {
        "id": "Organization.type.coding:Ambulanztyp.system",
        "path": "Organization.type.coding.system",
        "patternUri": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSORGUNGSBEREICH",
        "mustSupport": true
      },
      {
        "id": "Organization.type.coding:Ambulanztyp.code",
        "path": "Organization.type.coding.code",
        "mustSupport": true
      },
      {
        "id": "Organization.type.coding:KVFachgruppe",
        "path": "Organization.type.coding",
        "sliceName": "KVFachgruppe",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_VDX_FACHGRUPPE"
        }
      },
      {
        "id": "Organization.type.coding:KVFachgruppe.system",
        "path": "Organization.type.coding.system",
        "patternUri": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_VDX_FACHGRUPPE",
        "mustSupport": true
      },
      {
        "id": "Organization.type.coding:KVFachgruppe.code",
        "path": "Organization.type.coding.code",
        "mustSupport": true
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "mustSupport": true
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "short": "Zuordnung zum Rechnungssteller",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tiplu.de/fhir/StructureDefinition/Rechnungssteller"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}