era_835_parser 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a79cae7b4bb8da7b281ed72981487b04726f0088b3b3d544183f180a2003084c
4
- data.tar.gz: b10647ff8e856d95d20c096dfb2b2d713a53a6c7759beec84ec6c6c42cae346c
3
+ metadata.gz: 6c477e4ba7dd7630bee104a9d7106569c9d1b7b3e9557de6f6cf6bb6ad6ca222
4
+ data.tar.gz: 5ffccb47831e365c9c5d114dc7ffab5a70e7280cadba9e6be7521c74346fbb45
5
5
  SHA512:
6
- metadata.gz: f8aaf72b964794740978ef60c17b7855b3924d98c52c9ac30fae9d3062fe3a27c5ce6ef745228e63c31959d074ddc1902d44cec1f91154c65e0ed69970ab07c1
7
- data.tar.gz: d29adff78fc29db2ad6eef7d791e2e3ce594a1ac510f1d8b011e22be6116e012d149c86a7e7648cd53098e8eac76f75c632e8235f34241d655b035b616aece39
6
+ metadata.gz: 8db7dcdb2eb8f511ddd6b224e5c551d7f93a94298eb52981746449ecde165793776b542b03df8d8eac260da741fce205f0f6e298a303fd5256fbe13e82c168ac
7
+ data.tar.gz: cd90a415fab78933152cc5a4fd06a1a60eb1c9f961f714b8a509d799d4849e82947995d7200fc2c8eac5fc69d8230661b83e742676117ebc44e8d786b643c39c
data/README.md CHANGED
@@ -46,6 +46,9 @@ if !era[:checks].nil?
46
46
  puts individual_era[:patient_name] # Patient name
47
47
  puts individual_era[:patient_last_name] # Patient last name (titlized)
48
48
  puts individual_era[:patient_first_name] # Patient first name (titlized)
49
+ puts individual_era[:rendering_provider_name] # Rendering provider name
50
+ puts individual_era[:rendering_provider_last_name] # Rendering provider last name (titlized)
51
+ puts individual_era[:rendering_provider_first_name] # Rendering provider first name (titlized)
49
52
  puts individual_era[:charge_amount] # Total charge amount (integer)
50
53
  puts individual_era[:payment_amount] # Total payment amount (integer)
51
54
  puts individual_era[:account_number] # Account number
@@ -53,6 +53,7 @@ module Era835Parser
53
53
  header_number_loop = false
54
54
  claim_payment_information_loop = false
55
55
  patient_loop = false
56
+ rendering_provider_loop = false
56
57
  service_payment_information_loop = false
57
58
  bpr_amount = ''
58
59
  bpr_date = ''
@@ -865,6 +866,11 @@ module Era835Parser
865
866
  else
866
867
  patient_loop = false
867
868
  end
869
+ if element == "82"
870
+ rendering_provider_loop = true
871
+ else
872
+ rendering_provider_loop = false
873
+ end
868
874
  when 2
869
875
  # Entity Type Qualifier
870
876
  # puts "Entity Type Qualifier: #{element}"
@@ -874,6 +880,9 @@ module Era835Parser
874
880
  if claim_payment_information_loop && patient_loop
875
881
  individual_era[:patient_last_name] = element.strip.downcase.split(" ").map { |word| word.capitalize }.join(" ")
876
882
  end
883
+ if claim_payment_information_loop && rendering_provider_loop
884
+ individual_era[:rendering_provider_last_name] = element.strip.downcase.split(" ").map { |word| word.capitalize }.join(" ")
885
+ end
877
886
  when 4
878
887
  # Patient First Name
879
888
  # puts "Patient First Name: #{element}"
@@ -881,6 +890,10 @@ module Era835Parser
881
890
  individual_era[:patient_first_name] = element.strip.downcase.split(" ").map { |word| word.capitalize }.join(" ")
882
891
  individual_era[:patient_name] = individual_era[:patient_last_name].upcase + "," + individual_era[:patient_first_name].upcase
883
892
  end
893
+ if claim_payment_information_loop && rendering_provider_loop
894
+ individual_era[:rendering_provider_first_name] = element.strip.downcase.split(" ").map { |word| word.capitalize }.join(" ")
895
+ individual_era[:rendering_provider_name] = individual_era[:rendering_provider_last_name].upcase + "," + individual_era[:rendering_provider_first_name].upcase
896
+ end
884
897
  when 5
885
898
  # Patient Middle Initial
886
899
  # puts "Patient Middle Initial: #{element}"
@@ -1,3 +1,3 @@
1
1
  module Era835Parser
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
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.7
4
+ version: 0.1.8
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: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler