Examples

Patient-Modul: Basic Patient

{
"resourceType": "Patient",
"id": "basic-patient-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Patient"
]
},
"name": [
{
"use": "official",
"text": "Nina Allnigel",
"family": "Allnigel",
"given": [
"Nina"
]
}
],
"birthDate": "1992-11-04"
}

Patient-Modul: Basic Coverage

{
"resourceType": "Coverage",
"id": "basic-coverage-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Coverage"
]
},
{
"url": "http://fhir.de/StructureDefinition/gkv/einlesedatum-karte",
"valueDateTime": "2025-06-07T12:25:53+02:00"
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_IsPrivateInsurance",
"valueBoolean": false
}
],
"status": "active",
"type": {
"coding": [
{
"system": "http://fhir.de/CodeSystem/versicherungsart-de-basis",
"code": "GKV"
}
]
},
"reference": "Patient/basic-patient-example"
},
"payor": [
{
"system": "http://fhir.de/sid/arge-ik/iknr",
"value": "108018347"
},
"display": "AOK Baden-Württemberg"
}
]
}

Medication-Modul: Basic Medication Request

{
"resourceType": "MedicationRequest",
"id": "basic-medicationrequest-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationRequest"
]
},
"status": "active",
"intent": "proposal",
"text": "Ibuprofen 400mg"
},
"subject": {
"reference": "https://praxis-server.example.local:10195/api/Patient/health-hub/v1/Patient/basic-patient-example"
},
"reference": "https://praxis-server.example.local:10195/api/Organization/health-hub/v1/Device/basic-partner-example"
}
}

Organization-Modul: Searchset Arzt in mehreren Betriebsstätten

{
"resourceType": "Bundle",
"id": "search-result-dr-doxx-multiple-bs",
"type": "searchset",
"total": 2,
"entry": [
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Practitioner/1",
"resourceType": "Practitioner",
"id": "1",
"meta": {
"versionId": "1",
"lastUpdated": "2024-01-01T12:00:00+00:00",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Practitioner"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_OrganizationAffiliation",
"reference": "Organization/1"
}
}
],
"active": true,
"name": [
{
"family": "Doxx",
"given": [
"Paul"
],
"prefix": [
"Dr."
],
"_prefix": [
{
{
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier",
"valueCode": "AC"
}
]
}
]
}
]
}
},
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Practitioner/2",
"resourceType": "Practitioner",
"id": "2",
"meta": {
"versionId": "1",
"lastUpdated": "2025-01-01T12:00:00+00:00",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Practitioner"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_OrganizationAffiliation",
"reference": "Organization/2"
}
}
],
"active": true,
"name": [
{
"family": "Doxx",
"given": [
"Paul"
],
"prefix": [
"Dr."
],
"_prefix": [
{
{
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier",
"valueCode": "AC"
}
]
}
]
}
]
}
}
]
}

Appointment-Modul: Book Appointment

Dieses Beispiel zeigt den vollständigen Request-Payload für POST [base]/Schedule/[id]/$book mit einem unbekannten Patienten (Contained-Referenz) und einem konkreten Service-Typ.

Ablauf vor der Buchung

  1. Kalender-Konfigurationen abrufen via POST [base]/Schedule/_search.
  2. Die gewünschte Konfiguration anhand der Schedule.id auswählen.
  3. Die verfügbaren Service-Typen aus Schedule.serviceType entnehmen — dabei das Feld id (nicht coding.code) des jeweiligen serviceType-Eintrags merken.
  4. Verfügbare Slots abfragen via POST [base]/Schedule/[id]/$availableSlots.
  5. Einen Slot auswählen und die exakten start/end-Zeiten für die Buchung übernehmen.

Beispiel-Payload

