The diagnosis of tuberculosis

The diagnosis of tuberculosis involves the observation of lung structures called tubercles on an X ray. What immunologic process leads to the formation of tubercles, and what type of immune cells may comprise these lesions?