Drupal is a registered trademark of Dries Buytaert
drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.14 Minor update available for module linkit (7.0.14). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). editoria11y 3.0.0 Major update available for module editoria11y (3.0.0). trash 3.0.27 Minor update available for module trash (3.0.27). twig_tweak 4.0.0-alpha2 New alpha version released for module twig_tweak (4.0.0-alpha2). twig_tweak 4.0.0-alpha1 First alpha version released for module twig_tweak (4.0.0-alpha1). node_revision_delete 2.1.1 Minor update available for module node_revision_delete (2.1.1). commerce_paypal 2.1.2 Minor update available for module commerce_paypal (2.1.2).

schema_hospital

3 sites Security covered
View on drupal.org

Schema Hospital is a lightweight extension to the Schema Metatag module that adds 15 missing Schema.org Organization properties commonly needed by healthcare organizations but not included in the base schema_organization submodule.

Why Schema Hospital?

Healthcare organizations need comprehensive Schema.org markup to:

  • Improve search engine visibility
  • Enable rich snippets in search results
  • Help patients find important information quickly
  • Provide structured data for voice assistants and AI tools

While the schema_organization module provides 23 basic Organization properties, it's missing critical healthcare-specific fields like medical specialties, employee listings, service catalogs, and organizational identifiers.

What It Does

Schema Hospital adds 15 new fields to the existing schema_organization metatag group:

Basic Information:

- alternateName - Hospital abbreviations and alternate names
- legalName - Official registered legal entity name
- foundingDate - Organization establishment date
- email - Primary contact email address
- numberOfEmployees - Current employee count

Healthcare Relationships:

- employee - Links to staff/provider Person entities (multiple)
- availableService - Links to medical Service entities (multiple)
- medicalSpecialty - Medical specialties offered (multiple)

Organizational Identifiers:

- vatID - Value Added Tax identification
- leiCode - Legal Entity Identifier (20-character code)
- taxID - Tax/Fiscal identification (EIN in US)
- duns - Dun & Bradstreet number
- iso6523Code - ISO 6523 organization identifier
- naics - NAICS classification code (622110 for hospitals)
- globalLocationNumber - GS1 Global Location Number

All fields integrate into the existing schema_organization group and appear together in a single Schema.org Organization JSON-LD object on your homepage.

Key Features

✅ Seamless Integration - Extends existing schema_organization group, not a separate schema
✅ Token Support - All fields support token replacement (works great with Config Pages module)
✅ Multiple Values - Employee, service, and specialty fields support multiple entries
✅ Standards Compliant - All fields match official Schema.org specifications
✅ Well Tested - Comprehensive functional tests included
✅ Drupal 10 & 11 - Compatible with current and next-gen Drupal

Perfect For

  • Hospital websites
  • Medical clinic sites
  • Physician practice websites
  • Healthcare system sites
  • Medical research organizations
  • Any healthcare organization needing comprehensive Schema.org markup

Installation

composer require drupal/schema_hospital
drush en schema_hospital -y
drush cr

Configuration

After installation:

1. Navigate to a metatag configuration page:
- Global: /admin/config/search/metatag/global
- Front page: /admin/config/search/metatag/front
- Content type: /admin/structure/types/manage/[type]/edit

2. Expand the "Schema.org Organization" section

3. Fill in the new Schema Hospital fields alongside existing schema_organization fields

4. Save and clear cache

### Using with Config Pages (Recommended)

For site-wide organization data management:

composer require drupal/config_pages
drush en config_pages -y

Create a config page type for organization schema, add fields matching the Schema.org properties, and use tokens in your metatag configuration:

[config_pages:organization_schema:field_org_alternate_name]
[config_pages:organization_schema:field_org_email]
[config_pages:organization_schema:field_org_num_employees]

Example Output

When configured, your homepage will output JSON-LD like:

{
  "@context": "https://schema.org",
  "@type": "Hospital",
  "name": "Saltmarsh Island Healthcare",
  "alternateName": "SIH",
  "legalName": "Saltmarsh Island Healthcare Corporation",
  "url": "https://example.com",
  "foundingDate": "1952-07-15",
  "email": "[email protected]",
  "numberOfEmployees": 150,
  "employee": [
    "https://example.com/providers/dr-jane-smith",
    "https://example.com/providers/dr-john-doe"
  ],
  "availableService": [
    "https://example.com/services/emergency-care",
    "https://example.com/services/primary-care"
  ],
  "medicalSpecialty": [
    "Emergency Medicine",
    "Family Medicine"
  ],
  "taxID": "01-2345678",
  "naics": "622110"
}

Validate with:

Activity

Total releases
2
First release
Mar 2026
Latest release
1 month ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Mar 10, 2026
1.x-dev Dev Mar 10, 2026