graph LR
A[1. Kasus Mencurigakan] --> B{Gejala Kronis?}
B -->|Ya| C[2. Riwayat & Pemeriksaan Fisik]
C --> D[3. Foto Toraks]
D --> E{Gambaran Abnormal?}
E -->|Ya| F[4. Tes Konfirmasi Mikroba]
E -->|Tidak| G{TST/IGRA+?}
G -->|Ya| H[Infeksi TB Latent]
G -->|Tidak| I[Evaluasi Lain]
F --> J{Hasil Positif?}
J -->|Ya| K[Diagnosa TBC Aktif]
J -->|Tidak| L[Uji Lanjutan/ Biopsi]
K --> M[5. Klasifikasi Kasus]
M --> N{Pulmoner?}
N -->|Ya| O[TBC Paru]
N -->|Tidak| P[TBC Ekstrapulmoner]
M --> Q{Resistensi Obat?}
Q -->|Ya| R[TBC Resisten]
Q -->|Tidak| S[TBC Sensitif]
O --> T[6. Tindakan Pasca-Diagnosis]
P --> T
R --> T
S --> T
T --> U[Pengobatan Empiris]
T --> V[Laporan Kesehatan Masyarakat]
T --> W[Isolasi Pasien]
U --> X[7. Monitoring & Evaluasi]
V --> X
W --> X
X --> Y[Respons Terapi]
X --> Z[Efek Samping Obat]
X --> AA[Durasi Pengobatan]
style A fill:#f9f,stroke:#333,stroke-width:2px
style B fill:#bbf,stroke:#333,stroke-width:2px
style C fill:#f9f,stroke:#333,stroke-width:2px
style D fill:#f9f,stroke:#333,stroke-width:2px
style E fill:#bbf,stroke:#333,stroke-width:2px
style F fill:#f9f,stroke:#333,stroke-width:2px
style G fill:#bbf,stroke:#333,stroke-width:2px
style H fill:#f9f,stroke:#333,stroke-width:2px
style I fill:#f9f,stroke:#333,stroke-width:2px
style J fill:#bbf,stroke:#333,stroke-width:2px
style K fill:#f9f,stroke:#333,stroke-width:2px
style L fill:#f9f,stroke:#333,stroke-width:2px
style M fill:#f9f,stroke:#333,stroke-width:2px
style N fill:#bbf,stroke:#333,stroke-width:2px
style O fill:#f9f,stroke:#333,stroke-width:2px
style P fill:#f9f,stroke:#333,stroke-width:2px
style Q fill:#bbf,stroke:#333,stroke-width:2px
style R fill:#f9f,stroke:#333,stroke-width:2px
style S fill:#f9f,stroke:#333,stroke-width:2px
style T fill:#f9f,stroke:#333,stroke-width:2px
style U fill:#f9f,stroke:#333,stroke-width:2px
style V fill:#f9f,stroke:#333,stroke-width:2px
style W fill:#f9f,stroke:#333,stroke-width:2px
style X fill:#f9f,stroke:#333,stroke-width:2px
style Y fill:#f9f,stroke:#333,stroke-width:2px
style Z fill:#f9f,stroke:#333,stroke-width:2px
style AA fill:#f9f,stroke:#333,stroke-width:2px
linkStyle 0 stroke:#0ff,stroke-width:2px;
linkStyle 1 stroke:#0f0,stroke-width:2px;
linkStyle 2 stroke:#0ff,stroke-width:2px;
linkStyle 3 stroke:#0f0,stroke-width:2px;
linkStyle 4 stroke:#0ff,stroke-width:2px;
linkStyle 5 stroke:#0f0,stroke-width:2px;
linkStyle 6 stroke:#0ff,stroke-width:2px;
linkStyle 7 stroke:#0f0,stroke-width:2px;
linkStyle 8 stroke:#0ff,stroke-width:2px;
linkStyle 9 stroke:#0f0,stroke-width:2px;
linkStyle 10 stroke:#0ff,stroke-width:2px;
linkStyle 11 stroke:#0f0,stroke-width:2px;
linkStyle 12 stroke:#0ff,stroke-width:2px;
linkStyle 13 stroke:#0f0,stroke-width:2px;
linkStyle 14 stroke:#0ff,stroke-width:2px;
linkStyle 15 stroke:#0f0,stroke-width:2px;
linkStyle 16 stroke:#0ff,stroke-width:2px;
linkStyle 17 stroke:#0f0,stroke-width:2px;
linkStyle 18 stroke:#0ff,stroke-width:2px;
linkStyle 19 stroke:#0f0,stroke-width:2px;
linkStyle 20 stroke:#0ff,stroke-width:2px;
linkStyle 21 stroke:#0f0,stroke-width:2px;
linkStyle 22 stroke:#0ff,stroke-width:2px;
linkStyle 23 stroke:#0f0,stroke-width:2px;
linkStyle 24 stroke:#0ff,stroke-width:2px;
linkStyle 25 stroke:#0f0,stroke-width:2px;