Matrix for healthcare and the TI-Messenger standard

German healthcare messaging is built on Matrix through gematik's TI-Messenger. This page explains what the specification adds to a homeserver and what providers and vendors elsewhere should plan for.

On this page

Why Matrix is the base for healthcare messaging in Germany

TI-Messenger is a healthcare messaging standard built on Matrix, and a Matrix homeserver on its own does not make a clinical chat deployment compliant or interoperable. gematik describes TI-Messenger as a standard that lets healthcare personnel in Germany communicate across organizations through GDPR-conformant messaging services. Its architecture defines a Messenger-Service made of a Messenger-Proxy and a Matrix homeserver that offers the Client-Server and Server-Server APIs. The standard, not the homeserver product, sets the functional and interoperability rules that a provider or vendor must meet.

For an organization outside Germany, the practical consequence is that Matrix is the transport and protocol layer, while the requirements that matter for clinical use sit in the TI-Messenger specifications, which supplement the TI-Messenger ePA and TI-Messenger Pro documents. The repository references Matrix Client-Server, Server-Server and Push Gateway API version 1.17, so check which API versions your chosen homeserver and clients implement before you assume interoperability. Ask whether your homeserver and client have been tested against the gematik specifications, and whether the Messenger-Proxy is part of your scope or someone else's.

Outside Germany, the equivalent questions are not answered by a standard badge. The HIPAA Security Rule, the GDPR, and NIS2 (which lists health as a sector of high criticality) each set their own duties for the same chat data. Document which regulation applies to each party, which organization is the controller or covered entity, and how business associate or processor terms are written. Treat the choice of Matrix as a starting point for the design, and plan separately for identity, retention, encryption, and audit evidence.

Healthcare requirements and what they mean for the build

This table compares the healthcare messaging requirements that shape a Matrix build in Germany, the US, the EU and related regimes, and what each one asks the platform team to provide. Read each row as a control question: the source tells you who is bound, and the last column tells you what to design, configure or evidence. Confirm applicability with your legal and compliance teams before you fix the scope.

RequirementSourceWhat it means for the build
Interoperable messaging via GDPR-conformant servicesgematik api-ti-messenger repositoryThe TI-Messenger is built on Matrix, so a German healthcare build starts from a Messenger-Service (Messenger-Proxy plus Matrix homeserver) and must follow the published specification, not a generic Synapse setup.
Messenger-Service architecturegematik api-ti-messenger repositoryPlan the Messenger-Proxy and homeserver as separate components with their own deployment, logging and failure modes. Confirm the current specification version with gematik before you pin client and server releases.
HIPAA Security Rule scope45 CFR 164.302, Part 164 Subpart CApplies to covered entities and business associates for all ePHI they create, receive, maintain or transmit. A US chat deployment that carries patient information is in scope regardless of how the server is hosted.
HIPAA technical safeguardsAppendix A to Subpart C of Part 164Unique user identification and emergency access are required. Automatic logoff and encryption are addressable, so document the decision and the compensating control for each. Map SSO and session settings to these items.
Business associate terms45 CFR 164.314(a)(2)(i)If DeployOpen or another partner handles ePHI during a build or support, the contract must require Security Rule compliance, flow terms to subcontractors and require incident reporting.
No HIPAA certificationHHS FAQ 2003There is no HIPAA certificate to buy. Ask any vendor for evidence of controls and test results, not a HIPAA certification.
Pending Security Rule revision90 FR 898; Unified Agenda RIN 0945-AA22A proposed revision was published in January 2025 and no final rule had been published as of October 2026. Design logging, encryption and access evidence so it can be extended if the rule changes.
GDPR Article 32 and 34 security and breach dutiesRegulation (EU) 2016/679, Articles 32 and 34Security of processing and breach notice to data subjects apply to EU clinical chat. Require encryption in transit, MFA for remote access and access limited to the care team's need to know.
CNIL fine on Hopital Prive de la LoireCNIL decision of 3 September 2026, EUR 500,000External access without VPN or multi-factor authentication, and access control that ignored the care team's need to know, led to a fine. Put federation access, remote login and room membership rules into the design review.
NIS2 health sector coverageDirective (EU) 2022/2555, Annex IHealthcare providers, medical device makers and related sectors are listed as high criticality. Confirm whether your entity is in scope and what incident and supply chain duties follow for the messaging platform.
European Health Data SpaceRegulation (EU) 2025/327EHDS sets rules for health data use and exchange in the EU. Check which data categories and access rights apply before you decide what chat may carry and how long it is retained.

