Class: Eddy::Elements::E365

Inherits:
Models::Element::ID show all
Defined in:
lib/definitions/elements/generated/365.communication_number_qualifier.rb

Overview

Element Summary:

  • Id: 365
  • Name: Communication Number Qualifier
  • Type: ID
  • Min/Max: 2/2
  • Description: Code identifying the type of communication number

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: nil, req: nil, ref: nil) ⇒ void

Parameters:

  • val (String) (defaults to: nil)
  • req (String) (defaults to: nil)
  • ref (String) (defaults to: nil)


16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/definitions/elements/generated/365.communication_number_qualifier.rb', line 16

def initialize(val: nil, req: nil, ref: nil)
  @id = "365"
  @name = "Communication Number Qualifier"
  @description = "Code identifying the type of communication number"
  super(
    min: 2,
    max: 2,
    req: req,
    ref: ref,
    val: val,
  )
end

Instance Method Details

#code_listArray<String>

Returns:

  • (Array<String>)


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/definitions/elements/generated/365.communication_number_qualifier.rb', line 30

def code_list()
  return [
    "AA", # International Telephone Access Code
    "AB", # Joint Facsimile and Phone Number
    "AC", # Message Only Voice Number
    "AD", # Delivery Location Phone
    "AP", # Alternate Telephone
    "AS", # Answering Service
    "AU", # Defense Switched Network
    "BN", # Beeper Number
    "BT", # BTX Number
    "CA", # Cable
    "CP", # Cellular Phone
    "DN", # Defense Data Network (DDN)
    "ED", # Electronic Data Interchange Access Number
    "EM", # Electronic Mail
    "EX", # Telephone Extension
    "FT", # Federal Telecommunications System (FTS)
    "FU", # Facsimile User Identifier
    "FX", # Facsimile
    "HF", # Home Facsimile Number
    "HP", # Home Phone Number
    "IT", # International Telephone
    "MN", # Modem Number
    "NP", # Night Telephone
    "OF", # Other Residential Facsimile Number
    "OT", # Other Residential Telephone Number
    "PA", # Appointment Phone
    "PC", # Personal Cellular
    "PP", # Personal Phone
    "PS", # Packet Switching
    "SP", # Showing Phone
    "TE", # Telephone
    "TL", # Telex
    "TM", # Telemail
    "TN", # Teletex Number
    "TX", # TWX
    "UR", # Uniform Resource Locator (URL)
    "VM", # Voice Mail
    "WC", # Work Cellular
    "WF", # Work Facsimile Number
    "WP", # Work Phone Number
  ]
end