Skip to main content

Pharmacy

Code

Understanding pharmacy spend in healthcare data is crucial for identifying cost trends and optimizing medication management. It allows healthcare providers and payers to track drug utilization, assess the efficacy of formulary decisions, and implement strategies to enhance patient care while controlling costs.

Currently, the pharmacy mart contains the brand and generic retail pharmacy analysis. This runs on claims data and provides an easy, out-of-the-box way to identify which brand drugs members were prescribed to members when a generic alternative was available. It also calculates what the dollar savings would be when switching to a generic, based on historical generic prices in your claims history.

There are 3 final tables in the pharmacy mart:

  1. brand_generic_opportunity
    This table calculates the potential dollar savings when switching from a brand drug to an available generic. It operates at the claim line level.

  2. pharmacy_claim_expanded
    This table reproduces the pharmacy_claim table with the additional fields produced by the brand generic analysis.

  3. generic_available_list
    This table lists all available generics at the NDC code level for each brand drug. It can be joined with the pharmacy_claim_expanded table using the generic_available_sk field.

brand_generic_opportunity

This model contains a row for each claim and line number of each brand that had a generic available. It calculates an opportunity amount for claim and line.

Primary Key:

  • data_source
  • claim_id
  • claim_line_number
ColumnData TypeDescriptionTerminology

generic_available_list

This model contains a row for each generic ndc that is available (for a given brand ndc code). It can be joined back to the pharmacy_claim_expanded table on the generic_available_sk column.

Primary Key:

  • generic_available_sk
  • generic_ndc
ColumnData TypeDescriptionTerminology

pharmacy_claim_expanded

This model contains a row for pharmacy claim and line. It includes the columns from core.pharmacy_claim, but adds the output of the additional calculations done in the pharmacy mart.

Primary Key:

  • data_source
  • claim_id
  • claim_line_number
ColumnData TypeDescriptionTerminology