British Airways Boeing 747-436 G-CIVX operating BA286 San Francisco – London Heathrow was close to Ayr when it squawked the 7700 emergency code and was vectored direct to London Heathrow due to a medical emergency on board.