Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update REF segment count for Walmart #13

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion grnds-ediot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.summary = "EDI Online Transformer"
spec.description = "Don't be an EDIot. This gem contains libraries to transform an EDI X12 834 formated file (row based) to flattened CSV format (column based)"
spec.homepage = "https://github.com/ConsultingMD/ediot"
spec.license = "Copyright (c) 2016 Grand Rounds Inc, all rights reserved"
spec.license = "Copyright (c) 2020 Grand Rounds Inc, all rights reserved"

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
Expand Down
2 changes: 1 addition & 1 deletion lib/grnds/ediot/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Parser

DEFINITION = {
INS: {size: 17},
REF: {occurs: 5, size: 2},
REF: {occurs: 12, size: 2},
DTP: {occurs: 3, size: 3},
NM1: {occurs: 2, size: 9},
PER: {size: 8},
Expand Down
2 changes: 1 addition & 1 deletion lib/grnds/ediot/record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def parse(raw_rows)
end


# Ensures consistent orderding of the elements in the record
# Ensures consistent ordering of the elements in the record
#
# @param raw_rows [Array]
# @param row_key [Symbol]
Expand Down
2 changes: 1 addition & 1 deletion lib/grnds/ediot/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Grnds
module Ediot
VERSION = "0.4.0"
VERSION = "0.5.0"
end
end
6 changes: 3 additions & 3 deletions spec/support/processed_simple_sample.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ins_1,ins_2,ins_3,ins_4,ins_5,ins_6,ins_7,ins_8,ins_9,ins_10,ins_11,ins_12,ins_13,ins_14,ins_15,ins_16,ins_17,ref_1_1,ref_1_2,ref_2_1,ref_2_2,ref_3_1,ref_3_2,ref_4_1,ref_4_2,ref_5_1,ref_5_2,dtp_1_1,dtp_1_2,dtp_1_3,dtp_2_1,dtp_2_2,dtp_2_3,dtp_3_1,dtp_3_2,dtp_3_3,nm1_1_1,nm1_1_2,nm1_1_3,nm1_1_4,nm1_1_5,nm1_1_6,nm1_1_7,nm1_1_8,nm1_1_9,nm1_2_1,nm1_2_2,nm1_2_3,nm1_2_4,nm1_2_5,nm1_2_6,nm1_2_7,nm1_2_8,nm1_2_9,per_1,per_2,per_3,per_4,per_5,per_6,per_7,per_8,n3_1,n3_2,n4_1,n4_2,n4_3,dmg_1,dmg_2,dmg_3,hlh_1,hlh_2,hlh_3,hd_1,hd_2,hd_3,hd_4,hd_5,amt_1,amt_2
Y,18,030,AB,A,"","",FT,"",N,"","","","","","",0,0F,00000000,1L,WY 00284D 0001410020 2100502 N65536 WMO,23,00189350,ZZ,00000000W,"","",336,D8,20020126,348,D8,20160101,356,D8,20020126,IL,1,SALLY,SUE,K,"","",34,000000000,"","","","","","","","","",IP,"",HP,5732862630,EM,[email protected],CP,5732862630,887 EAST OAK ROAD,"",OAKLAND,CA,94608,D8,19580603,M,N,0,0,030,"",HLT,0126200300000000000000000000000000000000,ESP,D2,6000
N,53,030,AB,A,"","","","",N,"","","","","","",0,0F,00000000,1L,W 00284D 0001410020 2100502 N65536 WMO,23,00000000,ZZ,00000000W,"","",348,D8,20160101,356,D8,19980101,"","","",IL,1,RAMSAY,BOLTON,K,"","",34,000000000,"","","","","","","","","",IP,"",HP,4172888225,EM,[email protected],CP,4172888225,87 EAST BRANCH ROAD,"",MACKS CREEK,MO,65786,D8,19560105,F,"","","",030,"",HLT,0126200300000000000000000000000000000000,"",D2,6000
ins_1,ins_2,ins_3,ins_4,ins_5,ins_6,ins_7,ins_8,ins_9,ins_10,ins_11,ins_12,ins_13,ins_14,ins_15,ins_16,ins_17,ref_1_1,ref_1_2,ref_2_1,ref_2_2,ref_3_1,ref_3_2,ref_4_1,ref_4_2,ref_5_1,ref_5_2,ref_6_1,ref_6_2,ref_7_1,ref_7_2,ref_8_1,ref_8_2,ref_9_1,ref_9_2,ref_10_1,ref_10_2,ref_11_1,ref_11_2,ref_12_1,ref_12_2,dtp_1_1,dtp_1_2,dtp_1_3,dtp_2_1,dtp_2_2,dtp_2_3,dtp_3_1,dtp_3_2,dtp_3_3,nm1_1_1,nm1_1_2,nm1_1_3,nm1_1_4,nm1_1_5,nm1_1_6,nm1_1_7,nm1_1_8,nm1_1_9,nm1_2_1,nm1_2_2,nm1_2_3,nm1_2_4,nm1_2_5,nm1_2_6,nm1_2_7,nm1_2_8,nm1_2_9,per_1,per_2,per_3,per_4,per_5,per_6,per_7,per_8,n3_1,n3_2,n4_1,n4_2,n4_3,dmg_1,dmg_2,dmg_3,hlh_1,hlh_2,hlh_3,hd_1,hd_2,hd_3,hd_4,hd_5,amt_1,amt_2
Y,18,030,AB,A,"","",FT,"",N,"","","","","","",0,0F,00000000,1L,WY 00284D 0001410020 2100502 N65536 WMO,23,00189350,ZZ,00000000W,"","","","","","","","","","","","","","","","",336,D8,20020126,348,D8,20160101,356,D8,20020126,IL,1,SALLY,SUE,K,"","",34,000000000,"","","","","","","","","",IP,"",HP,5732862630,EM,[email protected],CP,5732862630,887 EAST OAK ROAD,"",OAKLAND,CA,94608,D8,19580603,M,N,0,0,030,"",HLT,0126200300000000000000000000000000000000,ESP,D2,6000
N,53,030,AB,A,"","","","",N,"","","","","","",0,0F,00000000,1L,W 00284D 0001410020 2100502 N65536 WMO,23,00000000,ZZ,00000000W,"","","","","","","","","","","","","","","","",348,D8,20160101,356,D8,19980101,"","","",IL,1,RAMSAY,BOLTON,K,"","",34,000000000,"","","","","","","","","",IP,"",HP,4172888225,EM,[email protected],CP,4172888225,87 EAST BRANCH ROAD,"",MACKS CREEK,MO,65786,D8,19560105,F,"","","",030,"",HLT,0126200300000000000000000000000000000000,"",D2,6000