POST [base]/Schedule/a1b2c3d4-0001-0001-0001-000000000001/$book
Content-Type: application/fhir+json
{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "appointment",
      "resource": {
        "resourceType": "Appointment",
        "meta": {
          "profile": [
            "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Appointment"
          ]
        },
        "contained": [
          {
            "resourceType": "Patient",
            "id": "patient-1",
            "meta": {
              "profile": [
                "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AppointmentPatient"
              ]
            },
            "name": [
              {
                "family": "Mustermann",
                "given": ["Max"]
              }
            ],
            "birthDate": "1990-05-15",
            "telecom": [
              { "system": "phone", "value": "+491711234567" },
              { "system": "email", "value": "max.mustermann@example.com" }
            ],
            "extension": [
              {
                "url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_InsuranceType",
                "valueCoding": {
                  "code": "GKV"
                }
              }
            ]
          }
        ],
        "status": "proposed",
        "serviceType": [
          {
            "id": "svc-general",
            "text": "Allgemeine Sprechstunde"
          }
        ],
        "participant": [
          {
            "actor": { "reference": "#patient-1" },
            "type": [
              {
                "coding": [
                  {
                    "system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_AppointmentResourceType",
                    "code": "patient"
                  }
                ]
              }
            ],
            "status": "accepted"
          },
          {
            "actor": {
              "reference": "Practitioner/pt-pract-001",
              "display": "Dr. Arzt, Peter"
            },
            "type": [
              {
                "coding": [
                  {
                    "system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_AppointmentResourceType",
                    "code": "practitioner"
                  }
                ]
              }
            ],
            "status": "needs-action"
          }
        ],
        "extension": [
          {
            "url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_PartnerReference",
            "valueReference": {
              "reference": "Device/ps-MEIN-PARTNER-SYSTEM-ID"
            }
          }
        ],
        "start": "2026-04-20T09:00:00+02:00",
        "end": "2026-04-20T09:30:00+02:00"
      }
    }
  ]
}

Hinweise zu häufigen Fehlern

serviceType: id statt coding.code verwenden

Die Service-Typ-ID wird aus der Kalender-Konfiguration (Schedule.serviceType[*].id) entnommen und muss als id-Feld auf dem CodeableConcept gesetzt werden:

Korrekt:

"serviceType": [
  { "id": "svc-general" }
]

Falsch (wird ignoriert und führt zu einem Fehler):

"serviceType": [
  {
    "coding": [
      {
        "system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_ServiceTypes",
        "code": "svc-general"
      }
    ]
  }
]

Versicherungsart: Extension auf dem Patient, nicht auf dem Appointment

Die Versicherungsart (GKV/PKV) muss als Extension auf dem enthaltenen Patient angegeben werden, nicht auf dem Appointment selbst:

Korrekt — auf contained[Patient].extension:

{
  "url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_InsuranceType",
  "valueCoding": { "code": "GKV" }
}

Falsch — auf Appointment.extension:

{
  "url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AppointmentInsuranceType",
  "valueCoding": { "code": "GKV" }
}

Start- und Endzeit müssen einem Slot entsprechen

Die Zeiten in Appointment.start und Appointment.end müssen exakt den Zeiten eines zuvor über $availableSlots abgefragten Slots entsprechen. Slot-übergreifende Buchungen werden nicht unterstützt.

Practitioner und Assistant sind optional

Wenn kein bestimmter Arzt oder Assistent gewünscht ist, kann der entsprechende participant-Eintrag weggelassen werden. Die IDs (z.B. pt-pract-001) und Anzeigenamen stammen aus den actor-Einträgen der jeweiligen Kalender-Konfiguration (Schedule.actor).

Beispiel-Response

{
  "resourceType": "Parameters",
  "meta": {
    "profile": [
      "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_BookAppointment_Out"
    ]
  },
  "parameter": [
    {
      "name": "id",
      "valueId": "12345-abcde-67890"
    },
    {
      "name": "state",
      "valueCode": "booked"
    }
  ]
}

Der state ist booked, wenn die Konfiguration Termine automatisch bestätigt, oder pending, wenn eine manuelle Bestätigung durch die Praxis erforderlich ist (siehe Schedule.extension:mxxHealthHubAppointmentsRequireConfirmation).

Account-Modul: Schein GKV

Suchergebnis-Bundle für einen GKV-Ambulanzschein (Scheinart GKV-AMB, Gebührenordnung EBM). Das Bundle enthält einen Mxx_HealthHub_Account mit zugehöriger Mxx_HealthHub_Coverage (gesetzliche Krankenversicherung mit IK-Nummer und Versichertennummer).

