Class: Google::Apis::HealthcareV1beta1::SchemaGroup

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchemaGroup

Returns a new instance of SchemaGroup.



4480
4481
4482
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4480

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

Instance Attribute Details

#choiceBoolean 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

Returns:

  • (Boolean)


4456
4457
4458
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4456

def choice
  @choice
end

#max_occursFixnum

The maximum number of times this group can be repeated. 0 or -1 means unbounded. Corresponds to the JSON property maxOccurs

Returns:

  • (Fixnum)


4463
4464
4465
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4463

def max_occurs
  @max_occurs
end

#membersArray<Google::Apis::HealthcareV1beta1::GroupOrSegment>

Nested groups and/or segments. Corresponds to the JSON property members



4468
4469
4470
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4468

def members
  @members
end

#min_occursFixnum

The minimum number of times this group must be present/repeated. Corresponds to the JSON property minOccurs

Returns:

  • (Fixnum)


4473
4474
4475
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4473

def min_occurs
  @min_occurs
end

#nameString

The name of this group. For example, "ORDER_DETAIL". Corresponds to the JSON property name

Returns:

  • (String)


4478
4479
4480
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4478

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4485
4486
4487
4488
4489
4490
4491
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4485

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