pokitdok-ruby 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/pokitdok.rb +10 -0
- data/pokitdok-ruby.gemspec +3 -3
- data/spec/pokitdok_spec.rb +31 -26
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2d7ba2c4617a299810a6db1c2448dfee5b44092
|
4
|
+
data.tar.gz: 0a17219cef45c00626c2360f024600d1579c3176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b8c6798022cbc98225cfb94ae3f10d3d268d3dc8421b18e8d8d382c609a9fbf92476e6cb41c040da4bd9d2d7e5558bc9e6542531d7e88259c571d1b9bf51923
|
7
|
+
data.tar.gz: 17963bb2e437c51f735b04a3a9e64a60a4e9f5e773fa54f103299dda0ceda58d1cc1a61f17ede0bf40c0304608ff84abb62103b7beabf87d8f28689499fcae83
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
data/lib/pokitdok.rb
CHANGED
@@ -277,6 +277,16 @@ module PokitDok
|
|
277
277
|
post("/oop/insurance-load-price", params)
|
278
278
|
end
|
279
279
|
|
280
|
+
# Invokes the insurance load price endpoint
|
281
|
+
# Deletes a procedure price for a specific trading partner
|
282
|
+
#
|
283
|
+
# +params+ an optional hash of parameters
|
284
|
+
#
|
285
|
+
def oop_insurance_delete_price(price_uuid, params = {})
|
286
|
+
path = "/oop/insurance-load-price/" + price_uuid
|
287
|
+
delete(path, params)
|
288
|
+
end
|
289
|
+
|
280
290
|
# Invokes the payers endpoint.
|
281
291
|
#
|
282
292
|
# +params+ an optional hash of parameters
|
data/pokitdok-ruby.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: pokitdok-ruby 0.9.
|
5
|
+
# stub: pokitdok-ruby 0.9.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "pokitdok-ruby".freeze
|
9
|
-
s.version = "0.9.
|
9
|
+
s.version = "0.9.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["PokitDok, Inc.".freeze]
|
14
|
-
s.date = "2017-03-
|
14
|
+
s.date = "2017-03-31"
|
15
15
|
s.description = "Gem for easy access to the PokitDok Platform APIs.".freeze
|
16
16
|
s.email = "platform@pokitdok.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
data/spec/pokitdok_spec.rb
CHANGED
@@ -263,7 +263,7 @@ class PokitDokTest < MiniTest::Test
|
|
263
263
|
# look in the history to see if it has transitioned from state "init" to "canceled"
|
264
264
|
assert put_data["data"]["history"].kind_of?(Array), "Error grabbing the activity data; try running the test suite again. Full response: #{assert put_data["data"]["history"]}"
|
265
265
|
history = put_data["data"]["history"]
|
266
|
-
assert history.length
|
266
|
+
assert history.length > 2, "Tested for cancelled claim, but recived the following claim history: #{history.to_s}"
|
267
267
|
|
268
268
|
# exercise the PUT functionality to delete an already deleted claim
|
269
269
|
put_data = @@pokitdok.put(activity_url, data={transition: "cancel"})
|
@@ -478,47 +478,52 @@ class PokitDokTest < MiniTest::Test
|
|
478
478
|
|
479
479
|
end
|
480
480
|
end
|
481
|
-
describe 'Data API Convenience function test: oop_insurance_estimate' do
|
482
|
-
it 'make a call to the live endpoint for: oop_insurance_estimate' do
|
481
|
+
describe 'Data API Convenience function test: oop_insurance_prices oop_insurance_estimate and oop_insurance_delete_price' do
|
482
|
+
it 'make a call to the live endpoint for: oop_insurance_prices oop_insurance_estimate and oop_insurance_delete_price' do
|
483
483
|
@params = {
|
484
484
|
trading_partner_id: "MOCKPAYER",
|
485
|
-
cpt_bundle:
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
first_name: "JEROME",
|
490
|
-
last_name: "AYA-AY",
|
491
|
-
npi: "1467560003"
|
492
|
-
},
|
493
|
-
member: {
|
494
|
-
birth_date: "1970-01-25",
|
495
|
-
first_name: "Jane",
|
496
|
-
last_name: "Doe",
|
497
|
-
id: "W000000000"
|
498
|
-
}
|
485
|
+
cpt_bundle:["81291", "99999"],
|
486
|
+
price: {
|
487
|
+
amount: "1300",
|
488
|
+
currency: "USD"
|
499
489
|
}
|
500
490
|
}
|
501
|
-
response = @@pokitdok.
|
491
|
+
response = @@pokitdok.oop_insurance_prices @params
|
502
492
|
refute_nil(response["meta"].keys, msg="the response[meta] section is empty")
|
503
493
|
refute_nil(response["data"].keys, msg="the response[data] section is empty")
|
504
494
|
assert @@pokitdok.status_code == 200, "Status Code assertion failure. Tested for 200, Observed status code: #{@@pokitdok.status_code}"
|
495
|
+
@load_price_uuid = response["data"]["uuid"]
|
505
496
|
|
506
|
-
|
507
|
-
end
|
508
|
-
describe 'Data API Convenience function test: oop_insurance_prices' do
|
509
|
-
it 'make a call to the live endpoint for: oop_insurance_prices' do
|
497
|
+
# run the insurance estimate on that posted price
|
510
498
|
@params = {
|
511
499
|
trading_partner_id: "MOCKPAYER",
|
512
|
-
cpt_bundle:["
|
513
|
-
|
514
|
-
|
500
|
+
cpt_bundle: ["81291", "99999"],
|
501
|
+
service_type_codes: ["30"],
|
502
|
+
eligibility: {
|
503
|
+
provider: {
|
504
|
+
npi: "1912301953",
|
505
|
+
organization_name: "PokitDok, Inc"
|
506
|
+
},
|
507
|
+
member: {
|
508
|
+
birth_date: "1975-04-26",
|
509
|
+
first_name: "Joe",
|
510
|
+
last_name: "Immortan",
|
511
|
+
id: "999999999"
|
512
|
+
}
|
515
513
|
}
|
516
514
|
}
|
517
|
-
response = @@pokitdok.
|
515
|
+
response = @@pokitdok.oop_insurance_estimate @params
|
516
|
+
refute_nil(response["meta"].keys, msg="the response[meta] section is empty")
|
517
|
+
refute_nil(response["data"].keys, msg="the response[data] section is empty")
|
518
|
+
assert @@pokitdok.status_code == 200, "Status Code assertion failure. Tested for 200, Observed status code: #{@@pokitdok.status_code}"
|
519
|
+
|
520
|
+
# delete the price
|
521
|
+
response = @@pokitdok.oop_insurance_delete_price @load_price_uuid
|
518
522
|
refute_nil(response["meta"].keys, msg="the response[meta] section is empty")
|
519
523
|
refute_nil(response["data"].keys, msg="the response[data] section is empty")
|
520
524
|
assert @@pokitdok.status_code == 200, "Status Code assertion failure. Tested for 200, Observed status code: #{@@pokitdok.status_code}"
|
521
525
|
|
526
|
+
|
522
527
|
end
|
523
528
|
end
|
524
529
|
describe 'Data API Convenience function test: plans' do
|
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.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PokitDok, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|