XooCode(){

DrugClass

DrugClass is a direct MedicalEntity subtype for a pharmacological class of drugs sharing a mechanism or indication: statins, ACE inhibitors, SSRIs, beta-blockers, DPP-4 inhibitors.

1 direct property:

  • drug (Drug): member drugs of the class, array-valued.

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

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

Highlight legend:Required by GoogleRecommendedOptional
schema.org/DrugClass
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "DrugClass",
  "name": "Statins (HMG-CoA reductase inhibitors)",
  "description": "Medications that lower LDL cholesterol by inhibiting HMG-CoA reductase. First-line therapy for ASCVD prevention.",
  "drug": [
    { "@type": "Drug", "name": "Atorvastatin", "nonProprietaryName": "atorvastatin" },
    { "@type": "Drug", "name": "Rosuvastatin", "nonProprietaryName": "rosuvastatin" },
    { "@type": "Drug", "name": "Simvastatin", "nonProprietaryName": "simvastatin" },
    { "@type": "Drug", "name": "Pravastatin", "nonProprietaryName": "pravastatin" },
    { "@type": "Drug", "name": "XooStat-12 (investigational)", "nonProprietaryName": "xoostatibe" }
  ],
  "relevantSpecialty": ["https://schema.org/Cardiovascular", "https://schema.org/PrimaryCare"]
}
</script>

Minimal valid version

The smallest markup that still produces a valid DrugClass 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/DrugClass (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "DrugClass",
  "name": "Statins",
  "drug": [{ "@type": "Drug", "name": "Atorvastatin" }]
}
</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-knowledge graphs)
    Google docs

Common DrugClass 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

    Brand names in drug members

    Wrong
    drug: Lipitor, Crestor (brand names)
    Right
    Use nonProprietaryName for the generic; proprietaryName for brand

    Drug classes are generic concepts; listing brand names limits the class to one manufacturer.

About the example data

The Statins drug class, used on Dunmore Family Clinic's patient-education pages on cholesterol management.

Comments

Loading comments...

Leave a comment