rbedi 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/bin/edi +897 -0
  3. data/lib/rbedi/codes/aaa.rb +437 -0
  4. data/lib/rbedi/codes/ak1.rb +278 -0
  5. data/lib/rbedi/codes/ak2.rb +336 -0
  6. data/lib/rbedi/codes/ak9.rb +55 -0
  7. data/lib/rbedi/codes/bht.rb +706 -0
  8. data/lib/rbedi/codes/codeset.rb +27 -0
  9. data/lib/rbedi/codes/dmg.rb +1583 -0
  10. data/lib/rbedi/codes/dtp.rb +1342 -0
  11. data/lib/rbedi/codes/eb.rb +1511 -0
  12. data/lib/rbedi/codes/eq.rb +286 -0
  13. data/lib/rbedi/codes/ge.rb +14 -0
  14. data/lib/rbedi/codes/gs.rb +287 -0
  15. data/lib/rbedi/codes/hl.rb +273 -0
  16. data/lib/rbedi/codes/iea.rb +14 -0
  17. data/lib/rbedi/codes/ik3.rb +32 -0
  18. data/lib/rbedi/codes/ik4.rb +37 -0
  19. data/lib/rbedi/codes/ik5.rb +56 -0
  20. data/lib/rbedi/codes/isa.rb +137 -0
  21. data/lib/rbedi/codes/le.rb +13 -0
  22. data/lib/rbedi/codes/ls.rb +13 -0
  23. data/lib/rbedi/codes/msg.rb +25 -0
  24. data/lib/rbedi/codes/n3.rb +14 -0
  25. data/lib/rbedi/codes/n4.rb +706 -0
  26. data/lib/rbedi/codes/nm1.rb +1916 -0
  27. data/lib/rbedi/codes/per.rb +308 -0
  28. data/lib/rbedi/codes/ref.rb +1749 -0
  29. data/lib/rbedi/codes/se.rb +14 -0
  30. data/lib/rbedi/codes/segment_names.rb +44 -0
  31. data/lib/rbedi/codes/st.rb +336 -0
  32. data/lib/rbedi/codes/trn.rb +22 -0
  33. data/lib/rbedi/codes.rb +8 -0
  34. data/lib/rbedi/edi_date_time.rb +69 -0
  35. data/lib/rbedi/functional_group.rb +52 -0
  36. data/lib/rbedi/non_existent_element_error.rb +4 -0
  37. data/lib/rbedi/parser.rb +102 -0
  38. data/lib/rbedi/segment.rb +114 -0
  39. data/lib/rbedi/transaction_envelope.rb +77 -0
  40. data/lib/rbedi/transaction_set.rb +40 -0
  41. data/lib/rbedi.rb +20 -4
  42. metadata +79 -10
