Class: Google::Apis::HealthcareV1beta1::SchemaSegment
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::SchemaSegment
- 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 Segment.
Instance Attribute Summary collapse
-
#max_occurs ⇒ Fixnum
The maximum number of times this segment can be present in this group.
-
#min_occurs ⇒ Fixnum
The minimum number of times this segment can be present in this group.
-
#type ⇒ String
The Segment type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchemaSegment
constructor
A new instance of SchemaSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchemaSegment
Returns a new instance of SchemaSegment.
4728 4729 4730 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4728 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_occurs ⇒ Fixnum
The maximum number of times this segment can be present in this group. 0 or -1
means unbounded.
Corresponds to the JSON property maxOccurs
4716 4717 4718 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4716 def max_occurs @max_occurs end |
#min_occurs ⇒ Fixnum
The minimum number of times this segment can be present in this group.
Corresponds to the JSON property minOccurs
4721 4722 4723 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4721 def min_occurs @min_occurs end |
#type ⇒ String
The Segment type. For example, "PID".
Corresponds to the JSON property type
4726 4727 4728 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4726 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4733 4734 4735 4736 4737 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4733 def update!(**args) @max_occurs = args[:max_occurs] if args.key?(:max_occurs) @min_occurs = args[:min_occurs] if args.key?(:min_occurs) @type = args[:type] if args.key?(:type) end |