2026 NPPES data Legal Medicine NPI 1881766293 M.D.
Verify on CMS →

Rafay Mehdi, M.D.

Legal Medicine in Hanover, Massachusetts.

This profile is drawn from the federal National Provider Identifier Registry (CMS NPPES), which lists more than 7 million U.S. healthcare providers - including 1,065 in Legal Medicine, and covers specialty classification, practice address, and Medicare Part D prescribing data when reported. According to CMS, every field reflects the provider's official federal registration, see our methodology.

Federal data, no proprietary rating. We show these CMS records as-is - no composite score, no star rating, no editorial opinion layered on top.
Prescribing volume
6K
Medicare Part D claims · 338 beneficiaries · Legal Medicine avg: 3K
Generic prescribing
88%
generic claims · 11% brand-name · higher generic rates reduce patient out-of-pocket costs
MIPS score
19.2/100
▼ 64 pts below national avg 83.1 · Below average
Industry payments
$757.86
33 payments · CMS Open Payments (Sunshine Act)
Compiled from official public sources by the PlainDoctor editorial team.

What the federal data shows

Rafay Mehdi, M.D. reported a CMS MIPS final score of 19.2/100 - below the 83.1 national average - and filed 5,963 Medicare Part D claims in 2023.

19.2/100
MIPS score · -64 vs avg
6K
Part D claims, 2023
88%
generic prescribing
$757.86
industry payments (Sunshine Act)

Every figure on this page comes straight from federal CMS records (NPPES, Medicare Part D, MIPS, Open Payments) - no proprietary rating or editorial opinion is applied.

Rafay Mehdi, M.D.'s MIPS score vs every scored U.S. clinician

CMS Merit-based Incentive Payment System (MIPS) final score, 2023, the federal quality measure

19 2nd percentile higher than 2% of 477,587 scored providers

0–10: 8,684 scored providers (2%). Below this entry. 10–20: 3,008 scored providers (1%). This entry sits in this band. 20–30: 3,069 scored providers (1%). Above this entry. 30–40: 2,746 scored providers (1%). Above this entry. 40–50: 2,928 scored providers (1%). Above this entry. 50–60: 5,882 scored providers (1%). Above this entry. 60–70: 13,906 scored providers (3%). Above this entry. 70–80: 118,074 scored providers (25%). Above this entry. 80–90: 129,887 scored providers (27%). Above this entry. 90+: 189,403 scored providers (40%). Above this entry. This provider 0 100 every MIPS-scored clinician, bucketed by value

Each bar is a band; taller bars hold more scored providers. The dashed line + filled bar mark this entry. Hover or tap any bar for its full count, share, and where it sits relative to this entry.

Source CMS Merit-based Incentive Payment System (MIPS) · 2023

Where Rafay Mehdi, M.D. sits

This provider among legal medicine peers

Across the 93 legal medicine providers who report both Medicare Part D prescribing and a MIPS quality score, Rafay Mehdi, M.D. writes more Part D claims than 78% of them and scores higher on MIPS quality than 10% - placing this provider in the high-volume, lower-quality quadrant. Volume reflects patient-panel size and specialty, not quality; the two axes are independent.

Part D claim volume vs MIPS quality, by specialty percentile

