Hospitals across the country have geared up to publish online price lists for all the medical services they provide, as a federal law takes effect on January 1. The new law, which was announced in April, should also make it easier for patients to get access to their medical records, according to officials.