---
id: HSCP-T-009
titre: "Interface register: standard named, interoperability framework followed, closed choices justified"
titre_court: "Check the interface 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: 36b2fd300e3c18ba
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-180]
recette: HSCP-R-022
piece: registre
---

# Interface register: standard named, interoperability framework followed, closed choices justified

## What the test checks

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

| Field | Required | Meaning |
|---|---|---|
| `flux` | yes | flow identifier |
| `sens` | yes | `entrant`, `sortant` or `les-deux` |
| `donnee_sante` | yes | `true` if the flow carries health data |
| `standard` | yes | name and version of the standard followed |
| `ouvert` | yes | `true` if the standard is open and published |
| `cadre_volet` | for a health flow, unless justified | part of the health interoperability framework followed, and its version |
| `revue` | for a health flow | date of the last review against changes to the framework |
| `justification` | for a closed standard or a health flow outside the framework | `motif`, `date`, `sortie` |

The test accepts the register if each flow names its standard, if every closed standard and every health flow outside the framework carries a written, dated justification with a planned exit, and if the review of each health flow is more recent than the interval passed to the test (`--revue-mois`).

It reports, without refusing, a justification dated more than two years ago.

## Running the test

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

`--date` sets the day of the check, `--json` returns the answer as JSON. Exit code: 0 evidence accepted, 1 evidence refused, 2 incorrect call. Python 3.10 or later, no dependency.

## Examples

- `exemples/valide/`: a report in the framework's format, reviewed; a device flow using the manufacturer's protocol, justified with its exit; an export without health data. Accepted.
- `exemples/refuse/`: a product-specific format justified without a date or an exit; a health flow outside the framework, without justification, with a direction outside the list and reviewed three years ago; a flow without a standard. Refused.

## What the test does not say

- It does not say that the part of the framework given is the one that covers the flow, nor that the implementation conforms to it: the framework's tests and, for some connections, an approval demonstrate that.
- It does not say that the list of flows is complete.
- It does not say that a standard declared open actually is.
