Medical facilities nationwide have been directed to replace paper records with electronic versions by the end of the year.