Implement US-12 consolidated health overview service

This commit is contained in:
Steffen committed 2026-10-05 14:36:28 +02:00
1 parent cc76c9bde4
commit 076e675c81
26 files changed
+804 -16

No files matched your search

+17 -3
View File
@@ -181,6 +181,20 @@ The US-14 tests exercise actual login, multiple and shared assignments, empty li
assigned/unassigned reads, preserved context, missing resources, every existing
write route, invalid and expired credentials, patient-role rejection, assignment
changes across restart and unavailable ownership lookup. Trend and overview
endpoints are still absent: their read routing and integration tests must be added
with US-11/US-12. Structured context remains work under US-04–US-08; professional
access already applies to whatever observation context those APIs expose.
endpoints now have equivalent owner/assignment routing and integration tests under
US-11/US-12. Structured observation context is included in authorized reads.
## US-12 Overview service access
The gateway requires `Services:HealthOverview:BaseUrl` and `Services:HealthOverview:Key`.
The latter matches Overview's `InternalAccess:GatewayKey` and protects direct access.
Overview's outgoing `Services:ApiGateway:Key` matches `InternalAccess:HealthOverview:Key`
on the gateway. Use distinct randomly generated credentials of at least 32 characters
for each direction and service; load them externally. Production endpoints use HTTPS.
The HealthOverview service identity is restricted to GET patient profiles, GET latest
overall observations and GET numerical insights. It cannot retrieve history, trends or
another overview, or perform writes. It establishes no client identity. The gateway
checks client ownership/professional assignment before forwarding the outer request.
Internal credentials are trusted service credentials and must remain inaccessible to clients.
Overview adds no authentication framework, shared runtime library or persistence.