Class: Google::Apis::HealthcareV1beta1::Attribute

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb

Overview

An attribute value for a consent or data mapping. Each Attribute must have a corresponding AttributeDefinition in the consent store that defines the default and allowed values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attribute

Returns a new instance of Attribute.



298
299
300
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 298

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attribute_definition_idString

Indicates the name of an attribute defined at the consent store. Corresponds to the JSON property attributeDefinitionId

Returns:

  • (String)


288
289
290
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 288

def attribute_definition_id
  @attribute_definition_id
end

#valuesArray<String>

The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines "data type" with acceptable values "questionnaire" and "step-count", when the attribute name is data type, this field must contain one of those values. Corresponds to the JSON property values

Returns:

  • (Array<String>)


296
297
298
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 296

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 303

def update!(**args)
  @attribute_definition_id = args[:attribute_definition_id] if args.key?(:attribute_definition_id)
  @values = args[:values] if args.key?(:values)
end