era_835_parser 0.1.11 → 0.1.12

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdc09dc9f3656f4155cf027e2ddc655167840ad8d4e06b0e09cc3658c4eb1309
4
- data.tar.gz: 3b37bb69fc93fc5bde9125ad62b48d720402a848da1837535fcf928f0edf2bb5
3
+ metadata.gz: 1a4d95e601bfb1f71b439fe740842c2485accf92bbd7b890e922e5fa53d1b447
4
+ data.tar.gz: 89f39835c344f1a9005245ac6712ec0c56dedbebe1cca0f92f608ad598b93ca8
5
5
  SHA512:
6
- metadata.gz: a4e30df5a5cb6b819bc399d1fc6072f66ec6c950bc9abb33cd5c98d038aff1025dfd14c860719bfa9db4c1f7adbdee81131dd03ffaa7ad729661906af89f6a35
7
- data.tar.gz: 158d3d082f2eb8b13af67845fd65dcacef8a12f342770e9ce2f2a1aeb8203092892f9f2341238f6d295c85f6dd534d12adf9d0758651f74dd67a90c774fd864b
6
+ metadata.gz: 489f980ede5fe53b11c9e83806343da7a891e333f3a4d21cdcb1e73918915938473f5cee500b9624874fd1c34e2f06c6d050b616756060dc8e4fd9f1eae21237
7
+ data.tar.gz: 641a2ddd323d683091d047dd04c4b26e43bdbf4bc9151bbe28c0e8aa5bf72d958a329eeadf40cdcfe402c4bff51477d9f17f7f2ab337fc2e85986272ee4f9a3e
@@ -67,6 +67,7 @@ module Era835Parser
67
67
  service_date = false
68
68
  floating_adjustment_group_code = nil
69
69
  returned_reference_number = false
70
+ payer_edi_id = false
70
71
 
71
72
  file_or_file_path = !file.nil? ? file : file_path
72
73
  opened_file = file_or_file_path.respond_to?(:write) ? file_or_file_path : open(file_or_file_path)
@@ -962,6 +963,7 @@ module Era835Parser
962
963
  # Additional Payee Identification Qualifier
963
964
  # puts "Additional Payee Identification Qualifier: #{element}"
964
965
  returned_reference_number = true if element == '6R'
966
+ payer_edi_id = true if element == '2U'
965
967
  when 2
966
968
  # Reference Identification Code
967
969
  # puts "Reference Identification Code: #{element}"
@@ -969,6 +971,11 @@ module Era835Parser
969
971
  individual_line_item[:reference_number] = element
970
972
  returned_reference_number = false
971
973
  end
974
+
975
+ if payer_edi_id
976
+ era[:checks][check[:check_number]][:payer_edi_id] = element
977
+ payer_edi_id = false
978
+ end
972
979
  when 3
973
980
  # Additional Payee Identification Qualifier
974
981
  # puts "Additional Payee Identification Qualifier: #{element}"
@@ -1,3 +1,3 @@
1
1
  module Era835Parser
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
@@ -65,6 +65,9 @@ RSpec.describe Era835Parser::Parser do
65
65
  it 'returns the Payer tax id' do
66
66
  expect(@era[:checks]['70408535'][:payer_tax_id]).to eq('57-14001')
67
67
  end
68
+ it 'returns the Payer EDI id' do
69
+ expect(@era[:checks]['70408535'][:payer_edi_id]).to eq('11111')
70
+ end
68
71
  it 'returns the Check date (string mm/dd/yyyy)' do
69
72
  expect(@era[:checks]['70408535'][:date]).to eq('09/23/2010')
70
73
  end
@@ -185,7 +188,7 @@ RSpec.describe Era835Parser::Parser do
185
188
  end
186
189
  end
187
190
 
188
- context 'Check #70408535' do
191
+ context 'Check #02790758' do
189
192
  it 'returns the check number' do
190
193
  expect(@era[:checks]['02790758'][:check_number]).to eq('02790758')
191
194
  end
@@ -219,6 +222,9 @@ RSpec.describe Era835Parser::Parser do
219
222
  it 'returns the Payer tax id' do
220
223
  expect(@era[:checks]['02790758'][:payer_tax_id]).to eq('60-894904')
221
224
  end
225
+ it 'returns the Payer EDI id' do
226
+ expect(@era[:checks]['02790758'][:payer_edi_id]).to eq('22222')
227
+ end
222
228
  it 'returns the Check date (string mm/dd/yyyy)' do
223
229
  expect(@era[:checks]['02790758'][:date]).to eq('01/08/2011')
224
230
  end
@@ -425,7 +431,7 @@ RSpec.describe Era835Parser::Parser do
425
431
  end
426
432
  end
427
433
 
428
- context 'Check #70408535' do
434
+ context 'Check #02790758' do
429
435
  it 'returns the check number' do
430
436
  expect(@era[:checks]['02790758'][:check_number]).to eq('02790758')
431
437
  end
@@ -459,6 +465,9 @@ RSpec.describe Era835Parser::Parser do
459
465
  it 'returns the Payer tax id' do
460
466
  expect(@era[:checks]['02790758'][:payer_tax_id]).to eq('60-894904')
461
467
  end
468
+ it 'returns the Payer EDI id' do
469
+ expect(@era[:checks]['02790758'][:payer_edi_id]).to eq('33333')
470
+ end
462
471
  it 'returns the Check date (string mm/dd/yyyy)' do
463
472
  expect(@era[:checks]['02790758'][:date]).to eq('01/08/2011')
464
473
  end
@@ -699,6 +708,9 @@ RSpec.describe Era835Parser::Parser do
699
708
  it 'returns the Payer tax id' do
