{
  "resourceType": "StructureDefinition",
  "id": "a8139a40-f1e3-4d22-aa72-de442f963dfd",
  "meta": {
    "lastUpdated": "2022-11-16T16:43:32.061235+00:00"
  },
  "url": "http://fhir.de/StructureDefinition/Abrechnungsbundle",
  "version": "1.0.0",
  "name": "Abrechnungsbundle",
  "status": "active",
  "experimental": false,
  "date": "2022-11-16T16:51:16.1537077+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "resource.id"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Abrechnung",
        "path": "Bundle.entry",
        "sliceName": "Abrechnung",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Abrechnung.link",
        "path": "Bundle.entry.link",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"
      },
      {
        "id": "Bundle.entry:Abrechnung.resource",
        "path": "Bundle.entry.resource",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Abrechnung.resource:Abrechnung",
        "path": "Bundle.entry.resource",
        "sliceName": "Abrechnung",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://fhir.de/StructureDefinition/invoice-de-art-abrechnung"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Abrechnung.resource:Abrechnungsposition",
        "path": "Bundle.entry.resource",
        "sliceName": "Abrechnungsposition",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://fhir.de/StructureDefinition/chargeItem-de-art-abrechnung"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Patient",
        "path": "Bundle.entry",
        "sliceName": "Patient"
      },
      {
        "id": "Bundle.entry:Patient.link",
        "path": "Bundle.entry.link",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"
      },
      {
        "id": "Bundle.entry:Patient.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Organisation",
        "path": "Bundle.entry",
        "sliceName": "Organisation"
      },
      {
        "id": "Bundle.entry:Organisation.link",
        "path": "Bundle.entry.link",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"
      },
      {
        "id": "Bundle.entry:Organisation.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Practitioner",
        "path": "Bundle.entry",
        "sliceName": "Practitioner"
      },
      {
        "id": "Bundle.entry:Practitioner.link",
        "path": "Bundle.entry.link",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"
      },
      {
        "id": "Bundle.entry:Practitioner.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}