pokitdok-ruby 0.7.4 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +34 -20
- data/README.md +25 -1
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/OAuthApplicationClient.rb +149 -0
- data/lib/pokitdok.rb +157 -194
- data/pokitdok-ruby.gemspec +8 -27
- data/spec/fixtures/acme_inc_supplemental_identifiers.834 +35 -0
- data/spec/fixtures/chiropractic_example.837 +33 -0
- data/spec/fixtures/identity_match.json +29 -0
- data/spec/pokitdok_spec.rb +578 -261
- data/spec/spec_helper.rb +1 -1
- metadata +6 -36
- data/spec/vcr_setup.rb +0 -11
- data/vcr_cassettes/activities.yml +0 -66
- data/vcr_cassettes/auth.yml +0 -41
- data/vcr_cassettes/authorizations.yml +0 -57
- data/vcr_cassettes/cash_prices.yml +0 -45
- data/vcr_cassettes/claims.yml +0 -72
- data/vcr_cassettes/claims_status.yml +0 -67
- data/vcr_cassettes/eligibility.yml +0 -144
- data/vcr_cassettes/enrollment.yml +0 -83
- data/vcr_cassettes/files.yml +0 -112
- data/vcr_cassettes/insurance_prices.yml +0 -48
- data/vcr_cassettes/payers.yml +0 -505
- data/vcr_cassettes/plans.yml +0 -134
- data/vcr_cassettes/plans_no_args.yml +0 -133
- data/vcr_cassettes/providers.yml +0 -113
- data/vcr_cassettes/referrals.yml +0 -56
- data/vcr_cassettes/scheduling.yml +0 -182
- data/vcr_cassettes/scheduling_scoped.yml +0 -223
- data/vcr_cassettes/trading_partners_get.yml +0 -43
- data/vcr_cassettes/trading_partners_index.yml +0 -390
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
3
|
require 'simplecov'
|
4
|
+
require 'webmock/minitest'
|
4
5
|
|
5
6
|
module SimpleCov
|
6
7
|
# Setup SimpleCov.
|
@@ -35,7 +36,6 @@ require 'minitest/unit'
|
|
35
36
|
require 'minitest/reporters'
|
36
37
|
Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
|
37
38
|
require 'mocha/mini_test'
|
38
|
-
require 'vcr_setup'
|
39
39
|
|
40
40
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
41
41
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pokitdok-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PokitDok, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -164,20 +164,6 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '1.0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: vcr
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '2.9'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '2.9'
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: webmock
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -293,36 +279,20 @@ files:
|
|
293
279
|
- README.md
|
294
280
|
- Rakefile
|
295
281
|
- VERSION
|
282
|
+
- lib/OAuthApplicationClient.rb
|
296
283
|
- lib/pokitdok.rb
|
297
284
|
- pokitdok-ruby.gemspec
|
285
|
+
- spec/fixtures/acme_inc_supplemental_identifiers.834
|
298
286
|
- spec/fixtures/authorizations.json
|
287
|
+
- spec/fixtures/chiropractic_example.837
|
299
288
|
- spec/fixtures/claim.json
|
300
289
|
- spec/fixtures/claims_status.json
|
301
290
|
- spec/fixtures/enrollment.json
|
291
|
+
- spec/fixtures/identity_match.json
|
302
292
|
- spec/fixtures/referrals.json
|
303
293
|
- spec/fixtures/sample.270
|
304
294
|
- spec/pokitdok_spec.rb
|
305
295
|
- spec/spec_helper.rb
|
306
|
-
- spec/vcr_setup.rb
|
307
|
-
- vcr_cassettes/activities.yml
|
308
|
-
- vcr_cassettes/auth.yml
|
309
|
-
- vcr_cassettes/authorizations.yml
|
310
|
-
- vcr_cassettes/cash_prices.yml
|
311
|
-
- vcr_cassettes/claims.yml
|
312
|
-
- vcr_cassettes/claims_status.yml
|
313
|
-
- vcr_cassettes/eligibility.yml
|
314
|
-
- vcr_cassettes/enrollment.yml
|
315
|
-
- vcr_cassettes/files.yml
|
316
|
-
- vcr_cassettes/insurance_prices.yml
|
317
|
-
- vcr_cassettes/payers.yml
|
318
|
-
- vcr_cassettes/plans.yml
|
319
|
-
- vcr_cassettes/plans_no_args.yml
|
320
|
-
- vcr_cassettes/providers.yml
|
321
|
-
- vcr_cassettes/referrals.yml
|
322
|
-
- vcr_cassettes/scheduling.yml
|
323
|
-
- vcr_cassettes/scheduling_scoped.yml
|
324
|
-
- vcr_cassettes/trading_partners_get.yml
|
325
|
-
- vcr_cassettes/trading_partners_index.yml
|
326
296
|
homepage: http://github.com/pokitdok/pokitdok-ruby
|
327
297
|
licenses:
|
328
298
|
- MIT
|
data/spec/vcr_setup.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'vcr'
|
2
|
-
|
3
|
-
VCR.configure do |c|
|
4
|
-
c.cassette_library_dir = 'vcr_cassettes'
|
5
|
-
c.hook_into :webmock
|
6
|
-
c.allow_http_connections_when_no_cassette = true
|
7
|
-
c.default_cassette_options = {
|
8
|
-
match_requests_on: [:method, :uri, :path],
|
9
|
-
record: :new_episodes
|
10
|
-
}
|
11
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://localhost:5002/api/v4/activities/
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- pokitdok-ruby 0.8 ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
|
12
|
-
Authorization:
|
13
|
-
- Bearer EJe5ksfv6vqMctOYzUQtXbS4mNKw6Sr1MYRLnHNF
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- text/html; charset=utf-8
|
25
|
-
Content-Length:
|
26
|
-
- '2180'
|
27
|
-
Mimetype:
|
28
|
-
- application/json
|
29
|
-
Charset:
|
30
|
-
- utf-8
|
31
|
-
Server:
|
32
|
-
- Werkzeug/0.9.4 Python/2.7.6
|
33
|
-
Date:
|
34
|
-
- Mon, 02 Mar 2015 22:34:20 GMT
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"meta": {"rate_limit_amount": 4, "rate_limit_reset": 1425339260, "application_mode":
|
38
|
-
"test", "processing_time": 29, "rate_limit_cap": 1000, "activity_id": "54f4e56c0640fd11086300b2",
|
39
|
-
"result_count": 4}, "data": [{"units_of_work": 1, "_type": "PlatformActivityModel",
|
40
|
-
"name": "plans", "_uuid": "093dd7e8-3794-4660-a511-b0241222234a", "state":
|
41
|
-
{"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok",
|
42
|
-
"id": "54f4e56c0640fd11086300af", "transition_path": ["process", "complete"],
|
43
|
-
"history": [{"record_dt": "2015-03-02T22:34:20.194000", "name": "init", "title":
|
44
|
-
"Initializing"}, {"record_dt": "2015-03-02T22:34:20.206000", "name": "processing",
|
45
|
-
"title": "Processing transactions"}]}, {"units_of_work": 1, "_type": "PlatformActivityModel",
|
46
|
-
"name": "tradingpartners", "parameters": {"id": "aetna"}, "_uuid": "f8bf9082-bc44-4264-a10f-9445a7a473f6",
|
47
|
-
"state": {"name": "completed", "title": "Completed"}, "trading_partner_id":
|
48
|
-
"PokitDok", "id": "54f4e56c0640fd11086300b0", "transition_path": ["process",
|
49
|
-
"complete"], "history": [{"record_dt": "2015-03-02T22:34:20.249000", "name":
|
50
|
-
"init", "title": "Initializing"}, {"record_dt": "2015-03-02T22:34:20.262000",
|
51
|
-
"name": "processing", "title": "Processing transactions"}]}, {"units_of_work":
|
52
|
-
1, "_type": "PlatformActivityModel", "name": "tradingpartners", "_uuid": "df82af8f-4eea-4ce0-b506-80290cfaf439",
|
53
|
-
"state": {"name": "completed", "title": "Completed"}, "trading_partner_id":
|
54
|
-
"PokitDok", "id": "54f4e56c0640fd11086300b1", "transition_path": ["process",
|
55
|
-
"complete"], "history": [{"record_dt": "2015-03-02T22:34:20.308000", "name":
|
56
|
-
"init", "title": "Initializing"}, {"record_dt": "2015-03-02T22:34:20.315000",
|
57
|
-
"name": "processing", "title": "Processing transactions"}]}, {"units_of_work":
|
58
|
-
1, "_type": "PlatformActivityModel", "name": "activities", "remaining_transitions":
|
59
|
-
["complete"], "_uuid": "19844132-985d-41a8-a127-30035e57179e", "state": {"name":
|
60
|
-
"processing", "title": "Processing transactions"}, "trading_partner_id": "PokitDok",
|
61
|
-
"id": "54f4e56c0640fd11086300b2", "transition_path": ["process", "complete"],
|
62
|
-
"history": [{"record_dt": "2015-03-02T22:34:20.350000", "name": "init", "title":
|
63
|
-
"Initializing"}]}]}'
|
64
|
-
http_version:
|
65
|
-
recorded_at: Mon, 02 Mar 2015 22:34:20 GMT
|
66
|
-
recorded_with: VCR 2.9.3
|
data/vcr_cassettes/auth.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://jlHrMhG8CZudpJXHp0Rr:347iuIN8T7zOzE7wtyk1vQGfjxuTE3yjxb8nlFev@localhost:5002/oauth2/token
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: grant_type=client_credentials
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.0
|
12
|
-
Content-Type:
|
13
|
-
- application/x-www-form-urlencoded
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json;charset=UTF-8
|
25
|
-
Content-Length:
|
26
|
-
- '127'
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
|
-
Cache-Control:
|
30
|
-
- no-store
|
31
|
-
Server:
|
32
|
-
- Werkzeug/0.9.4 Python/2.7.6
|
33
|
-
Date:
|
34
|
-
- Mon, 02 Mar 2015 22:34:20 GMT
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"access_token": "EJe5ksfv6vqMctOYzUQtXbS4mNKw6Sr1MYRLnHNF", "token_type":
|
38
|
-
"bearer", "expires": 1425339260, "expires_in": 3600}'
|
39
|
-
http_version:
|
40
|
-
recorded_at: Mon, 02 Mar 2015 22:34:20 GMT
|
41
|
-
recorded_with: VCR 2.9.3
|
@@ -1,57 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://localhost:5002/api/v4/authorizations/
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"event":{"category":"health_services_review","certification_type":"initial","delivery":{"quantity":1,"quantity_qualifier":"visits"},"diagnoses":[{"code":"789.00","date":"2014-10-01"}],"place_of_service":"office","provider":{"organization_name":"KELLY
|
9
|
-
ULTRASOUND CENTER, LLC","npi":"1760779011","phone":"8642341234"},"services":[{"cpt_code":"76700","measurement":"unit","quantity":1}],"type":"diagnostic_medical"},"patient":{"birth_date":"1970-01-01","first_name":"JANE","last_name":"DOE","id":"1234567890"},"provider":{"first_name":"JEROME","npi":"1467560003","last_name":"AYA-AY"},"trading_partner_id":"MOCKPAYER"}'
|
10
|
-
headers:
|
11
|
-
User-Agent:
|
12
|
-
- pokitdok-ruby 0.8 ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
|
13
|
-
Authorization:
|
14
|
-
- Bearer EJe5ksfv6vqMctOYzUQtXbS4mNKw6Sr1MYRLnHNF
|
15
|
-
Content-Type:
|
16
|
-
- application/json
|
17
|
-
Accept-Encoding:
|
18
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
-
Accept:
|
20
|
-
- "*/*"
|
21
|
-
response:
|
22
|
-
status:
|
23
|
-
code: 200
|
24
|
-
message: OK
|
25
|
-
headers:
|
26
|
-
Content-Type:
|
27
|
-
- text/html; charset=utf-8
|
28
|
-
Content-Length:
|
29
|
-
- '1168'
|
30
|
-
Mimetype:
|
31
|
-
- application/json
|
32
|
-
Charset:
|
33
|
-
- utf-8
|
34
|
-
Server:
|
35
|
-
- Werkzeug/0.9.4 Python/2.7.6
|
36
|
-
Date:
|
37
|
-
- Mon, 02 Mar 2015 22:34:21 GMT
|
38
|
-
body:
|
39
|
-
encoding: UTF-8
|
40
|
-
string: '{"meta": {"rate_limit_amount": 16, "rate_limit_reset": 1425339261,
|
41
|
-
"application_mode": "test", "processing_time": 100, "rate_limit_cap": 1000,
|
42
|
-
"credits_remaining": -4, "activity_id": "54f4e56d0640fd11086300c1", "credits_billed":
|
43
|
-
1}, "data": {"patient": {"first_name": "JANE", "last_name": "DOE", "id": "1234567890"},
|
44
|
-
"trading_partner_id": "MOCKPAYER", "payer": {"organization_name": "MOCK PAYER
|
45
|
-
INC", "id": "MOCKPAYER"}, "originating_company_id": "9012345678", "correlation_id":
|
46
|
-
"d956526b-f5ce-43d6-8c9b-14809bdfde87", "client_id": "jlHrMhG8CZudpJXHp0Rr",
|
47
|
-
"provider": {"first_name": "JEROME", "last_name": "AYA-AY", "tax_id": "1467560003"},
|
48
|
-
"async": false, "event": {"category": "health_services_review", "diagnoses":
|
49
|
-
[{"date": "2005-04-30", "code": "410.90"}], "place_of_service": "office",
|
50
|
-
"review": {"certification_number": "AUTH0001", "second_surgical_opinion_required":
|
51
|
-
false, "certification_action": "certified_in_total"}, "delivery": {"quantity_qualifier":
|
52
|
-
"visits", "quantity": 1}, "provider": {"organization_name": "KELLY ULTRASOUND
|
53
|
-
CENTER, LLC", "tax_id": "1760779011"}, "certification_type": "initial", "type":
|
54
|
-
"diagnostic_medical"}, "valid_request": true}}'
|
55
|
-
http_version:
|
56
|
-
recorded_at: Mon, 02 Mar 2015 22:34:21 GMT
|
57
|
-
recorded_with: VCR 2.9.3
|
@@ -1,45 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://localhost:5002/api/v4/prices/cash?cpt_code=90658&zip_code=94403
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- pokitdok-ruby 0.8 ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
|
12
|
-
Authorization:
|
13
|
-
- Bearer EJe5ksfv6vqMctOYzUQtXbS4mNKw6Sr1MYRLnHNF
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- text/html; charset=utf-8
|
25
|
-
Content-Length:
|
26
|
-
- '401'
|
27
|
-
Mimetype:
|
28
|
-
- application/json
|
29
|
-
Charset:
|
30
|
-
- utf-8
|
31
|
-
Server:
|
32
|
-
- Werkzeug/0.9.4 Python/2.7.6
|
33
|
-
Date:
|
34
|
-
- Mon, 02 Mar 2015 22:34:21 GMT
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"meta": {"rate_limit_amount": 15, "rate_limit_reset": 1425339261,
|
38
|
-
"application_mode": "test", "processing_time": 35, "rate_limit_cap": 1000,
|
39
|
-
"credits_remaining": -7, "activity_id": "54f4e56d0640fd11086300c0", "credits_billed":
|
40
|
-
1}, "data": [{"high_price": 85.0, "cpt_code": "90658", "low_price": 25.0,
|
41
|
-
"average_price": 45.58, "geo_zip_area": "944", "standard_deviation": 18.16,
|
42
|
-
"median_price": 42.0}]}'
|
43
|
-
http_version:
|
44
|
-
recorded_at: Mon, 02 Mar 2015 22:34:21 GMT
|
45
|
-
recorded_with: VCR 2.9.3
|
data/vcr_cassettes/claims.yml
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://localhost:5002/api/v4/claims/
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"transaction_code":"chargeable","trading_partner_id":"MOCKPAYER","billing_provider":{"taxonomy_code":"207Q00000X","first_name":"Jerome","last_name":"Aya-Ay","npi":"1467560003","address":{"address_lines":["8311
|
9
|
-
WARREN H ABERNATHY HWY"],"city":"SPARTANBURG","state":"SC","zipcode":"29301"},"tax_id":"123456789"},"subscriber":{"first_name":"Jane","last_name":"Doe","member_id":"W000000000","address":{"address_lines":["123
|
10
|
-
N MAIN ST"],"city":"SPARTANBURG","state":"SC","zipcode":"29301"},"birth_date":"1970-01-01","gender":"female"},"claim":{"total_charge_amount":60.0,"service_lines":[{"procedure_code":"99213","charge_amount":60.0,"unit_count":1.0,"diagnosis_codes":["487.1"],"service_date":"2014-06-01"}]},"payer":{"organization_name":"Acme
|
11
|
-
Ins Co","plan_id":"1234567890"}}'
|
12
|
-
headers:
|
13
|
-
User-Agent:
|
14
|
-
- pokitdok-ruby 0.8 ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
|
15
|
-
Authorization:
|
16
|
-
- Bearer EJe5ksfv6vqMctOYzUQtXbS4mNKw6Sr1MYRLnHNF
|
17
|
-
Content-Type:
|
18
|
-
- application/json
|
19
|
-
Accept-Encoding:
|
20
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
21
|
-
Accept:
|
22
|
-
- "*/*"
|
23
|
-
response:
|
24
|
-
status:
|
25
|
-
code: 200
|
26
|
-
message: OK
|
27
|
-
headers:
|
28
|
-
Content-Type:
|
29
|
-
- text/html; charset=utf-8
|
30
|
-
Content-Length:
|
31
|
-
- '2270'
|
32
|
-
Mimetype:
|
33
|
-
- application/json
|
34
|
-
Charset:
|
35
|
-
- utf-8
|
36
|
-
Server:
|
37
|
-
- Werkzeug/0.9.4 Python/2.7.6
|
38
|
-
Date:
|
39
|
-
- Mon, 02 Mar 2015 22:34:20 GMT
|
40
|
-
body:
|
41
|
-
encoding: UTF-8
|
42
|
-
string: '{"meta": {"rate_limit_amount": 7, "rate_limit_reset": 1425339260, "application_mode":
|
43
|
-
"test", "processing_time": 51, "rate_limit_cap": 1000, "credits_remaining":
|
44
|
-
-2, "activity_id": "54f4e56c0640fd11086300b6", "credits_billed": 1}, "data":
|
45
|
-
{"units_of_work": 1, "_type": "PlatformActivityModel", "name": "claims", "parameters":
|
46
|
-
{"claim": {"plan_participation": "assigned", "provider_signature": true, "total_charge_amount":
|
47
|
-
"60.0", "claim_frequency": "original", "place_of_service": "office", "direct_payment":
|
48
|
-
"y", "patient_signature_on_file": true, "information_release": "informed_consent",
|
49
|
-
"service_lines": [{"diagnosis_codes": ["487.1"], "unit_count": "1.0", "unit_type":
|
50
|
-
"units", "charge_amount": "60.0", "service_date": "2014-06-01", "procedure_code":
|
51
|
-
"99213"}]}, "trading_partner_id": "MOCKPAYER", "payer": {"organization_name":
|
52
|
-
"MOCKPAYER", "id": "MOCKPAYER"}, "subscriber": {"first_name": "Jane", "last_name":
|
53
|
-
"Doe", "gender": "female", "member_id": "W000000000", "payer_responsibility":
|
54
|
-
"primary", "address": {"address_lines": ["123 N MAIN ST"], "state": "SC",
|
55
|
-
"zipcode": "29301", "city": "SPARTANBURG"}, "birth_date": "1970-01-01"}, "correlation_id":
|
56
|
-
"5e0592f4-d99d-4186-a510-e6af15192785", "client_id": "jlHrMhG8CZudpJXHp0Rr",
|
57
|
-
"receiver": {"organization_name": "MOCKRECEIVER", "id": "MOCKRECEIVER"}, "submitter":
|
58
|
-
{"organization_name": "POKITDOK TESTING", "id": "POKITDOKTEST", "email": "support@pokitdok.com"},
|
59
|
-
"async": false, "billing_provider": {"first_name": "Jerome", "last_name":
|
60
|
-
"Aya-Ay", "npi": "1467560003", "taxonomy_code": "207Q00000X", "address": {"address_lines":
|
61
|
-
["8311 WARREN H ABERNATHY HWY"], "state": "SC", "zipcode": "29301", "city":
|
62
|
-
"SPARTANBURG"}, "tax_id": "123456789"}, "transaction_code": "chargeable"},
|
63
|
-
"remaining_transitions": ["generate", "store", "transmit", "wait", "receive",
|
64
|
-
"process", "complete"], "_uuid": "a51d4a0b-b3a5-4830-89a1-3a0f8f0a3be8", "state":
|
65
|
-
{"name": "scheduled", "title": "Scheduled for next available transmission
|
66
|
-
to Trading Partner"}, "trading_partner_id": "MOCKPAYER", "id": "54f4e56c0640fd11086300b6",
|
67
|
-
"transition_path": ["schedule", "generate", "store", "transmit", "wait", "receive",
|
68
|
-
"process", "complete"], "history": [{"record_dt": "2015-03-02T22:34:20.675809",
|
69
|
-
"name": "init", "title": "Initializing"}]}}'
|
70
|
-
http_version:
|
71
|
-
recorded_at: Mon, 02 Mar 2015 22:34:20 GMT
|
72
|
-
recorded_with: VCR 2.9.3
|
@@ -1,67 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://localhost:5002/api/v4/claims/status
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"patient":{"birth_date":"1970-01-01","first_name":"JANE","last_name":"DOE","id":"1234567890"},"provider":{"first_name":"Jerome","last_name":"Aya-Ay","npi":"1467560003"},"service_date":"2014-01-01","trading_partner_id":"MOCKPAYER"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- pokitdok-ruby 0.8 ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
|
12
|
-
Authorization:
|
13
|
-
- Bearer EJe5ksfv6vqMctOYzUQtXbS4mNKw6Sr1MYRLnHNF
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Accept-Encoding:
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Content-Type:
|
26
|
-
- text/html; charset=utf-8
|
27
|
-
Content-Length:
|
28
|
-
- '2050'
|
29
|
-
Mimetype:
|
30
|
-
- application/json
|
31
|
-
Charset:
|
32
|
-
- utf-8
|
33
|
-
Server:
|
34
|
-
- Werkzeug/0.9.4 Python/2.7.6
|
35
|
-
Date:
|
36
|
-
- Mon, 02 Mar 2015 22:34:20 GMT
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"meta": {"rate_limit_amount": 6, "rate_limit_reset": 1425339260, "application_mode":
|
40
|
-
"test", "processing_time": 194, "rate_limit_cap": 1000, "credits_remaining":
|
41
|
-
-1, "activity_id": "54f4e56c0640fd11086300b3", "credits_billed": 1}, "data":
|
42
|
-
{"patient": {"claims": [{"applied_to_deductible": false, "total_claim_amount":
|
43
|
-
{"currency": "USD", "amount": "150"}, "service_end_date": "2014-01-01", "claim_control_number":
|
44
|
-
"E1TWCYYMF00", "service_date": "2014-01-01", "claim_payment_amount": {"currency":
|
45
|
-
"USD", "amount": "125"}, "adjudication_finalized_date": "2014-03-21", "statuses":
|
46
|
-
[{"total_claim_amount": {"currency": "USD", "amount": "150"}, "status_category":
|
47
|
-
"Finalized/Payment-The claim/line has been paid.", "status_code": "Processed
|
48
|
-
according to contract provisions (Contract refers to provisions that exist
|
49
|
-
between the Health Plan and a Provider of Health Care Services)", "claim_payment_amount":
|
50
|
-
{"currency": "USD", "amount": "125"}, "adjudication_finalized_date": "2014-03-21",
|
51
|
-
"status_effective_date": "2014-04-24", "check_number": "08608-035632423",
|
52
|
-
"remittance_date": "2014-04-09"}], "tracking_id": "E1TWCYYMF", "services":
|
53
|
-
[{"cpt_code": "99214", "service_end_date": "2014-03-05", "payment_amount":
|
54
|
-
{"currency": "USD", "amount": "125"}, "charge_amount": {"currency": "USD",
|
55
|
-
"amount": "150"}, "service_date": "2014-03-05", "statuses": [{"status_code":
|
56
|
-
"Processed according to contract provisions (Contract refers to provisions
|
57
|
-
that exist between the Health Plan and a Provider of Health Care Services)",
|
58
|
-
"status_category": "Finalized/Payment-The claim/line has been paid.", "status_effective_date":
|
59
|
-
"2014-04-24"}]}], "check_number": "08608-035632423", "remittance_date": "2014-04-09"}]},
|
60
|
-
"client_id": "jlHrMhG8CZudpJXHp0Rr", "payer": {"name": "MOCK PAYER INC", "id":
|
61
|
-
"MOCKPAYER"}, "providers": [{"first_name": "Jerome", "last_name": "Aya-Ay",
|
62
|
-
"npi": "1467560003"}], "correlation_id": "1c448575-45ea-47de-a7e7-ab96e4e1571f",
|
63
|
-
"trading_partner_id": "MOCKPAYER", "submitter": {"first_name": "Jerome", "last_name":
|
64
|
-
"Aya-Ay", "id": "1467560003"}}}'
|
65
|
-
http_version:
|
66
|
-
recorded_at: Mon, 02 Mar 2015 22:34:20 GMT
|
67
|
-
recorded_with: VCR 2.9.3
|