@@ -0,0 +1,273 @@
1
+ module RBEDI
2
+ module Codes
3
+ module HL
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :hierarchial_id_number,
8
+ 2 => :hierarchial_parent_id_number,
9
+ 3 => :hierarchial_level_code,
10
+ 4 => :hierarchial_child_present,
11
+ }
12
+
13
+ CODES = {
14
+ 3 => {
15
+ "0" => :region,
16
+ "1" => :servicebilling_providercode_identifying_the_telecommunications_company_providing_servicebilling,
17
+ "2" => :billing_arrangementcode_identifying_a_specified_billing_arrangement,
18
+ "2a" => :branch,
19
+ "2b" => :direct_affiliatecompany_in_which_a_business_owns_a_minority_share,
20
+ "2c" => :director,
21
+ "2d" => :headquarters,
22
+ "2e" => :indirect_affiliatecompany_where_relationship_is_through_management_andor_stockholders,
23
+ "2f" => :management_antecedents,
24
+ "2g" => :management_or_principal,
25
+ "2h" => :parent_company,
26
+ "2i" => :stockholder,
27
+ "2j" => :subsidiary,
28
+ "2k" => :ultimate_domestic_parent_companytop_parent_in_the_family_tree_located_in_the_country,
29
+ "2l" => :ultimate_parent_companytop_parent_in_the_family_tree,
30
+ "3" => :subbilling_arrangementcode_identifying_a_more_detailed_billing_arrangement,
31
+ "4" => :group,
32
+ "5" => :categorycode_identifying_the_subdivision_of_the_group,
33
+ "6" => :subcategorycode_identifying_a_further_breakdown_of_the_category,
34
+ "7" => :typecode_identifying_a_further_breakdown_of_the_subcategory,
35
+ "8" => :charge_detailcode_identifying_the_lowest_level_of_charges_within_a_billing_arrangement,
36
+ "9" => :line_detailcode_identifying_the_supporting_detail_associated_with_the_charge_or_group,
37
+ "19" => :provider_of_service,
38
+ "20" => :information_source,
39
+ "21" => :information_receiver,
40
+ "22" => :subscriber,
41
+ "23" => :dependent,
42
+ "24" => :supergroup,
43
+ "25" => :subgroup,
44
+ "26" => :member,
45
+ "27" => :ancillary_facility_or_department,
46
+ "28" => :hospital,
47
+ "29" => :franchisor,
48
+ "30" => :franchisee,
49
+ "31" => :franchisee_association,
50
+ "32" => :health_industry_business_communications_council_hibcc_health_industry_number_hin_database,
51
+ "33" => :activity,
52
+ "34" => :location_record,
53
+ "35" => :companycorporationany_company_or_business,
54
+ "36" => :operating_unitany_operating_business_unit_within_a_company_or_corporation,
55
+ "37" => :propertyany_building_structure_or_body_of_land_that_is_considered_a_single_thing,
56
+ "38" => :tradenamea_name_by_which_the_public_identifies_a_business_or_product_that_is_owned_by_a_company_or_business,
57
+ "39" => :accountant,
58
+ "40" => :financial_institution,
59
+ "41" => :product_level,
60
+ "42" => :activity_details,
61
+ "43" => :payment_summary_score,
62
+ "44" => :corporate_registration_filings,
63
+ "45" => :bankruptcy_details,
64
+ "46" => :company_history,
65
+ "47" => :complete_financial_history,
66
+ "48" => :balance_sheet,
67
+ "49" => :comparative_figures,
68
+ "50" => :payment_analysis,
69
+ "51" => :special_notification,
70
+ "52" => :public_record_financing_details,
71
+ "53" => :public_record_financing_summary,
72
+ "54" => :public_record_claim_details,
73
+ "55" => :public_record_claim_summary,
74
+ "56" => :statement_of_worka_part_of_a_description_of_what_work_needs_to_be_performed_under_a_contract,
75
+ "57" => :legal_action_details,
76
+ "58" => :legal_action_summary,
77
+ "59" => :company_evaluation,
78
+ "60" => :company_summary,
79
+ "61" => :credit_scores,
80
+ "62" => :industry_averages,
81
+ "63" => :referring_provider,
82
+ "64" => :employee,
83
+ "65" => :insurance_policy,
84
+ "66" => :vehicle,
85
+ "67" => :key_contributor,
86
+ "68" => :public_record_summary,
87
+ "69" => :delinquency_projections,
88
+ "70" => :temporary_services_detail,
89
+ "71" => :overnight_shipping_detail,
90
+ "72" => :medical_supply_detail,
91
+ "73" => :equipment_leasing_detail,
92
+ "a" => :assembly,
93
+ "aa" => :insurer,
94
+ "ab" => :claim_administrator,
95
+ "ac" => :insured,
96
+ "ad" => :administrative_information,
97
+ "ae" => :car_rental_detail,
98
+ "af" => :lodging_detail,
99
+ "ag" => :agent,
100
+ "ah" => :transportation_detail,
101
+ "ai" => :purchase_card_detail,
102
+ "aj" => :alternate_taxing_authority,
103
+ "al" => :alternate_specification__lift_leveldesignates_the_hierarchical_level_detail_specifications_of_the_largest_warehouseshop_floor_applications_alternate_specification_to_be_used_as_an_option_when_the_primary_can_not_be_provided,
104
+ "am" => :amount_information,
105
+ "ap" => :credential_action,
106
+ "as" => :animal_subject_group,
107
+ "at" => :account,
108
+ "b" => :buyers_location,
109
+ "bd" => :building,
110
+ "be" => :business_entity,
111
+ "bp" => :body_part,
112
+ "c" => :date,
113
+ "cb" => :contractholder_branch_office,
114
+ "cc" => :cost_centera_location_to_which_incurred_costs_accrue,
115
+ "ce" => :cost_elementa_element_of_cost_within_a_total_proposed_price,
116
+ "ch" => :contractholder,
117
+ "ci" => :cause_of_injury,
118
+ "cl" => :claimant,
119
+ "cn" => :container,
120
+ "co" => :consortium,
121
+ "cp" => :client_or_party,
122
+ "ct" => :cost_typea_breakdown_of_the_type_of_cost_being_incurred,
123
+ "cv" => :coverage_rider_or_supplementary_benefit,
124
+ "d" => :product_description,
125
+ "dg" => :drawing,
126
+ "dm" => :damage,
127
+ "dp" => :departmentan_organization_entity_within_a_larger_business_entity,
128
+ "ds" => :district,
129
+ "e" => :transportation_equipment,
130
+ "eb" => :filer,
131
+ "ec" => :receipts,
132
+ "ed" => :engineering_data_list,
133
+ "ef" => :expenditures,
134
+ "eg" => :receivables,
135
+ "eh" => :payables,
136
+ "ei" => :organizational_information,
137
+ "el" => :exhibit_line_itema_number_for_a_document_referenced_in_and_appended_to_a_procurement_instrument_that_establishes_a_delivery_requirement,
138
+ "em" => :employer,
139
+ "en" => :end_item,
140
+ "ev" => :event,
141
+ "ex" => :exception,
142
+ "f" => :component,
143
+ "fc" => :function_codea_function_within_a_larger_set_describing_the_total_work_to_be_performed,
144
+ "fg" => :functional_group,
145
+ "fi" => :financial_information,
146
+ "fl" => :fleet,
147
+ "fr" => :frame,
148
+ "g" => :quality_characteristicsa_historical_record_of_product_quality_characteristics_and_or_discrepancies_for_a_given_item_of_supply,
149
+ "gc" => :group_coverage_options,
150
+ "gp" => :group_purchasing_organization,
151
+ "gw" => :group_work_candidate,
152
+ "h" => :bill_of_materials,
153
+ "i" => :item,
154
+ "ia" => :subline_itema_subdivision_of_the_line_item_typically_used_to_describe_a_separate_point_of_delivery,
155
+ "ib" => :contractan_agreement_between_partners,
156
+ "ic" => :contract_data_requirements_list_cdrl,
157
+ "in" => :interchange,
158
+ "is" => :installments,
159
+ "it" => :institution,
160
+ "iv" => :individual,
161
+ "j" => :part_characteristic,
162
+ "ju" => :jurisdiction,
163
+ "k" => :kit,
164
+ "ka" => :accident_history,
165
+ "kb" => :chemical,
166
+ "kc" => :control_device,
167
+ "kd" => :discharge,
168
+ "ke" => :emergency_response_plan,
169
+ "kf" => :emission,
170
+ "kg" => :emission_activity,
171
+ "kh" => :emission_release_point,
172
+ "ki" => :emission_unit,
173
+ "kj" => :flammable_mixture,
174
+ "kk" => :flammables_alternate_release,
175
+ "kl" => :flammables_worst_case,
176
+ "km" => :hazardous_waste_generation,
177
+ "kn" => :hazardous_waste_received,
178
+ "ko" => :offsite_process,
179
+ "kp" => :onsite_process,
180
+ "kq" => :parameter,
181
+ "kr" => :prevention_program,
182
+ "ks" => :process,
183
+ "kt" => :reduction_and_recycling,
184
+ "kv" => :toxics_alternate_release,
185
+ "kw" => :toxics_worst_case,
186
+ "kx" => :transfer,
187
+ "l" => :suppliers_location,
188
+ "ld" => :lender_or_mortgage_company,
189
+ "ln" => :loan_data,
190
+ "lp" => :party_to_the_loan,
191
+ "m" => :measurement,
192
+ "ml" => :manufacturing_levelnesting_category_for_use_in_the_hl_segment_that_defines_manufacturing_or_processing_stages_associated_with_specification_characteristics_controls_activities_or_measurements,
193
+ "n" => :site_of_service,
194
+ "ni" => :nature_of_injury,
195
+ "ns" => :national_stock_number,
196
+ "o" => :order,
197
+ "os" => :support,
198
+ "p" => :pack,
199
+ "pa" => :primary_administrator,
200
+ "pb" => :personal_property,
201
+ "pc" => :project_codea_part_of_a_larger_effort,
202
+ "pd" => :procedure,
203
+ "pe" => :person,
204
+ "ph" => :product_characteristic,
205
+ "pi" => :property_identification,
206
+ "pk" => :property_tax,
207
+ "pl" => :primary_specification__lift_leveldesignates_the_hierarchical_level_detailing_specifications_of_the_largest_unitized_configuration_to_be_handled_mechanically_in_warehouseshop_floor_applications_primary_indicates_preferred_or_mandatory_and_all_subsequent_hl_segments_contain_specifications_of_upper_or_interior_levels_of_the_lift_level_as_required,
208
+ "pp" => :related_parties,
209
+ "pr" => :principalan_entity_granting_authority_to_another_to_act_in_its_behalf_such_as_a_lobbyists_principal_or_an_entity_granting_power_of_attorney,
210
+ "ps" => :property_segment_group,
211
+ "pt" => :patient,
212
+ "py" => :payment_detail,
213
+ "q" => :subpack,
214
+ "r" => :quantity,
215
+ "ra" => :reporting_agency,
216
+ "rb" => :response,
217
+ "rc" => :response_details,
218
+ "rd" => :response_subdetails,
219
+ "re" => :response_particular,
220
+ "rf" => :medication,
221
+ "rg" => :recommendation,
222
+ "rh" => :review_history,
223
+ "rl" => :reference_location,
224
+ "rm" => :room,
225
+ "rp" => :reportthe_level_of_the_hierarchical_structure_used_to_identify_basic_report_information,
226
+ "s" => :shipment,
227
+ "s1" => :site,
228
+ "s2" => :sample,
229
+ "s3" => :test,
230
+ "sa" => :secondary_administrator,
231
+ "sb" => :substitute,
232
+ "sc" => :subcontract_line_itema_further_subdivision_of_a_contract_line_item_number_used_for_information_or_when_a_separate_delivery_is_involved,
233
+ "sd" => :support_document,
234
+ "se" => :subexhibit_line_itema_further_subdivision_of_a_contract_exhibit_line_item,
235
+ "sf" => :safety_fitness,
236
+ "sg" => :safety_factor,
237
+ "sh" => :sheet,
238
+ "si" => :source_of_injury,
239
+ "sl" => :solicitation,
240
+ "sp" => :subproject,
241
+ "sr" => :subroom,
242
+ "ss" => :services,
243
+ "st" => :state,
244
+ "sy" => :system,
245
+ "t" => :shipping_tare,
246
+ "ta" => :taxing_authority,
247
+ "td" => :tax_delinquency,
248
+ "ti" => :technical_information_package,
249
+ "ts" => :transaction_set,
250
+ "tu" => :traffic_unit,
251
+ "tx" => :tax_installment,
252
+ "u" => :subassembly,
253
+ "ut" => :unit_or_lot,
254
+ "v" => :address_informationthe_hl_loop_will_identify_entities_associated_with_the_shipment_notice_transaction,
255
+ "vi" => :violation,
256
+ "w" => :transaction_reference_numberthe_hl_loop_will_identify_shipment_notice_information_for_each_reported_transaction_reference_number,
257
+ "wb" => :work_breakdown_structurean_individual_element_of_work_portrayed_in_tree_structure_stages_of_the_total_performance_of_a_contract,
258
+ "wc" => :work_candidateidentifies_a_maintenance_or_repair_requirement,
259
+ "wl" => :well,
260
+ "wp" => :well_completion,
261
+ "wr" => :wellbore,
262
+ "x" => :serial_numberserial_numbers_applicable_to_a_referenced_item_of_supply,
263
+ "y" => :suffixthe_hl_loop_will_identify_shipment_notice_information_for_each_reported_suffix,
264
+ "zz" => :mutually_defined,
265
+ },
266
+ 4 => {
267
+ "0" => false,
268
+ "1" => true,
269
+ }
270
+ }
271
+ end
272
+ end
273
+ end
@@ -0,0 +1,14 @@
1
+ module RBEDI
2
+ module Codes
3
+ module IEA
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :functional_group_count,
8
+ 2 => :interchange_control_number,
9
+ }
10
+
11
+ CODES = {}
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,32 @@
1
+ module RBEDI
2
+ module Codes
3
+ module IK3
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :segment_id_code,
8
+ 2 => :segment_position_in_transaction_set,
9
+ 3 => :loop_identifier_code,
10
+ 4 => :implementation_segment_syntax_error_code
11
+ }
12
+
13
+ CODES = {
14
+ 4 => {
15
+ "1" => :unrecognized_segment_id,
16
+ "2" => :unexpected_segment,
17
+ "3" => :required_segment_missing,
18
+ "4" => :loop_occurs_over_maximum_times,
19
+ "5" => :segment_exceeds_maximum_use,
20
+ "6" => :segment_not_in_defined_transaction_set,
21
+ "7" => :segment_not_in_proper_sequence,
22
+ "8" => :segment_has_data_element_errors,
23
+ "i4" => :implementation_not_used_segment_present,
24
+ "i6" => :implementation_dependent_segment_missing,
25
+ "i7" => :implementation_loop_occurs_under_minimum_times,
26
+ "i8" => :implementation_segment_below_minimum_use,
27
+ "i9" => :implementation_dependent_not_used_segment_present,
28
+ }
29
+ }
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,37 @@
1
+ module RBEDI
2
+ module Codes
3
+ module IK4
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :position_in_segment,
8
+ 2 => :data_element_reference_number,
9
+ 3 => :implementation_data_element_syntax_error_code,
10
+ 4 => :copy_of_bad_data_element
11
+ }
12
+
13
+ CODES = {
14
+ 3 => {
15
+ "1" => :required_data_element_missing,
16
+ "2" => :conditional_required_data_element_missing,
17
+ "3" => :too_many_data_elements,
18
+ "4" => :data_element_too_short,
19
+ "5" => :data_element_too_long,
20
+ "6" => :invalid_character_in_data_element,
21
+ "7" => :invalid_code_value,
22
+ "8" => :invalid_date,
23
+ "9" => :invalid_time,
24
+ "10" => :exclusion_condition_violated,
25
+ "12" => :too_many_repetitions,
26
+ "13" => :too_many_components,
27
+ "i6" => :code_value_not_used_in_implementation,
28
+ "i9" => :implementation_dependent_data_element_missing,
29
+ "i10" => :implementation_not_used_data_element_present,
30
+ "i11" => :implementation_too_few_repetitions,
31
+ "i12" => :implementation_pattern_match_failure,
32
+ "i13" => :implementation_dependent_not_used_data_element_present,
33
+ }
34
+ }
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,56 @@
1
+ module RBEDI
2
+ module Codes
3
+ module IK5
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :transaction_set_acknowledgement_code,
8
+ 2 => :implementation_transaction_set_syntax_error_code_1,
9
+ 3 => :implementation_transaction_set_syntax_error_code_2,
10
+ 4 => :implementation_transaction_set_syntax_error_code_3,
11
+ 5 => :implementation_transaction_set_syntax_error_code_4,
12
+ 6 => :implementation_transaction_set_syntax_error_code_5,
13
+ }
14
+
15
+ CODES = {
16
+ 1 => {
17
+ "a" => :accepted,
18
+ "e" => :accepted_but_errors_were_noted,
19
+ "m" => :rejected_message_authentication_code_mac_failed,
20
+ "r" => :rejected,
21
+ "w" => :rejected_assurance_failed_validity_tests,
22
+ "x" => :rejected_content_after_decryption_could_not_be_analyzed,
23
+ },
24
+ 2 => {
25
+ "1" => :transaction_set_not_supported,
26
+ "2" => :transaction_set_trailer_missing,
27
+ "3" => :transaction_set_control_number_in_header_and_trailer_do_not_match,
28
+ "4" => :number_of_included_segments_does_not_match_actual_count,
29
+ "5" => :one_or_more_segments_in_error,
30
+ "6" => :missing_or_invalid_transaction_set_identifier,
31
+ "7" => :missing_or_invalid_transaction_set_control_number,
32
+ "8" => :authentication_key_name_unknown,
33
+ "9" => :encryption_key_name_unknown,
34
+ "10" => :requested_service_authentication_or_encrypted_not_available,
35
+ "11" => :unknown_security_recipient,
36
+ "12" => :incorrect_message_length_encryption_only,
37
+ "13" => :message_authentication_code_failed,
38
+ "15" => :unknown_security_originator,
39
+ "16" => :syntax_error_in_decrypted_text,
40
+ "17" => :security_not_supported,
41
+ "18" => :transaction_set_not_in_functional_group,
42
+ "19" => :invalid_transaction_set_implementation_convention_reference,
43
+ "23" => :transaction_set_control_number_not_unique_within_the_functional_group,
44
+ "24" => :s3e_security_end_segment_missing_for_s3s_security_start_segment,
45
+ "25" => :s3s_security_start_segment_missing_for_s3e_security_end_segment,
46
+ "26" => :s4e_security_end_segment_missing_for_s4s_security_start_segment,
47
+ "27" => :s4s_security_start_segment_missing_for_s4e_security_end_segment,
48
+ "i5" => :implementation_one_or_more_segments_in_error,
49
+ "i6" => :implementation_convention_not_supported,
50
+ }
51
+ }
52
+
53
+ CODES[3], CODES[4], CODES[5], CODES[6] = [CODES[2]]*4
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,137 @@
1
+ module RBEDI
2
+ module Codes
3
+ module ISA
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :authorization_information_qualifier,
8
+ 2 => :authorization_information,
9
+ 3 => :security_information_qualifier,
10
+ 4 => :security_information,
11
+ 5 => :interchange_sender_id_qualifier,
12
+ 6 => :interchange_sender_id,
13
+ 7 => :interchange_receiver_id_qualifier,
14
+ 8 => :interchange_receiver_id,
15
+ 9 => :interchange_date,
16
+ 10 => :interchange_time,
17
+ 11 => :repetition_separator,
18
+ 12 => :interchange_control_version_number,
19
+ 13 => :interchange_control_number,
20
+ 14 => :acknowledgement_requested,
21
+ 15 => :interchange_usage_indicator,
22
+ 16 => :component_element_separator,
23
+ }
24
+
25
+ CODES = {
26
+ 1 => {
27
+ "00" => :no_authorization_information_present,
28
+ "01" => :ucs_communications_id,
29
+ "02" => :edx_communications_id,
30
+ "03" => :additional_data_identification,
31
+ "04" => :rail_communications_id,
32
+ "05" => :department_of_defense_dod_communication_identifier,
33
+ "06" => :united_states_federal_government_communication_identifier,
34
+ },
35
+ 3 => {
36
+ "00" => :no_security_information_present,
37
+ "01" => :password,
38
+ },
39
+ 5 => {
40
+ "01" => :duns_dun_and_bradstreet,
41
+ "02" => :scac_standard_carrier_alpha_code,
42
+ "03" => :fmc_federal_maritime_commission,
43
+ "04" => :iata_international_air_transport_association,
44
+ "07" => :global_location_number_glna_globally_unique_13_digit_code_for_the_identification_of_a_legal_functional_or_physical_location_within_the_uniform_code_council_ucc_and_international_article_number_association_ean_numbering_system,
45
+ "08" => :ucc_edi_communications_id_comm_id,
46
+ "09" => :x121_ccitt,
47
+ "10" => :department_of_defense_dod_activity_address_code,
48
+ "11" => :dea_drug_enforcement_administration,
49
+ "12" => :phone_telephone_companies,
50
+ "13" => :ucs_code_the_ucs_code_is_a_code_used_for_ucs_transmissions_it_includes_the_area_code_and_telephone_number_of_a_modem_it_does_not_include_punctuation_blanks_or_access_code,
51
+ "14" => :duns_plus_suffix,
52
+ "15" => :petroleum_accountants_society_of_canada_company_code,
53
+ "16" => :duns_number_with_4character_suffix,
54
+ "17" => :american_bankers_association_aba_transit_routing_number_including_check_digit_9_digit,
55
+ "18" => :association_of_american_railroads_aar_standard_distribution_code,
56
+ "19" => :edi_council_of_australia_edica_communications_id_number_comm_id,
57
+ "20" => :health_industry_number_hin,
58
+ "21" => :integrated_postsecondary_education_data_system_or_ipeds,
59
+ "22" => :federal_interagency_commission_on_education_or_fice,
60
+ "23" => :national_center_for_education_statistics_common_core_of_data_12digit_number_for_prekgrade_12_institutes_or_nces,
61
+ "24" => :the_college_boards_admission_testing_program_4digit_code_of_postsecondary_institutes_or_atp,
62
+ "25" => :act_inc_4digit_code_of_postsecondary_institutions,
63
+ "26" => :statistics_of_canada_list_of_postsecondary_institutions,
64
+ "27" => :carrier_identification_number_as_assigned_by_health_care_financing_administration_hcfa,
65
+ "28" => :fiscal_intermediary_identification_number_as_assigned_by_health_care_financing_administration_hcfa,
66
+ "29" => :medicare_provider_and_supplier_identification_number_as_assigned_by_health_care_financing_administration_hcfa,
67
+ "30" => :us_federal_tax_identification_number,
68
+ "31" => :jurisdiction_identification_number_plus_4_as_assigned_by_the_international_association_of_industrial_accident_boards_and_commissions_iaiabc,
69
+ "32" => :us_federal_employer_identification_number_fein,
70
+ "33" => :national_association_of_insurance_commissioners_company_code_naic,
71
+ "34" => :medicaid_provider_and_supplier_identification_number_as_assigned_by_individual_state_medicaid_agencies_in_conjunction_with_health_care_financing_administration_hcfa,
72
+ "35" => :statistics_canada_canadian_college_student_information_system_institution_codes,
73
+ "36" => :statistics_canada_university_student_information_system_institution_codes,
74
+ "37" => :society_of_property_information_compilers_and_analysts,
75
+ "38" => :the_college_board_and_act_inc_6digit_code_list_of_secondary_institutions,
76
+ "am" => :association_mexicana_del_codigo_de_producto_amecop_communication_id,
77
+ "nr" => :national_retail_merchants_association_nrma__assigned,
78
+ "sa" => :user_identification_number_as_assigned_by_the_safety_and_fitness_electronic_records_safer_system,
79
+ "sn" => :standard_address_number,
80
+ "zz" => :mutually_defined,
81
+ },
82
+ 7 => {
83
+ "01" => :duns_dun_and_bradstreet,
84
+ "02" => :scac_standard_carrier_alpha_code,
85
+ "03" => :fmc_federal_maritime_commission,
86
+ "04" => :iata_international_air_transport_association,
87
+ "07" => :global_location_number_glna_globally_unique_13_digit_code_for_the_identification_of_a_legal_functional_or_physical_location_within_the_uniform_code_council_ucc_and_international_article_number_association_ean_numbering_system,
88
+ "08" => :ucc_edi_communications_id_comm_id,
89
+ "09" => :x121_ccitt,
90
+ "10" => :department_of_defense_dod_activity_address_code,
91
+ "11" => :dea_drug_enforcement_administration,
92
+ "12" => :phone_telephone_companies,
93
+ "13" => :ucs_code_the_ucs_code_is_a_code_used_for_ucs_transmissions_it_includes_the_area_code_and_telephone_number_of_a_modem_it_does_not_include_punctuation_blanks_or_access_code,
94
+ "14" => :duns_plus_suffix,
95
+ "15" => :petroleum_accountants_society_of_canada_company_code,
96
+ "16" => :duns_number_with_4character_suffix,
97
+ "17" => :american_bankers_association_aba_transit_routing_number_including_check_digit_9_digit,
98
+ "18" => :association_of_american_railroads_aar_standard_distribution_code,
99
+ "19" => :edi_council_of_australia_edica_communications_id_number_comm_id,
100
+ "20" => :health_industry_number_hin,
101
+ "21" => :integrated_postsecondary_education_data_system_or_ipeds,
102
+ "22" => :federal_interagency_commission_on_education_or_fice,
103
+ "23" => :national_center_for_education_statistics_common_core_of_data_12digit_number_for_prekgrade_12_institutes_or_nces,
104
+ "24" => :the_college_boards_admission_testing_program_4digit_code_of_postsecondary_institutes_or_atp,
105
+ "25" => :act_inc_4digit_code_of_postsecondary_institutions,
106
+ "26" => :statistics_of_canada_list_of_postsecondary_institutions,
107
+ "27" => :carrier_identification_number_as_assigned_by_health_care_financing_administration_hcfa,
108
+ "28" => :fiscal_intermediary_identification_number_as_assigned_by_health_care_financing_administration_hcfa,
109
+ "29" => :medicare_provider_and_supplier_identification_number_as_assigned_by_health_care_financing_administration_hcfa,
110
+ "30" => :us_federal_tax_identification_number,
111
+ "31" => :jurisdiction_identification_number_plus_4_as_assigned_by_the_international_association_of_industrial_accident_boards_and_commissions_iaiabc,
112
+ "32" => :us_federal_employer_identification_number_fein,
113
+ "33" => :national_association_of_insurance_commissioners_company_code_naic,
114
+ "34" => :medicaid_provider_and_supplier_identification_number_as_assigned_by_individual_state_medicaid_agencies_in_conjunction_with_health_care_financing_administration_hcfa,
115
+ "35" => :statistics_canada_canadian_college_student_information_system_institution_codes,
116
+ "36" => :statistics_canada_university_student_information_system_institution_codes,
117
+ "37" => :society_of_property_information_compilers_and_analysts,
118
+ "38" => :the_college_board_and_act_inc_6digit_code_list_of_secondary_institutions,
119
+ "am" => :association_mexicana_del_codigo_de_producto_amecop_communication_id,
120
+ "nr" => :national_retail_merchants_association_nrma__assigned,
121
+ "sa" => :user_identification_number_as_assigned_by_the_safety_and_fitness_electronic_records_safer_system,
122
+ "sn" => :standard_address_number,
123
+ "zz" => :mutually_defined,
124
+ },
125
+ 14 => {
126
+ "0" => false,
127
+ "1" => true,
128
+ },
129
+ 15 => {
130
+ "i" => :information,
131
+ "p" => :production,
132
+ "t" => :test,
133
+ }
134
+ }
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,13 @@
1
+ module RBEDI
2
+ module Codes
3
+ module LE
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :loop_identifier_code
8
+ }
9
+
10
+ CODES = {}
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module RBEDI
2
+ module Codes
3
+ module LS
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :loop_identifier_code
8
+ }
9
+
10
+ CODES = {}
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,25 @@
1
+ module RBEDI
2
+ module Codes
3
+ module MSG
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :message_text,
8
+ 2 => :printer_carriage_control_code,
9
+ 3 => :lines_to_advance_before_printing
10
+ }
11
+
12
+ CODES = {
13
+ 2 => {
14
+ "aa" => :advance_the_specified_number_of_lines_before_print,
15
+ "at" => :advanced_three_lines_before_print,
16
+ "ds" => :advance_two_lines_before_print,
17
+ "lc" => :line_continuation,
18
+ "np" => :advance_to_next_page_before_print,
19
+ "ns" => :no_advance_before_print,
20
+ "ss" => :advance_to_new_line_before_print,
21
+ }
22
+ }
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,14 @@
1
+ module RBEDI
2
+ module Codes
3
+ module N3
4
+ extend CodeSet
5
+
6
+ SEGMENT_POSITIONS = {
7
+ 1 => :address_information,
8
+ 2 => :additional_address_information
9
+ }
10
+
11
+ CODES = {}
12
+ end
13
+ end
14
+ end