MedicalEntity Structured Data: Condition, Test, Therapy and Codes
How Schema.org MedicalEntity types model health web content, which properties link conditions, tests, and therapies, and what markup is for.
This page summarizes Schema.org documentation for health and medical structured data: the MedicalEntity family in the health-lifesci vocabulary, how core types connect, and practical limits for publishers marking up consumer or professional health pages.
MedicalEntity: what health structured data is for on the web
Section titled “MedicalEntity: what health structured data is for on the web”MedicalEntity is the broadest type for entities related to health and medicine. Schema.org positions the health and medical schema for web content publishers, not as a clinical data-exchange standard.
This page describes the health and medical types in the schema.org schema (MedicalEntity and subtypes), useful for content publishers that wish to mark up health and medical content on the web. Like all schema.org schemas, the health and medical schema is intended to make it easier for people to find the right web pages by exposing structured information contained in web pages to search engines, and may also enable other applications that make use of the structure.
— Schema.org, Health and medical types
The same documentation stresses scope and vocabulary boundaries:
The scope of entities in this section of the schema is broad, and is intended to cover both consumer- and professionally-targeted health and medical web content; as a result, any particular piece of content is likely to use only a subset of the schema. The schema is targeted at web use cases and is not designed for clinical markup or clinical data exchange.
— Schema.org, Health and medical types
Note as well that this schema is not intended to define or codify a new controlled medical vocabulary, but instead to complement existing vocabularies and onotologies. As a schema, its focus is on surfacing the existence of and relationships between entities described in content; the specific convention(s) used to name and/or code entities are outside of the scope of this schema. The schema does provide a way to annotate entities with codes that refer to existing controlled medical vocabularies (such as MeSH, SNOMED, ICD, RxNorm, UMLS, etc) when they are available.
— Schema.org, Health and medical types
Common conclusion: use MedicalEntity subtypes to describe what a page is about and how concepts relate; attach external codes via MedicalCode when you have them; do not treat the schema as a replacement for ICD, SNOMED, or EHR messaging.
Core MedicalEntity types: conditions, signs, tests, and therapies
Section titled “Core MedicalEntity types: conditions, signs, tests, and therapies”The modeling approach groups entities such as conditions, signs and symptoms, causes, risk factors, therapies (including drugs and procedures), tests, devices, studies, and guidelines. Properties on those types express relationships—for example, linking a therapy to a condition.
| Reader goal | Primary type | Plain-language role |
|---|---|---|
| Disease or disorder page | MedicalCondition |
Any condition affecting normal functioning (diseases, injuries, disabilities, disorders, syndromes) |
| Lab or imaging page | MedicalTest |
Diagnostic tests; subtypes include BloodTest, ImagingTest, PathologyTest |
| Treatment overview | MedicalTherapy |
Interventions to prevent, treat, or cure; includes pharmacotherapy, behavioral care, supportive care |
| Procedure detail | MedicalProcedure |
Diagnostic, therapeutic, preventive, or palliative care processes; DiagnosticProcedure vs therapeutic branches |
MedicalCondition: symptoms, causes, treatments, and differential diagnosis
Section titled “MedicalCondition: symptoms, causes, treatments, and differential diagnosis”MedicalCondition is among the most used health types. It supports rich clinical narrative structure on the web: anatomy, cause, prognosis, prevention, and tests.
Any condition of the human body that affects the normal functioning of a person, whether physically or mentally. Includes diseases, injuries, disabilities, disorders, syndromes, etc.
— Schema.org, MedicalCondition
High-value properties for publishers include:
signOrSymptom→MedicalSignOrSymptom(objectiveMedicalSignvs subjectiveMedicalSymptom)cause→MedicalCause; inversecauseOfon the cause entitypossibleTreatment→Drug,DrugClass,LifestyleModification, orMedicalTherapytypicalTest→MedicalTestdifferentialDiagnosis→DDxElementwithdistinguishingSignriskFactor→MedicalRiskFactor, which usesincreasesRiskOf
MedicalSignOrSymptom clarifies the clinical distinction in markup:
Any feature associated or not with a medical condition. In medicine a symptom is generally subjective while a sign is objective.
— Schema.org, MedicalSignOrSymptom
MedicalTest: diagnosis, devices, and result modifiers
Section titled “MedicalTest: diagnosis, devices, and result modifiers”MedicalTest links tests to conditions, signs, devices, and drugs that alter results:
| Property | Expected type | Use when |
|---|---|---|
usedToDiagnose |
MedicalCondition |
The page states which condition the test supports diagnosing |
signDetected |
MedicalSign |
The test reveals an objective sign |
usesDevice |
MedicalDevice |
Equipment is part of the test description |
affectedBy |
Drug | Medications that change results (affectedBy on MedicalTest) |
normalRange |
Text or MedicalEnumeration |
Reference ranges when applicable |
BloodTest is defined as a test on a blood sample; ImagingTest covers diagnostic imaging with imagingTechnique values such as CT or MRI from MedicalImagingTechnique. Labs may list offerings with availableTest on DiagnosticLab.
MedicalTherapy and MedicalProcedure: indications, risks, and contraindications
Section titled “MedicalTherapy and MedicalProcedure: indications, risks, and contraindications”MedicalTherapy sits under TherapeuticProcedure and MedicalProcedure:
Any medical intervention designed to prevent, treat, and cure human diseases and medical conditions, including both curative and palliative therapies. Medical therapies are typically processes of care relying upon pharmacotherapy, behavioral therapy, supportive therapy (with fluid or nutrition for example), or detoxification (e.g. hemodialysis) aimed at improving or preventing a health condition.
— Schema.org, MedicalTherapy
Link therapies to regulatory or clinical intent with MedicalIndication subtypes—ApprovedIndication, TreatmentIndication, PreventionIndication. ApprovedIndication is:
An indication for a medical therapy that has been formally specified or approved by a regulatory body that regulates use of the therapy; for example, the US FDA approves indications for most drugs in the US.
— Schema.org, ApprovedIndication
Safety-oriented properties on therapies and devices include contraindication (MedicalContraindication or text), adverseOutcome, and seriousAdverseOutcome. MedicalContraindication may be absolute or relative—mark up only what the page actually states.
Specialized therapy types in the vocabulary include PhysicalTherapy, OccupationalTherapy, RadiationTherapy, PsychologicalTreatment, and LifestyleModification for diet, exercise, and similar care paths.
MedicalCode: ICD, MeSH, SNOMED, and other coding systems
Section titled “MedicalCode: ICD, MeSH, SNOMED, and other coding systems”Because Schema.org does not define its own clinical ontology, code on MedicalEntity points to MedicalCode:
A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.
— Schema.org, code
MedicalCode carries codeValue and codingSystem (for example ICD-10). CategoryCode generalizes coded terms; MedicalCode is a more specific subtype.
Two ways to mark up health content: relationships vs entity-only tags
Section titled “Two ways to mark up health content: relationships vs entity-only tags”Schema.org’s preferred pattern embeds relationships so intent is explicit—e.g. a drug discussed as treatment for a named condition via indication on Drug, as in the ibuprofen microdata example.
The simpler alternative tags each concept with the right type but omits links between them. That still exposes medical concepts but is weaker when users ask “treatments for X” or “tests for Y.”
However not every property will be relevant or useful for every site or piece of content; like all schema.org schema, these properties and their use are optional.
— Schema.org, Health and medical types
For condition pages, a practical minimum is often: typed main entity (MedicalCondition or MedicalWebPage with about), name, description, and selectively possibleTreatment, typicalTest, and MedicalCode where authoritative.
Providers, studies, and guidelines (when the page topic matches)
Section titled “Providers, studies, and guidelines (when the page topic matches)”Hospital, MedicalClinic, and Physician expose availableService for procedures, tests, or therapies offered. Physician may use hospitalAffiliation and the pending practicesAt property (Schema.org Section: pending).
Use MedicalStudy or MedicalTrial for the study record, not the article reporting results—that belongs on MedicalScholarlyArticle. Store trial IDs in code as Schema.org suggests for clinicaltrials.gov identifiers.
MedicalGuideline tags the recommendation itself; put the issuing body in recognizingAuthority. Subtypes MedicalGuidelineRecommendation and MedicalGuidelineContraindication carry evidenceLevel and recommendationStrength when documented.
health-lifesci vocabulary: where types live
Section titled “health-lifesci vocabulary: where types live”Most medical types live in the health-lifesci section (80 types, 163 properties, and related enumerations per the section index). Historically, many terms moved from core into that extension (releases note).
When choosing @type, prefer the most specific valid type (BloodTest rather than only MedicalTest) if the page content supports it.
Common markup mistakes
Section titled “Common markup mistakes”- Using
MedicalStudyon a news article instead ofMedicalScholarlyArticle. - Tagging
MedicalSymptomwhere the page describes an observable finding—useMedicalSignorVitalSignwhen appropriate. - Filling every inherited
MedicalEntityfield (pathophysiology,epidemiology,stage, etc.) with thin or speculative text not present on the page. - Confusing
DrugClass(e.g. statins) with a specificDrugproduct. - Marking palliative content as curative
MedicalTherapywithout consideringPalliativeProcedurewhen the source describes symptom relief as the primary goal.
How to check this on your site
Section titled “How to check this on your site”-
Open the Health and medical types overview and confirm your page topic matches a listed example type (condition, drug, guideline, or medical web page).
-
For each
@typeyou use, open its canonical definition in the health-lifesci index (for example MedicalCondition or MedicalTest) and verify every populated property’s expected type. -
If you emit
MedicalCode, check thatcodingSystemandcodeValuematch the vocabulary named on the page (ICD, RxNorm, MeSH, etc.) per MedicalCode. -
For relationship markup (treatment for condition, test used to diagnose, risk factors), trace each link against the property tables on the source types—for example
possibleTreatmentandusedToDiagnose. -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page disagrees with the current Schema.org type or property definitions, email yimasynthetic@gmail.com with the page URL and the exact statement you believe is wrong, and we will reconcile it with the official vocabulary pages.