Separate preserved Analytics policies and reviewed reference ownership

This commit is contained in:
Steffen committed 2026-10-14 11:48:58 +02:00
1 parent 3a70e3e296
commit cab10c5306
23 files changed
+15906 -3

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# Preserved clinical behaviour and evidence limits
Approval Q3 requires existing content, thresholds and classifications unchanged for functional comparison. Reference bundle `baseline-2026-10-05` preserves source/update/review dates and numerical operators from pinned source; public guidance preserves its 2026-10-04 review metadata. No new clinical review has been performed or implied.
| Preserved rule/content | Provenance and uncertainty |
| --- | --- |
| Home high BP systolic >=135 / diastolic >=85; clinic >=140 / >=90 | Baseline cites Sundhed.dk Lægehåndbogen Højt blodtryk, updated 2024-09-25, reviewed 2026-10-05. Single known Home/Clinic/rest prerequisites and known inadequate preparation gate remain unchanged. General threshold is not personal target |
| Resting pulse <50 / >100, exclusive limits | Baseline cites Patienthåndbogen Bradykardi (updated 2025-09-02) and Hurtig puls (updated 2025-05-12), reviewed 2026-10-05. Low rate may be physiological; medication/fitness/symptoms unknown |
| PotentiallyFavourable pressure decrease remaining high; pulse moving from outside towards interval without opposite excursion | Baseline explicitly calls these cautious inferences, not clinical decision rules. Clinical support of every development claim is uncertain; preserved under Q3, no new validation claim |
| Mixed reversals/outside excursions; PotentiallyConcerning outside levels; CannotInterpret unsupported situations | Exact original branching and explanation preserved. Passing tests verifies equivalence, not clinical validity |
| Narrative conflicts | Original finite English/Danish phrase detector preserved, including during exercise. Negation/unrecognized wording remain limitations, stated in unchanged explanations; no general-language comprehension claim |
| Home equipment/rest/repeat/pulse guidance | Original six steps and two source records preserved; clinic/other unavailable and Unknown explicitly labelled. No request-time publisher call or patient write |
Any necessary change to externally visible clinical rules, labels, content or thresholds must be approved before changing it. No unsupported label is silently disabled to make an architecture check pass.
File diff suppressed because it is too large. Load diff
+4
View File
@@ -35,3 +35,7 @@ Profile facade/owned schema/immutable DTOs; account unique/non-null, durable ato
### Stage 3 checkpoint — passed
Observation module owns its private EF context/entities and versioned schema SQL; patient FK restricted, positive/category/rest checks, patient/time/original/UUID index. Typed Profile existence query inside write transaction. API resolves actual observation owner, authorizes, and uses owner-scoped read/locked patch/delete. Original patch application retained; omitted/clear semantics unchanged. Original US-04–09 suites run with one HTTP host/one DB and namespaces updated. Q1 lookup failure test uses DB outage and 503 instead of service stop/502; no-write assertion unchanged. Empty-404 regression fixed in production adapters. 138/138 tests passed including controlled two-patch row-lock barrier and orphan FK rejection; zero build warnings/errors. Private types exposed only to test assembly via InternalsVisibleTo. Stage 2 commit `bfe6ebf`.
### Stage 4 checkpoint — passed
SummaryPolicy, TrendPolicy, ClinicalPolicy and Guidance-owned versioned ReferenceCatalog extracted without changing formulas/rounding/thresholds/labels/explanations. Analytics captures one immutable series and releases the shared snapshot before calculation. All original numerical/trend tests retained, with shared namespaces and explicit catalog constructor injection; HTTP dependency failure expectations alone changed 502→503 under Q1. 207/207 tests passed, zero build warnings/errors. `src/TRENDS.md` preserves reproducible method details; `clinical-provenance.md` records unverified cautious inferences and narrative limits without altering outputs.
+2
View File
@@ -10,3 +10,5 @@ Authority: approval Q1. Unmodified originals remain under Reference/Architecture
| Guidance tests: ApiGateway host | HealthApp host; all original instructions/source/applicability/side-effect assertions and upstream traps unchanged |
| ViewObservationContextTests / filtered access | Empty denied 404 preserved, corrected implementation after tests caught accidental Problem Details |
| New concurrency checks | Hold row lock, prove both patches wait, release, verify both disjoint changes and unchanged owner/time/note; new architecture obligation |
Insight/context/trend/deletion-derived tests: service-stop helpers represent DB outage, expected 503 replaces 502; current data, no-write, no-false-insufficiency assertions unchanged. Pure calculation tests instantiate the identical mathematical implementation through its internal test-compatible entry and explicit Guidance reference catalog. No clinical assertion changed.