21 lines
585 B
Python
21 lines
585 B
Python
"""OCR traceability vocabulary shared by CaCu and CaMa (VAR-03/VARM-04a).
|
|
|
|
Every OCR-derived value records its status, whether it needs manual review,
|
|
and which method produced it. The same columns appear on CaCu's
|
|
`citologia_cervical`/`biopsia_cervical` and CaMa's `biopsia_mama`, so the
|
|
enum lives here instead of in each domain."""
|
|
from enum import Enum
|
|
|
|
|
|
class OcrEstatus(str, Enum):
|
|
PENDIENTE = "PENDIENTE"
|
|
REALIZADO = "REALIZADO"
|
|
FALLIDO = "FALLIDO"
|
|
|
|
|
|
OCR_ESTATUS_ALIAS: dict[str, str] = {
|
|
"OK": "REALIZADO",
|
|
"EXITOSO": "REALIZADO",
|
|
"ERROR": "FALLIDO",
|
|
}
|