The jet had to dump fuel over the Pacific Ocean as its crew responded to a passenger medical incident.