Back to Docs

Developer Guide

Last updated

Technical documentation for developing, testing, and deploying the Health Dataspace v2 platform, an EHDS regulation reference implementation built on Eclipse Dataspace Components.

Onboarding

New to the project? Follow this quick-start path to get productive within your first day.

Full Onboarding Guide →

Working on the Project

How a change reaches the live hub, how it is tested through the APIs, and what each part of the stack is. Each page is published from the docs folder of the repository.

Development life cycle

Discussions and issues, branches and pull requests, every hook with its fix, the PR Gate and the other workflows, the deploys and the releases.

Integration tests through the APIs

The Bruno collection and the dataspace and identity checks: how to run them, and how current they are.

The stack and the development environment

EDC-V, JAD, CFM, DSP, DCP and the hub's own services in one glossary; the local stacks, the seed phases, the ports and the iPhone app.

The secure processing environment

Confidential containers with AMD SEV-SNP, the Trustee that releases a workspace's key only to the workload its permit names, and what a federated query goes through.

Contributing

Fork, branch, pull request: the short guide for outside contributors, under the Apache License 2.0, with fictional organisations only.

JAD Stack Architecture

The JAD (Joint Architecture Demo) stack runs 17 Docker Compose services from docker-compose.yml + docker-compose.jad.yml, on EDC 1.0.0-RC5 with siglet as the data plane and no CFM, as Azure does (ADR-078). Compose builds the three EDC launchers from runtimes/edc on the first run.

The JAD stack as an ArchiMate technology view: the edge, the application, EDC 1.0, the identity services and the infrastructure as bands with the run-time dependencies between them, and the three compose profiles in a band of their own
JAD stack: the 17 services of the default profile, their dependencies and the three profiles (ArchiMate 3.2, technology view)
ServicePortTraefikPurposeDepends On
Traefik:80 / :8090traefik.localhostAPI gateway & reverse proxynone
PostgreSQL 17:5432noneRuntime store (13 databases)none
Vault:8200vault.localhostSecrets, file storage; vault-unseal unseals it after a restartnone
Keycloak:8080 / :9000keycloak.localhostOIDC SSO (realm: edcv, 8 demo users)PostgreSQL
NATS:4222 / :8222nats.localhostAsync event mesh (JetStream)none
Control Plane:11003cp.localhostDSP 2025-1 + Management API v5PG, Vault, NATS, KC
sigletinternalnoneData plane: signalling, and the access tokens of pull transfersVault
Identity Hub:11005ih.localhostDCP v1.0: DID + VC store (Identity API v1)PG, Vault, KC
Issuer Service:10013issuer.localhostVC issuance + DID:webPG, Vault, KC
Simpl GA issuer:10023noneThe fictional Simpl Governance Authority's issuer (ADR-064)PG, Vault, KC
Neo4j 5:7474 / :7687noneKnowledge graph (APOC + n10s)none
Neo4j Proxy:9090proxy.localhostExpress bridge: UI ↔ Neo4j; serves pulls at /dataspace/dataCP
Next.js UI:3000 / :3003noneApplication frontendNeo4j

Plus two Vault sidecars: vault-unseal initialises and unseals Vault, vault-bootstrap writes the secrets the services read.

The pull path

A pull transfer runs like this: the consumer's control plane negotiates, siglet issues the access token, and the consumer reads the token from its siglet (GET /tokens/{participantContextId}/{transferId}) and sends it to the provider's Neo4j Proxy at /dataspace/data, which serves the dataset the token names (jad/siglet-edc1.toml). siglet keeps its tokens in memory on this stack, so a restart of siglet loses every issued token; start the transfer again.

Compose profiles

Compose profiles hold the 15 services the default stack leaves out:

  • cfm: the Connector Fabric Manager of the eclipse-cfm 0.0.7 release, its Tenant Manager (:18181), Provision Manager (:18182), agents and own NATS, seeded by scripts/seed-cfm.sh. A spike (ADR-085): on the default stack the hub provisions participants itself.
  • wellbeing: wellbeing-ga-issuer (:10053), the Governance Authority of the second data space.
  • simpl: simpl-issuer (:10043) and simpl-vault, Simpl-Open's own issuer, for the interoperability check.
  • trust-check: rogue-issuer (:10033), the untrusted issuer the identity checks must refuse.
  • federated: neo4j-spe2 (:7475 / :7688), the second SPE.

