Sha256: 58c91a34f6c469684c6ace3b6f6b71d2fcd4b0c0cc32d26b5f14b60421184e19

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 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 :MedicalRiskFactor, 'mida_vocabulary/vocabularies/schemaorg/medicalriskfactor'

    # Any rule set or interactive tool for estimating the risk of developing a complication or condition.
    class MedicalRiskEstimator < Mida::Vocabulary
      itemtype %r{http://schema.org/MedicalRiskEstimator}i
      include_vocabulary Mida::SchemaOrg::MedicalEntity
      include_vocabulary Mida::SchemaOrg::Thing

      # The condition, complication, or symptom whose risk is being estimated.
      has_many 'estimatesRiskOf' do
        extract Mida::SchemaOrg::MedicalEntity
        extract Mida::DataType::Text
      end

      # A modifiable or non-modifiable risk factor included in the calculation, e.g. age, coexisting condition.
      has_many 'includedRiskFactor' do
        extract Mida::SchemaOrg::MedicalRiskFactor
        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/medicalriskestimator.rb