XooCode(){

DrugCost

DrugCost is a direct MedicalEntity subtype for per-unit cost data on a medical drug: wholesale prices, retail out-of-pocket prices, reimbursement caps. It is distinct from Offer, which models a specific selling transaction.

Direct properties:

  • costPerUnit (Number): the cost.
  • costCurrency (Text): ISO 4217 code.
  • costCategory (DrugCostCategory): cost kind (Wholesale, Retail, Reimbursement cap).
  • costOrigin (Text): data source (e.g. "Medicare Part B").
  • drugUnit (Text): the unit ("5 mg tablet", "10 ml vial").
  • applicableLocation (AdministrativeArea): where the cost applies.

Full example of schema.org/DrugCost json-ld markup

The markup is verified as valid with Rich Results Test from Google.

Highlight legend:Required by GoogleRecommendedOptional
schema.org/DrugCost
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "DrugCost",
  "name": "XooStat-12 10 mg tablet — PA Medicaid reimbursement",
  "costPerUnit": 0.48,
  "costCurrency": "USD",
  "costCategory": "ReimbursementCap",
  "costOrigin": "Pennsylvania Medicaid 2026 formulary",
  "drugUnit": "10 mg tablet",
  "applicableLocation": { "@type": "State", "name": "Pennsylvania", "identifier": "US-PA" }
}
</script>

Minimal valid version

The smallest markup that still produces a valid DrugCost entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/DrugCost (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "DrugCost",
  "costPerUnit": 0.48,
  "costCurrency": "USD",
  "drugUnit": "10 mg tablet"
}
</script>

Google rich results this unlocks

Markup matching this example makes your page eligible for the following Google Search rich results. The primary target drives the required / recommended property classification in the advanced code block above.

  • No dedicated rich result (drug-pricing graphs)
    Google docs

Common DrugCost mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    DrugCost vs Offer

    Wrong
    DrugCost for a pharmacy's sell price
    Right
    Offer for a retail transaction; DrugCost for cost-data tables

    DrugCost publishes a cost datum (with origin and applicable location); Offer is a transactable listing.

About the example data

Wholesale cost of a fictional XooStat-12 10 mg tablet under Pennsylvania Medicaid.

Comments

Loading comments...

Leave a comment