Prerequisites

Required

Optional

Port Requirements

The JAD stack requires these ports to be free: 80, 3000, 3003, 4222, 5432, 7474, 7687, 8080, 8090, 8200, 8222, 9000, 9090, 10013, 10023, 11003, 11005

Quick Start: Minimal Stack

Run Neo4j + Next.js UI with synthetic data. No JAD services needed.

1. Start Neo4j & load schema

docker compose up -d

# Initialize schema (idempotent, safe to re-run)
cat neo4j/init-schema.cypher | \
  docker exec -i health-dataspace-neo4j \
  cypher-shell -u neo4j -p healthdataspace

# Load synthetic data (127 patients, 5300+ nodes)
cat neo4j/insert-synthetic-schema-data.cypher | \
  docker exec -i health-dataspace-neo4j \
  cypher-shell -u neo4j -p healthdataspace

2. Start the UI

cd ui
npm install
npm run dev          # → http://localhost:3000

npm test             # Run the Vitest unit suite
npm run lint         # ESLint (max 55 warnings)

Quick Start: Full JAD Stack

The bootstrap script starts the 17 services in dependency order with health checks, waits for vault-bootstrap to write the secrets, loads the graph when Neo4j is empty, runs the 7-phase seed pipeline and then seeds the Simpl test Governance Authority.

1. Bootstrap everything

# Full stack; the first run also builds the three EDC launchers
./scripts/bootstrap-jad.sh

# Check status & endpoints
./scripts/bootstrap-jad.sh --status

2. Seed the dataspace

# Run all 7 seed phases (sequential, strict order)
./jad/seed-all.sh

# Resume from a specific phase
./jad/seed-all.sh --from 3

# Run only one phase
./jad/seed-all.sh --only 5

3. Access the platform

# Live UI (production build)
open http://localhost:3003

# Keycloak Admin Console
open http://keycloak.localhost  # admin / admin

# Neo4j Browser
open http://localhost:7474      # neo4j / healthdataspace

# Traefik Dashboard
open http://traefik.localhost

Common operations

./scripts/bootstrap-jad.sh --ui-only   # Rebuild UI only (fast)
./scripts/bootstrap-jad.sh --seed      # Re-run seed pipeline
./scripts/bootstrap-jad.sh --pull      # Pull latest images
./scripts/bootstrap-jad.sh --down      # Stop all services
./scripts/bootstrap-jad.sh --reset     # Stop + remove volumes

Data Seeding Pipeline

The 7-phase seed pipeline populates the dataspace with participants, credentials, policies, assets, contracts and transfers. Phases must run in strict order; each depends on the previous.

PhaseScriptTarget ServiceWhat It Does
1seed-identity-layer.shIdentity Hub, Issuer, CPThe 5 participants: contexts, DIDs, keys, a DCP MembershipCredential each (ADR-078)
2seed-ehds-credentials.shIssuer ServiceRegister EHDS credential types
3seed-ehds-policies.shControl PlaneCreate ODRL policies for all participants
4seed-data-assets.shControl PlaneRegister data assets + contracts
5seed-contract-negotiation.shControl PlanePharmaCo ↔ AlphaKlinik negotiations, transfers to STARTED
6seed-federated-catalog.shControl PlaneMedReg ↔ LMC federated catalog negotiation
7seed-data-transfer.shsiglet, Neo4j ProxyPull patients and the catalogue with siglet's tokens; record the TransferEvents

