{
  "resourceType": "StructureDefinition",
  "id": "MaiaAccountIdentifier",
  "url": "https://tiplu.de/fhir/maia/StructureDefinition/MaiaAccountIdentifier",
  "version": "1.0.0",
  "name": "MaiaAccountIdentifier",
  "title": "MaiaAccountIdentifier",
  "status": "draft",
  "experimental": false,
  "date": "2025-04-30",
  "publisher": "Tiplu GmbH",
  "description": "This extension allows to append the account identifier to encounter references. The identifier is the one referenced by the account to which the encounter belongs.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "expression": "RiskAssessment.encounter",
      "type": "element"
    },
    {
      "expression": "ServiceRequest.encounter",
      "type": "element"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "MaiaAccountIdentifier",
        "definition": "This extension allows to append the account identifier to encounter references. The identifier is the one referenced by the account to which the encounter belongs."
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://tiplu.de/fhir/maia/StructureDefinition/MaiaAccountIdentifier"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.de/StructureDefinition/identifier-abrechnungsnummer"
            ]
          }
        ]
      }
    ]
  }
}