How-to Guide

How to Test and Validate Structured Data on a Medical Practice Website

Short answer

Run important pages through Google's Rich Results Test to see whether the markup is valid and eligible for Google features, and through the Schema Markup Validator to check the syntax generally. Fix errors first, then warnings you care about, and confirm the markup matches what is visible on the page. Passing a test does not guarantee a rich result.

By Liam CostelloUpdated 6 min read
Get my free auditor call (561) 291-2681

Why test structured data

Structured data is code in a page that describes it to machines: that this is a medical business, that this is an FAQ, that this is a breadcrumb trail. A small syntax mistake, such as a missing comma, can make the whole block unreadable, and nobody sees the error because the visible page looks fine. Testing is how you find it.

If you want the background first, read schema markup for a medical practice website, explained. This guide is about checking the work.

The two tools

ToolWhat it checks
Rich Results Test (Google)Whether the page's markup is valid and eligible for the Google features it supports, as Google reads it
Schema Markup ValidatorWhether the markup is valid schema.org syntax in general, including types Google does not use for features
Search Console enhancement reportsHow Google read markup across your whole site over time, once Google has crawled it

Use the first for a quick page-by-page check, the second to confirm general validity, and the third to watch your whole site. All three are free.

A testing routine

  1. 1Pick the pages that carry markup: the home page, a main service page, a provider page, a location page and any page with an FAQ.
  2. 2Paste each live address into the Rich Results Test, or paste the code if the page is not published yet.
  3. 3Read the detected items. Does it list the types you expect, such as organization or local business, FAQ and breadcrumb?
  4. 4Fix every error. An error means a required property is missing or the syntax is broken.
  5. 5Read the warnings and decide. A warning marks a recommended field that is missing, and is often optional.
  6. 6Run the same page through the Schema Markup Validator to catch syntax issues.
  7. 7Compare the markup to the visible page: the name, address, phone and hours in the code should match what patients see.

Common errors on practice sites

  • Broken JSON from a stray comma or an unclosed quotation mark.
  • A phone number, address or practice name in the markup that differs from the page and the Business Profile.
  • FAQ markup for questions that are not visible on the page.
  • Review or rating markup that Google's structured data policies do not allow, such as ratings a business marks up about itself or reviews copied from another site.
  • Markup that claims a credential or service the practice does not provide.
  • Duplicate blocks from both a theme and an SEO plugin saying conflicting things.

After the test

Once pages are live, Search Console may show enhancement or rich result reports for the markup types Google has processed, with counts of valid and invalid items. Check them after each template change, since one template error can affect every page that uses it. Our guide on reading Search Console explains where to look.

What testing cannot tell you

A page can pass every test and still not show a rich result. Google decides what to display, and it may show no special result at all. Valid markup is a way to be understood correctly, not a promise of placement. Never add markup that describes things the page does not show, because that can violate Google's structured data policies. Job postings are one of the types worth testing, and the guide to a careers page and job posting markup lists what to check before you publish. If you are still deciding which types to add before testing, the overview in schema markup for a medical practice website, explained lists the types a practice site needs at a minimum and what not to mark up. A good first page to test is one with a breadcrumb trail, and the breadcrumb trail guide for a practice website uses this same test as one of its five steps.

Frequently asked questions

What is the difference between the Rich Results Test and the Schema Markup Validator?

The Rich Results Test shows whether markup is eligible for Google's features and how Google reads it. The Schema Markup Validator checks general schema.org syntax, including types Google does not use for features. Using both gives a more complete check.

Do warnings mean my markup is wrong?

Not necessarily. Errors mean something required is missing or broken. Warnings point to optional or recommended fields. Review them, add what is true and useful for your practice, and ignore fields that do not apply.

How often should I test?

After any change to templates, themes, plugins or the markup itself, and on a regular schedule such as quarterly for key pages. Search Console reports also flag problems over time.

Why does a valid page not show a rich result?

Google chooses whether and when to show rich results, and eligibility is not a guarantee. Content quality, page relevance and Google's own policies all play a part. Valid markup is a prerequisite, not a promise.

Can I add review stars to my own practice pages with markup?

Google's structured data policies limit review markup, including self-serving reviews for a business's own entity in some cases. Read the current policies before adding rating markup, and never mark up reviews that are not visible and genuine.

Sources

Keep reading

Ready to Grow Your Practice?

Primara is now accepting new independent practices nationwide. Most new engagements begin within one week.

Send Us a Message

We respond within one business day.

* Required field

We'll call to confirm your consultation.

No spam, ever. HIPAA-aware agency. We respond within one business day. For urgent inquiries, call (561) 291-2681.

Founder-LedHIPAA-AwareServing Practices Nationwide