Class: Eddy::Segments::ISA

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/manual/envelopes/isa.rb

Overview

Segment Summary:

  • Id: ISA
  • Name: Interchange Control Header
  • Purpose: To start and identify an interchange of zero or more functional groups and interchange-related control segments.

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, interchange_control_number) ⇒ void

Parameters:

  • store (Eddy::Data::Store)
  • interchange_control_number (Integer)

    A unique interchange control number.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 13

def initialize(store, interchange_control_number)
  @id = "ISA"
  @name = "Interchange Control Header"
  @isa01 = Eddy::Elements::I01.new(ref: "ISA01", req: "M")
  @isa02 = Eddy::Elements::I02.new(ref: "ISA02", req: "M")
  @isa03 = Eddy::Elements::I03.new(ref: "ISA03", req: "M")
  @isa04 = Eddy::Elements::I04.new(ref: "ISA04", req: "M")
  @isa05 = Eddy::Elements::I05.new(ref: "ISA05", req: "M")
  @isa06 = Eddy::Elements::I06.new(ref: "ISA06", req: "M", val: store.application_senders_code)
  @isa07 = Eddy::Elements::I05.new(ref: "ISA07", req: "M")
  @isa08 = Eddy::Elements::I07.new(ref: "ISA08", req: "M", val: store.application_receivers_code)
  @isa09 = Eddy::Elements::I08.new(ref: "ISA09", req: "M", val: store.time)
  @isa10 = Eddy::Elements::I09.new(ref: "ISA10", req: "M", val: store.time)
  @isa11 = Eddy::Elements::I10.new(ref: "ISA11", req: "M")
  @isa12 = Eddy::Elements::I11.new(ref: "ISA12", req: "M", val: store.edi_version)
  @isa13 = Eddy::Elements::I12.new(ref: "ISA13", req: "M", val: interchange_control_number)
  @isa14 = Eddy::Elements::I13.new(ref: "ISA14", req: "M")
  @isa15 = Eddy::Elements::I14.new(ref: "ISA15", req: "M")
  @isa16 = Eddy::Elements::I15.new(ref: "ISA16", req: "M", val: store.component_separator)
  super(
    store,
    @isa01,
    @isa02,
    @isa03,
    @isa04,
    @isa05,
    @isa06,
    @isa07,
    @isa08,
    @isa09,
    @isa10,
    @isa11,
    @isa12,
    @isa13,
    @isa14,
    @isa15,
    @isa16,
  )
end

Instance Method Details

#ISA01=(arg) ⇒ void Also known as: AuthorizationInformationQualifier=

This method returns an undefined value.

ISA01

  • Id: I01
  • Name: Authorization Information Qualifier
  • Type: ID
  • Min/Max: 2/2
  • Description: Code to identify the type of information in the Authorization Information

Parameters:

  • arg (String)


63
64
65
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 63

def ISA01=(arg)
  @isa01.value = arg
end

#ISA02=(arg) ⇒ void Also known as: AuthorizationInformation=

This method returns an undefined value.

ISA02

  • Id: I02
  • Name: Authorization Information
  • Type: AN
  • Min/Max: 10/10
  • Description: Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)

Parameters:

  • arg (String)


78
79
80
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 78

def ISA02=(arg)
  @isa02.value = arg
end

#ISA03=(arg) ⇒ void Also known as: SecurityInformationQualifier=

This method returns an undefined value.

ISA03

  • Id: I03
  • Name: Security Information Qualifier
  • Type: ID
  • Min/Max: 2/2
  • Description: Code to identify the type of information in the Security Information

Parameters:

  • arg (String)


93
94
95
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 93

def ISA03=(arg)
  @isa03.value = arg
end

#ISA04=(arg) ⇒ void Also known as: SecurityInformation=

This method returns an undefined value.

ISA04

  • Id: I04
  • Name: Security Information
  • Type: AN
  • Min/Max: 10/10
  • Description: This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)

Parameters:

  • arg (String)


108
109
110
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 108

def ISA04=(arg)
  @isa04.value = arg
end

#ISA05=(arg) ⇒ void Also known as: InterchangeIdQualifier1=

This method returns an undefined value.

ISA05

  • Id: I05
  • Name: Interchange ID Qualifier
  • Type: ID
  • Min/Max: 2/2
  • Description: Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

Parameters:

  • arg (String)


123
124
125
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 123

def ISA05=(arg)
  @isa05.value = arg
