Class: Google::Apis::HealthcareV1beta1::Type

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb

Overview

A type definition for some HL7v2 type (incl. Segments and Datatypes).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Type

Returns a new instance of Type.



5059
5060
5061
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5059

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

Instance Attribute Details

#fieldsArray<Google::Apis::HealthcareV1beta1::Field>

The (sub) fields this type has (if not primitive). Corresponds to the JSON property fields



5045
5046
5047
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5045

def fields
  @fields
end

#nameString

The name of this type. This would be the segment or datatype name. For example, "PID" or "XPN". Corresponds to the JSON property name

Returns:

  • (String)


5051
5052
5053
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5051

def name
  @name
end

#primitiveString

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

Returns:

  • (String)


5057
5058
5059
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5057

def primitive
  @primitive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5064
5065
5066
5067
5068
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5064

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