Where the Messenger-Service sits in the provider network

The diagram starts with clinicians using a client that talks to the Messenger-Proxy, which calls the Matrix homeserver. The homeserver keeps its state in PostgreSQL and can pass part of its traffic to optional workers. Sign-in comes from an identity provider outside the homeserver, so access policy stays in one place. The federation listener is the only path to other organizations' homeservers. Check the boundary around it: which domains are allowed, how the listener is firewalled, and what data leaves the provider network.

Clients, Messenger-Service components and the federation boundary in a provider network.

Synapse and MAS settings that matter for clinical chat

Clinical chat depends on a few Synapse and MAS decisions made before the first user logs in: how the server is named, which servers it talks to, how staff sign in, and which runtime floors the platform needs. The cards below cover those decisions, plus the scaling and packaging choices that follow from them.

Server name and delegation

The server_name setting fixes how user IDs such as @user:example.com and room identifiers are written, and it cannot be changed later without rebuilding identities. Federation runs on port 8448 by default, but delegation can serve user IDs from a host on port 443 while the homeserver runs elsewhere. Confirm the name, the delegation records and the certificate chain with the TI-Messenger specification and your own network team before any clinician is onboarded.

Synapse federation docs

Federation whitelist and listener firewalling

The federation_domain_whitelist setting limits federation to listed domains, and an empty list turns federation off entirely. The Synapse documentation also recommends firewalling the federation listener, so the allowlist is enforced at the network layer as well as in the application. Agree the partner domains with the clinical and legal owners, and test that an unlisted domain is refused.

Synapse configuration manual

SSO through an upstream identity provider

Synapse can sign users in through oidc_providers, saml2_config or CAS, while Matrix Authentication Service uses upstream OpenID Connect providers such as Keycloak, Microsoft Entra ID or Authentik. MAS does not support SAML directly and suggests a bridge such as Dex. Choose one path, map roles and deprovisioning to the hospital identity system, and confirm that departing staff lose access on the same day their account is disabled.

MAS upstream identity docs

PostgreSQL and Python runtime floors

PostgreSQL 14 or newer is required from Synapse 1.143.0, and Synapse 1.142.0 and later require Python 3.10 or newer. The upgrade notes also warn that rolling back can be difficult because of schema changes, and that support is dropped when Python or PostgreSQL reach upstream end of life. Plan database and OS upgrades in the same change window as Synapse upgrades, and take a restorable backup before each one.

Synapse upgrade notes

Workers and Redis for peak load

Synapse scales by splitting work across worker processes, with Redis relaying replication between the main process and all workers. The generic worker handles client, federation and event traffic, so a single-process setup can become a bottleneck during shift changes or outbreaks of messages. Ask the platform team to size workers from measured load, and to confirm Redis high availability before it carries clinical traffic.

Synapse workers docs

ESS TI-Messenger edition as a packaged option

Element Server Suite includes a TI-Messenger edition for German healthcare, deployed on Kubernetes with Helm charts and bundling Synapse Pro, MAS, LDAP and SCIM integration with auditing. Packaging can shorten the build, but it does not replace the specification. Confirm with Element and gematik exactly which components, versions and configuration the edition certifies, and where your own settings must still be applied.

Element Server Suite

Providers versus vendors evaluating Matrix outside Germany

