Diagnosis of XDR-TB involves several steps, starting with a sputum smear microscopy to identify TB bacteria. If TB is detected, further testing, including culture and drug susceptibility testing (DST), is conducted to determine the specific drug resistance pattern. Rapid molecular tests, such as GeneXpert MTB/RIF, can provide quicker results for rifampicin resistance.