Healthcare / FHIR®

FHIR Integration Pack for TI-M Headless Client.

Connect selected FHIR/ISiK data from PVS and KIS to TI-M through an optional integration component for the local Headless Client, with versioned profile boundaries and traceable processing. Clinical logic remains with the host; Matrix messaging and E2EE remain inside Headless Core. Supported versions and approval evidence are verified per deployment.

One field · synthetic example

Patient.active: the type matters.

  1. Before "active": "true" Text string Does not meet the type rule
  2. After "active": true Boolean Meets the type rule

Only the JSON type of this supplied field is compared. Boolean false meets the same rule.

Try the local field check
Static teaching example. This is not a complete FHIR or profile check, and no service has accepted a resource.
Versioned service contracts: TI messaging, TI-Flow, DiPag and ePA use FHIR in different roles. The contract overview separates messages, Task operations, invoices and record access; the source explanations identify versions and unresolved source differences.
Validation boundary: An additional local pre-check may reject obvious structural errors. Mandatory rules for creating FHIR resources apply to clients even without that extra check. A local check alone does not establish equivalence to the Fachdienst's normative validator. The TI-Flow core IG 2.0.0 documents a separate validation interface for client development and integration; this does not expose $validate on the production Fachdienst. Published CapabilityStatement ↗.
HEADLESS CLIENT EXTENSION

One integration pack. A protected communication core.

The optional FHIR Integration Pack connects selected, versioned healthcare resource profiles to the local TI-M Headless interface. Your host retains clinical decisions, access policy and workflow logic; Headless owns the communication session and E2EE.

01

FHIR input

Explicitly agreed FHIR/ISiK profiles, version checks and mapping.

02

Local hand-off

Bounded operation identifiers, typed result states and a durable integration boundary.

03

TI-M Headless

Encrypted Matrix messaging via the local, in-process interface.

The extension is positioned as a separately scoped component. Actual supported profiles, release evidence, host interoperability and formal gematik approval are not inferred from this overview.

Integration contract

01

Capture context

Input, source, version and processing correlation are assigned to the agreed data flow.

02

Check scope

Only explicitly reviewed profiles, versions and rules are treated as supported; unknown combinations receive a defined rejection state.

03

Bound processing

Retries, effects and responsibility hand-offs stay inside the named integration boundary.

04

Trace change

Release, configuration and verification references can be associated with a concrete adapter or data-flow state.

Worked example · synthetic data

One field. A visible error. A deliberate correction.

Follow a small Patient example from the wrong JSON type to a local check result. The quotation marks make the difference.

  1. Input

    The field contains text

    The supplied active value is the string "true". The example checks this one field.

    "active": "true"
  2. Local check

    The type error becomes visible

    The string does not pass the example’s boolean-type rule. Nothing is sent to a service.

    string ≠ boolean
  3. Correction

    Change the JSON type

    Remove the quotation marks. The value is now a boolean; the changed example must be checked again.

    "active": true
  4. Result

    The local field check passes

    Only this type check has passed. The rest of the resource and any product profile remain unchecked.

    boolean → local check passed
What does this small check actually establish?

FHIR R4 defines Patient.active as an optional boolean (0..1). It describes whether the record is in active use, not the patient’s medical condition. This example always supplies the field and tests only its JSON type.

The entire local rule: typeof resource.active === 'boolean'

This is not a complete FHIR validator. Other fields, primitive extensions, profiles, terminology, permissions and service acceptance are not checked. The button neither saves nor transmits a resource.

Field definition: HL7 FHIR R4 4.0.1 · Patient.active ↗

This is not a complete FHIR validator. Other fields, primitive extensions, profiles, terminology, permissions and service acceptance are not checked. The button neither saves nor transmits a resource.

Continue to the different FHIR product contracts →
INTERACTIVE WALKTHROUGH · SYNTHETIC

From a FHIR Questionnaire to a TI-M processing state.

Choose an outcome and follow five architectural steps. This is a browser-only explanation, not a live API, FHIR validator or integration test.

