Architecture / Decision records / ADR-HIS-060
ADR-HIS-060 Replacement paths of the runtime dependencies that could impair clinical operations¶
| Status | Accepted |
| Decided | 2026-11-25 by session RC-1-S18 |
| Record | Drafted 2026-11-25; approved 2026-11-30 by the Enterprise Architecture Board |
| Where the rule lives | platform/supply-chain/register/dependencies.toml (each entry's exitPlan, which references this record) |
Context¶
FR-ISE-SUP-001 behaviour 6 and AC-03 (DEP-005) ask for an architecture decision record for each external runtime dependency that could materially impair clinical operations. The record must identify the dependency's replacement, data export and migration approach. BR-ISE-019 adds that every third-party dependency is replaceable. The technology selections of ADR-HIS-004 to ADR-HIS-015 choose the products and name the options considered, but they give no replacement path.
The dependency register of ADR-HIS-059 marks these entries clinicalImpact = true. Each such entry is a runtime dependency of the services clinicians use, whose failure, abandonment or licence change would stop or degrade clinical work: the frameworks inside every unit, the database, the backbone, the identity provider, the secrets store, the Java runtime and base image, and the web front end. Telemetry libraries, test and build tools are not in this list. Their loss does not stop clinical work, and their register entries carry a plain exit plan.
Options considered¶
- One record per dependency (20 records). These would repeat one pattern: the units reach each product through a narrow, standard interface.
- One record for all of them, with a path for each (chosen). It is reviewed once by the board and referenced by every entry. A dependency whose path changes gets its own record, which supersedes its row here.
- No replacement path for the frameworks, on the view that replacing Spring is a rewrite. Rejected: DEP-005 asks for a path, and the module boundaries of the service template make a unit-by-unit replacement possible.
Decision¶
The approach common to all of them:
- Standard interfaces. The units reach each dependency through a standard or widely implemented interface: JDBC and SQL, the Kafka protocol and CloudEvents, OIDC and JWKS, a Vault-style secrets API, OpenJDK, and React's component model behind the design system.
- A narrow seam. The code that touches each dependency sits in one place: the service kit of ADR-HIS-044, the design system and shell of ADR-HIS-042, or the platform unit that runs the product.
- Data stays open. The HIS's data is never held in a format only the dependency reads: SQL databases, events in the envelope, schemas in
contracts/, decision records and registers in the repository. - Proven by tests. A replacement is moved in unit by unit, or service by service, behind the gateway. The contract tests and the scenario tests of the slice prove that behaviour is unchanged.
For each dependency:
| Register entry | Replacement | Data export | Migration |
|---|---|---|---|
spring-boot (Spring Boot 4) |
A Jakarta EE or MicroProfile runtime (Quarkus, Helidon) behind the same module boundaries, unit by unit; the service kit holds the framework-facing code | None held by the framework: each unit's data is in its own PostgreSQL database and its events on the backbone | Unit by unit behind the gateway, the contract tests of contracts/ proving each replaced unit |
spring-framework (Spring Framework 7) |
Replaced together with Spring Boot (see spring-boot) | None held by the framework | Together with Spring Boot, unit by unit |
spring-security (Spring Security 7) |
The runtime that replaces Spring Boot validates the same OIDC tokens (the policy decision stays in Domain 10) | None held: tokens are issued by the identity provider | Together with Spring Boot, unit by unit |
apache-tomcat (Apache Tomcat (embedded) 11) |
Jetty as Spring Boot's embedded server (a starter swap, no code change) | None held | Per unit, in one release |
jackson (Jackson 3) |
JSON-B (Eclipse Yasson) or Gson behind Spring's message converters | None held: JSON documents follow the contracts, not the library | Per unit; the contract tests prove the JSON is unchanged |
pgjdbc (PostgreSQL JDBC driver 42) |
Any JDBC driver for PostgreSQL; JDBC is a standard interface | None held: the data is in PostgreSQL | A dependency swap in the service kit, one release |
hikaricp (HikariCP 7) |
Any JDBC pool (Tomcat JDBC pool, Agroal) through Spring Boot's DataSource settings | None held | A setting and dependency change per unit |
flyway (Flyway 12) |
Liquibase, or plain SQL applied by the deployment; the migrations are plain SQL files | None held: migrations are SQL in the repository | Per unit: baseline the schema history at the current version, then migrate with the replacement |
kafka-clients (Apache Kafka clients 4) |
Any client of the Kafka protocol; the kit's outbox relay and inbox are the only users | None held: events are on the backbone | A kit change per unit; the envelope and topics stay as they are |
nimbus-jose-jwt (Nimbus JOSE + JWT 10) |
jose4j, through Spring Security's JwtDecoder interface | None held | A kit change, one release |
react (React 19) |
Preact through its React compatibility layer; screens import only the design system and the shell SDK, which hold the React-facing code | None held: the front end keeps no data of its own; it reads and writes through the units' APIs | The design system and shell first, then every workspace in one release, proven by the component and end-to-end tests |
react-aria (React Aria and React Stately 1) |
Radix UI primitives or the design system's own components behind the same @his/design-system exports | None held | Component by component inside web/design-system; screens do not change |
react-router (React Router 7) |
TanStack Router; routes are derived from the screen folders by the shell (ADR-HIS-042), not written by screens | None held | A change inside web/shell only |
postgresql (PostgreSQL 18) |
Another PostgreSQL distribution or packager of the same major version (the product is open source); a different engine is not planned, since every unit's migrations are PostgreSQL SQL | pg_dump of each unit's database, and the full exit export of CFG-ISE-028 every 12 months | Logical replication into the new installation, then switch the connection settings per unit, Tier 1 first under its RTO |
apache-kafka (Apache Kafka 4) |
Another implementation of the Kafka protocol (for example Redpanda), or Apache Pulsar with its Kafka protocol handler; units use only the Kafka client and the CloudEvents envelope | MirrorMaker 2 to the new cluster, or the domain event archive | Mirror topics with offsets, move consumers group by group, then producers through the outbox relay; units keep their outbox, so nothing is lost while they move |
apicurio-registry (Apicurio Registry 3) |
A registry with the Confluent-compatible API (for example Karapace) | The schemas are the files in contracts/; nothing is held only in the registry | Register every schema with his-contract register, then point the backbone at the new registry |
keycloak (Keycloak 26) |
Another OpenID Connect provider; units validate tokens by issuer and JWKS only (the service kit), and the policy decision stays in Domain 10 | Realm export; users and roles from the hospital directory and Domain 10's identity records | Run both issuers side by side, trust both in the kit, move clients one by one, then retire the old issuer |
openbao (OpenBao 2) |
Another secrets manager with a Vault-compatible API, or Kubernetes secrets managed by the platform with sealed encryption | Policies and metadata; secrets are rotated into the new store rather than copied | Rotate each secret into the new store under the rotation process, unit by unit, then revoke the old ones |
eclipse-temurin (Eclipse Temurin JRE 21) |
Another build of OpenJDK 21 (for example Amazon Corretto, Azul Zulu or Red Hat's build): the same specification and tests | None held | Change the FROM line of each unit's Dockerfile, pinned by digest; the image scan and tests prove it |
ubuntu (Ubuntu 24.04 LTS (base image packages) 24) |
Another base image with the same JRE (Debian, or a distroless Java image) | None held | Change the base image of each unit's Dockerfile; the image scan and tests prove it |
Rationale¶
- Every path keeps the HIS's own data in open formats, and moves only the code at one seam. A replacement can therefore be rehearsed in the integration environment before it is needed. The exit and DR exercises of CFG-ISE-028 can include one.
- None of these paths assumes a commercial product or a cloud control plane (DEP-001, DEP-006). Each names an open alternative that the hospital can run itself (DEP-008).
Risks¶
- Rehearsal. A path that has not been rehearsed may be harder than written. The heaviest are the Spring Boot family and React. The first full exit export and rehearsal of CFG-ISE-028 should take one of them.
- Secrets cannot be exported from OpenBao by design. Its path rotates secrets into the new store, which takes the rotation window of each credential.
- Keycloak has only its latest minor release supported upstream. Falling behind is itself a continuity risk, so its supported-version record asks for upgrades within three months.
Review date¶
2027-11-25, at each new material runtime dependency, or when a row's path changes.
Consequences¶
- Every register entry with
clinicalImpact = truereferences this record inexitPlan.adr, and the register check refuses one that does not (AC-03). - A new runtime dependency that could impair clinical operations needs a row here, or a record of its own, before it is approved (PR-SUP-003-3).