Class: Eddy::Segments::N1

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

Overview

Segment Summary:

  • Id: N1
  • Name: Name
  • Purpose: To identify a party by type of organization, name, and code

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
# File 'lib/definitions/segments/generated/n1.rb', line 12

def initialize(store)
  @id = "N1"
  @name = "Name"
  @n101 = Eddy::Elements::E98.new(ref: "N101", req: "M")
  @n102 = Eddy::Elements::E93.new(ref: "N102", req: "X")
  @n103 = Eddy::Elements::E66.new(ref: "N103", req: "X")
  @n104 = Eddy::Elements::E67.new(ref: "N104", req: "X")
  super(
    store,
    @n101,
    @n102,
    @n103,
    @n104,
  )
end

Instance Method Details

#N101=(arg) ⇒ void Also known as: EntityIdentifierCode=

This method returns an undefined value.

N101

  • Id: 98
  • Name: Entity Identifier Code
  • Type: ID
  • Min/Max: 2/3
  • Description: Code identifying an organizational entity, a physical location, property or an individual

Parameters:

  • arg (String)


38
39
40
# File 'lib/definitions/segments/generated/n1.rb', line 38

def N101=(arg)
  @n101.value = arg
end

#N102=(arg) ⇒ void Also known as: Name=

This method returns an undefined value.

N102

  • Id: 93
  • Name: Name
  • Type: AN
  • Min/Max: 1/60
  • Description: Free-form name

Parameters:

  • arg (String)


53
54
55
# File 'lib/definitions/segments/generated/n1.rb', line 53

def N102=(arg)
  @n102.value = arg
end

#N103=(arg) ⇒ void Also known as: IdentificationCodeQualifier=

This method returns an undefined value.

N103

  • Id: 66
  • Name: Identification Code Qualifier
  • Type: ID
  • Min/Max: 1/2
  • Description: Code designating the system/method of code structure used for Identification Code (67)

Parameters:

  • arg (String)


68
69
70
# File 'lib/definitions/segments/generated/n1.rb', line 68

def N103=(arg)
  @n103.value = arg
end

#N104=(arg) ⇒ void Also known as: IdentificationCode=

This method returns an undefined value.

N104

  • Id: 67
  • Name: Identification Code
  • Type: AN
  • Min/Max: 2/80
  • Description: Code identifying a party or other code

Parameters:

  • arg (String)


83
84
85
# File 'lib/definitions/segments/generated/n1.rb', line 83

def N104=(arg)
  @n104.value = arg
end