700
709
  expect(@era[:checks]['0123456789012345678901234567890123456789'][:payer_tax_id]).to eq('60-894904')
701
710
  end
711
+ it 'returns the Payer EDI id' do
712
+ expect(@era[:checks]['0123456789012345678901234567890123456789'][:payer_edi_id]).to eq(nil)
713
+ end
702
714
  it 'returns the Check date (string mm/dd/yyyy)' do
703
715
  expect(@era[:checks]['0123456789012345678901234567890123456789'][:date]).to eq('01/08/2011')
704
716
  end
data/spec/example_1.835 CHANGED
@@ -1 +1 @@
1
- ST*835*1234~BPR*I*15096.46*C*CHK************20100923~TRN*1*70408535*15714001~REF*F2*slca435w~DTM*405*20100923~N1*PR*NC TEACHERS & STATE EMPLOYEES HEALTH PLAN & HEALTH CHOICE~N3*P O BOX 30025~N4*DURHAM*NC*27702~PER*CX**TE*8002144844~N1*PE*ACME UNIV HLTH SYS INC*XX*1234567890~N3*P O BOX AAA1~N4*DURHAM*NC*27701~REF*TJ*123456789~CLP*474623UB001CW0321*1*3740.6*5451.04**15*80209000000*11*1**397*0.7309~CAS*CO*94*-1710.44~NM1*QC*1*Rabbit*Roger*B***MI* RUN123456789~MIA*0~REF*EA*CW0321~DTM*232*20100307~DTM*233*20100310~DTM*50*20100918~AMT*AU*5451.04~SE*21*1234~
1
+ ST*835*1234~BPR*I*15096.46*C*CHK************20100923~TRN*1*70408535*15714001~REF*F2*slca435w~DTM*405*20100923~N1*PR*NC TEACHERS & STATE EMPLOYEES HEALTH PLAN & HEALTH CHOICE~N3*P O BOX 30025~N4*DURHAM*NC*27702~REF*2U*11111~PER*CX**TE*8002144844~N1*PE*ACME UNIV HLTH SYS INC*XX*1234567890~N3*P O BOX AAA1~N4*DURHAM*NC*27701~REF*TJ*123456789~CLP*474623UB001CW0321*1*3740.6*5451.04**15*80209000000*11*1**397*0.7309~CAS*CO*94*-1710.44~NM1*QC*1*Rabbit*Roger*B***MI* RUN123456789~MIA*0~REF*EA*CW0321~DTM*232*20100307~DTM*233*20100310~DTM*50*20100918~AMT*AU*5451.04~SE*21*1234~
data/spec/example_2.835 CHANGED
@@ -1 +1 @@
1
- ST*835*1234~BPR*I*1922.86*C*CHK************20110108~TRN*1*02790758*560894904~REF*F2*LCLA438D~DTM*405*20110104~N1*PR*BLUE CROSS AND BLUE SHIELD OF NORTH CAROLINA~N3*P O BOX 2291~N4*DURHAM*NC*27702~PER*CX*TE*8005554844~N1*PE*XYZ HEALTHCARE CORPORATION*XX*0987654321~N3*P O BOX XYZ~N4*CHARLOTTE*NC*28234~REF*TJ*123456789~LX*1~CLP*200200964A52*1*2100*1922.86*142.54*15*94151100100~NM1*QC*1*Dough*Mary****MI* YPB123456789001~DTM*050*20110103~SVC*HC:59430*1210*1057.86**1*HC:59410~DTM*472*20101231~CAS*CO*42*34.6~CAS*PR*2*117.54~REF*6R*0001~AMT*B6*1175.4~SVC*HC:59440*890*865**1*HC:59410~DTM*472*20101231~CAS*PR*3*25~REF*6R*0002~SVC*HC:59426*742*742**1~DTM*472*20101231~REF*6R*0003~AMT*B6*742~SE*33*1234~
1
+ ST*835*1234~BPR*I*1922.86*C*CHK************20110108~TRN*1*02790758*560894904~REF*F2*LCLA438D~DTM*405*20110104~N1*PR*BLUE CROSS AND BLUE SHIELD OF NORTH CAROLINA~N3*P O BOX 2291~N4*DURHAM*NC*27702~REF*2U*22222~PER*CX*TE*8005554844~N1*PE*XYZ HEALTHCARE CORPORATION*XX*0987654321~N3*P O BOX XYZ~N4*CHARLOTTE*NC*28234~REF*TJ*123456789~LX*1~CLP*200200964A52*1*2100*1922.86*142.54*15*94151100100~NM1*QC*1*Dough*Mary****MI* YPB123456789001~DTM*050*20110103~SVC*HC:59430*1210*1057.86**1*HC:59410~DTM*472*20101231~CAS*CO*42*34.6~CAS*PR*2*117.54~REF*6R*0001~AMT*B6*1175.4~SVC*HC:59440*890*865**1*HC:59410~DTM*472*20101231~CAS*PR*3*25~REF*6R*0002~SVC*HC:59426*742*742**1~DTM*472*20101231~REF*6R*0003~AMT*B6*742~SE*33*1234~
data/spec/example_3.835 CHANGED
@@ -6,6 +6,7 @@ DTM*405*20110104~
6
6
  N1*PR*BLUE CROSS AND BLUE SHIELD OF NORTH CAROLINA~
7
7
  N3*P O BOX 2291~
8
8
  N4*DURHAM*NC*27702~
9
+ REF*2U*33333~
9
10
  PER*CX*TE*8005554844~
10
11
  N1*PE*XYZ HEALTHCARE CORPORATION*XX*0987654321~
11
12
  N3*P O BOX XYZ~
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: era_835_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-09 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler