feat: BIO_NORMALS 33 analytes + interprétations cliniques + cohérence DAS/bio étendue

- BIO_NORMALS passe de 13 à 33 tests (cardio, infectio, métabo, thyroïde, hémato, hépatique)
- _BIO_INTERPRETATION synchronisé (33 entrées, 3 clés high/low/normal chacune)
- _DAS_BIO_CHECKS étendu de 13 à 38 patterns (sepsis, infarctus, EP, diabète, thyroïde, etc.)
- lab_value_sanity.yaml étendu avec 20 garde-fous plausibilité nouveaux tests
- tests/test_bio_normals.py : 32 tests (complétude, concordance, _is_abnormal)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
dom
2026-02-20 11:00:53 +01:00
parent 3c070f3c1d
commit 1a3c523987
4 changed files with 318 additions and 9 deletions

View File

@@ -60,3 +60,85 @@ tests:
bilirubine totale:
hard_min: 0
hard_max: 2000
# --- Nouveaux tests (Phase 5) ---
bilirubine directe:
hard_min: 0
hard_max: 1000
ldh:
hard_min: 0
hard_max: 10000
vs:
hard_min: 0
hard_max: 200
tp:
hard_min: 0
hard_max: 150
tca:
hard_min: 10
hard_max: 200
ferritine:
hard_min: 0
hard_max: 100000 # surcharge massive possible (hémochromatose)
uree:
hard_min: 0
hard_max: 200
troponine:
hard_min: 0
hard_max: 1000
bnp:
hard_min: 0
hard_max: 50000
nt-probnp:
hard_min: 0
hard_max: 100000
d-dimeres:
hard_min: 0
hard_max: 100000
inr:
hard_min: 0.1
hard_max: 20
fibrinogene:
hard_min: 0
hard_max: 20
procalcitonine:
hard_min: 0
hard_max: 1000
lactate:
hard_min: 0
hard_max: 30
glycemie:
hard_min: 0
hard_max: 100
hba1c:
hard_min: 2
hard_max: 20
albumine:
hard_min: 0
hard_max: 100
acide urique:
hard_min: 0
hard_max: 2000
tsh:
hard_min: 0
hard_max: 500