{
"resourceType": "Bundle",
"id": "schein-gkv-example",
"type": "searchset",
"total": 1,
"entry": [
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Account/schein-gkv-account-example",
"resourceType": "Account",
"id": "schein-gkv-account-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Account"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountGebuehrenordnung",
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Gebuehrenordnung",
"code": "EBM",
"display": "EBM"
}
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountAbrechnungsbereich",
"valueString": "00"
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountScheinuntergruppe",
"valueString": "00"
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountAusstellungsdatum",
"valueDate": "2026-07-02"
}
],
{
"system": "https://fhir.medatixx.de/HealthHub/NamingSystem/Mxx_HealthHub_NS_ScheinIdentifier",
"value": "12345"
}
],
"status": "active",
"type": {
"coding": [
{
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Scheinart",
"code": "GKV-AMB",
"display": "GKV ambulante Behandlung"
}
]
},
"subject": [
{
"reference": "Patient/basic-patient-example"
}
],
"start": "2026-07-01",
"end": "2026-09-30"
},
{
"reference": "Coverage/schein-coverage-gkv-example"
}
}
],
"owner": {
"reference": "Organization/example-praxis-bsnr"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Coverage/schein-coverage-gkv-example",
"resourceType": "Coverage",
"id": "schein-coverage-gkv-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Coverage"
]
},
{
"url": "http://fhir.de/StructureDefinition/gkv/versichertenart",
"system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS",
"code": "1",
"display": "Mitglieder"
}
},
{
"url": "http://fhir.de/StructureDefinition/gkv/besondere-personengruppe",
"system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE",
"code": "00",
"display": "nicht gesetzt"
}
},
{
"url": "http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen",
"system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP",
"code": "00",
"display": "nicht gesetzt"
}
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_IsPrivateInsurance",
"valueBoolean": false
}
],
"status": "active",
"type": {
"coding": [
{
"system": "http://fhir.de/CodeSystem/versicherungsart-de-basis",
"code": "GKV"
}
]
},
"subscriberId": "A123456789",
"reference": "Patient/basic-patient-example"
},
"payor": [
{
"system": "http://fhir.de/sid/arge-ik/iknr",
"value": "108018347"
},
"display": "AOK Baden-Württemberg"
}
]
},
"search": {
"mode": "include"
}
}
]
}

Account-Modul: Schein PKV

Suchergebnis-Bundle für einen Privatschein (Scheinart PKV, Gebührenordnung GOAE). PKV-Scheine sind nicht quartalsgebunden; Account.servicePeriod kann fehlen. Die Coverage enthält die Privatversicherung als Kostenträger.

{
"resourceType": "Bundle",
"id": "schein-pkv-example",
"type": "searchset",
"total": 1,
"entry": [
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Account/schein-pkv-account-example",
"resourceType": "Account",
"id": "schein-pkv-account-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Account"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountGebuehrenordnung",
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Gebuehrenordnung",
"code": "GOAE",
"display": "GOÄ"
}
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountAusstellungsdatum",
"valueDate": "2026-07-10"
}
],
{
"system": "https://fhir.medatixx.de/HealthHub/NamingSystem/Mxx_HealthHub_NS_ScheinIdentifier",
"value": "67890"
}
],
"status": "active",
"type": {
"coding": [
{
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Scheinart",
"code": "PKV",
"display": "Privatschein (GOÄ)"
}
]
},
"subject": [
{
"reference": "Patient/basic-patient-example"
}
],
{
"reference": "Coverage/schein-coverage-pkv-example"
}
}
],
"owner": {
"reference": "Organization/example-praxis-bsnr"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Coverage/schein-coverage-pkv-example",
"resourceType": "Coverage",
"id": "schein-coverage-pkv-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Coverage"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_IsPrivateInsurance",
"valueBoolean": true
}
],
"status": "active",
"type": {
"coding": [
{
"system": "http://fhir.de/CodeSystem/versicherungsart-de-basis",
"code": "PKV"
}
]
},
"reference": "Patient/basic-patient-example"
},
"payor": [
{
{
"url": "http://hl7.org/fhir/StructureDefinition/iso21090-nullFlavor",
"valueCode": "NI"
}
]
}
]
},
"search": {
"mode": "include"
}
}
]
}

Account-Modul: Schein HzV

Suchergebnis-Bundle für einen HzV-Schein (Scheinart HZV, Gebührenordnung HZV). HzV-Scheine sind quartalsgebunden. Die Extension Mxx_HealthHub_AccountHzvInfo enthält HzV-spezifische Attribute (Präventivfall, Zielauftrag, Vertreterfall). Versicherungsseitig zählt der HzV-Schein als GKV-Coverage.

