A doctor became a patient after being diagnosed with the same type of breast cancer she has spent her career researching.