Ministry signs contract to implement electronic health records system