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 +4 -4
- data/README.md +3 -0
- data/lib/era_835_parser/parser.rb +13 -0
- data/lib/era_835_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c477e4ba7dd7630bee104a9d7106569c9d1b7b3e9557de6f6cf6bb6ad6ca222
|
4
|
+
data.tar.gz: 5ffccb47831e365c9c5d114dc7ffab5a70e7280cadba9e6be7521c74346fbb45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}"
|
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.
|
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-
|
11
|
+
date: 2019-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|