Lower volume · High qualityHigh volume · High qualityLower volume · Lower qualityHigh volume · Lower quality0255075100024.949.974.899.8Part D claim volume, percentile in specialtyMIPS quality, percentilePart D claim volume, percentile in specialty: 48 · MIPS quality, percentile: 37Part D claim volume, percentile in specialty: 67 · MIPS quality, percentile: 3Part D claim volume, percentile in specialty: 27 · MIPS quality, percentile: 85Part D claim volume, percentile in specialty: 52 · MIPS quality, percentile: 88Part D claim volume, percentile in specialty: 25 · MIPS quality, percentile: 88Part D claim volume, percentile in specialty: 88 · MIPS quality, percentile: 7Part D claim volume, percentile in specialty: 93 · MIPS quality, percentile: 95Part D claim volume, percentile in specialty: 5 · MIPS quality, percentile: 17Part D claim volume, percentile in specialty: 97 · MIPS quality, percentile: 23Part D claim volume, percentile in specialty: 70 · MIPS quality, percentile: 47Part D claim volume, percentile in specialty: 73 · MIPS quality, percentile: 57Part D claim volume, percentile in specialty: 65 · MIPS quality, percentile: 12Part D claim volume, percentile in specialty: 35 · MIPS quality, percentile: 2Part D claim volume, percentile in specialty: 38 · MIPS quality, percentile: 92Part D claim volume, percentile in specialty: 3 · MIPS quality, percentile: 0Part D claim volume, percentile in specialty: 47 · MIPS quality, percentile: 22Part D claim volume, percentile in specialty: 40 · MIPS quality, percentile: 73Part D claim volume, percentile in specialty: 37 · MIPS quality, percentile: 55Part D claim volume, percentile in specialty: 23 · MIPS quality, percentile: 52Part D claim volume, percentile in specialty: 42 · MIPS quality, percentile: 67Part D claim volume, percentile in specialty: 98 · MIPS quality, percentile: 23Part D claim volume, percentile in specialty: 2 · MIPS quality, percentile: 10Part D claim volume, percentile in specialty: 18 · MIPS quality, percentile: 80Part D claim volume, percentile in specialty: 28 · MIPS quality, percentile: 33Part D claim volume, percentile in specialty: 45 · MIPS quality, percentile: 92Part D claim volume, percentile in specialty: 50 · MIPS quality, percentile: 37Part D claim volume, percentile in specialty: 13 · MIPS quality, percentile: 78Part D claim volume, percentile in specialty: 62 · MIPS quality, percentile: 8Part D claim volume, percentile in specialty: 12 · MIPS quality, percentile: 18Part D claim volume, percentile in specialty: 92 · MIPS quality, percentile: 58Part D claim volume, percentile in specialty: 75 · MIPS quality, percentile: 62Part D claim volume, percentile in specialty: 80 · MIPS quality, percentile: 77Part D claim volume, percentile in specialty: 82 · MIPS quality, percentile: 43Part D claim volume, percentile in specialty: 90 · MIPS quality, percentile: 23Part D claim volume, percentile in specialty: 57 · MIPS quality, percentile: 37Part D claim volume, percentile in specialty: 10 · MIPS quality, percentile: 45Part D claim volume, percentile in specialty: 17 · MIPS quality, percentile: 70Part D claim volume, percentile in specialty: 55 · MIPS quality, percentile: 95Part D claim volume, percentile in specialty: 85 · MIPS quality, percentile: 87Part D claim volume, percentile in specialty: 63 · MIPS quality, percentile: 37Part D claim volume, percentile in specialty: 8 · MIPS quality, percentile: 68Part D claim volume, percentile in specialty: 95 · MIPS quality, percentile: 95Part D claim volume, percentile in specialty: 32 · MIPS quality, percentile: 95Part D claim volume, percentile in specialty: 30 · MIPS quality, percentile: 60Part D claim volume, percentile in specialty: 58 · MIPS quality, percentile: 82Part D claim volume, percentile in specialty: 87 · MIPS quality, percentile: 72Part D claim volume, percentile in specialty: 15 · MIPS quality, percentile: 63Part D claim volume, percentile in specialty: 68 · MIPS quality, percentile: 53Part D claim volume, percentile in specialty: 43 · MIPS quality, percentile: 13Part D claim volume, percentile in specialty: 22 · MIPS quality, percentile: 75Part D claim volume, percentile in specialty: 20 · MIPS quality, percentile: 18Part D claim volume, percentile in specialty: 53 · MIPS quality, percentile: 15Part D claim volume, percentile in specialty: 100 · MIPS quality, percentile: 23Part D claim volume, percentile in specialty: 0 · MIPS quality, percentile: 83Part D claim volume, percentile in specialty: 7 · MIPS quality, percentile: 23Part D claim volume, percentile in specialty: 78 · MIPS quality, percentile: 50Part D claim volume, percentile in specialty: 33 · MIPS quality, percentile: 35Part D claim volume, percentile in specialty: 83 · MIPS quality, percentile: 48Part D claim volume, percentile in specialty: 72 · MIPS quality, percentile: 65Part D claim volume, percentile in specialty: 60 · MIPS quality, percentile: 23Rafay Mehdi, M.D.-Part D claim volume, percentile in specialty: 78 · MIPS quality, percentile: 10
Part D claim volume vs MIPS quality, by specialty percentile

Each dot is one legal medicine peer from a representative sample of 60; the gold marker is Rafay Mehdi, M.D.. Source: CMS Medicare Part D Prescriber data and the CMS Merit-based Incentive Payment System, 2023.

What does the federal data show about Rafay Mehdi, M.D.?

Below national average

NPI registry status

Active

Issued 11/14/2006

NPI 1881766293

Primary specialty

Legal Medicine

Niche

1,065 US NPIs in this specialty

Medicare Part D claims

5,963 111% vs specialty avg

2023 prescription claims

Specialty avg: 2,821

MIPS final score

19.2/100 63.9 pts vs avg

Below average band

vs 83.1 national avg

Specialty distribution in Massachusetts

How Legal Medicine compares to other specialties among Massachusetts providers

Massachusetts providers
Mental Health Counselor - 8.3%Mental Health Counselor8.3%Clinical Social Worker - 7.8%Clinical Social Worker7.8%Student in an Organized Health Care Education/Training Program - 6.2%Student in an Organized Health Care Education/Training Program6.2%Behavior Technician - 4.9%Behavior Technician4.9%Counselor - 4.3%Counselor4.3%Internal Medicine Physician - 3.7%Internal Medicine Physician3.7%Legal Medicine - 0%Legal Medicine0%
Largest specialties in Massachusetts (% of in-state providers)

Medicare quality performance, MIPS

Rafay Mehdi, M.D.'s 2023 MIPS final score plotted against the Legal Medicine national average

Below national average
MIPS Final Score
19.2/100
vs 83.1 national avg · 2023 performance year

MIPS final score (Legal Medicine) - 19.2/100 vs national avg 83.1

0%100%National avg83%19.2%
MIPS final score (Legal Medicine) - 19.2/100 vs national avg 83.1
How MIPS and board certification work

The Merit-based Incentive Payment System (MIPS) scores providers 0–100 across four performance categories: Quality, Cost, Promoting Interoperability, and Improvement Activities, weighted under 42 CFR §414.1380. Reporting is voluntary for many small practices, so absence of a MIPS score is not a quality signal.

Board certification through an ABMS or AOA member board signals voluntary post-licensure examination plus continuous Maintenance of Certification cycles. Verify any individual provider's status through certificationmatters.org (ABMS) or osteopathic.org (AOA).

Rafay Mehdi, M.D. appears in the CMS NPPES registry as a Legal Medicine provider holding M.D. credentials at 20 EAST ST, Hanover, MA, 02339, with a listed phone of (781) 826-3146. NPI 1881766293 was issued on 11/14/2006.

Medicare Part D records for calendar year 2023 show 5,963 prescription claims written by this provider, covering 338 Medicare beneficiaries and totaling roughly $405K in drug spend, split 11% brand-name and 88% generic by claim count, with an opioid prescribing rate of 4.2%. On the CMS Merit-based Incentive Payment System, this provider earned a Final Score of 19.2/100 for the 2023 performance year (Quality 0, Cost 63.9), compared with the national average of 83.1.

Legal Medicine is a narrow specialty nationwide, with 1,065 enrolled providers across 51 states and an average of 2,821 Part D claims per prescriber, so the context for interpreting these metrics differs meaningfully from a primary-care baseline.

Important: PlainDoctor is a directory of publicly available government data, not medical advice, a malpractice database, or a quality rating. Inclusion here does not imply a recommendation, and absence of complaints or sanctions on this page does not mean none exist, always verify credentials through the NPPES NPI Registry, your state medical board, and the ABMS or AOA before making healthcare decisions.

Practice Address

20 EAST ST
Hanover, MA 02339

Provider Details

NPI 1881766293
Specialty Legal Medicine
Credentials M.D.
Gender Male
NPI Issued 11/14/2006

CMS Quality Score (MIPS)

Merit-based Incentive Payment System (MIPS) scores from CMS, 2023 performance year.

19.1758
Final Score
Avg: 83.1
0
Quality
63.9194
Cost

Reporting: Individual

Industry payments received (2024) - CMS Open Payments transparency data

The federal Physician Payments Sunshine Act (part of the Affordable Care Act) requires drug and medical-device manufacturers + group purchasing organizations to publicly report payments and other transfers of value to physicians and teaching hospitals. The data below covers 2024 for Rafay Mehdi, M.D.. Source: openpaymentsdata.cms.gov.

