Class: Google::Apis::HealthcareV1beta1::Segment

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

A segment in a structured format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Segment

Returns a new instance of Segment.



2568
2569
2570
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2568

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

Instance Attribute Details

#fieldsHash<String,String>

A mapping from the positional location to the value. The key string uses zero-based indexes separated by dots to identify Fields, components and sub-components. A bracket notation is also used to identify different instances of a repeated field. Regex for key: (\d+)([\d+])?(.\d+)?(.\d+)? Examples of (key, value) pairs:

  • (0.1, "hemoglobin") denotes that the first component of Field 0 has the value "hemoglobin".
  • (1.1.2, "CBC") denotes that the second sub-component of the first component of Field 1 has the value "CBC".
  • (1[0].1, "HbA1c") denotes that the first component of the first Instance of Field 1, which is repeated, has the value "HbA1c". Corresponds to the JSON property fields

Returns:

  • (Hash<String,String>)


2555
2556
2557
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2555

def fields
  @fields
end

#segment_idString

A string that indicates the type of segment. For example, EVN or PID. Corresponds to the JSON property segmentId

Returns:

  • (String)


2560
2561
2562
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2560

def segment_id
  @segment_id
end

#set_idString

Set ID for segments that can be in a set. This can be empty if it's missing or isn't applicable. Corresponds to the JSON property setId

Returns:

  • (String)


2566
2567
2568
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2566

def set_id
  @set_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2573
2574
2575
2576
2577
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2573

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
  @segment_id = args[:segment_id] if args.key?(:segment_id)
  @set_id = args[:set_id] if args.key?(:set_id)
end