Class: Eddy::Elements::I11

Inherits:
Models::Element::ID show all
Defined in:
lib/definitions/elements/manual/i/I11.interchange_control_version_number.rb

Overview

Element Summary:

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

Notes:

  • Default value: "00401"

Instance Attribute Summary

Attributes inherited from Models::Element::Base

#description, #id, #max, #min, #name, #ref, #type

Instance Method Summary collapse

Methods inherited from Models::Element::ID

#process_value, process_value, #value, #value=

Methods inherited from Models::Element::Base

#doc_comment, #process_value, process_value, #req, #req=, #value, #value=

Constructor Details

#initialize(val: "00401", req: nil, ref: nil) ⇒ void

Parameters:

  • val (String) (defaults to: "00401")

    ("00401")

  • req (String) (defaults to: nil)

    (nil)

  • ref (String) (defaults to: nil)

    (nil)



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/definitions/elements/manual/i/I11.interchange_control_version_number.rb', line 20

def initialize(val: "00401", req: nil, ref: nil)
  @id = "I11"
  @name = "Interchange Control Version Number"
  @description = "This version number covers the interchange control segments"
  super(
    min: 5,
    max: 5,
    req: req,
    ref: ref,
    val: val,
  )
end

Instance Method Details

#code_listArray<String>

Returns:

  • (Array<String>)


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/definitions/elements/manual/i/I11.interchange_control_version_number.rb', line 34

def code_list()
  return [
    "00200", # Standard Issued as ANSI X12.5-1987
    "00201", # Draft Standard for Trial Use Approved by ASC X12 Through August 1988
    "00204", # Draft Standard for Trial Use Approved by ASC X12 Through May 1989
    "00300", # Standard Issued as ANSI X12.5-1992
    "00301", # Draft Standard for Trial Use Approved for Publication by ASC X12 Procedures Review Board Through October 1990
    "00302", # Draft Standard for Trial Use Approved for Publication by ASC X12 Procedures Review Board Through October 1991
    "00303", # Draft Standard for Trial Use Approved for Publication by ASC X12 Procedures Review Board Through October 1992
    "00304", # Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1993
    "00305", # Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1994
    "00306", # Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1995
    "00307", # Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1996
    "00400", # Standard Issued as ANSI X12.5-1997
    "00401", # Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
    "00402", # Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1998
    "00501",
  ]
end