A child's years-long medical mystery was finally solved.