From CMS website
If participating in the Medicare or Medicare Advantage options for the EHR Incentive Program, eligible professionals can still report the eRx measure but are only eligible to receive one incentive payment. Eligible professionals successfully participating in both programs will receive the EHR incentive.