Class: Eddy::Segments::PID

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/generated/pid.rb

Overview

Segment Summary:

  • Id: PID
  • Name: Product/Item Description
  • Purpose: To describe a product or process in coded or free-form format

Instance Attribute Summary

Attributes inherited from Models::Segment

#elements, #id, #name, #skip, #store

Instance Method Summary collapse

Methods inherited from Models::Segment

#render

Constructor Details

#initialize(store) ⇒ void

Parameters:



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/definitions/segments/generated/pid.rb', line 12

def initialize(store)
  @id = "PID"
  @name = "Product/Item Description"
  @pid01 = Eddy::Elements::E349.new(ref: "PID01", req: "M")
  @pid02 = Eddy::Elements::E750.new(ref: "PID02", req: "O")
  @pid03 = Eddy::Elements::E559.new(ref: "PID03", req: "O")
  @pid04 = Eddy::Elements::E751.new(ref: "PID04", req: "O")
  @pid05 = Eddy::Elements::E352.new(ref: "PID05", req: "X")
  super(
    store,
    @pid01,
    @pid02,
    @pid03,
    @pid04,
    @pid05,
  )
end

Instance Method Details

#PID01=(arg) ⇒ void Also known as: ItemDescriptionType=

This method returns an undefined value.

PID01

  • Id: 349
  • Name: Item Description Type
  • Type: ID
  • Min/Max: 1/1
  • Description: Code indicating the format of a description

Parameters:

  • arg (String)


40
41
42
# File 'lib/definitions/segments/generated/pid.rb', line 40

def PID01=(arg)
  @pid01.value = arg
end

#PID02=(arg) ⇒ void Also known as: ProductProcessCharacteristicCode=

This method returns an undefined value.

PID02

  • Id: 750
  • Name: Product/Process Characteristic Code
  • Type: ID
  • Min/Max: 2/3
  • Description: Code identifying the general class of a product or process characteristic

Parameters:

  • arg (String)


55
56
57
# File 'lib/definitions/segments/generated/pid.rb', line 55

def PID02=(arg)
  @pid02.value = arg
end

#PID03=(arg) ⇒ void Also known as: AgencyQualifierCode=

This method returns an undefined value.

PID03

  • Id: 559
  • Name: Agency Qualifier Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code identifying the agency assigning the code values

Parameters:

  • arg (String)


70
71
72
# File 'lib/definitions/segments/generated/pid.rb', line 70

def PID03=(arg)
  @pid03.value = arg
end

#PID04=(arg) ⇒ void Also known as: ProductDescriptionCode=

This method returns an undefined value.

PID04

  • Id: 751
  • Name: Product Description Code
  • Type: AN
  • Min/Max: 1/12
  • Description: A code from an industry code list which provides specific data about a product characteristic

Parameters:

  • arg (String)


85
86
87
# File 'lib/definitions/segments/generated/pid.rb', line 85

def PID04=(arg)
  @pid04.value = arg
end

#PID05=(arg) ⇒ void Also known as: Description=

This method returns an undefined value.

PID05

  • Id: 352
  • Name: Description
  • Type: AN
  • Min/Max: 1/80
  • Description: A free-form description to clarify the related data elements and their content

Parameters:

  • arg (String)


100
101
102
# File 'lib/definitions/segments/generated/pid.rb', line 100

def PID05=(arg)
  @pid05.value = arg
end