Class: Google::Apis::HealthcareV1beta1::Segment
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::Segment
- 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
-
#fields ⇒ Hash<String,String>
A mapping from the positional location to the value.
-
#segment_id ⇒ String
A string that indicates the type of segment, e.g., EVN, PID.
-
#set_id ⇒ String
Set ID for segments that can be in a set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Segment
constructor
A new instance of Segment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Segment
Returns a new instance of Segment
2178 2179 2180 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2178 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Hash<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, "foo"): Component 1 of Field 0 has the value "foo".
- (1.1.2, "bar"): Sub-component 2 of Component 1 of field 1 has the value "bar".
- (1[2].1, "baz"): Component 1 of Instance 2 of Field 1, which is repeated,
has the value "baz".
Corresponds to the JSON property
fields
2165 2166 2167 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2165 def fields @fields end |
#segment_id ⇒ String
A string that indicates the type of segment, e.g., EVN, PID.
Corresponds to the JSON property segmentId
2170 2171 2172 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2170 def segment_id @segment_id end |
#set_id ⇒ String
Set ID for segments that can be in a set. This can be empty if it is
missing or it is not applicable.
Corresponds to the JSON property setId
2176 2177 2178 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2176 def set_id @set_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2183 2184 2185 2186 2187 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 2183 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 |