Total received

$758

Largest payer

AstraZeneca Pharmaceuticals LP

Most common payment type

Food and Beverage

Industry payments are not necessarily indicators of bias, they include research funding, consulting fees for evidence-based work, royalties for inventions, food at conferences, and similar items. The disclosure exists for transparency. Read our methodology for how we interpret this data.

License & disciplinary context - Massachusetts BORIM 2023 annual report

Aggregate state board data only, NOT a determination of any individual provider's status. The figures below describe statewide disciplinary activity across all ~38K Massachusetts medical licensees in 2023 - they are NOT specific to Rafay Mehdi, M.D.. To verify Rafay Mehdi, M.D.'s current license status, search the BORIM public license lookup directly, or check the Federation of State Medical Boards (FSMB) verification service.

80
Total board actions, Massachusetts 2023
Across 78 cases
2.11
Actions per 1,000 licensees
Massachusetts statewide rate
probation
Most common action type
29 cases

BORIM publishes annual disciplinary statistics as part of public-record reporting under each state's Administrative Procedure Act. See the full breakdown by action type and year on the Massachusetts disciplinary trends page. Cross-checked against FSMB U.S. Medical Regulatory Trends.

Brand vs generic prescribing mix · Typical

Rafay Mehdi, M.D. - brand share 11.0%
Legal Medicine average

11% brand-name claims vs 88% generic, on 5,963 2023 Medicare Part D claims.

The federal Medicare Part D Generic Dispensing Rate national benchmark sits near 90% generic / 10% brand for primary-care prescribers, per CMS Office of the Actuary 2024 estimates. Higher brand share is common in specialty prescribing where generic equivalents are not available.

Medicare Part D Prescribing Data

CMS Medicare Part D prescriber-level data for calendar year 2023.

5,963
Total Claims
$405K
Total Drug Cost
338
Medicare Beneficiaries

Prescribing Breakdown

30-Day Fills
10,173
Total Day Supply
283,041
Brand vs Generic
11% brand / 88% generic
Brand Drug Cost
$300K
Generic Drug Cost
$104K
Opioid Claims
250 (4.2% rate)
Antibiotic Claims
339

Patient Demographics

Average Patient Age
71.3 years
Avg HCC Risk Score
0.93
Gender Split
52% female / 48% male
Age Distribution
<65: 35, 65-74: 194, 75-84: 91, 85+: 18

Top Prescribed Drugs (Medicare Part D)

Top drugs by claim count for calendar year 2023. Based on Medicare Part D data only.

What Rafay Mehdi, M.D. prescribes most

Top Medicare Part D drugs by claim count, 2023

claims
Source CMS Medicare Part D Prescriber Public Use File As of 2023
Drug Claims
Levothyroxine Sodium
299
Atorvastatin Calcium
275
Losartan Potassium
270
Lisinopril
234
Amlodipine Besylate
205
Lorazepam
194
Metoprolol Succinate
157
Omeprazole
132
Simvastatin
128
Prednisone
115

* Counts below 11 are suppressed by CMS for patient privacy. Generic names shown where available from CMS Part D data.

Legal Medicine Overview

How Rafay Mehdi, M.D. fits within the Legal Medicine landscape nationally.

1,065
Legal Medicine Providers in US
51
States with Legal Medicine
2,821
Avg Claims per Provider

Rafay Mehdi, M.D.'s 5,963 claims are above the specialty average of 2,821.

Nearby Legal Medicine Providers in Massachusetts

Other clinicians with the same primary specialty enrolled in Massachusetts, drawn from the same CMS NPPES roster as Mehdi.

Compare Legal Medicine nationally: see state-by-state distribution →

Before you book an appointment

Use this federal record as your verification checklist, not as a recommendation.

  • Confirm the NPI record is current in the official CMS registry, providers update their own NPPES details, and moves can lag. Verify this NPI
  • Check the active license and any disciplinary history with the Massachusetts medical board, federal registration is not a license check. Credential verification guide
  • Weigh a second option: compare this provider with a nearby Legal Medicine peer on Medicare volume and prescribing patterns. Compare providers

