An ex-healthcare worker tried to sell Princess of Wales's private medical records, it has emerged.