Pharmacies across the United States were suffering outages as a health technology company reported that it was the target of a cyberattack.