Enable JavaScript to step through the synthetic scenarios. The five architecture stages remain visible below.

  1. 01FHIR inputA synthetic Questionnaire enters from PVS/KIS with a versioned resource reference.
  2. 02Profile boundaryThe integration module evaluates the agreed profile and mapping scope.
  3. 03Clinical outboxThe host records an operation identity and an intended archive-policy decision.
  4. 04Local Headless APIA typed structured-data command crosses the in-process boundary to the E2EE runtime.
  5. 05Confirmed stateThe host reconciles the observed delivery state before a workflow follows up.

Synthetic data only. No server request, Matrix transmission, persisted outbox or clinical information. A simulated result is not a certificate of delivery, FHIR conformance or gematik approval.

INTERACTIVE DATA TRACE · SYNTHETIC

Inspect what crosses each boundary — and what does not.

Follow a synthetic FHIR Questionnaire from source input to an illustrative TI-M hand-off. Inspect the bounded JSON snapshots, switch failure modes and prepare a technical evaluation request.

JavaScript enables the step-by-step inspector. The static stages and synthetic Questionnaire remain readable below; the evaluation link uses default selections.

Processing boundaries

  1. FHIR source inputSynthetic Questionnaire and source reference; no actual healthcare system.
  2. Profile boundaryCheck agreed profile/version and mapping rules; reject unknown scope.
  3. Clinical envelopeCorrelate the operation and intended archive-policy decision before dispatch.
  4. Local Headless hand-offTyped local API boundary; no Headless REST endpoint or plaintext fallback.
  5. Delivery and follow-upOnly a confirmed result could trigger a host-owned follow-up; the browser does not prove confirmation.
Illustrative data at this stepDemo payload — not executed

FHIR source input

Synthetic Questionnaire and source reference; no actual healthcare system.

JSON · Demo payload — not executed
{
    "resourceType": "Questionnaire",
    "id": "synthetic-q-001",
    "meta": {
        "profile": [
            "urn:example:itl:questionnaire:demo-v1"
        ]
    },
    "status": "active",
    "item": [
        {
            "linkId": "demo-topic",
            "text": "Synthetic example only",
            "type": "string"
        }
    ]
}
Illustrative state

Synthetic Questionnaire and source reference; no actual healthcare system.

Browser-only synthetic data. No FHIR validation, real Matrix message, ACK, persisted outbox, archive, external KMS or gematik approval is demonstrated. Clinical responsibility stays with the host. Only fixed category choices are included in an evaluation link; never enter patient information.

Example integration fields

From document metadata to structured follow-up actions.

These are possible project fields, not a commitment to a particular statutory or technical procedure.

Document & metadata flows

Treat version, provenance, status and hand-off points of selected document processes along an agreed profile.

Structured content & follow-up

Connect versioned profile references and processing status to host-owned follow-up actions without moving clinical decisions into the integration layer.

Retention & access boundaries

Represent project-specific storage, access, restriction and deletion rules as explicit responsibility boundaries.

FHIR Contracts · Scope Separation

FHIR is an interoperability standard; its profiles, guides and operations define different product contracts.

TI-Flow FHIR

FHIR Task, Flowtype and server operations in the published TI-Flow_26_3 IG; the FD validates authoritatively. Local prechecks are not validator-parity evidence.

gemProdT_TI-Flow-FD_PTV_1.0.0-0_V1.0.0 ↗

TI-M structured data

Two distinct TI-M contracts: structured application payloads carried in messaging/Matrix events; and FHIR VZD directory lookup for participant discovery. Neither is the TI-Flow Task API.

gemProdT_TI-M_Hl_Client_Pro_PTV_1.0.0-0_V1.0.0 ↗

DiPag / FHIR

DiPag uses FHIR R4 4.0.1 and de.gematik.dipag 1.0.8. RE-PS, the insured-user frontend and insurer systems have distinct roles; DocumentReference and role-specific operations define the invoice contract. Personal states and markers are not reimbursement decisions.

Draft_DiPag_26_1 ↗

ePA: Basic, MHD and Medication

Basic 1.3.2 defines shared FHIR rules, the Audit Event Service and Patient Service. MHD 1.1.3 provides read-only metadata/full-text search and document retrieval from the XDS Document Service (ITI-67/ITI-68); documents are still submitted through XDS. Medication 1.3.5 has its own data and operation contracts. Record-access permissions remain authoritative; Common versions from the PTV and package dependencies are tracked separately.

