Class: Google::Apis::HealthcareV1::Type

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/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.



3785
3786
3787
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3785

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

Instance Attribute Details

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

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



3771
3772
3773
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3771

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)


3777
3778
3779
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3777

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)


3783
3784
3785
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3783

def primitive
  @primitive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3790
3791
3792
3793
3794
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3790

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