eligible 1.0 → 3.0.0.beta17
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 +7 -0
- data/.circleci/config.yml +76 -0
- data/.codeclimate.yml +23 -0
- data/.gitignore +3 -0
- data/.rspec +3 -0
- data/.rubocop.yml +1158 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +170 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +66 -0
- data/LICENSE +1 -1
- data/README.md +700 -93
- data/Rakefile +12 -2
- data/eligible.gemspec +14 -16
- data/lib/eligible/api_resource.rb +49 -5
- data/lib/eligible/calculator_deploy_url.rb +7 -0
- data/lib/eligible/claim.rb +22 -6
- data/lib/eligible/coverage.rb +19 -0
- data/lib/eligible/coverage_resource.rb +23 -0
- data/lib/eligible/customer.rb +19 -0
- data/lib/eligible/demographic.rb +6 -35
- data/lib/eligible/eligible_object.rb +12 -15
- data/lib/eligible/encryptor.rb +121 -0
- data/lib/eligible/enrollment.rb +23 -0
- data/lib/eligible/errors/eligible_error.rb +6 -3
- data/lib/eligible/errors/invalid_request_error.rb +4 -0
- data/lib/eligible/icd.rb +16 -0
- data/lib/eligible/json.rb +5 -15
- data/lib/eligible/lockbox.rb +39 -0
- data/lib/eligible/medicare.rb +11 -0
- data/lib/eligible/oauth_token.rb +9 -0
- data/lib/eligible/ocr.rb +15 -0
- data/lib/eligible/original_signature_pdf.rb +45 -0
- data/lib/eligible/payer.rb +17 -0
- data/lib/eligible/payer_mapping.rb +37 -0
- data/lib/eligible/payment.rb +11 -0
- data/lib/eligible/preauth_resource.rb +11 -0
- data/lib/eligible/precert.rb +15 -0
- data/lib/eligible/provider_model.rb +7 -0
- data/lib/eligible/public_key.rb +27 -0
- data/lib/eligible/received_pdf.rb +26 -0
- data/lib/eligible/referral.rb +11 -0
- data/lib/eligible/risk_assessment.rb +15 -0
- data/lib/eligible/session_token.rb +11 -0
- data/lib/eligible/ticket.rb +40 -0
- data/lib/eligible/util.rb +29 -38
- data/lib/eligible/v1_0/action.rb +9 -0
- data/lib/eligible/v1_0/attribute.rb +9 -0
- data/lib/eligible/v1_0/charge.rb +13 -0
- data/lib/eligible/v1_0/claim.rb +25 -0
- data/lib/eligible/v1_0/claim_service_line.rb +9 -0
- data/lib/eligible/v1_0/contract.rb +9 -0
- data/lib/eligible/v1_0/device.rb +9 -0
- data/lib/eligible/v1_0/discount.rb +9 -0
- data/lib/eligible/v1_0/enrollment.rb +17 -0
- data/lib/eligible/v1_0/estimate.rb +29 -0
- data/lib/eligible/v1_0/estimate_service_line.rb +17 -0
- data/lib/eligible/v1_0/fee.rb +21 -0
- data/lib/eligible/v1_0/fee_refund.rb +29 -0
- data/lib/eligible/v1_0/file.rb +17 -0
- data/lib/eligible/v1_0/file_link.rb +13 -0
- data/lib/eligible/v1_0/insurance_company.rb +21 -0
- data/lib/eligible/v1_0/insurance_company_alias.rb +9 -0
- data/lib/eligible/v1_0/insurance_policy.rb +9 -0
- data/lib/eligible/v1_0/patient_question.rb +9 -0
- data/lib/eligible/v1_0/patient_questionnaire.rb +9 -0
- data/lib/eligible/v1_0/patient_record.rb +9 -0
- data/lib/eligible/v1_0/patient_statement.rb +54 -0
- data/lib/eligible/v1_0/patient_statement_service_line.rb +13 -0
- data/lib/eligible/v1_0/payment_report.rb +21 -0
- data/lib/eligible/v1_0/product.rb +9 -0
- data/lib/eligible/v1_0/provider.rb +9 -0
- data/lib/eligible/v1_0/remark.rb +21 -0
- data/lib/eligible/v1_0/reports/accuracy_stats.rb +23 -0
- data/lib/eligible/v1_0/reports/estimate_friction.rb +23 -0
- data/lib/eligible/v1_0/reports/in_scope_distribution.rb +23 -0
- data/lib/eligible/v1_0/rest_api_base.rb +44 -0
- data/lib/eligible/v1_0/rule.rb +13 -0
- data/lib/eligible/v1_0/session.rb +21 -0
- data/lib/eligible/v1_0/transaction.rb +21 -0
- data/lib/eligible/v1_0/treatment.rb +9 -0
- data/lib/eligible/v1_0/value_list.rb +9 -0
- data/lib/eligible/v1_0/value_list_item.rb +9 -0
- data/lib/eligible/v1_0/verification.rb +17 -0
- data/lib/eligible/version.rb +1 -1
- data/lib/eligible/visit_type.rb +11 -0
- data/lib/eligible/x12.rb +8 -0
- data/lib/eligible.rb +320 -110
- metadata +148 -67
- data/CONTRIBUTORS +0 -1
- data/lib/eligible/plan.rb +0 -42
- data/lib/eligible/service.rb +0 -39
- data/test/test_eligible.rb +0 -279
- data/test/test_helper.rb +0 -67
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ce58ab4bcb4de406ced460aa9c930023787d8afdfa9d603da5b51eea5940f848
|
4
|
+
data.tar.gz: 4446f6ebf258825dd4c6310bf0ba673560dd860e5eba813fe71cafa69e3e55e8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: febd04dd34ce99c1dacf234160403be82215308e50b5acf487d0fa79154a7c9ccc7930fdbcbe3de3627f0048789ba9452d0d7d339d86eaa9361fabbffd5c3568
|
7
|
+
data.tar.gz: 3d85a68891c0f50a9972fdd4848c137eecb19d56b97a630e0472de569598e0a2c4e57eec62741d4ecde2c87112e9f797ffea503b2563094245d4d0c61a9ba08a
|
@@ -0,0 +1,76 @@
|
|
1
|
+
version: 2
|
2
|
+
default_environment: &default_environment
|
3
|
+
docker:
|
4
|
+
- image: circleci/ruby:2.4-stretch-browsers
|
5
|
+
environment:
|
6
|
+
BUNDLE_JOBS: 3
|
7
|
+
BUNDLE_RETRY: 3
|
8
|
+
BUNDLE_PATH: vendor/bundle
|
9
|
+
RAILS_ENV: test
|
10
|
+
CC_TEST_REPORTER_ID: 1a814ffba15f437df919868f6c26f3c6ac111338b88f9a9d7e2b3030598bccdd
|
11
|
+
working_directory: ~/eligible-ruby
|
12
|
+
|
13
|
+
aliases:
|
14
|
+
# Bundle install dependencies
|
15
|
+
- &bundle_install
|
16
|
+
name: Bundle Install
|
17
|
+
command: bundle check || (bundle install --deployment && bundle clean) # Stop growing cache
|
18
|
+
- &save_bundle_cache
|
19
|
+
key: gems-{{ .Environment.CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
|
20
|
+
paths:
|
21
|
+
- vendor/bundle
|
22
|
+
- /usr/local/bundle/config
|
23
|
+
- &restore_bundle_cache
|
24
|
+
keys:
|
25
|
+
- gems-{{ .Environment.CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
|
26
|
+
- gems-{{ .Environment.CACHE_VERSION }}- # Fallback to any recent cache
|
27
|
+
|
28
|
+
- &pre_build
|
29
|
+
name: Pre build
|
30
|
+
command: ./cc-test-reporter before-build
|
31
|
+
|
32
|
+
# Setup CC
|
33
|
+
- &setup_cc_test_reporter
|
34
|
+
name: Setup CodeClimate test reporter
|
35
|
+
command: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter &&
|
36
|
+
chmod +x cc-test-reporter
|
37
|
+
|
38
|
+
# Code Climate coverage
|
39
|
+
- &upload_coverage
|
40
|
+
name: Upload coverage report to CodeClimate
|
41
|
+
command: |
|
42
|
+
./cc-test-reporter sum-coverage --output - coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
|
43
|
+
|
44
|
+
# Running RSpec
|
45
|
+
- &run_rspec
|
46
|
+
name: Run RSpec
|
47
|
+
command: |
|
48
|
+
./cc-test-reporter before-build
|
49
|
+
bundle exec rspec
|
50
|
+
|
51
|
+
jobs:
|
52
|
+
tests:
|
53
|
+
<<: *default_environment
|
54
|
+
parallelism: 2
|
55
|
+
steps:
|
56
|
+
- checkout
|
57
|
+
|
58
|
+
- restore_cache: *restore_bundle_cache
|
59
|
+
- run: *bundle_install
|
60
|
+
- save_cache: *save_bundle_cache
|
61
|
+
|
62
|
+
# Setup CC
|
63
|
+
- run: *setup_cc_test_reporter
|
64
|
+
|
65
|
+
# Run specs in parallel
|
66
|
+
- run: *run_rspec
|
67
|
+
- run:
|
68
|
+
name: Code Climate Test Coverage
|
69
|
+
command: |
|
70
|
+
./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.$CIRCLE_NODE_INDEX.json"
|
71
|
+
- run: *upload_coverage
|
72
|
+
workflows:
|
73
|
+
version: 2
|
74
|
+
test:
|
75
|
+
jobs:
|
76
|
+
- tests
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
engines:
|
2
|
+
duplication:
|
3
|
+
enabled: true
|
4
|
+
config:
|
5
|
+
languages:
|
6
|
+
- ruby
|
7
|
+
|
8
|
+
fixme:
|
9
|
+
enabled: true
|
10
|
+
|
11
|
+
rubocop:
|
12
|
+
enabled: true
|
13
|
+
|
14
|
+
ratings:
|
15
|
+
paths:
|
16
|
+
- Gemfile.lock
|
17
|
+
- Rakefile
|
18
|
+
- "**.rake"
|
19
|
+
- "**.rb"
|
20
|
+
|
21
|
+
exclude_paths:
|
22
|
+
- .rubocop.yml
|
23
|
+
- spec/
|
data/.gitignore
CHANGED
data/.rspec
ADDED