gemProdT_ePA_FdV_PTV_3.1.3-3_V1.0.0 ↗

Supported profile and operation sets must be disclosed per version and host/FD role; no full FHIR conformance claim.

Versioned integration boundary

External profiles can change. The host integrates against a controlled contract.

The public architecture separates external FHIR® contexts, a named MEMM integration boundary and host-owned workflows. Supported profiles and versions remain explicitly release- and project-specific.

01Version first

A profile name alone does not define supported scope. Version, target system and verification reference belong to the integration agreement.

02Fail closed

Unknown or unreviewed combinations should not be treated as silently compatible; they retain a defined rejection state.

03Business logic stays with the host

MEMM can bound and trace structured hand-offs without taking over clinical evaluation or organization-specific domain decisions.

Scope boundary: this model describes an architecture principle. It does not expand any FHIR®, ePA, TI, profile or interoperability conformance statement.
Specification references: Matrix, FHIR®, TI, TI-M, TI-Flow, ZETA, ePA and gematik are external standards and integration contexts. Product status & evidence →
Regulatory boundary: this public page is a product and architecture overview. It does not define a medical intended purpose and does not replace interoperability testing, a data-protection impact assessment, conformity assessment or regulatory approval.
TI-Flow_26_3 · FHIR IG

Profile families are separately versioned and validated.

Release-index references, not a coverage statement for MEMM. Operation, validation and version compatibility must be reviewed per IG and test.

common

TI Common

FHIR IG 1.4.0

Common FHIR building blocks for TI services; service-specific IGs reference profiles, terminology and shared rules as needed.

Official source ↗
core

TI-Flow Core

FHIR IG 2.0.0

Cross-workflow Task operations, role checks, state, error handling and FHIR validation between clients and the TI-Flow Fachdienst.

Official source ↗
rx

E-Rezept

FHIR IG 2.0.0

Medication prescription and dispensing across prescribing primary systems, pharmacies, insured users and the service; also mapping and asynchronous transfer to ePA Medication.

Official source ↗
bfarm

BfArM

FHIR IG 2.0.0

Separate transfer contract from the TI-Flow Fachdienst to the BfArM web service for the digital E-T-Rezept copy to the T-register; prescription workflow 166 remains in the E-Rezept IG.

Official source ↗
diga

DiGA

FHIR IG 2.0.0

Workflow 162: prescribers create a DiGA prescription, insured users assign it to the payer, and the payer provides an activation code or a reasoned response.

Official source ↗
chargeitem

ChargeItem

FHIR IG 2.0.0

Private-insurance billing information for E-Rezept: the pharmacy system supplies data; the service and authorised clients manage ChargeItem, Consent and related communication. Billing outside the service is outside this IG.

Official source ↗
epa-medication

ePA Medication Service

FHIR IG 1.3.5

Separate ePA data and interface contract for medication lists and plans. TI-Flow acts as a calling system for its asynchronous transfer; a successful TI-Flow request does not confirm ePA ingestion.

Official source ↗
Requirements in context

What the specifications mean for this architecture.

Selected requirements with a fixed source version. Open a topic for its responsibility, interface or data boundary.

FHIR payloads inside Matrix events

FHIR resources use the de.gematik.fhir event type and fhir.json: inline or as a JSON/XML file, with StructureDefinition, resource-type and FHIR-version metadata. fhir.json also requires a plaintext fallback under de.gematik.text. Plaintext describes the text representation inside the event and does not bypass its E2EE protection. Proprietary events use structuredData.json and a plaintext fallback under de.gematik.text; clients must make existing text and file fallbacks accessible even for unknown events. A clinical workflow is identified by type and version in de.gematik.fachverfahren. FHIR VZD search, TI-Flow operations and this messaging contract are separate interfaces.

Device capabilities and processing status

