{
  "resourceType": "StructureDefinition",
  "id": "MaiaAbrechnungsfall",
  "url": "https://tiplu.de/fhir/maia/StructureDefinition/MaiaAbrechnungsfall",
  "version": "1.0.0",
  "name": "MaiaAbrechnungsfall",
  "title": "Maia Abrechnungsfall",
  "status": "active",
  "experimental": false,
  "date": "2023-02-27",
  "publisher": "Tiplu GmbH",
  "description": "Das vorliegende Account-Profil im Use Case eines Abrechnungsfalls beschreibt alle verpflichtenden und optionalen Informationen, die ein Datenlieferant für Maia liefern muss.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Account",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Account",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Account.id",
        "path": "Account.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Account.extension:TageOhneBerechnung",
        "path": "Account.extension",
        "sliceName": "TageOhneBerechnung",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://tiplu.de/fhir/StructureDefinition/TageOhneBerechnung"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Account.extension:AbrechnungsDiagnoseProzedur",
        "path": "Account.extension",
        "sliceName": "AbrechnungsDiagnoseProzedur",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.de/StructureDefinition/ExtensionAbrechnungsDiagnoseProzedur"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Account.identifier",
        "path": "Account.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Account.identifier:Aufnahmenummer",
        "path": "Account.identifier",
        "sliceName": "Aufnahmenummer",
        "min": 1,
        "max": "1",
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "code": "AN",
                "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
              }
            ]
          }
        },
        "mustSupport": true
      },
      {
        "id": "Account.identifier:Aufnahmenummer.type",
        "path": "Account.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Account.identifier:Aufnahmenummer.system",
        "path": "Account.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Account.identifier:Aufnahmenummer.value",
        "path": "Account.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Account.status",
        "path": "Account.status",
        "mustSupport": true
      },
      {
        "id": "Account.type",
        "path": "Account.type",
        "mustSupport": true
      },
      {
        "id": "Account.subject",
        "path": "Account.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tiplu.de/fhir/maia/StructureDefinition/MaiaPatient"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}