---
id: HSCP-T-008
titre: "Purchase register: environmental and security criteria filled in, reuse justified"
titre_court: "Check the purchase 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: 44b68ed74bb6de2e
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-010]
recette: HSCP-R-021
piece: registre
---

# Purchase register: environmental and security criteria filled in, reuse justified

## What the test checks

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

| Field | Required | Meaning |
|---|---|---|
| `achat` | yes | purchase identifier |
| `categorie` | yes | `equipement`, `hebergement`, `prestation`, `composant` or `service-tiers` |
| `fournisseur` | yes | supplier name |
| `criteres_environnement` | yes | list of `critere`, `reponse` objects (`oui`, `non`, `non-renseigne`) |
| `criteres_securite` | yes | same form |
| `reemploi` | no | `true` for refurbished equipment |
| `equivalence_neuf` | for reuse | reference of the statement that performance, efficiency and security are equivalent to new |
| `usage_soins` | no | `true` if the equipment is used in contact with patients |
| `desinfection` | for reuse in contact with patients | reference of the check of compatibility with hygiene procedures |
| `decision` | yes | `action` (`retenu`, `reserve`, `ecarte`), `date`, `motif` |

The test accepts the register if each purchase has its category, at least one environmental criterion and one security criterion with an answer from the list, a dated and reasoned decision, and, for reused equipment, the proof of equivalence to new and, in contact with patients, the disinfection check.

It reports, without refusing, a purchase retained although the supplier filled in no environmental criterion.

## Running the test

```sh
python3 verifier.py registre.jsonl
```

`--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/`: refurbished tablets used at the patient's bedside, with an equivalence statement and a disinfection test; a third-party service retained with a reservation for lack of information on its impacts. Accepted.
- `exemples/refuse/`: refurbished equipment with no security criterion, no statement and no disinfection test, decision without reason; a purchase outside the categories, with an answer outside the list and an undated decision. Refused.

## What the test does not say

- It does not say that the suppliers' answers are true, nor that the equivalence statement or the disinfection test are conclusive: that remains a review.
- It does not say that the purchasing grid covers all categories or the right criteria.
- It does not judge the decision: it checks that it exists, dated and reasoned.
