flowchart LR
operator["ML / Data Operator
Curates inputs, runs generation and training,
and reviews metrics"]
sources["NIH / WHO / CDC Sources
Owner-reported origins of
medical terminology catalogs"]
system["Medical PHI Model System
Generates contextual examples and fine-tunes
an 8B model to classify medical PHI
and emit category-based JSON"]
runtime["Model Runtime
Hosts the merged Hugging Face model
or a separately converted GGUF artifact"]
app["Application / Reviewer
Submits text and consumes
strict JSON classification results"]
presidio["Downstream Presidio Integration
Consumes compatible MEDICAL_* category/entity types
Implementation is outside this repository"]
operator -->|Operates and reviews| system
sources -->|Curated terminology; provenance manifest needed| system
system -->|Produces model artifacts| runtime
system -.->|Intended category contract| presidio
app -->|Inference requests| runtime
runtime -->|Strict JSON decisions| app
classDef person fill:#fff2cc,stroke:#d6b656,color:#000;
classDef system fill:#1168bd,stroke:#0b4884,color:#fff;
classDef external fill:#d5e8d4,stroke:#82b366,color:#000;
classDef source fill:#f8cecc,stroke:#b85450,color:#000;
class operator,app person;
class system system;
class runtime,presidio external;
class sources source;