Optimal duration of treatment is unknown, but common practice is to treat until the chest x-ray shows complete resolution or a small, stable, residual scar, which generally takes 3 to 6 weeks or longer.