Medicare is the primary payer and pays its portion first. Medicaid is the secondary payer and pays any remaining costs for items and services it covers.3