class OpenEHR::RM::DataTypes::TimeSpecification::DvPeriodicTimeSpecification

Attributes

calender_alignment[R]
event_alingment[R]
period[R]
value[R]

Public Class Methods

new(value) click to toggle source
# File lib/openehr/rm/data_types/time_specification.rb, line 52
def initialize(value)
  value_valid(value)
  super(value)
end

Public Instance Methods

institution_specified?() click to toggle source
# File lib/openehr/rm/data_types/time_specification.rb, line 68
def institution_specified?

end
value=(value) click to toggle source
# File lib/openehr/rm/data_types/time_specification.rb, line 56
def value=(value)
  unless value.formalism.is_equal('HL7:PIVL') or value.formalism.is_equal('HL7:EIVL')
    raise ArgumentError, "value is not valid"
  end
  if value.formalism('HL7:PIVL')
    /^\[(\d+)\;?(\d+)?\]\/\((\d+\w+)\)(@(\w+?))?(IST)?$/ =~ value
    interval1, interval2, difference, allignment = $1, $2, $3, $5
  end
  if value
  end
end