Legan, a family practice physician in Great Falls, Montana, had just introduced patient portals - which, like electronic health records, are taking medicine into the virtual world..