Diet
Diet is a schema.org type that dual-inherits from CreativeWork and LifestyleModification (a MedicalEntity subtype). Unlike RestrictedDiet (an enum for suitableForDiet filters), Diet is a content type for the published plan itself.
Direct properties:
dietFeatures(Text): nutritional features and what to eat / avoid.endorsers(Organization or Person): who endorses the diet.expertConsiderations(Text): professional caveats.physiologicalBenefits(Text): claimed health benefits.risks(Text): risks and contraindications.
Full example of schema.org/Diet json-ld markup
The markup is verified as valid with Rich Results Test from Google.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Diet",
"@id": "https://dunmorefamilyclinic.example/patient-info/mediterranean-plan",
"name": "Dunmore Mediterranean Eating Plan",
"description": "Patient-education plan based on the Mediterranean diet, adapted for local produce and typical Pennsylvania pantries.",
"author": { "@type": "Organization", "name": "Dunmore Family Clinic" },
"dietFeatures": "Emphasises vegetables, fruit, whole grains, legumes, nuts, olive oil, and fish. Limits red meat, added sugar, and ultra-processed foods. No required calorie counting.",
"physiologicalBenefits": "Lower cardiovascular risk, improved glycaemic control in Type 2 diabetes, modest weight loss, higher adherence than low-fat diets.",
"risks": "Patients with ischaemic heart disease on warfarin should monitor vitamin-K intake from leafy greens.",
"expertConsiderations": "Clinical consensus supports the Mediterranean pattern as first-line for cardiovascular risk reduction (American Heart Association, 2021).",
"endorsers": [
{ "@type": "Organization", "name": "American Heart Association" },
{ "@type": "Organization", "name": "Dunmore Family Clinic" }
]
}
</script>Diet vs RestrictedDiet
- Diet: the published plan — "The Mediterranean Diet", written by X.
- RestrictedDiet: the enum value — "this recipe is vegan / kosher / gluten-free".
Minimal valid version
The smallest markup that still produces a valid Diet 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.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Diet",
"name": "Mediterranean Eating Plan",
"dietFeatures": "Vegetables, whole grains, legumes, olive oil, fish; limits red meat and added sugar."
}
</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.
- Google docsNo dedicated rich result (healthcare content graphs)
Common Diet 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.
- 01
Diet vs RestrictedDiet confusion
WrongDiet as a value on Recipe.suitableForDietRightRestrictedDiet (enum URL) for suitableForDiet; Diet for the plan's own content pageDiet is a content type; RestrictedDiet is an enumeration.
- 02
Missing risks / expertConsiderations on medical-grade content
WrongDiet page with only benefitsRightPopulate risks and expertConsiderations for balanced health informationAI healthcare assistants flag health content that lacks risk disclosure as lower trust.
Schema properties in this example
About the example data
A fictional Dunmore Mediterranean-style eating plan authored by Dunmore Family Clinic.
Comments
Loading comments...