Class: Google::Apis::HealthcareV1beta1::SchemaGroup
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::SchemaGroup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb
Overview
An HL7v2 logical group construct.
Instance Attribute Summary collapse
-
#choice ⇒ Boolean
(also: #choice?)
True indicates that this is a choice group, meaning that only one of its segments can exist in a given message.
-
#max_occurs ⇒ Fixnum
The maximum number of times this group can be repeated.
-
#members ⇒ Array<Google::Apis::HealthcareV1beta1::GroupOrSegment>
Nested groups and/or segments.
-
#min_occurs ⇒ Fixnum
The minimum number of times this group must be present/repeated.
-
#name ⇒ String
The name of this group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchemaGroup
constructor
A new instance of SchemaGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchemaGroup
Returns a new instance of SchemaGroup.
6601 6602 6603 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6601 def initialize(**args) update!(**args) end |
Instance Attribute Details
#choice ⇒ Boolean Also known as: choice?
True indicates that this is a choice group, meaning that only one of its
segments can exist in a given message.
Corresponds to the JSON property choice
6577 6578 6579 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6577 def choice @choice end |
#max_occurs ⇒ Fixnum
The maximum number of times this group can be repeated. 0 or -1 means
unbounded.
Corresponds to the JSON property maxOccurs
6584 6585 6586 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6584 def max_occurs @max_occurs end |
#members ⇒ Array<Google::Apis::HealthcareV1beta1::GroupOrSegment>
Nested groups and/or segments.
Corresponds to the JSON property members
6589 6590 6591 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6589 def members @members end |
#min_occurs ⇒ Fixnum
The minimum number of times this group must be present/repeated.
Corresponds to the JSON property minOccurs
6594 6595 6596 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6594 def min_occurs @min_occurs end |
#name ⇒ String
The name of this group. For example, "ORDER_DETAIL".
Corresponds to the JSON property name
6599 6600 6601 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6599 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6606 6607 6608 6609 6610 6611 6612 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6606 def update!(**args) @choice = args[:choice] if args.key?(:choice) @max_occurs = args[:max_occurs] if args.key?(:max_occurs) @members = args[:members] if args.key?(:members) @min_occurs = args[:min_occurs] if args.key?(:min_occurs) @name = args[:name] if args.key?(:name) end |