A provider that runs its own Matrix homeserver is usually the controller of the chat data it holds, and it carries the security obligations directly. Under the HIPAA Security Rule, a covered health care provider must apply the administrative, physical and technical safeguards to all electronic protected health information it creates, receives, maintains or transmits, whether the server sits on premises or in a cloud account. Where a hosting partner or managed service handles that data, the arrangement needs a business associate contract under 45 CFR 164.314(a)(2)(i), and the provider signs it as the covered entity. For EU providers, the GDPR makes the provider the controller and places security of processing under Article 32.

  • Data control: Confirm which entity is the controller for messages, media, server logs and backups.
  • Business associate contracts: Require one for any partner that can access ePHI, with flow-down to subcontractors.
  • Incident reporting: Write the reporting path and timing into the contract, not only into internal policy.
  • Technical safeguards: Map unique user identification, automatic logoff and encryption to your Synapse and identity settings.
  • Access control: Align room and account access with the care team's need to know.

Confirm with counsel and your privacy office which regime applies to each site before you write the contract.

Rollout sequence for a Matrix clinical chat deployment

This sequence moves a clinical chat deployment from confirming the governing specification to a supervised care team pilot and steady operation, with a checkpoint at each stage so that no later step begins on an unverified assumption.

  1. Confirm the applicable standard and version

    Confirm with the specifying body which TI-Messenger specification, version and Matrix API version apply to your deployment, since the gematik repository references Matrix Client-Server, Server-Server and Push Gateway API version 1.17 and the documentation supplements the TI-Messenger ePA and TI-Messenger Pro specifications. Record which Messenger-Service components you must provide, including the Messenger-Proxy and the homeserver. Done when the team holds a written list of required components and the version pins they must meet.

  2. Design server name and federation policy

    Fix the server_name early, because it determines how user IDs and room identifiers are issued and cannot be casually changed later. Decide whether federation is disabled, limited to a federation_domain_whitelist of partner organizations, or open, and plan delegation so user IDs resolve on port 443 while federation listens on port 8448 behind a firewall. Done when the policy is signed off by the security owner and the DNS and delegation records are documented.

  3. Build identity and single sign-on

    Connect the homeserver to the clinic or provider identity source. Synapse supports OpenID Connect, SAML2 and CAS directly, while Matrix Authentication Service integrates with OpenID Connect upstream providers and does not support SAML directly, so a bridge such as Dex is needed for SAML or LDAP. Confirm how deprovisioning removes access for staff who leave. Done when a test account can sign in through the chosen path and a disabled test account is refused.

  4. Configure the homeserver and workers

    Install Synapse on PostgreSQL, which the documentation recommends for production, using a version that meets the platform floors in the current upgrade notes. Add worker processes only when load requires them, using Redis for replication between the main process and workers. Keep the admin and replication listeners off public networks. Done when the homeserver starts cleanly, the database schema is at the expected version and the worker layout is written down.

  5. Run security and interoperability testing

    Test the deployment against the controls you must evidence, including access control on the federation listener, registration settings, admin exposure, backup and restore, and audit logging. Run interoperability tests against the Messenger-Service in the specified configuration and against any partner server you intend to federate with. Record failures and retest after each fix. Done when every finding has a documented disposition and the interoperability results are retained with the version record.

  6. Pilot with a care team

    Run a supervised pilot with one care team using real workflows but a defined set of users, rooms and retention rules agreed in advance. Collect feedback on login, notifications, device handling and message routing, and confirm that clinicians can reach the people they need under the federation policy. Done when the pilot owner signs a go or no-go decision that lists the open issues and the owner of each.

  7. Operate with backups and upgrades

    Start operations with tested database backups, a monitored worker and Redis layer, and a scheduled upgrade process. Read every set of Synapse upgrade notes before each upgrade, because the notes warn that rolling back can be difficult due to database schema changes between releases, so take a verified backup before each change. Done when a restore has been rehearsed on a separate system and the upgrade runbook names an owner and a test environment.

Compliance controls to evidence for clinical messaging

Clinical messaging answers to several rulebooks at once, and each one asks for different evidence. The cards below separate the control frameworks that apply to a Matrix deployment, what each one actually requires, and where DeployOpen prepares the technical evidence while independent assessors and regulators make the final determination.

HIPAA technical safeguards

