A ransomware attack on US electronic health records company, Allscripts, has led to lost revenue and operational headaches for doctors.