Class: Google::Apis::HealthcareV1beta1::Field

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Field

Returns a new instance of Field.



2357
2358
2359
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2357

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

Instance Attribute Details

#max_occursFixnum

The maximum number of times this field can be repeated. 0 or -1 means unbounded. Corresponds to the JSON property maxOccurs

Returns:

  • (Fixnum)


2333
2334
2335
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2333

def max_occurs
  @max_occurs
end

#min_occursFixnum

The minimum number of times this field must be present/repeated. Corresponds to the JSON property minOccurs

Returns:

  • (Fixnum)


2338
2339
2340
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2338

def min_occurs
  @min_occurs
end

#nameString

The name of the field. For example, "PID-1" or just "1". Corresponds to the JSON property name

Returns:

  • (String)


2343
2344
2345
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2343

def name
  @name
end

#tableString

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

Returns:

  • (String)


2349
2350
2351
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2349

def table
  @table
end

#typeString

The type of this field. A Type with this name must be defined in an Hl7TypesConfig. Corresponds to the JSON property type

Returns:

  • (String)


2355
2356
2357
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2355

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2362
2363
2364
2365
2366
2367
2368
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2362

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