Class: OpenEHR::AM::Archetype::ConstraintModel::Primitive::CDuration

Inherits:
CPrimitive
  • Object
show all
Defined in:
lib/openehr/am/archetype/constraint_model/primitive.rb

Instance Attribute Summary collapse

Attributes inherited from CPrimitive

#assumed_value, #default_value, #type

Instance Method Summary collapse

Methods inherited from CPrimitive

#has_assumed_value?

Constructor Details

#initialize(args = { }) ⇒ CDuration

Returns a new instance of CDuration.



315
316
317
318
319
320
321
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 315

def initialize(args = { })
  args[:type] = 'ISO8601_DURATION'
  super
  self.pattern = args[:pattern]
  self.list = args[:list]
  self.range = args[:range]
end

Instance Attribute Details

#days_allowedObject

Returns the value of attribute days_allowed.



311
312
313
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 311

def days_allowed
  @days_allowed
end

#fractional_seconds_allowedObject

Returns the value of attribute fractional_seconds_allowed.



312
313
314
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 312

def fractional_seconds_allowed
  @fractional_seconds_allowed
end

#hours_allowedObject

Returns the value of attribute hours_allowed.



311
312
313
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 311

def hours_allowed
  @hours_allowed
end

#listObject

Returns the value of attribute list.



313
314
315
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 313

def list
  @list
end

#minutes_allowedObject

Returns the value of attribute minutes_allowed.



311
312
313
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 311

def minutes_allowed
  @minutes_allowed
end

#months_allowedObject

Returns the value of attribute months_allowed.



310
311
312
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 310

def months_allowed
  @months_allowed
end

#patternObject

Returns the value of attribute pattern.



313
314
315
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 313

def pattern
  @pattern
end

#rangeObject

Returns the value of attribute range.



313
314
315
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 313

def range
  @range
end

#seconds_allowedObject

Returns the value of attribute seconds_allowed.



312
313
314
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 312

def seconds_allowed
  @seconds_allowed
end

#weeks_allowedObject

Returns the value of attribute weeks_allowed.



310
311
312
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 310

def weeks_allowed
  @weeks_allowed
end

#years_allowedObject

Returns the value of attribute years_allowed.



310
311
312
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 310

def years_allowed
  @years_allowed
end