mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
docs(sharing): name the screener's score row where the section is consented
`POST /api/mental-health/assessments` is fenced on `mind` and writes one row into `measurements`: the instrument's total, minted `COMPUTED` and keyed on the administration it came from, so the trend reads through the chart and rollup tier without the encrypted item answers going anywhere. A grant scoped to mood and mind therefore adds a point to the owner's measurement series, and nothing said so. Left in place rather than fenced. Withholding the projection the way the booster mint is now fenced would file a screener whose own total is missing from the record — an inconsistency inside the section the grant does open, to avoid a derived point in one it does not. So it is documented instead, in the three places it is decided or agreed to: the declaration, the section's own definition, and the consent copy in all seven locales, which is where a widening belongs. The published operation says it too.
This commit is contained in:
1 parent
1b74bf8b54
commit
c809971a23
11 files changed
+41
-13
No files matched your search
+11
-4
@@ -14734,10 +14734,17 @@ paths:
|
||||
tags:
|
||||
- Mental health
|
||||
summary: Record a completed screener
|
||||
description: Stores one administration (item answers encrypted) and writes the derived total as a server-owned
|
||||
PHQ9_SCORE / GAD7_SCORE / WHO5_SCORE / SCI_SCORE measurement (source COMPUTED — never client-writable). WHO-5
|
||||
and SCI totals run HIGHER = better; their follow-up thresholds point downwards (≤ 50 / ≤ 16). On a positive
|
||||
PHQ-9 item-9 the response carries the locale-aware crisis-resource set.
|
||||
description: >-
|
||||
Stores one administration (item answers encrypted) and writes the derived total as a server-owned PHQ9_SCORE /
|
||||
GAD7_SCORE / WHO5_SCORE / SCI_SCORE measurement (source COMPUTED — never client-writable). WHO-5 and SCI totals
|
||||
run HIGHER = better; their follow-up thresholds point downwards (≤ 50 / ≤ 16). On a positive PHQ-9 item-9 the
|
||||
response carries the locale-aware crisis-resource set.
|
||||
|
||||
|
||||
The projection row is the one write this operation makes outside its declared section: the operation is fenced
|
||||
on `mind`, and the measurement it derives lands in `measurements`. It is deliberate and unconditional — a
|
||||
screener whose own total is missing from the record would be an inconsistency inside the section the grant does
|
||||
open. The consent copy for the mood-and-mind section names it.
|
||||
parameters:
|
||||
- *a6
|
||||
requestBody:
|
||||
|
||||
Reference in new issue
Block a user