chore(core): общие контракты ядра для параллельной работы #2–#7 #27

Merged
Eleboba merged 2 commits from chore/0-core-contracts into dev 2026-10-03 14:51:29 +03:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit f8b1fa561b - Show all commits
+4 -1
View File
@@ -9,5 +9,8 @@ def scrub(text: str) -> ScrubbedText:
def pseudo_id(snils: str, key: str | None = None) -> str:
"""HMAC-SHA256(PSEUDO_KEY, normalised SNILS) as 32 hex chars — the token linking identity and clinical DBs."""
"""HMAC-SHA256(PSEUDO_KEY, normalised SNILS) as 32 hex chars.
The token is the only link between the identity and clinical databases.
"""
raise NotImplementedError
+4 -1
View File
@@ -16,7 +16,10 @@ class RiskLevel(IntEnum):
class AlertLevel(IntEnum):
"""Alert level stored in DB. UI colour is derived (ADR-006): ACUTE=red, HIGH/MODERATE=yellow, INFO=grey."""
"""Alert level stored in DB.
UI colour is derived (ADR-006): ACUTE=red, HIGH/MODERATE=yellow, INFO=grey.
"""
INFO = 0
MODERATE = 1