Class: Google::Apis::HealthcareV1beta1::Type
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::Type
- 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 type definition for some HL7v2 type (incl. Segments and Datatypes).
Instance Attribute Summary collapse
-
#fields ⇒ Array<Google::Apis::HealthcareV1beta1::Field>
The (sub) fields this type has (if not primitive).
-
#name ⇒ String
The name of this type.
-
#primitive ⇒ String
If this is a primitive type then this field is the type of the primitive For example, STRING.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Type
constructor
A new instance of Type.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Type
Returns a new instance of Type.
7404 7405 7406 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Array<Google::Apis::HealthcareV1beta1::Field>
The (sub) fields this type has (if not primitive).
Corresponds to the JSON property fields
7390 7391 7392 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7390 def fields @fields end |
#name ⇒ String
The name of this type. This would be the segment or datatype name. For example,
"PID" or "XPN".
Corresponds to the JSON property name
7396 7397 7398 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7396 def name @name end |
#primitive ⇒ String
If this is a primitive type then this field is the type of the primitive For
example, STRING. Leave unspecified for composite types.
Corresponds to the JSON property primitive
7402 7403 7404 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7402 def primitive @primitive end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7409 7410 7411 7412 7413 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7409 def update!(**args) @fields = args[:fields] if args.key?(:fields) @name = args[:name] if args.key?(:name) @primitive = args[:primitive] if args.key?(:primitive) end |