era_835_parser 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/era_835_parser/parser.rb +6 -2
- 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: f390e0d896ab2ffae2f577f17a0d5ac281e5a128ce593c02c061cc0d4bcb2487
|
4
|
+
data.tar.gz: 1db0072a61ee30ec025f89d5697db2659f15835e293610f3654b0ffe5e7f2b07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63b6bf18aeee6074198544b4bb407e6bde2c0d404485070745b2e95bea9df5112795b77d9a728d077ab56926293de14915d4967de55ff9399094b4aa6441974a
|
7
|
+
data.tar.gz: 6ae02ab2eabefd5c196463e7c15ef6726d245691842c2482bad12bd40aca6cd749b523cbd3e56a441e5a312997256e0570bf48c0888e523d1e31cb1ab318608a
|
@@ -977,7 +977,11 @@ module Era835Parser
|
|
977
977
|
line_items = ''
|
978
978
|
if !individual_era[:line_items].nil?
|
979
979
|
individual_era[:line_items].each do |line_item_counter, line_item|
|
980
|
-
|
980
|
+
if line_item[:service_date].nil?
|
981
|
+
line_items += "#{" " * (22)}#{individual_era[:claim_statement_period_start]} #{line_item[:cpt_code]}#{" " * (7 - get_length(line_item[:cpt_code]))}#{'%.2f' % (line_item[:charge_amount].to_f / 100)}#{" " * (13 - get_length('%.2f' % (line_item[:charge_amount].to_f / 100)))}#{'%.2f' % (line_item[:payment_amount].to_f / 100)}#{" " * (13 - get_length('%.2f' % (line_item[:payment_amount].to_f / 100)))}#{'%.2f' % (line_item[:total_adjustment_amount].to_f / 100)}#{" " * (15 - get_length('%.2f' % (line_item[:total_adjustment_amount].to_f / 100)))}#{truncate(line_item[:remarks], 82)}\n\n"
|
982
|
+
else
|
983
|
+
line_items += "#{" " * (22)}#{line_item[:service_date]} #{line_item[:cpt_code]}#{" " * (7 - get_length(line_item[:cpt_code]))}#{'%.2f' % (line_item[:charge_amount].to_f / 100)}#{" " * (13 - get_length('%.2f' % (line_item[:charge_amount].to_f / 100)))}#{'%.2f' % (line_item[:payment_amount].to_f / 100)}#{" " * (13 - get_length('%.2f' % (line_item[:payment_amount].to_f / 100)))}#{'%.2f' % (line_item[:total_adjustment_amount].to_f / 100)}#{" " * (15 - get_length('%.2f' % (line_item[:total_adjustment_amount].to_f / 100)))}#{truncate(line_item[:remarks], 82)}\n\n"
|
984
|
+
end
|
981
985
|
if !line_item[:adjustment_groups].nil?
|
982
986
|
line_item[:adjustment_groups].each do |adjustment_group_counter, adjustment_group|
|
983
987
|
line_items += " Adjustment Group Adj Amt Translated Reason Code\n"
|
@@ -996,7 +1000,7 @@ module Era835Parser
|
|
996
1000
|
era_text += "#{" " * (96)}Payer Claim Control Number: #{individual_era[:payer_claim_control_number]}\n\n"
|
997
1001
|
if line_items.length > 0
|
998
1002
|
era_text += "#{" " * (10)}Line Item: Svc Date CPT Charge Amt Payment Amt Total Adj Amt Remarks\n"
|
999
|
-
|
1003
|
+
era_text += line_items
|
1000
1004
|
end
|
1001
1005
|
era[:checks][check[:check_number]][:eras][era_counter][:era_text] = era_text
|
1002
1006
|
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.
|
4
|
+
version: 0.1.5
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|