Pharmacy service type code

SAS Name

The type of pharmacy used. This variable indicates the type of pharmacy that dispensed the prescription, as recorded on the PDE.  

CMS requires Part D plans to maintain pharmacy networks that are sufficient to ensure access to Medicare beneficiaries – including retail, home infusion, and long-term care pharmacies.  Plan sponsors have contracts with pharmacies to provide “in-network” services.


This variable was new in 2013 and required for all PDEs beginning on February 28, 2013.

Source: PDE

Code Code value
01 Community/retail pharmacy
02 Compounding pharmacy
03 Home infusion therapy provider
04 Institutional pharmacy
05 Long-term care pharmacy
06 Mail order pharmacy
07 Managed care organization (MCO) pharmacy
08 Specialty care pharmacy
99 Other
Null Pharmacy is not in any other category above