---
id: HSCP-T-012
titre: "Notification register: purpose and frequency given, every non-disableable notification justified"
titre_court: "Check the notification register"
type: note
objet: test
langue: en
statut: brouillon
version: 0.1
verifie_le: 2026-12-02
traduit_de: LISEZ-MOI.md
traduit_de_version: 0.1
traduit_de_empreinte: 55e7e899fdc35af4
traduction: modèle de langue, glossaire catalogue/glossaire-en.yaml
source: traduction de LISEZ-MOI.md, version 0.1
sensibilite: interne
licence: Apache-2.0
gestes: [HSCP-G-151]
recette: HSCP-R-025
piece: registre
---

# Notification register: purpose and frequency given, every non-disableable notification justified

## What the test checks

The evidence is the notification register, one JSON object per notification and per recipient (JSON Lines), following the recipe's data model:

| Field | Required | Meaning |
|---|---|---|
| `notification` | yes | notification name |
| `destinataire` | yes | `professionnel` (professional), `etablissement` (facility), `patient` or `aidant` (caregiver) |
| `canal` | yes | `application`, `courriel` (email), `sms` or `interface` (in-app message) |
| `finalite` | yes | `soin` (care), `securite` (security), `obligation` (legal duty), `service`, `information` or `promotion` |
| `frequence_max` | yes | `{"nombre": N, "par": "jour"}`, period `jour` (day), `semaine` (week), `mois` (month) or `evenement` (event); `nombre: null` for no cap |
| `active_par_defaut` | yes | default setting |
| `desactivable` | yes | the user can turn it off |
| `justification` | non-disableable | rule or risk that requires it |
| `revue_le` | yes | date of the last review |

The test accepts the register if each notification carries these fields, if every non-disableable notification has a care, security or legal-duty purpose and a written justification, if every information or promotion notification is off by default and can be turned off, if no promotion targets a patient or a caregiver, if an uncapped frequency is kept for care and security, and if the review is more recent than the review period.

It reports, without refusing, each uncapped frequency.

## Running the test

```sh
python3 verifier.py registre.jsonl --date 2026-12-02 --revue-mois 12
```

`--date` sets the check date (today by default), `--revue-mois` the review period (12 by default), `--json` returns the answer in JSON. Exit code: 0 evidence accepted, 1 evidence refused, 2 incorrect call. Python 3.10 or later, no dependencies.

## Examples

- `exemples/valide/`: an appointment reminder that can be turned off, a critical result alert and an unusual sign-in alert that cannot, both justified, and an information notification off by default. Accepted, with the alert's uncapped frequency reported.
- `exemples/refuse/`: a forced engagement nudge, a promotion sent to a caregiver, a legal-duty notification without justification, an uncapped service notification with an old review, a channel and a period outside the lists. Refused.

## What the test does not say

- It does not say that the register lists every notification actually sent: the review compares it with real sends.
- It does not say that the rule or risk invoked exists.
- It does not look at screens: infinite scroll, manipulative patterns and advertising are left to the review.
