Sha256: 739587de5c455f9629e92272c90462f768e4346f5e304666dfcae728ad660629
Contents?: true
Size: 914 Bytes
Versions: 1
Compression:
Stored size: 914 Bytes
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :MedicalEntity, 'mida_vocabulary/vocabularies/schemaorg/medicalentity' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' # A specific dosing schedule for a drug or supplement. class DoseSchedule < Mida::Vocabulary itemtype %r{http://schema.org/DoseSchedule}i include_vocabulary Mida::SchemaOrg::MedicalEntity include_vocabulary Mida::SchemaOrg::Thing # The unit of the dose, e.g. 'mg'. has_many 'doseUnit' # The value of the dose, e.g. 500. has_many 'doseValue' do extract Mida::DataType::Number end # How often the dose is taken, e.g. 'daily'. has_many 'frequency' # Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'. has_many 'targetPopulation' 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/doseschedule.rb |