Page updated: A child who has a prolonged cough that persists for more than three weeks needs immediate medical attention. The child may have tuberculosis, an infection in the lungs.