Class: Google::Apis::HealthcareV1::Segment
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::Segment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/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.
-
#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.
Constructor Details
#initialize(**args) ⇒ Segment
Returns a new instance of Segment.
3977 3978 3979 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3977 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, "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
3964 3965 3966 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3964 def fields @fields end |
#segment_id ⇒ String
A string that indicates the type of segment. For example, EVN or PID.
Corresponds to the JSON property segmentId
3969 3970 3971 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3969 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's missing or
isn't applicable.
Corresponds to the JSON property setId
3975 3976 3977 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3975 def set_id @set_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3982 3983 3984 3985 3986 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3982 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 |