bootstrap-jad.sh loads the graph (init-schema.cypher and the files CI loads) only when Neo4j holds no patients, so a graph you filled yourself stays as it is. Phase 7 rewrites three tracked fixtures, ui/public/mock/{fhir_bundles,negotiations,transfers}.json; restore them with git checkout -- when you did not mean to refresh them. Phase 1 reports HTTP 400 for the attestation types ehds-participant and ehds-quality, which no issuer launcher registers, and for the credential types defined on them (finding 7 in #881); phase 2 registers the EHDS credential types anyway.

Important: Vault keeps its secrets on disk (volumes vault_data and vault_keys; the vault-unseal sidecar unseals it on every start), so a restart or a docker compose down keeps every secret. Only removing the volumes (docker compose down -v or ./scripts/bootstrap-jad.sh --reset) deletes them; bootstrap and seed the stack again after that. If IdentityHub logs Private key ... not found, check that health-dataspace-vault-unseal reported ready.

Project Structure

├── .github/workflows/         # CI/CD (pr-gate, test, nightly, compliance, security-scan, deploy-azure, pages, ...)
├── docs/                      # Architecture docs, journeys, ADRs, reports
├── jad/                       # JAD infrastructure configs
│   ├── keycloak-realm.json    # Keycloak realm (edcv, 8 demo users, 10 roles)
│   ├── edcv-assets/           # Contract definitions & ODRL policies
│   ├── init-postgres-edc1.sql # The databases: EDC 0.18, then the _v1 ones of EDC 1.0
│   ├── siglet-edc1.toml       # siglet, the data plane
│   ├── seed-all.sh            # The 7-phase seed, calling seed-*.sh
│   └── openapi/               # OpenAPI specifications
├── k8s/                       # Kubernetes / OrbStack manifests
├── neo4j/                     # Cypher scripts & data
│   ├── init-schema.cypher     # Constraints, indexes, vector indexes
│   ├── insert-synthetic-schema-data.cypher
│   └── fhir-to-omop-transform.cypher
├── runtimes/edc/              # EDC 1.0 launchers (ADR-076)
│   ├── controlplane/          # DSP + Management API
│   ├── identity-hub/          # DCP Identity Hub
│   └── issuerservice/         # VC issuance
├── scripts/                   # Automation (bootstrap, synthea, compliance)
├── services/neo4j-proxy/      # Express bridge (Neo4j ↔ UI)
├── ui/                        # Next.js 15 application
│   ├── src/app/               # 68 pages, 100 API routes
│   ├── src/components/        # Shared React components
│   ├── src/lib/               # auth.ts, api.ts, graph-constants.ts
│   ├── __tests__/unit/        # Vitest unit tests
│   ├── __tests__/e2e/         # Playwright specs (journeys/)
│   └── public/mock/           # JSON fixtures for static export
├── docker-compose.yml         # Minimal stack (Neo4j + UI)
└── docker-compose.jad.yml     # JAD stack: 15 services, 14 more in profiles

Neo4j Graph Schema

The 5-layer knowledge graph has constraints or indexes on 63 node labels, 3 fulltext and 3 vector indexes for GraphRAG. Schema defined in neo4j/init-schema.cypher (idempotent, safe to re-run).

The core graph schema as a UML entity relationship diagram: the dataset, the FHIR record of a patient, the OMOP counterpart of each resource, and the SNOMED, ICD-10, LOINC and RxNorm codes both are coded by
Core entity relationships: the FHIR record, its OMOP mapping and the codes (UML)

Key Conventions

  • Labels: PascalCase
  • Relationships: UPPER_SNAKE_CASE
  • Properties: camelCase
  • Always MERGE, never CREATE
  • Constraints use IF NOT EXISTS
  • 3 fulltext indexes (clinical, catalog, ontology search)
  • 3 vector indexes (384-dim, cosine, for GraphRAG)

PostgreSQL Schema

PostgreSQL serves as the runtime store for all JAD services: EDC state machines, Keycloak identity and the proxy's task store. Neo4j holds the health knowledge graph. This split follows ADR-1.

DatabaseServiceContents
controlplane_v1Control PlaneContract negotiations, transfer processes, asset definitions, policy store
identityhub_v1Identity HubDID documents, verifiable credential store, key pairs
issuerservice_v1Issuer ServiceCredential definitions, attestation records, issued VCs
simplga_v1Simpl GA issuerThe Simpl Governance Authority's credentials
rogueissuer_v1rogue-issuerThe untrusted issuer of the identity checks
keycloakKeycloakUsers, roles, realm config, sessions, client scopes
taskdbNeo4j proxyPersistent task list behind the proxy's /tasks endpoints (phase 13d)

A fresh postgres_data volume holds 13 databases. The image creates controlplane (POSTGRES_DB); jad/init-postgres.sql creates the users, keycloak and taskdb. jad/init-postgres-edc1.sql creates the _v1 databases and cfm_v007 after it, on a fresh volume only; on an existing volume, run that file once with psql as cp (see docs/gotchas.md).

Neo4j vs PostgreSQL Split

  • Neo4j: Health knowledge graph (FHIR, OMOP, ontologies), graph traversal queries, semantic search, GraphRAG vectors
  • PostgreSQL: EDC runtime state machines, OIDC sessions, credential storage, the task store; transactional ACID workloads
  • Rationale: Graph queries for clinical relationships are orders of magnitude faster in Neo4j; EDC-V requires PostgreSQL for its state machine persistence (ADR-001)

Integration Flows

Two canonical flows cover 90% of real-world EHDS integrations. Pick the one that matches your role, then use the Scalar API Reference to try each endpoint from the browser.

Data Consumer flow

Researcher / pharma / HTA body discovers and requests cross-border health data.

  1. Discover → GET /api/catalog returns HealthDCAT-AP datasets
  2. Inspect → GET /api/assets for access policies (ODRL)
  3. Negotiate → POST /api/negotiations opens a DSP 2025-1 contract
  4. Attest → POST /api/credentials/present proves role via DCP VC
  5. Transfer → GET /api/transfers/:id monitors the data plane (DSP transfer process)
  6. Analyse → GET /api/analytics or POST /api/nlq
Role: DATA_USER · Persona: Dr. Petra Lang (PharmaCo Research)

Data Provider flow

Hospital / clinic / registry publishes datasets for secondary use.

  1. Register → POST /api/participants creates a did:web identity
  2. Publish → POST /api/catalog adds a HealthDCAT-AP dataset
  3. Policy → POST /api/admin/policies creates an ODRL policy (EDC_ADMIN)
  4. HDAB approval → GET /api/compliance tracks approval state (Art. 55, Art. 68)
  5. Accept → GET /api/negotiations shows incoming contract offers
  6. Deliver → the consumer pulls with siglet's token from /dataspace/data on the provider's Neo4j Proxy
Role: DATA_HOLDER · Persona: Dr. Klaus Weber (AlphaKlinik Berlin)

API Reference

100 Next.js API routes (131 operations) proxy to Neo4j and the EDC-V services; the table is generated from ui/src/app/api/. Every route needs a session (ADR-044) except the sign-in flows, the Keycloak address for the sign-in banner, the health probe, and the Klarbefund app's account creation, which answers only a verified Apple App Attest attestation (ADR-054). Routes are disabled in the static export; mock data is served from ui/public/mock/*.json.

AreaRoutes and methodsWhat it is for
/api/activity-report
/ GET
The access body's activity report, Regulation (EU) 2025/327 Art. 59, generated from the graph
/api/admin
/audit/retention GET POST
/audit GET
/components/[name]/diagnosis GET
/components/[name]/restart POST
/components GET
/components/topology GET
/participants GET POST DELETE
/policies GET POST PUT DELETE
/spe/power POST
/spe GET
/tenants GET
Operator tools: components and their health, tenants, participants, ODRL policies, audit log and retention. EDC_ADMIN; policies and audit also HDAB_AUTHORITY
/api/agreements
/[id] GET
Contract agreements: when one was signed, until when its policy allows use, and the agreed policy
/api/analytics
/ GET
OMOP cohort analytics
/api/app-accounts
/challenge POST
/ POST
The Klarbefund app creates a sandbox account for itself, without a session but only with an Apple App Attest attestation (ADR-054)
/api/assets
/ GET POST
EDC asset registry
/api/auth
/[...nextauth] GET POST
/eudi/register POST
/eudi/start POST
/eudi/status GET
Sign-in: NextAuth with Keycloak, and the EUDI Wallet start and status calls. No session needed
/api/catalog
/jsonld GET
/ GET POST DELETE
HealthDCAT-AP dataset catalogue: list, publish, remove
/api/compliance
/applications/clock POST
/applications/complete POST
/applications GET POST
/findings/close POST
/findings/respond POST
/findings GET POST
/information-requests/answer POST
/information-requests GET POST
/permits/revoke POST
/permits POST
/requests/decide POST
/requests GET POST
/results GET POST
/ GET
/tck GET
Access body workflows: permit applications and their clock, statistical requests, permits and revocation, findings, information requests, results, and the DSP TCK results
/api/credentials
/[id] DELETE
/definitions GET
/request POST
/ GET
Verifiable credentials: list, request, revoke, and the issuer's definitions
/api/debug
/phase26 GET
Read-only check of the federated discovery plumbing. EDC_ADMIN
/api/eehrxf
/ GET
EEHRxF profile alignment
/api/federated
/ GET
Federated query across the participants' graphs
/api/graph
/expand GET
/node GET
/ GET
/validate GET
Knowledge graph: nodes, expansion, schema validation
/api/health
/ GET
Liveness and readiness probe. No session needed
/api/information
/ GET
What the access body tells the public about secondary use, Art. 58(1)
/api/jurisdictions
/ GET
How six member states implement the EHDS: access body, national law, opt-out, fees, dates (#782)
/api/keycloak-config
/ GET
Where Keycloak is, for the sign-in banner. No session needed
/api/mock-dsp
/[participant]/catalog/request GET POST
Demo DSP catalogue endpoint the catalog crawler polls. A session or the crawler's token (ADR-020)
/api/negotiations
/[id] GET
/ GET POST
DSP contract negotiations
/api/nlq
/backend GET
/ GET POST
Natural language queries through the proxy, and which NLP backend answers them
/api/odrl
/scope GET
The caller's effective ODRL scope: permissions, prohibitions, datasets, time limits
/api/overview
/ GET
The data behind the persona overview: layers, nodes, links and signals
/api/participants
/[id]/credentials GET
/[id] PATCH DELETE
/me GET
/ GET POST
Participant registry, profiles and their credentials
/api/patient
/app-devices/[deviceId] DELETE
/app-devices GET POST
/app-pairing/[pairingId] GET
/app-pairing POST
/app/account DELETE
/app/programmes/consent POST DELETE
/app/programmes/evaluation GET
/app/programmes GET
/app/programmes/transfer POST
/app/record GET POST
/app/wearables POST
/documents/lab-report GET
/documents/patient-summary GET
/documents GET POST
/ehr-sync POST
/insights GET
/observations GET
/opt-out GET POST DELETE
/profile/interests PUT
/profile GET
/programmes/consent POST DELETE
/programmes/evaluation GET
/programmes GET
/programmes/transfer POST
/research GET POST DELETE
/ GET
/wallet-link GET DELETE
The patient's record, profile, insights, research consent, EHR sync, and the Klarbefund app pairing and devices
/api/permits
/ GET
The access body's register of applications and permits, Art. 57
/api/spe-imports
/[id]/graph GET
/ GET
Transfers imported into an SPE workspace, as the graph viewer draws them (#876)
/api/tasks
/ GET
Negotiations and transfers across all participant contexts, as one task list
/api/transfers
/[id]/data GET
/[id]/import POST
/[id] GET
/ GET POST
Data transfers
/api/trust-center
/ GET
Trust centers with their governance chain and statistics

Testing

Unit Tests (Vitest)

npm test               # Run once
npm run test:watch     # Watch mode
npm run test:coverage  # With v8 coverage

E2E Tests (Playwright)

npm run test:e2e       # Headless (chromium)
npm run test:e2e:ui    # Interactive UI

# Against JAD stack
PLAYWRIGHT_BASE_URL=http://localhost:3003 \
  npm run test:e2e

EHDS dataspace checks (DSP 2025-1)

Our own checks, not a conformance kit, as the script's header says: they drive the EDC Management API with curl and never act as a DSP 2025-1 peer, covering catalog, contract negotiation and transfer process. The Eclipse DSP TCK is not run yet (#338).

./scripts/run-ehds-dataspace-checks.sh

EHDS identity checks (DCP v1.0)

Our own checks, not a conformance kit, as the script's header says: they drive the IdentityHub and IssuerService admin APIs with curl and never act as a DCP v1.0 peer, covering did:web resolution, credential presentation and issuance. The Eclipse DCP TCK is not run yet (#338).

./scripts/run-ehds-identity-checks.sh

EHDS Domain

Our own health-domain checks against the graph: the Art. 53 purposes on the approvals, HealthDCAT-AP, the EEHRxF profiles, the FHIR to OMOP mapping and the Art. 71 opt-out (the six categories).

./scripts/run-ehds-tests.sh

EHDS User Journey

The full 8-step EHDS secondary-use journey with sequence diagrams, persona mappings, and E2E test coverage:

View Full User Journey

Quality Gates

Four-stage quality pipeline aligned with BSI C5, OWASP Top 10, EHDS regulation, and WCAG 2.2 AA.

32
Pre-commit hooks
4
Pre-push gates
8
CI jobs
3
Compliance suites
View full Quality Gates documentation →

CI/CD Pipeline

CI/CD as an ArchiMate technology process view: the workstation hooks, the five pull request checks, and the deploy, the static export and the smoke test that run on main
CI/CD: the 32 pre-commit hooks and the pre-push suite on the workstation, the pull request checks, and what runs on main (ArchiMate 3.2)

test.yml: 8 jobs on every push

  • Changed paths
  • UI Tests (Vitest)
  • Neo4j Proxy Tests (Vitest)
  • SPE Loader Tests (Vitest)
  • Trustee Policy Tests (opa test)
  • ePA Ingest Tests (Vitest)
  • iOS Analyte Parity (Swift)
  • Supply-chain and posture scans

pages.yml: Deploy to GitHub Pages

  1. Use the mock fixtures committed in ui/public/mock
  2. Disable API routes (mv src/app/api /tmp/api_disabled)
  3. Build static export (NEXT_PUBLIC_STATIC_EXPORT=true)
  4. Copy test reports to output
  5. Deploy to GitHub Pages

nightly.yml: once a night when main changed

Playwright E2E with the WCAG 2.2 AA and OWASP/BSI checks against a seeded Neo4j, the Lighthouse budget, and on the full JAD stack: Image platforms, edc-images, DSP 2025-1 TCK, Eclipse DSP TCK, DCP v1.0 Compliance, EHDS Health Domain, EHDS API Collection (Bruno), Azure Demo Compliance (ACA Job), Compliance Report. Each compliance suite is held to the floor in scripts/compliance-baseline.json. Skipped when main has no commit since the last green run; a red night opens an issue (ADR-074).

e2e.yml: the specs a pull request can break

On a pull request that touches ui/, the neo4j-proxy or the seeds, scripts/select-e2e-specs.sh picks the Playwright specs the diff can break; shared code runs every spec on three shards, and drafts wait. The stack is the demo graph, the neo4j-proxy and forged sessions, with no EDC connector and no Keycloak, and scripts/run-e2e-local.sh runs the same on a laptop. A failure is red (ADR-079).

deploy-azure.yml: Azure Deployment

Builds the UI and Neo4j proxy images, rolls them out to their two Container Apps and points the off-hours jobs at the commit, signed in to Azure through OIDC federation; then runs E2E smoke, WCAG and security tests against the live Azure environment.

reset-demo.yml: Demo Reset (manual)

Restarts stateful services, re-bootstraps Vault and Keycloak, reseeds data and runs smoke tests. Manual dispatch only since 2026-09-13: the Keycloak realm now holds the Klarbefund client and real accounts, which a scheduled reset would delete.

aca-schedule.yml: Off-Hours Stop and Start

Two Container Apps jobs in Azure stop every Container App except the UI, then the PostgreSQL Flexible Server, daily at 18:13 UTC, and start them in dependency order Monday to Friday at 05:17 UTC, skipping Berlin public holidays (ADR-053). This workflow is the manual start and stop, and the fallback an hour later. See Live Stack Off Hours.

Live Stack Off Hours

Outside office hours the Azure stack is stopped, database included (ADR-053), and ehds.mabu.red answers every page with an offline notice and every data route with 503. Local development is not affected: docker compose and npm run dev know nothing of the schedule. To see the notice locally, start the UI with LIVE_DEMO_OFFLINE=true (offline-mode.ts).

Working on the live stack at night or at the weekend

# 1. Hold it: no scheduled stop before this instant (UTC). The tag holds
#    the Azure job and the workflow; the GitHub variable LIVE_DEMO_HOLD_UNTIL
#    holds only the workflow (ADR-058)
az resource update -g rg-mvhd-dev -n mvhd-ui \
  --resource-type Microsoft.App/containerApps \
  --set tags.live-demo-hold-until=2026-10-10T22:00Z -o none

# 2. Start it (any day, about ten minutes, green only if a login works)
gh workflow run aca-schedule.yml -f action=start

# 3. Optional: one catalog crawl, it runs in office hours only
az containerapp job start --name mvhd-catalog-crawler --resource-group rg-mvhd-dev

# 4. Done: release the hold and stop it again
az resource update -g rg-mvhd-dev -n mvhd-ui \
  --resource-type Microsoft.App/containerApps \
  --remove tags.live-demo-hold-until -o none
gh workflow run aca-schedule.yml -f action=stop
  • Start the stack before merging at night; a deploy expects the apps to be running.
  • A forgotten hold ends by itself: the first scheduled stop after it expires stops the stack.
  • Troubleshooting, the state check and the full procedure are in the off-hours runbook.

Latest Reports

Security and Data Protection

Tested by the project itself with tools anyone can run on the repository; every finding is fixed or named as open. The test of 2026-10-15 found ten findings, F1 to F10: after the fixes eight are closed and two are reviewed and accepted (F3, the published development default key of the local compose stack, and F4, a public search key the guideline register publishes itself). None of this is an independent penetration test or a certification. The reports are published under /docs/security.

Security test report, 2026-10-15

CodeQL, Semgrep, grype, npm audit, trivy, gitleaks, hadolint, shellcheck, the app's posture tests and the anonymous black-box checks of the live hub; findings F1 to F10 with their status after the fixes, and what an independent test would add.

Threat model: the EHDS Integration Hub

STRIDE for the hub on Azure: the data flows and trust boundaries, the four attackers, one exchange with every threat at its step, and each mitigation naming the code, the test or the decision that shows it; what the demo accepts and what real data needs, and how to verify every row.

Threat model: Klarbefund, the iPhone app

STRIDE analysis of the iPhone app; each mitigation names the code or test that shows it.

Klarbefund: self-assessment

Data protection (GDPR), BSI TR-03161 objective by objective, the EU AI Act label and the MDR status of the app, each line pointing to the code or test that shows it.

Klarbefund: evidence

The accuracy benchmark, the dictionary parity check, the run record, and what is still missing.

Klarbefund: evidence report for health insurers

The three questions an insurer asks, is the extraction right, is the data safe, is it a medical device, answered with the evidence, plus the white-label and consulting offer.

Klarbefund: running the evidence on a Mac

How to reproduce every number in the evidence on a Mac with Xcode.

BSI C5 gap analysis: the EHDS Integration Hub

The hub against the BSI C5:2020 criteria catalogue, measured against the security measures and audits of the secure processing environment in EHDS Art. 73.

Software bills of materials

One CycloneDX bill of materials per deployable part, byte-stable; the --check fails when a bill no longer matches its lockfile.

Report for health insurers, on one page

The same report as one page for a steering meeting, served by the hub

Security scans in CI

grype over the bills and trivy over the images every Monday and on a pull request that changes a dependency or an image; CodeQL for TypeScript and Swift in their own workflows

Run it again: scripts/security/generate-sbom.sh --check, scripts/security/scan-repo.sh, scripts/security/check-hub-blackbox.sh and swift test --filter SecurityPostureTests in clients/ios. Decisions: ADR-011 (security testing) and ADR-060 (the app lock; why pinning and jailbreak detection were declined).

Writing the Documentation

The documentation is part of the repository and the hub publishes it from there. Every page under /docs gets an index of its headings at the right (a disclosure at the top on a phone), and every diagram or screenshot opens full screen with zoom on click.

Choose the kind of page by its reader. A report, guide or runbook read from start to end is Markdown under docs/, which the hub publishes; a page that shows live facts, diagrams and links into the hub is a hand-written React page. Both get numbered headings and the index at the right without further work.

Published documents

  1. Write the Markdown under docs/, linking other files by relative path.
  2. Add it to DOCS in scripts/gen-docs-content.py with a section, a slug and a one-line summary. The sections are those of the docs menu: EHDS Regulation, Operations, Security and Data Protection, Klarbefund and Developer Guide.
  3. Run python3 scripts/gen-docs-content.py and stage ui/src/content/published-docs.json; pre-commit runs its --check, so the copy never drifts from the source.

Example: docs/developer/api-integration-tests.md is the page /docs/developer/api-integration-tests. A link to another published document becomes its route, any other relative link a GitHub link; embedded images are copied, and a mermaid block is drawn, as in the SDLC's lifecycle.

Hand-written pages

A page under ui/src/app/docs/ is a React component, like this guide, developer/page.tsx. Its texts go through useT() and the dictionaries in ui/src/messages/, one per language; i18n-messages.test.ts fails on a text without an entry.

DocsToc numbers every h2 and h3 and lists it in the index at the right; a heading inside a nav or a data-toc-skip block stays out, and one that shows its own number keeps it.

Diagrams in ArchiMate and UML

  1. Write the PlantUML source in docs/<area>/diagrams/ with the ArchiMate library (ArchiMate 3.2) for structure, or as a sequence diagram where the order of messages matters. Example: cicd-pipeline.puml.
  2. Render it with scripts/render-plantuml.sh (needs brew install plantuml) to img/cicd-pipeline.svg; translate its labels in cicd-pipeline.labels.json and run python3 scripts/render-plantuml-i18n.py for the German, French, Dutch and Spanish variants.
  3. Embed it with DocFigure inside a DocFigureViewer, as the CI/CD section of this page does; a click opens it full screen with zoom.

Two things the ArchiMate library rejects: a ;line: colour suffix on a band, and relations that point downward across layers, which flips the band order. Use the _Up, _Right and _Left variants of each relation.

Screenshots

The user guide's previews are taken from the public demo by capture-guide-screenshots.spec.ts (CAPTURE_GUIDE=1, one WebP per page, SCREENSHOT_LANG=de for a language) and shown through LocalizedImage; gen-localized-images.py lists the translated variants.

Klarbefund's come from a simulator through clients/ios/Scripts/capture-screenshots.sh with the fictional dev dataset (-MBDevData -MBShot <screen>), at half resolution under docs/klarbefund/img/, as in the Klarbefund guides. No real report, value or organisation may ever appear in one.

Facts and dates

Numbers on these pages (routes, services, hooks, versions) come from ui/src/app/docs/docs-facts.json, written by scripts/gen-docs-facts.py from the repository; the same script keeps each page's last-updated date, and its check fails a commit whose page changed without it. Run python3 scripts/gen-docs-facts.py after editing a docs page.

Example: the job list under CI/CD Pipeline is facts.workflowJobs, so a new job in test.yml appears there by itself.

Translations

Every page follows the language picker (ADR-071). A published document's translation is docs/i18n/<lang>/<path>, stamped with the English file's hash by gen-docs-content.py --stamp, for example the German article numbering; --report-i18n lists what is missing or stale. A page's texts live in the dictionaries, a diagram's in its .labels.json, a screenshot's variant in a <lang>/ folder next to it.

Data Flow

The data pipeline as a sequence diagram: Synthea loads 127 patients into Neo4j, the Cypher transform maps them to OMOP and copies the codes, then the UI asks the proxy, which runs parameterised Cypher and answers JSON
Data pipeline: Synthea to Neo4j, then the proxy to the UI (sequence)

Release Notes

The version is the one in ui/package.json; when a merge to main changes it, release.yml tags it and publishes the release. How releases and the TestFlight builds of the iPhone app work

All releases

Conventions

Related Documentation