33 lines
5.9 KiB
Markdown
33 lines
5.9 KiB
Markdown
# Diagram conventions and model coverage
|
|
|
|
The [specification](software-architecture.md) is authoritative; diagrams express its selected design. All files are native editable Draw.io XML. No diagram is an image-only export. Colour distinguishes responsibility boxes (blue), domain/derived values (green), owned storage (purple) and explanatory constraints/state (yellow). Shape kind/labels, not colour alone, convey meaning.
|
|
|
|
Context shows the Health App application/database boundary, two authorized client roles, administrator and clinical publishers. Public guidance/login use the same HTTPS edge without granting patient access. Publisher relationships mean reviewed content provenance, never request-time network calls. Client applications are external, not a new frontend deliverable.
|
|
|
|
Logical components are all in one application process. Dashed arrows denote typed in-process dependencies. Profile and Observations own private adapters. Infrastructure owns transactions/pool lifecycle, not clinical policy. Overview composes module query values; Analytics obtains current selected observations through Observations, not direct SQL. Access-policy resolution uses privileged internal owner/association lookups and does not disclose their result before authorization.
|
|
|
|
## Domain coverage
|
|
|
|
| Concepts | Domain page / constraints | Conceptual classifiers |
|
|
| --- | --- | --- |
|
|
| Account, authentication grant, professional assignment, patient profile | Identity/access; Patient account 1 to profile 0..1; each created profile one account; many-to-many assignments; grants contain no health data | Account, AuthenticatedIdentity, ProfessionalAssignment, PatientProfile, CredentialVerifier, AccessPolicy, ProfileQueries, ProfileCommands |
|
|
| Observation and measurement context | Observations/selection; patient 1 to observation 0..*; observation composes one context; required positives/time; immutable owner/original recording; unknown and text retained | BloodPressureObservation, MeasurementContext, ObservationChange, ObservationCommands, ObservationQueries, ObservationRepository |
|
|
| Period and context selection | Observations/selection; inclusive/equal bounds, UTC interpretation, independent optional AND predicates, explicit Unknown | Period, ContextSelection |
|
|
| Numerical insight | Derived views; one or more current selected raw observations; means/BP extrema/count/basis; transient | HealthInsight, SummaryPolicy, AnalyticsQueries |
|
|
| Trend, three metric assessments, comparability | Derived views; exactly three metric values and one evidence value; current selection/period, unavailable parts/reversals/full-period evidence | TrendAssessment, MetricAssessment, ComparabilityEvidence, TrendPolicy, ClinicalPolicy |
|
|
| Clinical reference and source | Derived views; zero/one applicable reference per metric; source provenance, applicability/prerequisites; thresholds not targets | ClinicalReference, ReferenceSource, ReferenceCatalog |
|
|
| Overview | Derived views; profile 1, latest 0..1, insight 0..1; latest overall separate from selected insight; no trend | HealthOverview, OverviewQueries; immutable ProfileSnapshot/ObservationSnapshot contract references |
|
|
| Guidance and ordered instruction | Derived views; available verified content has source provenance; instructions 0..* (empty when unavailable); no patient association/compliance lifecycle | GuidanceResult, GuidanceInstruction, GuidanceQueries |
|
|
|
|
32 conceptual classifiers are shown individually with separate name, attribute and responsibility/operation compartments. Interfaces/policies/application services are labelled explicitly. Dashed arrows indicate design dependencies; plain associations have no arrowhead; a filled diamond means composition with dependent lifecycle. Multiplicities are written on relationships. Conceptual operations describe responsibilities and are not an instruction to generate these exact source classes or method signatures.
|
|
|
|
Cross-page reference types (ProfileSnapshot, ObservationSnapshot, AuthorizedPatientContext and ReadSnapshot/WriteTransaction) are contracts/infrastructure concepts described in specification §§2 and 5, not additional domain entities. Read snapshots carry immutable profile/observation values, authorized patient context carries a policy-approved patient/action scope, and transaction types coordinate participating private adapters. Domain arrows never imply repositories/controllers belong in the business domain. Device/cuff descriptions do not imply independently managed device entities.
|
|
|
|
## Storage and deployment coverage
|
|
|
|
Data ownership shows one database with Profile and Observation schemas, an intentional controlled FK, separate migration ownership and one DML role. The diagram explicitly distinguishes logical ownership from security isolation. No clinical result table/database or detached context storage exists. Protected account/assignment/key/configuration files and the reviewed reference bundle have explicit owners.
|
|
|
|
Deployment has two supported placements: one Linux host with independently managed application and PostgreSQL processes, or one application host plus a remote verified-TLS database. There are no independently deployed feature modules, internal HTTPS service listeners or gateway callback credentials. The transient installer is administrative. This is why original US-16 needs revision, rather than a claim of preserving its independent-service topology.
|
|
|
|
Sequences cover durable initial creation, actual-owner authorization and atomic mutation, current calculations and distinct overview bases, and native installation verification. Their participants are logical modules/infrastructure within the application unless labelled external. For read composition the snapshot begins with access resolution, all DB reads share it, and capture ends before calculation/transfer. Sequence arrows use native editable connectors and lifelines. Numbered self-messages denote local policy/calculation work, not recursive HTTP calls.
|