Files

5.6 KiB
Raw Permalink Blame History

Health App architecture proposal

Complete proposed design — 2026-10-13. Select a modular monolith: one HTTPS application process with explicit API/access, Profile, Observations, Analytics, Overview and Guidance modules; one PostgreSQL database with owned health schemas; a transient administrative installation utility.

The choice follows comparison with the existing five-service architecture and a reduced service topology. Energy efficiency is an important objective, expressed as reasoned hypotheses with counter-effects, not measured savings. Assumptions: modest interactive synthetic prototype workload, Linux/systemd default, no established independent-feature scaling or isolation requirement. Capacity, physical hosting, clinical review and production recovery targets remain recorded unknowns.

The user selected clarification 3, authorizing evaluation of all topologies and documentation of necessary US-16 revisions. The proposal preserves US-01–US-15 and common functional behaviour. It does not satisfy original US-16 independent feature-service installation/topology clauses; every affected criterion is explicitly recorded in the revision and traceability register. No original requirement has been edited.

Documents

Artifact Purpose
Software architecture Authoritative boundaries, responsibilities, contracts, domain, data/transactions, security, failures, deployment and runtime specification
Input inventory All 63 supplied files, purpose and authority; application source links not followed
Requirements and constraints Binding behaviours, selected/reconsidered design decisions, assumptions and unknowns
Requirements traceability 146 individual common/US-01–US-15 acceptance entries, including outline cases; story/functional-rule mappings and explicit gaps
Architectural decisions Three feasible alternatives, selection rationale and eight significant ADRs
Energy hypotheses Anticipated mechanisms/effects, assumptions/dependencies and counter-effects
Risks and open questions Operational, clinical, behavioural and architectural trade-offs
US-16 revision All nine original deployment ACs and installer-addendum compatibility/revision obligations
Diagram guide and coverage View conventions, domain and conceptual-class coverage; cross-page references
Validation Completed artefact, coverage, diagram, link and preservation verification; limits

Editable diagrams

Native uncompressed .drawio files contain individually editable text, shapes and connectors. Open directly in diagrams.net/Draw.io; page tabs separate views. Classes are design concepts, not existing source declarations.

File Pages
System context Actors, system boundary and reviewed external reference sources
Logical components One-process modules, responsibilities and typed interfaces/dependencies
Domain model Identity/access; observations/selection; derived views/clinical provenance
Conceptual classes Access/Profile; Observations; Analytics; Overview/Guidance — 32 individual classifiers
Data ownership Owned schemas, controlled patient reference, runtime role and operational state
Deployment Default local Linux and optional separate database host
Sequences Login/create; actual-owner read/correction/deletion; snapshot calculations/overview; installation

Quality gate

  • Every functional requirement, user story and acceptance criterion is traceable; original US-16 incompatibilities and implementation acceptance dependencies are explicit. No requirement was silently omitted or changed.
  • Significant supplied constraints are classified as mandatory, assumed or optional; explicit user clarification and uncertainties are recorded.
  • Architecture satisfies the clarified design scope; decisions are justified independently of resemblance to existing designs. Original US-16 topology remains an acknowledged incompatibility.
  • Authoritative specification covers required concerns and agrees with all diagrams.
  • Domain and conceptual class views cover relevant concepts/relationships without source reverse engineering or unnecessary code-level detail.
  • Every component has clear responsibilities and data ownership, including operational configuration and transient derived results.
  • Communication, security/trust, installation/deployment, concurrency, freshness and failure handling are defined.
  • Energy expectations state mechanisms, assumptions and possible counter-effects; none is described as measured savings.
  • Seven Draw.io files, 16 pages, are native editable sources; XML/endpoints/geometry/text checks passed. GUI import/round-trip was unavailable and is not claimed.
  • No application source code was inspected/generated/modified, and all 63 input files remain byte-identical. Repository changes are confined to ArchitectureProposal/.

Verification is of the architecture deliverables. No application tests, deployments, clinical validation or energy measurements were performed. See validation for the exact checks and remaining limits.