Client capabilities are published under de.gematik.client_capability.${device_id} in the user profile. If a dehydrated device exists, capabilities must be stored for that device when the last device logs out. Processing status uses dedicated request and response structures: from_device, optional to_device and lifetime, and a reference to the original event_id. A valid request addressed to the device must be answered. The response links success or error to the original event through m.reference; this processing status is distinct from delivery or a read receipt.

Separate HTTP report for clinical workflows

The client records metadata for sent and received clinical workflows and sends statistics to the service through POST /report. The report describes a measurement start (start) and counts (Anzahl) per Fachverfahren and Version in the optional sent and received lists. This is a separate contract alongside Matrix events and FHIR VZD search. Failed reports are buffered for at most 14 days and retried at a configurable interval or on the next active connection. Source note: the full URL in the Headless PTV points to commit f8654d7…, while its version column names dcd2d280; the link here explicitly follows the full PTV URL.

Questionnaires as a specific TI-M ePA contract

TI-M ePA clients must support de.gematik.questionnaire.generic v1 and de.gematik.questionnaire.consent v1 on the receiving side: publish capabilities immediately after login, present received questionnaires with any prefilled values for completion, return final responses in a de.gematik.fhir event, and make completed questionnaires viewable later. This requirement applies to TI-M Client ePA. It does not establish an implemented MEMM questionnaire feature set or grant access to the electronic patient record.

$create: Task, PrescriptionID and AccessCode

The prescribing primary system sends workflowType to POST /Task/$create. The service checks the permitted healthcare-organisation role in zeta-user-info.professionOID and the input, generates the AccessCode and, on success, returns a Task in draft. Task.id equals the PrescriptionID. Both identifiers and the AccessCode form part of the subsequent activation context; protect the AccessCode. An internal BPMN process has no independent authority over that Task status.

$activate: preserve the signature, check access and state

The primary system creates the profile-conformant prescription bundle with the returned PrescriptionID. The healthcare professional performs QES through the connector signature operation, using enveloping CAdES with an embedded OCSP response; authoredOn and QES creation must fall on the same date. The adapter preserves the content and signature object and wraps the signed data as an ePrescription Binary in Parameters. POST /Task/<id>/$activate requires the Task ID, AccessCode in X-AccessCode or ?ac, and the QES data. The service checks the role, AccessCode, initial draft state, signature, PrescriptionID and profile, among other conditions. Success returns Task.status = ready. FHIR error responses remain identifiable as OperationOutcome. The service’s own certificate and revocation checks, including any required OCSP addition, remain separate from the adapter’s task.

Resolve unknown outcomes under the specific operation rules

Retries and client failover follow published error handling and the specific operation. A264 distinguishes, among other cases, 4xx except 408/429 (no retry), 429 (hourly, at most ten retries) and 502/506 (retry only with client failover, at most ten retries). Both outer HTTP and inner ASL status are considered. A timeout initially leaves the outcome unknown. A rejected subsequent request does not prove that the remote Task is unchanged from its last confirmed state. For a lost $activate response, the Core IG describes repeating the call; its explanatory client note mentions 403, whereas server status requirement A175 specifies 412. That source discrepancy remains explicit and unresolved. The architecture derives neither a universal error code nor a blanket retry rule from it.

Normative validator: OCI, configuration and offline operation

The manufacturer supplies a CoreImage, combined with gematik FHIR configuration to build an OCI ValidatorImage. Packages, rules, expanded terminology and differential-generated snapshots are bound at build time. An implausible or inconsistent configuration must abort the build. Runtime connections to external package registries or terminology servers are prohibited. The component must be technically isolated and match the reference validator results; a proprietary validator is possible with that result equivalence. Internal integration may use REST or an internal protocol. The Fachdienst does not expose $validate to clients; the separate ClientValidationServer serves development and integration. Operational logs exclude the validated payload.

TI-Flow: profile validity per resource and reference time

An internal mapper pin does not determine which external profile version is valid. The TI-Flow service selects the normative reference time for each resource, such as MedicationRequest.authoredOn or MedicationDispense.whenHandedOver, and evaluates it against the current FHIR configuration. Dates and times without a time zone use German time (CET/CEST) applicable on that date. The Core IG requires exactly one meta.profile entry when mandatory, and a major.minor canonical version for generated resources; the full package version remains separately recorded. Rules for client fullUrl values, resolvable references and profiled extensions also apply. An optional pre-check does not remove these resource-creation rules.

