Class: Google::Apis::HealthcareV1beta1::Field
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::Field
- 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
A (sub) field of a type.
Instance Attribute Summary collapse
-
#max_occurs ⇒ Fixnum
The maximum number of times this field can be repeated.
-
#min_occurs ⇒ Fixnum
The minimum number of times this field must be present/repeated.
-
#name ⇒ String
The name of the field.
-
#table ⇒ String
The HL7v2 table this field refers to.
-
#type ⇒ String
The type of this field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Field
constructor
A new instance of Field.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Field
Returns a new instance of Field.
2644 2645 2646 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2644 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_occurs ⇒ Fixnum
The maximum number of times this field can be repeated. 0 or -1 means
unbounded.
Corresponds to the JSON property maxOccurs
2620 2621 2622 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2620 def max_occurs @max_occurs end |
#min_occurs ⇒ Fixnum
The minimum number of times this field must be present/repeated.
Corresponds to the JSON property minOccurs
2625 2626 2627 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2625 def min_occurs @min_occurs end |
#name ⇒ String
The name of the field. For example, "PID-1" or just "1".
Corresponds to the JSON property name
2630 2631 2632 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2630 def name @name end |
#table ⇒ String
The HL7v2 table this field refers to. For example, PID-15 (Patient's Primary
Language) usually refers to table "0296".
Corresponds to the JSON property table
2636 2637 2638 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2636 def table @table end |
#type ⇒ String
The type of this field. A Type with this name must be defined in an
Hl7TypesConfig.
Corresponds to the JSON property type
2642 2643 2644 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2642 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2649 2650 2651 2652 2653 2654 2655 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2649 def update!(**args) @max_occurs = args[:max_occurs] if args.key?(:max_occurs) @min_occurs = args[:min_occurs] if args.key?(:min_occurs) @name = args[:name] if args.key?(:name) @table = args[:table] if args.key?(:table) @type = args[:type] if args.key?(:type) end |