# zoiewong/incidentnersystem architecture

> Architecture diagram of the GitHub repository zoiewong/incidentnersystem, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zoiewong/incidentnersystem
- Repository: https://github.com/zoiewong/incidentnersystem

## Overview

This prototype supports a user workflow from incident reporting through Japanese free-text structuring to learning recommendations. The README describes a backend BERT model that extracts entities and produces structured incident data; it also describes downstream analysis against medical databases for similar incidents and relevant resources. The repository listing provides no source excerpts or inspectable implementation paths, so the graph represents documented capabilities and relationships only, not verified code-level calls.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_reporting["Incident reporting"]
  node_interface["Bilingual interface"]
  node_report["Incident report"]
end

subgraph group_structuring["Text structuring"]
  node_bert["Backend BERT"]
  node_structured["Structured incident"]
end

subgraph group_learning["Incident learning"]
  node_analysis["Clinical AI analysis"]
  node_resources["Learning resources"]
end

node_user(("Reporter"))
node_medicaldb[("Medical databases")]

node_user -->|"submits report"| node_interface
node_interface -->|"captures report"| node_report
node_report -->|"structures text"| node_bert
node_bert -->|"extracts entities"| node_structured
node_structured -->|"enables analysis"| node_analysis
node_analysis -->|"draws from"| node_medicaldb
node_analysis -->|"recommends resources"| node_resources
node_analysis -->|"finds similar incidents"| node_structured

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_interface,node_report toneBlue
class node_bert,node_structured,node_medicaldb toneAmber
class node_analysis,node_resources toneMint
class node_user toneIndigo
```

## Components

### Incident reporting

- **Bilingual interface**
- **Incident report**

### Text structuring

- **Backend BERT**
- **Structured incident**

### Incident learning

- **Clinical AI analysis**
- **Learning resources**

### Other components

- **Reporter**
- **Medical databases**

## Connections

- Reporter → Bilingual interface: submits report (evidence: `README.md`)
- Bilingual interface → Incident report: captures report (evidence: `README.md`)
- Incident report → Backend BERT: structures text (evidence: `README.md`)
- Backend BERT → Structured incident: extracts entities (evidence: `README.md`)
- Structured incident → Clinical AI analysis: enables analysis (evidence: `README.md`)
- Clinical AI analysis → Medical databases: draws from (evidence: `README.md`)
- Clinical AI analysis → Learning resources: recommends resources (evidence: `README.md`)
- Clinical AI analysis → Structured incident: finds similar incidents (evidence: `README.md`)
