Around 12,000 referral letters to patients have gone missing from Northern Ireland’s new patient record system.