A 21-year-old man has been charged with an alleged breach of data protection.
The incident occurred at Edinburgh Royal Infirmary on Wednesday November 16 when a hospital cleaner allegedly used information about a female patient to contact her on Facebook.
NHS Lothian said earlier the man had not breached the hospital’s computer systems.
Jackie Sansbury, chief operating officer at NHS Lothian, said last week: “A full review of our confidential patient record and monitoring system has now been carried out and shows that our systems were not breached by this individual.
“Therefore he had no access to private medical records and information which are protected by a range of complex security systems.
“We understand that this member of contracted staff only gained the patient’s name from an electronic screen for staff showing a floor plan in the treatment area of the accident and emergency department.”
He is scheduled to appear in court at a later date.