{
"resourceType": "Bundle",
"id": "schein-hzv-example",
"type": "searchset",
"total": 1,
"entry": [
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Account/schein-hzv-account-example",
"resourceType": "Account",
"id": "schein-hzv-account-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Account"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountGebuehrenordnung",
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Gebuehrenordnung",
"code": "HZV",
"display": "HzV-Vertragstarif"
}
},
{
{
"url": "isPraeventiv",
"valueBoolean": false
},
{
"url": "isZielauftrag",
"valueBoolean": false
},
{
"url": "isVertretung",
"valueBoolean": false
}
],
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountHzvInfo"
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountAusstellungsdatum",
"valueDate": "2026-07-03"
}
],
{
"system": "https://fhir.medatixx.de/HealthHub/NamingSystem/Mxx_HealthHub_NS_ScheinIdentifier",
"value": "54321"
}
],
"status": "active",
"type": {
"coding": [
{
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Scheinart",
"code": "HZV",
"display": "Hausarztzentrierte Versorgung (HzV)"
}
]
},
"subject": [
{
"reference": "Patient/basic-patient-example"
}
],
"start": "2026-07-01",
"end": "2026-09-30"
},
{
"reference": "Coverage/schein-coverage-hzv-example"
}
}
],
"owner": {
"reference": "Organization/example-praxis-bsnr"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Coverage/schein-coverage-hzv-example",
"resourceType": "Coverage",
"id": "schein-coverage-hzv-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Coverage"
]
},
{
"url": "http://fhir.de/StructureDefinition/gkv/versichertenart",
"system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS",
"code": "1",
"display": "Mitglieder"
}
},
{
"url": "http://fhir.de/StructureDefinition/gkv/besondere-personengruppe",
"system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE",
"code": "00",
"display": "nicht gesetzt"
}
},
{
"url": "http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen",
"system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP",
"code": "00",
"display": "nicht gesetzt"
}
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_IsPrivateInsurance",
"valueBoolean": false
}
],
"status": "active",
"type": {
"coding": [
{
"system": "http://fhir.de/CodeSystem/versicherungsart-de-basis",
"code": "GKV"
}
]
},
"subscriberId": "B987654321",
"reference": "Patient/basic-patient-example"
},
"payor": [
{
"system": "http://fhir.de/sid/arge-ik/iknr",
"value": "108034150"
},
"display": "AOK Baden-Württemberg (HzV)"
}
]
},
"search": {
"mode": "include"
}
}
]
}

Account-Modul: Schein BG

Suchergebnis-Bundle für einen BG-Schein (Scheinart BG, Gebührenordnung UV_GOAE_AHB oder UV_GOAE_BHB). BG-Scheine sind nicht quartalsgebunden. Die Coverage trägt die zuständige Berufsgenossenschaft als Kostenträger.

{
"resourceType": "Bundle",
"id": "schein-bg-example",
"type": "searchset",
"total": 1,
"entry": [
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Account/schein-bg-account-example",
"resourceType": "Account",
"id": "schein-bg-account-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Account"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountGebuehrenordnung",
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Gebuehrenordnung",
"code": "UV_GOAE_AHB",
"display": "UV-GOÄ Allgemeine Heilbehandlung"
}
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AccountAusstellungsdatum",
"valueDate": "2026-08-15"
}
],
{
"system": "https://fhir.medatixx.de/HealthHub/NamingSystem/Mxx_HealthHub_NS_ScheinIdentifier",
"value": "99001"
}
],
"status": "active",
"type": {
"coding": [
{
"system": "https://fhir.medatixx.de/HealthHub/CodeSystem/Mxx_HealthHub_CS_Scheinart",
"code": "BG",
"display": "BG-Schein (UV-GOÄ)"
}
]
},
"subject": [
{
"reference": "Patient/basic-patient-example"
}
],
{
"reference": "Coverage/schein-coverage-bg-example"
}
}
],
"owner": {
"reference": "Organization/example-praxis-bsnr"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.medatixx.de/HealthHub/Coverage/schein-coverage-bg-example",
"resourceType": "Coverage",
"id": "schein-coverage-bg-example",
"meta": {
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Coverage"
]
},
{
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_IsPrivateInsurance",
"valueBoolean": false
}
],
"status": "active",
"type": {
"coding": [
{
"system": "http://fhir.de/CodeSystem/versicherungsart-de-basis",
"code": "BG"
}
]
},
"reference": "Patient/basic-patient-example"
},
"payor": [
{
"system": "http://fhir.de/sid/arge-ik/iknr",
"value": "120291182"
},
"display": "Berufsgenossenschaft der Bauwirtschaft (BG Bau)"
}
]
},
"search": {
"mode": "include"
}
}
]
}