Medicare Part D and MIPS figures describe practice patterns in federal programs only, they are not quality ratings, and PlainDoctor does not rate, rank, or recommend providers.

Frequently Asked Questions

What is Rafay Mehdi, M.D.'s specialty?
Rafay Mehdi, M.D. specializes in Legal Medicine and practices in Hanover, Massachusetts. Credentials: M.D..
How much does Rafay Mehdi, M.D. prescribe under Medicare Part D?
In 2023, Rafay Mehdi, M.D. wrote 5,963 Medicare Part D claims totaling $405K in drug costs for 338 beneficiaries.
What is Rafay Mehdi, M.D.'s Medicare quality score?
Rafay Mehdi, M.D. has a CMS MIPS Final Score of 19.2/100 (Quality: 0, Cost: 63.9). The national average MIPS Final Score is 83.1. Source: CMS Merit-based Incentive Payment System (MIPS) 2023.
Where is Rafay Mehdi, M.D. located?
Rafay Mehdi, M.D. is located at 20 EAST ST, Hanover, MA, 02339. Phone: (781) 826-3146.
What is Rafay Mehdi, M.D.'s NPI number?
Rafay Mehdi, M.D.'s National Provider Identifier (NPI) is 1881766293, issued on 11/14/2006.
Does Rafay Mehdi, M.D. prescribe more brand-name or generic drugs?
Rafay Mehdi, M.D.'s prescribing is 11% brand-name and 88% generic drugs by claim count, with $300K in brand drug costs.
Does Rafay Mehdi, M.D. prescribe opioids?
Yes, Rafay Mehdi, M.D. had 250 opioid claims in 2023 with an opioid prescribing rate of 4.2%.
How many Legal Medicine providers are there in the US?
There are 1,065 Legal Medicine providers across 51 states in the US. The average Legal Medicine provider writes 2,821 Medicare Part D claims per year.
What drugs does Rafay Mehdi, M.D. prescribe most often?
Based on 2023 Medicare Part D data, Rafay Mehdi, M.D.'s most frequently prescribed drugs include Levothyroxine Sodium, Atorvastatin Calcium, Losartan Potassium. This reflects Medicare Part D prescriptions only and does not include commercial insurance or other payer types.
Does Rafay Mehdi, M.D. accept Medicare?
Rafay Mehdi, M.D. appears in CMS Medicare data with 5,963 Part D claims and 338 Medicare beneficiaries in 2023. Contact the provider's office directly to confirm current Medicare enrollment and accepted plans.
How can I verify Rafay Mehdi, M.D.'s credentials?
Rafay Mehdi, M.D.'s NPI is 1881766293 with credentials M.D.. You can verify this through the NPPES NPI Registry, check state medical board records, and confirm board certification through the ABMS or AOA.

Data Sources

View source datasets and methodology notes
Provider Directory
CMS National Plan and Provider Enumeration System (NPPES), download.cms.gov/nppes, updated monthly. Contains NPI, specialty, credentials, and practice location.
Specialty Classification
NUCC Health Care Provider Taxonomy (nucc.org), the industry standard for classifying provider specialties in Medicare and Medicaid billing.
Prescribing Data
CMS Medicare Part D Prescriber Public Use File (2023). Includes claims, drug costs, beneficiaries, and opioid prescribing rates.
Quality Performance
CMS Merit-based Incentive Payment System (MIPS) - 2023 performance year.
Limitations
Provider data is self-reported to CMS. Prescribing data reflects Medicare Part D only and does not include commercial insurance, Medicaid, or cash prescriptions. Claims below 11 beneficiaries are suppressed by CMS for privacy.

See our complete data methodology for details on how we collect and process government data.

Data as of April 2026 (NPPES) / 2023 (Medicare Part D). Source: Centers for Medicare & Medicaid Services (CMS).

Disclaimer: Data from CMS NPPES and Medicare Part D. PlainDoctor does not rate or rank providers. Provider information is self-reported and may not be current. Always verify information directly with the provider. About · Methodology

Compiled from official public sources by the PlainDoctor editorial team.

Every figure on PlainDoctor is rendered directly from the federal CMS NPPES registry, Medicare Part D, MIPS, and Open Payments records, no number is typed in by an editor. See our editorial standards & corrections policy, the methodology behind these numbers, or report a data error. Data current as of May 2026.