The HIPAA Security Rule's technical safeguards in 45 CFR 164.312 carry 7 implementation specifications. Unique user identification and emergency access procedures are required, so every clinician account on the homeserver and identity provider must map to one person, and break-glass access must be documented and tested. Automatic logoff and both encryption specifications are addressable, meaning you must decide, document and justify how each is met.

Appendix A text

HITRUST as a voluntary assessment

HITRUST is a privately maintained assessment framework, not a HIPAA certification. HHS states that no Security Rule standard requires certifying compliance and that private certifications do not stop HHS from finding a violation later. Providers or vendors who choose a HITRUST assessment should confirm the assessment type, scope and validity period with their assessor before they treat it as a procurement signal.

HHS certification FAQ

GDPR Article 32 access control

Article 32 requires controllers and processors to apply appropriate technical and organizational measures to the security of processing. The CNIL fined Hopital Prive de la Loire EUR 500,000 on 3 September 2026 under Articles 32 and 34, citing external access to a patient record system without VPN or multi-factor authentication and access rules that ignored the care team's need to know. For Matrix, this points to MFA on every remote path, role-based room and admin access, and reviewed access rights.

GDPR text

GDPR Article 42 voluntary certification

Article 42 certification is voluntary, lasts for at most three years and is issued by accredited certification bodies or supervisory authorities. It does not reduce the controller's or processor's responsibility for compliance. The GDPR itself requires no audit, attestation or certificate, so treat any Article 42 scheme as one input to your evidence file, and confirm with the certification body which scope it covers before citing it to a customer.

Maximum certificate term
3 years

21 CFR Part 11 electronic records

21 CFR Part 11 applies when electronic records or signatures replace paper records required under FDA predicate rules, which is common in clinical research and some manufacturing settings but not in every care-team chat. Where it applies, expect controls on audit trails, record retention, signature linking and system validation. Confirm with your quality or regulatory team whether any Matrix room holds records in scope before building those controls into the deployment.

21 CFR Part 11 text

Evidence DeployOpen prepares

DeployOpen configures, documents and tests the controls above on infrastructure you control, then assembles the evidence your compliance team, auditors and customers ask for, such as configuration baselines, access reviews, logging settings and test results. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors, certification bodies and regulators make those determinations, so agree the evidence list and its owner in the written scope before work starts.

Questions buyers ask about Matrix for healthcare

Is TI-Messenger required for clinical chat outside Germany?

The sources describe TI-Messenger as a messaging standard for healthcare personnel in the German healthcare sector, so it is the reference point for German providers and their vendors. Whether a provider elsewhere must follow it depends on its own regulator, contracts and national rules, which should be confirmed with legal counsel and the relevant health authority. Outside Germany, the obligations most often in scope are data protection and security rules such as the GDPR in the EU and the HIPAA Security Rule in the United States. HIPAA has no certification, and GDPR certification under Article 42 is voluntary. Matrix is an open protocol, so a deployment outside Germany can use it without adopting the TI-Messenger specification, but it should confirm which controls its own regulator expects.

What drives the implementation effort for a Matrix healthcare deployment?

The main drivers are how far the deployment extends beyond a single homeserver and how much identity, audit and compliance work surrounds it.

  • Architecture: a single Synapse process or workers with Redis, and whether the server runs on Kubernetes through Element Server Suite.
  • Identity: single sign-on through Matrix Authentication Service with an upstream provider such as Keycloak or Microsoft Entra ID, or SAML through a bridge, since MAS does not support SAML directly.
  • Database: PostgreSQL, which Synapse recommends for production, with backup and restore testing.
  • Standard scope: whether the TI-Messenger proxy and interoperability requirements apply to the design.
  • Evidence: access reviews, logging, retention and erasure controls that the security and privacy teams will ask to see.
What does the provider's team need from our staff?

The provider's engineers build, configure and document the platform, but your team supplies the access and decisions that the build depends on. You need access to the cloud accounts, data centers or isolated networks where the server will run, DNS and certificate control, and administrator access to the identity provider. The server name is a foundational decision, because it fixes how users and rooms are identified, so it should be settled early. Name owners on the clinical, security and privacy sides who can approve each phase. Ask the provider to state who performs upgrades after handover, since Synapse upgrade notes warn that rolling back can be difficult because of database schema changes.

