Sha256: daf46ea2d506833ce044e411b602a8fc2c0968a05f397a206baf425cb72dfc88

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 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 :MedicalCondition, 'mida_vocabulary/vocabularies/schemaorg/medicalcondition'
    autoload :MedicalSignOrSymptom, 'mida_vocabulary/vocabularies/schemaorg/medicalsignorsymptom'

    # An alternative, closely-related condition typically considered later in the differential diagnosis process along with the signs that are used to distinguish it.
    class DDxElement < Mida::Vocabulary
      itemtype %r{http://schema.org/DDxElement}i
      include_vocabulary Mida::SchemaOrg::MedicalEntity
      include_vocabulary Mida::SchemaOrg::Thing

      # One or more alternative conditions considered in the differential diagnosis process.
      has_many 'diagnosis' do
        extract Mida::SchemaOrg::MedicalCondition
        extract Mida::DataType::Text
      end

      # One of a set of signs and symptoms that can be used to distinguish this diagnosis from others in the differential diagnosis.
      has_many 'distinguishingSign' do
        extract Mida::SchemaOrg::MedicalSignOrSymptom
        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/ddxelement.rb