lib/mida_vocabulary/vocabularies/schemaorg/druglegalstatus.rb in mida_vocabulary-0.2 vs lib/mida_vocabulary/vocabularies/schemaorg/druglegalstatus.rb in mida_vocabulary-0.2.2

- old
+ new

@@ -3,15 +3,22 @@ module Mida module SchemaOrg autoload :MedicalEntity, 'mida_vocabulary/vocabularies/schemaorg/medicalentity' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :AdministrativeArea, 'mida_vocabulary/vocabularies/schemaorg/administrativearea' # The legal availability status of a medical drug. class DrugLegalStatus < Mida::Vocabulary itemtype %r{http://schema.org/DrugLegalStatus}i include_vocabulary Mida::SchemaOrg::MedicalEntity include_vocabulary Mida::SchemaOrg::Thing + + # The location in which the status applies. + has_many 'applicableLocation' do + extract Mida::SchemaOrg::AdministrativeArea + extract Mida::DataType::Text + end end end end