ePA Medication: a separate asynchronous transfer

The TI-Flow Fachdienst transfers data for flowtypes 160, 166, 169, 200 and 209 to the ePA Medication Service asynchronously. Success of the original client call therefore does not confirm ePA ingestion. The Fachdienst maps prescription and dispensation data to the ePA profiles and uses the defined provision and cancellation operations. TI-Flow E-Rezept 2.0.0 governs triggering and mapping; ePA Medication 1.3.5 supplies the distinct data and interface contract. These roles require assessment separately from a general ePA FdV integration.

DiPag FHIR 1.0.8: actors and operations

The contract uses FHIR R4 4.0.1 and package de.gematik.dipag 1.0.8. RE-PS submits invoices to Patient/{id}/$invoice-submit. The insured-user frontend searches its DocumentReference resources, retrieves content through DocumentReference/$retrieve and manages an invoice process through $change-status, $process-flag and $erase on DocumentReference/{id}; AuditEvent supports the user log. RE-PS and insurer systems can retrieve documents through $retrieve using a document token. Claims and scopes remain role-specific. In the MVP, reimbursement submission uses other channels, such as frontend sharing; it is distinct from the RE-PS $invoice-submit operation.

Document tokens, profiles and markers

The document token is the identifier using system https://gematik.de/fhir/sid/dipag-token; it is distinct from the technical DocumentReference.id. The CapabilityStatement defines DocumentReference search and operations, with no direct DocumentReference read. $invoice-submit uses the incoming dipag-dokumentenmetadaten-eingang profile; the service uses dipag-dokumentenmetadaten-intern. $process-flag replaces the entire editable marker set. Omitting markers removes that set; personal and retrieved-by-insurer markers are excluded. Personal processing states are offen, erledigt and papierkorb. These states do not represent an insurer’s reimbursement decision.

Source note on the submit operation

In gemSpec_DiPag_FD 1.1.3_CC, A_25849-01 names $invoice-submit, while A_25880 names $dipag-submit. OperationDefinition Submit and CapabilityStatementFD in package 1.0.8 both use invoice-submit. This page’s operation map explicitly follows that package. The conflicting PDF wording remains documented as a source discrepancy; the package finding is not an official correction of the PDF.

Finding documents: XDS, MHD and Basic

XDS uses SOAP/WSDL, including DocumentRegistry_RegistryStoredQuery for metadata searches and DocumentRepository_RetrieveDocumentSet for retrieval. The frontend’s additional MHD consumer uses DocumentReference search and read: Find Document References (ITI-67) combines metadata with full-text search through _content. Every MHD search supplies at least patient.identifier and status; its path is /epa/mhd/api/v1/fhir/DocumentReference. Retrieve Document (ITI-68) retrieves content through DocumentReference.content.attachment.url. A missing document and a document hidden from the requester both return 404 on retrieval. Basic IG 1.3.2 describes Patient and AuditEvent among other shared requirements; Medication IG 1.3.5 describes eML/eMP. These are separate contracts. The HCSA filter searches synthetic document names and dates locally and does not implement MHD full-text search.

TI Common: product pin and package dependency

FdV PTV 3.1.3-3 names TI Common 1.3.0. The inspected de.gematik.epa 1.3.2 and de.gematik.epa.mhd 1.1.3 packages instead declare de.gematik.ti 1.3.1 as a dependency. The two Common versions are therefore documented separately. One concrete difference is in the TI Organization profile: 1.3.1 sets mustSupport=true on Organization.extension; 1.3.0 lacks this marking on that element. This matters when interpreting profile requirements and designing corresponding tests, but by itself does not prove data-exchange incompatibility. The reviewed material contains no official resolution of the version difference. It supports neither automatic substitution of the product pin nor a blanket conformance claim.

Editorial source review: 17 October 2026. The mapping explains requirements; implementation verification and product approval have their own evidence.

From architecture to decision

Turn this use case into a bounded evaluation.

Compare in-house, integration and hybrid paths without presuming an outcome. The target environment and release evidence remain to be verified.