Is a Matrix homeserver alone enough for clinical messaging?

No. In the TI-Messenger architecture, a Messenger-Service consists of a Messenger-Proxy and a Matrix homeserver that offers the Client-Server and Server-Server APIs. The TI-Messenger documentation also supplements the TI-Messenger ePA and TI-Messenger Pro specifications, and its repository references Matrix Client-Server, Server-Server and Push Gateway API version 1.17. A plain Synapse installation provides the protocol, rooms and federation, but it does not provide the proxy or the standard's requirements on its own. Element offers ESS TI-Messenger for German healthcare, which is one route to a packaged starting point. Before choosing a route, confirm the required API versions and the components with the standard's current documentation, which is available in the gematik api-ti-messenger repository.

How should federation be limited on a healthcare Matrix server?

Start by listing only approved partner domains in federation_domain_whitelist, because an empty list disables federation entirely. Synapse documentation also recommends firewalling the federation listener, which uses port 8448 by default, so that only the approved routes can reach it. Delegation can serve user IDs such as @user:example.com from another host on port 443, which keeps identifiers clean while the federation listener stays restricted. Decide which partner organizations are included, whether federation is disabled for an initial phase, and who approves each addition. The Synapse federation documentation covers the mechanics, but the policy itself is a governance decision that the clinical and security owners should sign off in writing.

How long does a pilot for Matrix clinical chat take?

The supplied sources do not give a pilot duration, so no figure is stated here. The length depends on how many environments are built, whether identity integration is in the first phase, whether TI-Messenger conformance is in scope, and how long clinical, privacy and security approvals take. Ask the provider for a written plan that shows phases, the work in each phase, exit criteria and who signs off each one. DeployOpen's engagements are typically fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so the plan should be part of the quote rather than an informal estimate.

What does a Matrix healthcare deployment cost, and what recurs?

The cost has four main parts: the implementation work, the infrastructure you run the server on, the software licensing, and ongoing support. Synapse is licensed under AGPL-3.0, and Element sells commercial licenses, so ask whether the quote assumes the open-source license or a commercial one. Element announced on December 13, 2023 that future Synapse contributions would be licensed under AGPLv3 and that it had begun selling AGPL exceptions, which is relevant when comparing options. One-time costs include design, build, migration and documentation. Recurring costs include hosting, upgrades, monitoring, backups, security testing and any support retainer. Ask for a quote that separates these lines, names who is paid for each, and states which upgrades are included.

How DeployOpen scopes a healthcare Matrix implementation

DeployOpen plans, implements, hardens, documents and supports self-hosted Matrix inside your own infrastructure, including cloud accounts, data centers or air-gapped networks. For healthcare work, we start from the TI-Messenger requirements and your own clinical and compliance obligations, then agree the scope in writing before any build begins.

How we scope

  • Confirm which TI-Messenger specification and API versions your target environment requires before choosing components.
  • Map which homeserver, Messenger-Service components and identity providers fit your hosting and certification plan.
  • Record federation boundaries, data residency, retention and encryption requirements in the written scope before any work starts.

How we build

  • Deploy the homeserver, PostgreSQL, reverse proxy and federation listener in your infrastructure with the server name and delegation planned in advance.
  • Connect single sign-on through your identity provider and configure access control around care team membership rather than broad access.
  • Test federation restrictions, audit logging, backups and the Messenger-Service path end to end, then fix and retest the findings.

How we hand over

  • Deliver architecture, configuration, runbooks and an evidence pack that your security and compliance teams can review.
  • Walk your operations staff through upgrades, rollback limits, backups and restore testing before handover.
  • Document which compliance controls are supported by the setup, noting that independent auditors and certification bodies issue any audit reports or certifications.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover.
  • Plan Synapse and MAS upgrades by reading each set of upgrade notes before changing production.
  • Re-run security tests after significant configuration changes, new integrations or upstream releases that affect your deployment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.