Commit 5c0f0280 authored by Nate Mow's avatar Nate Mow
Browse files

#3257202: Added support for Drug, DrugClass, DrugCost, MedicalWebPage

parent b7621a2c
Loading
Loading
Loading
Loading

drush.services.yml

0 → 100644
+8 −0
Original line number Diff line number Diff line
services:
  schema_medical_entity.commands:
    class: \Drupal\schema_medical_entity\Commands\SchemaMedicalEntityCommands
    arguments:
      - '@file_system'
      - '@module_handler'
    tags:
      - { name: drush.command }
+95 −0
Original line number Diff line number Diff line

# Drug properties.
metatag.metatag_tag.schema_drug_type:
  type: text
  label: '@type'
metatag.metatag_tag.schema_drug_active_ingredient:
  type: text
  label: 'activeIngredient'
metatag.metatag_tag.schema_drug_administration_route:
  type: text
  label: 'administrationRoute'
metatag.metatag_tag.schema_drug_alcohol_warning:
  type: text
  label: 'alcoholWarning'
metatag.metatag_tag.schema_drug_available_strength:
  type: text
  label: 'availableStrength'
metatag.metatag_tag.schema_drug_breastfeeding_warning:
  type: text
  label: 'breastfeedingWarning'
metatag.metatag_tag.schema_drug_clinical_pharmacology:
  type: text
  label: 'clinicalPharmacology'
metatag.metatag_tag.schema_drug_dosage_form:
  type: text
  label: 'dosageForm'
metatag.metatag_tag.schema_drug_dose_schedule:
  type: text
  label: 'doseSchedule'
metatag.metatag_tag.schema_drug_drug_class:
  type: text
  label: 'drugClass'
metatag.metatag_tag.schema_drug_drug_unit:
  type: text
  label: 'drugUnit'
metatag.metatag_tag.schema_drug_food_warning:
  type: text
  label: 'foodWarning'
metatag.metatag_tag.schema_drug_included_in_health_insurance_plan:
  type: text
  label: 'includedInHealthInsurancePlan'
metatag.metatag_tag.schema_drug_interacting_drug:
  type: text
  label: 'interactingDrug'
metatag.metatag_tag.schema_drug_is_available_generically:
  type: text
  label: 'isAvailableGenerically'
metatag.metatag_tag.schema_drug_is_proprietary:
  type: text
  label: 'isProprietary'
metatag.metatag_tag.schema_drug_label_details:
  type: text
  label: 'labelDetails'
metatag.metatag_tag.schema_drug_legal_status:
  type: text
  label: 'legalStatus'
metatag.metatag_tag.schema_drug_manufacturer:
  type: text
  label: 'manufacturer'
metatag.metatag_tag.schema_drug_maximum_intake:
  type: text
  label: 'maximumIntake'
metatag.metatag_tag.schema_drug_mechanism_of_action:
  type: text
  label: 'mechanismOfAction'
metatag.metatag_tag.schema_drug_non_proprietary_name:
  type: text
  label: 'nonProprietaryName'
metatag.metatag_tag.schema_drug_overdosage:
  type: text
  label: 'overdosage'
metatag.metatag_tag.schema_drug_pregnancy_category:
  type: text
  label: 'pregnancyCategory'
metatag.metatag_tag.schema_drug_pregnancy_warning:
  type: text
  label: 'pregnancyWarning'
metatag.metatag_tag.schema_drug_prescribing_info:
  type: text
  label: 'prescribingInfo'
metatag.metatag_tag.schema_drug_prescription_status:
  type: text
  label: 'prescriptionStatus'
metatag.metatag_tag.schema_drug_proprietary_name:
  type: text
  label: 'proprietaryName'
metatag.metatag_tag.schema_drug_related_drug:
  type: text
  label: 'relatedDrug'
metatag.metatag_tag.schema_drug_rxcui:
  type: text
  label: 'rxcui'
metatag.metatag_tag.schema_drug_warning:
  type: text
  label: 'warning'
+8 −0
Original line number Diff line number Diff line
name: Schema.org Drug
type: module
description: Adds Schema.org/Drug to the JSON-LD array.
core_version_requirement: ^8 || ^9
package: SEO
dependencies:
  - schema_metatag:schema_metatag
  - schema_medical_entity:schema_medical_entity
+6 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Contains schema_drug.module.
 */
+21 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\schema_medical_entity\Plugin\metatag\Group;

use Drupal\schema_metatag\Plugin\metatag\Group\SchemaGroupBase;

/**
 * Provides a plugin for the 'Drug' meta tag group.
 *
 * @MetatagGroup(
 *   id = "schema_drug",
 *   label = @Translation("Schema.org: Drug"),
 *   description = @Translation("See Schema.org definitions for this Schema type at <a href="":url"">:url</a>.", arguments = {
 *     ":url" = "https://schema.org/Drug",
 *   }),
 *   weight = 10,
 * )
 */
class SchemaDrug extends SchemaGroupBase {

}
Loading