A rheumatologist is a specialist who diagnoses and treats autoimmune and inflammatory diseases affecting the joints, muscles, and bones.