Sha256: 6a80d228ed00718a284e73a9e0123658562264b5ad75e5cd95b60929bd4155d0

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :MedicalSignOrSymptom, 'mida_vocabulary/vocabularies/schemaorg/medicalsignorsymptom'
    autoload :MedicalEntity, 'mida_vocabulary/vocabularies/schemaorg/medicalentity'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :PhysicalExam, 'mida_vocabulary/vocabularies/schemaorg/physicalexam'
    autoload :MedicalTest, 'mida_vocabulary/vocabularies/schemaorg/medicaltest'

    # Any physical manifestation of a person's medical condition discoverable by objective diagnostic tests or physical examination.
    class MedicalSign < Mida::Vocabulary
      itemtype %r{http://schema.org/MedicalSign}i
      include_vocabulary Mida::SchemaOrg::MedicalSignOrSymptom
      include_vocabulary Mida::SchemaOrg::MedicalEntity
      include_vocabulary Mida::SchemaOrg::Thing

      # A physical examination that can identify this sign.
      has_many 'identifyingExam' do
        extract Mida::SchemaOrg::PhysicalExam
      end

      # A diagnostic test that can identify this sign.
      has_many 'identifyingTest' do
        extract Mida::SchemaOrg::MedicalTest
        extract Mida::DataType::Text
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/schemaorg/medicalsign.rb