Sha256: e67efdac1f175919c35864877080e96a2e533d2eee7e5241554de8dba9c45040

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :MedicalEntity, 'mida_vocabulary/vocabularies/schemaorg/medicalentity'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :MedicalCause, 'mida_vocabulary/vocabularies/schemaorg/medicalcause'
    autoload :MedicalTherapy, 'mida_vocabulary/vocabularies/schemaorg/medicaltherapy'

    # Any indication of the existence of a medical condition or disease.
    class MedicalSignOrSymptom < Mida::Vocabulary
      itemtype %r{http://schema.org/MedicalSignOrSymptom}i
      include_vocabulary Mida::SchemaOrg::MedicalEntity
      include_vocabulary Mida::SchemaOrg::Thing

      # An underlying cause. More specifically, one of the causative agent(s) that are most directly responsible for the pathophysiologic process that eventually results in the occurrence.
      has_many 'cause' do
        extract Mida::SchemaOrg::MedicalCause
        extract Mida::DataType::Text
      end

      # A possible treatment to address this condition, sign or symptom.
      has_many 'possibleTreatment' do
        extract Mida::SchemaOrg::MedicalTherapy
        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/medicalsignorsymptom.rb