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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dce7c7dccaaa4ab3ab919104405f040e1e4136b034b24a03d4b210e93bd26258
4
- data.tar.gz: 37686d6f2e59f1fcf13c1882cb0dddeca71cd6ff28969d5b5f9ee68ad2d876c1
3
+ metadata.gz: f390e0d896ab2ffae2f577f17a0d5ac281e5a128ce593c02c061cc0d4bcb2487
4
+ data.tar.gz: 1db0072a61ee30ec025f89d5697db2659f15835e293610f3654b0ffe5e7f2b07
5
5
  SHA512:
6
- metadata.gz: fe824f0c5bed8ec29263d6d48240bff8f1d4a2b9b3254eb48efd05c0d975b2e181676ae20017971b24f52669196414feb6b80e5fd2848bb8ef96fe827eedf657
7
- data.tar.gz: d3d79fa935feced6fc56d60beaf6ddd67af5b470872c26afcaa318621f82c888b229ec09e37ee1df9b0cebd2636412031dcafc1703ac0ca40cd9f2a9457717e7
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
- 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"
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
- era_text += line_items
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
@@ -1,3 +1,3 @@
1
1
  module Era835Parser
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.4
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-01 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler