XooCode(){

MedicalRiskFactor

MedicalRiskFactor is a direct MedicalEntity subtype for anything that increases the likelihood of developing a disease, condition, or complication: smoking, hypertension, family history, environmental exposure, age, sex.

1 direct property:

  • increasesRiskOf (MedicalEntity): the condition or complication whose risk is elevated.

Attach to MedicalCondition via riskFactor, or include inside a MedicalRiskEstimator's includedRiskFactor list.

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

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

Highlight legend:Required by GoogleRecommendedOptional
schema.org/MedicalRiskFactor
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "MedicalRiskFactor",
  "name": "Current cigarette smoking",
  "description": "Current daily or near-daily cigarette smoking; risk rises with pack-years and is partially reversible after cessation.",
  "increasesRiskOf": [
    { "@type": "MedicalCondition", "name": "Coronary artery disease" },
    { "@type": "MedicalCondition", "name": "Lung cancer" },
    { "@type": "MedicalCondition", "name": "Chronic obstructive pulmonary disease (COPD)" }
  ],
  "relevantSpecialty": ["https://schema.org/Cardiovascular", "https://schema.org/Pulmonary", "https://schema.org/Oncologic"]
}
</script>

Minimal valid version

The smallest markup that still produces a valid MedicalRiskFactor 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/MedicalRiskFactor (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "MedicalRiskFactor",
  "name": "Current cigarette smoking",
  "increasesRiskOf": { "@type": "MedicalCondition", "name": "Coronary artery disease" }
}
</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 (healthcare knowledge graph)
    Google docs

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

    Risk factor without increasesRiskOf

    Wrong
    MedicalRiskFactor with name only
    Right
    Always populate increasesRiskOf — the relationship is the point

    The type exists to express 'X increases risk of Y'; without Y, the entry is just a medical entity.

About the example data

Current smoking as a risk factor for coronary artery disease on a Dunmore Family Clinic patient-education page.

Comments

Loading comments...

Leave a comment