end

#ISA06=(arg) ⇒ void Also known as: InterchangeSenderId=

This method returns an undefined value.

ISA06

  • Id: I06
  • Name: Interchange Sender ID
  • Type: AN
  • Min/Max: 15/15
  • Description: Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element

Parameters:

  • arg (String)


138
139
140
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 138

def ISA06=(arg)
  @isa06.value = arg
end

#ISA07=(arg) ⇒ void Also known as: InterchangeIdQualifier2=

This method returns an undefined value.

ISA07

  • Id: I05
  • Name: Interchange ID Qualifier
  • Type: ID
  • Min/Max: 2/2
  • Description: Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

Parameters:

  • arg (String)


153
154
155
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 153

def ISA07=(arg)
  @isa07.value = arg
end

#ISA08=(arg) ⇒ void Also known as: InterchangeReceiverId=

This method returns an undefined value.

ISA08

  • Id: I07
  • Name: Interchange Receiver ID
  • Type: AN
  • Min/Max: 15/15
  • Description: Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them

Parameters:

  • arg (String)


168
169
170
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 168

def ISA08=(arg)
  @isa08.value = arg
end

#ISA09=(arg) ⇒ void Also known as: InterchangeDate=

This method returns an undefined value.

ISA09

  • Id: I08
  • Name: Interchange Date
  • Type: DT
  • Min/Max: 6/6
  • Description: Date of the interchange

Parameters:

  • arg (Time)


183
184
185
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 183

def ISA09=(arg)
  @isa09.value = arg
end

#ISA10=(arg) ⇒ void Also known as: InterchangeTime=

This method returns an undefined value.

ISA10

  • Id: I09
  • Name: Interchange Time
  • Type: TM
  • Min/Max: 4/4
  • Description: Time of the interchange

Parameters:

  • arg (Time)


198
199
200
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 198

def ISA10=(arg)
  @isa10.value = arg
end

#ISA11=(arg) ⇒ void Also known as: InterchangeControlStandardsIdentifier=

This method returns an undefined value.

ISA11

  • Id: I10
  • Name: Interchange Control Standards Identifier
  • Type: ID
  • Min/Max: 1/1
  • Description: Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer

Parameters:

  • arg (String)


213
214
215
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 213

def ISA11=(arg)
  @isa11.value = arg
end

#ISA12=(arg) ⇒ void Also known as: InterchangeControlVersionNumber=

This method returns an undefined value.

ISA12

  • Id: I11
  • Name: Interchange Control Version Number
  • Type: ID
  • Min/Max: 5/5
  • Description: This version number covers the interchange control segments

Parameters:

  • arg (String)


228
229
230
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 228

def ISA12=(arg)
  @isa12.value = arg
end

#ISA13=(arg) ⇒ void Also known as: InterchangeControlNumber=

This method returns an undefined value.

ISA13

  • Id: I12
  • Name: Interchange Control Number
  • Type: N0
  • Min/Max: 9/9
  • Description: A control number assigned by the interchange sender

Parameters:

  • arg (Integer)


243
244
245
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 243

def ISA13=(arg)
  @isa13.value = arg
end

#ISA14=(arg) ⇒ void Also known as: AcknowledgmentRequested=

This method returns an undefined value.

ISA14

  • Id: I13
  • Name: Acknowledgment Requested
  • Type: ID
  • Min/Max: 1/1
  • Description: Code sent by the sender to request an interchange acknowledgment (TA1)

Parameters:

  • arg (String)


258
259
260
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 258

def ISA14=(arg)
  @isa14.value = arg
end

#ISA15=(arg) ⇒ void Also known as: UsageIndicator=

This method returns an undefined value.

ISA15

  • Id: I14
  • Name: Usage Indicator
  • Type: ID
  • Min/Max: 1/1
  • Description: Code to indicate whether data enclosed by this interchange envelope is test, production or information

Parameters:

  • arg (String)


273
274
275
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 273

def ISA15=(arg)
  @isa15.value = arg
end

#ISA16=(arg) ⇒ void Also known as: ComponentElementSeparator=

This method returns an undefined value.

ISA16

  • Id: I15
  • Name: Component Element Separator
  • Type: AN
  • Min/Max: 1/1
  • Description: Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator

Parameters:

  • arg (String)


288
289
290
# File 'lib/definitions/segments/manual/envelopes/isa.rb', line 288

def ISA16=(arg)
  @isa16.value = arg
end