Class: OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity::CDvQuantity

Inherits:
CDomainType
  • Object
show all
Defined in:
lib/open_ehr/am/openehr_profile/data_types/quantity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = { }) ⇒ CDvQuantity

Returns a new instance of CDvQuantity.



11
12
13
14
15
# File 'lib/open_ehr/am/openehr_profile/data_types/quantity.rb', line 11

def initialize(args = { })
  super
  self.property = args[:property]
  self.list = args[:list]
end

Instance Attribute Details

#listObject

Returns the value of attribute list.



9
10
11
# File 'lib/open_ehr/am/openehr_profile/data_types/quantity.rb', line 9

def list
  @list
end

#propertyObject

Returns the value of attribute property.



9
10
11
# File 'lib/open_ehr/am/openehr_profile/data_types/quantity.rb', line 9

def property
  @property
end

Instance Method Details

#any_allowed?Boolean

Returns:

  • (Boolean)


17
18
19
20
21
22
23
# File 'lib/open_ehr/am/openehr_profile/data_types/quantity.rb', line 17

def any_allowed?
  if @property.nil? && @list.nil?
    return true
  else
    return false
  end
end