daisybill_api 0.1.4 → 0.1.5
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 +4 -4
- data/Rakefile +6 -6
- data/lib/daisybill_api.rb +5 -5
- data/lib/daisybill_api/configuration.rb +3 -3
- data/lib/daisybill_api/data.rb +2 -2
- data/lib/daisybill_api/data/client.rb +18 -12
- data/lib/daisybill_api/data/url.rb +2 -2
- data/lib/daisybill_api/ext.rb +5 -5
- data/lib/daisybill_api/ext/associations.rb +1 -0
- data/lib/daisybill_api/ext/attributes.rb +2 -2
- data/lib/daisybill_api/ext/attributes/type_castings.rb +10 -4
- data/lib/daisybill_api/ext/crud.rb +12 -11
- data/lib/daisybill_api/ext/crud/create.rb +2 -2
- data/lib/daisybill_api/ext/crud/update.rb +1 -1
- data/lib/daisybill_api/ext/crud/write_off.rb +11 -0
- data/lib/daisybill_api/ext/links.rb +3 -3
- data/lib/daisybill_api/ext/links/link.rb +2 -2
- data/lib/daisybill_api/models.rb +31 -26
- data/lib/daisybill_api/models/attachment.rb +3 -2
- data/lib/daisybill_api/models/base.rb +1 -1
- data/lib/daisybill_api/models/bill.rb +23 -10
- data/lib/daisybill_api/models/bill_mailing_address.rb +16 -0
- data/lib/daisybill_api/models/bill_payment.rb +6 -5
- data/lib/daisybill_api/models/bill_submission.rb +2 -2
- data/lib/daisybill_api/models/billing_provider.rb +10 -10
- data/lib/daisybill_api/models/claim_adjustment_reason.rb +11 -0
- data/lib/daisybill_api/models/claims_administrator.rb +2 -1
- data/lib/daisybill_api/models/contact.rb +19 -11
- data/lib/daisybill_api/models/error_report.rb +30 -0
- data/lib/daisybill_api/models/injury.rb +1 -0
- data/lib/daisybill_api/models/paper_eor.rb +6 -3
- data/lib/daisybill_api/models/patient.rb +4 -3
- data/lib/daisybill_api/models/payer.rb +3 -1
- data/lib/daisybill_api/models/pharmacy_bill.rb +20 -8
- data/lib/daisybill_api/models/place_of_service.rb +4 -3
- data/lib/daisybill_api/models/prescribing_provider.rb +2 -2
- data/lib/daisybill_api/models/referring_provider.rb +2 -2
- data/lib/daisybill_api/models/remittance.rb +3 -3
- data/lib/daisybill_api/models/rendering_provider.rb +2 -2
- data/lib/daisybill_api/models/request_for_second_review.rb +3 -3
- data/lib/daisybill_api/models/service_line_item_payment.rb +14 -0
- data/lib/daisybill_api/models/task.rb +26 -0
- data/lib/daisybill_api/models/user.rb +16 -0
- data/lib/daisybill_api/version.rb +1 -1
- data/spec/daisybill_api/configuration_spec.rb +3 -3
- data/spec/daisybill_api/data/client_spec.rb +44 -38
- data/spec/daisybill_api/data/rest_client/payload_spec.rb +6 -6
- data/spec/daisybill_api/data/url_spec.rb +6 -6
- data/spec/daisybill_api/ext/attributes/attribute_spec.rb +32 -32
- data/spec/daisybill_api/ext/attributes/type_castings_spec.rb +22 -18
- data/spec/daisybill_api/ext/links/link_spec.rb +15 -15
- data/spec/daisybill_api/ext/pageable_collection_spec.rb +1 -1
- data/spec/daisybill_api/models/address_spec.rb +1 -1
- data/spec/daisybill_api/models/attachment_spec.rb +3 -3
- data/spec/daisybill_api/models/bill_mailing_address_spec.rb +6 -0
- data/spec/daisybill_api/models/bill_payment_spec.rb +5 -3
- data/spec/daisybill_api/models/bill_spec.rb +6 -4
- data/spec/daisybill_api/models/bill_submission_spec.rb +2 -2
- data/spec/daisybill_api/models/billing_provider_spec.rb +2 -2
- data/spec/daisybill_api/models/claim_number_verification_spec.rb +1 -1
- data/spec/daisybill_api/models/claims_administrator_spec.rb +3 -2
- data/spec/daisybill_api/models/contact_spec.rb +29 -3
- data/spec/daisybill_api/models/disputed_service_spec.rb +1 -1
- data/spec/daisybill_api/models/employer_spec.rb +1 -1
- data/spec/daisybill_api/models/error_report_spec.rb +10 -0
- data/spec/daisybill_api/models/injury_spec.rb +2 -1
- data/spec/daisybill_api/models/paper_eor_spec.rb +4 -3
- data/spec/daisybill_api/models/patient_spec.rb +4 -4
- data/spec/daisybill_api/models/payer_spec.rb +3 -2
- data/spec/daisybill_api/models/{pharamcy_bill_spec.rb → pharmacy_bill_spec.rb} +7 -6
- data/spec/daisybill_api/models/place_of_service_spec.rb +5 -5
- data/spec/daisybill_api/models/prescribing_provider_spec.rb +2 -2
- data/spec/daisybill_api/models/referring_provider_spec.rb +2 -2
- data/spec/daisybill_api/models/remittance_spec.rb +2 -2
- data/spec/daisybill_api/models/rendering_provider_spec.rb +2 -2
- data/spec/daisybill_api/models/request_for_second_review_spec.rb +2 -2
- data/spec/daisybill_api/models/service_line_item_payment_spec.rb +6 -0
- data/spec/daisybill_api/models/service_line_item_spec.rb +1 -1
- data/spec/daisybill_api/models/task_spec.rb +19 -0
- data/spec/daisybill_api/models/user_spec.rb +14 -0
- data/spec/daisybill_api_spec.rb +10 -10
- metadata +21 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "spec_helper"
|
|
2
2
|
|
|
3
3
|
describe DaisybillApi::Models::ReferringProvider do
|
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :first_name, :last_name, :middle_initial, :suffix,
|
|
5
5
|
:npi, :state_license_number, :active, :billing_provider_id, :created_at, :updated_at
|
|
6
6
|
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, :first_name, :last_name, :npi, :state_license_number,
|
|
7
7
|
:middle_initial, :suffix, :active, :billing_provider_id
|
|
8
|
-
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, :update,
|
|
8
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, :update, "/referring_providers", billing_provider_id: "/billing_providers"
|
|
9
9
|
it_behaves_like DaisybillApi::Ext::Associations
|
|
10
10
|
it_behaves_like DaisybillApi::Ext::Links, billing_provider: DaisybillApi::Models::BillingProvider
|
|
11
11
|
end
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "spec_helper"
|
|
2
2
|
|
|
3
3
|
describe DaisybillApi::Models::Remittance do
|
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :check_number, :check_amount_cents, :billing_provider_id, :effective_date, :deposited_on, :billing_provider_id, :created_at, :updated_at, bill_payments: :collection
|
|
5
|
-
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create,
|
|
5
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, "/remittances", billing_provider_id: "/billing_providers"
|
|
6
6
|
it_behaves_like DaisybillApi::Ext::Associations
|
|
7
7
|
it_behaves_like DaisybillApi::Ext::Links, billing_provider: DaisybillApi::Models::BillingProvider
|
|
8
8
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "spec_helper"
|
|
2
2
|
|
|
3
3
|
describe DaisybillApi::Models::RenderingProvider do
|
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :first_name, :last_name, :middle_initial, :suffix,
|
|
@@ -6,7 +6,7 @@ describe DaisybillApi::Models::RenderingProvider do
|
|
|
6
6
|
:created_at, :updated_at
|
|
7
7
|
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, :first_name, :last_name, :npi, :state_license_number,
|
|
8
8
|
:taxonomy_code, :type_of_specialty, :middle_initial, :suffix, :active, :billing_provider_id
|
|
9
|
-
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, :update,
|
|
9
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, :update, "/rendering_providers", billing_provider_id: "/billing_providers"
|
|
10
10
|
it_behaves_like DaisybillApi::Ext::Associations
|
|
11
11
|
it_behaves_like DaisybillApi::Ext::Links, billing_provider: DaisybillApi::Models::BillingProvider
|
|
12
12
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "spec_helper"
|
|
2
2
|
|
|
3
3
|
describe DaisybillApi::Models::RequestForSecondReview do
|
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :bill_submission_id, :bill_id, :created_at, :updated_at,
|
|
5
5
|
disputed_services: :collection
|
|
6
6
|
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, :bill_id, :disputed_services_attributes
|
|
7
7
|
|
|
8
|
-
it_behaves_like DaisybillApi::Ext::CRUD, :create,
|
|
8
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :create, "/requests_for_second_review", bill_id: "/bills"
|
|
9
9
|
it_behaves_like DaisybillApi::Ext::Links, bill: DaisybillApi::Models::Bill
|
|
10
10
|
end
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
require "spec_helper"
|
|
2
|
+
|
|
3
|
+
describe DaisybillApi::Models::ServiceLineItemPayment do
|
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes, :service_line_item_id, :procedure_code, :units, :payment_amount_cents,
|
|
5
|
+
:created_at, :updated_at, claim_adjustment_reasons: :collection
|
|
6
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require "spec_helper"
|
|
2
|
+
|
|
3
|
+
describe DaisybillApi::Models::Task do
|
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes,
|
|
5
|
+
:id,
|
|
6
|
+
:created_at,
|
|
7
|
+
:updated_at,
|
|
8
|
+
:bill_id,
|
|
9
|
+
:message,
|
|
10
|
+
:assigned_user_id,
|
|
11
|
+
:due_date,
|
|
12
|
+
:completed_by_id,
|
|
13
|
+
:completed_on
|
|
14
|
+
|
|
15
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, :update, "/tasks", bill_id: "/bills"
|
|
16
|
+
it_behaves_like DaisybillApi::Ext::Links, bill: DaisybillApi::Models::Bill
|
|
17
|
+
it_behaves_like DaisybillApi::Ext::Links, completed_by: DaisybillApi::Models::User
|
|
18
|
+
it_behaves_like DaisybillApi::Ext::Links, assigned_user: DaisybillApi::Models::User
|
|
19
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require "spec_helper"
|
|
2
|
+
|
|
3
|
+
describe DaisybillApi::Models::User do
|
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes,
|
|
5
|
+
:id,
|
|
6
|
+
:first_name,
|
|
7
|
+
:last_name,
|
|
8
|
+
:email,
|
|
9
|
+
:active,
|
|
10
|
+
:created_at,
|
|
11
|
+
:updated_at
|
|
12
|
+
|
|
13
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :find, :all, "/users"
|
|
14
|
+
end
|
data/spec/daisybill_api_spec.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "spec_helper"
|
|
2
2
|
|
|
3
3
|
describe DaisybillApi do
|
|
4
|
-
describe
|
|
5
|
-
let(:token) {
|
|
4
|
+
describe "::configure" do
|
|
5
|
+
let(:token) { "api token" }
|
|
6
6
|
let(:host) { nil }
|
|
7
7
|
let(:port) { nil }
|
|
8
8
|
let(:params) { {} }
|
|
@@ -15,20 +15,20 @@ describe DaisybillApi do
|
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
subject { DaisybillApi::Data::Url.build(
|
|
18
|
+
subject { DaisybillApi::Data::Url.build("/billing_providers").to_s }
|
|
19
19
|
|
|
20
|
-
it { is_expected.to eq
|
|
20
|
+
it { is_expected.to eq "https://go.daisybill.com/api/v1/billing_providers?api_token=api+token" }
|
|
21
21
|
|
|
22
|
-
context
|
|
23
|
-
let(:host) {
|
|
22
|
+
context "when host and port changed" do
|
|
23
|
+
let(:host) { "localhost" }
|
|
24
24
|
let(:port) { 3000 }
|
|
25
25
|
|
|
26
|
-
it { is_expected.to eq(
|
|
26
|
+
it { is_expected.to eq("http://localhost:3000/api/v1/billing_providers?api_token=api+token") }
|
|
27
27
|
|
|
28
|
-
context
|
|
28
|
+
context "after reset" do
|
|
29
29
|
before { DaisybillApi.reset_configuration }
|
|
30
30
|
|
|
31
|
-
it { is_expected.to eq(
|
|
31
|
+
it { is_expected.to eq("https://go.daisybill.com/api/v1/billing_providers?api_token") }
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daisybill_api
|
|
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
|
- Ben Liscio
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-
|
|
13
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activemodel
|
|
@@ -193,6 +193,7 @@ files:
|
|
|
193
193
|
- lib/daisybill_api/ext/crud/search.rb
|
|
194
194
|
- lib/daisybill_api/ext/crud/show.rb
|
|
195
195
|
- lib/daisybill_api/ext/crud/update.rb
|
|
196
|
+
- lib/daisybill_api/ext/crud/write_off.rb
|
|
196
197
|
- lib/daisybill_api/ext/links.rb
|
|
197
198
|
- lib/daisybill_api/ext/links/link.rb
|
|
198
199
|
- lib/daisybill_api/ext/pageable_collection.rb
|
|
@@ -201,14 +202,17 @@ files:
|
|
|
201
202
|
- lib/daisybill_api/models/attachment.rb
|
|
202
203
|
- lib/daisybill_api/models/base.rb
|
|
203
204
|
- lib/daisybill_api/models/bill.rb
|
|
205
|
+
- lib/daisybill_api/models/bill_mailing_address.rb
|
|
204
206
|
- lib/daisybill_api/models/bill_payment.rb
|
|
205
207
|
- lib/daisybill_api/models/bill_submission.rb
|
|
206
208
|
- lib/daisybill_api/models/billing_provider.rb
|
|
209
|
+
- lib/daisybill_api/models/claim_adjustment_reason.rb
|
|
207
210
|
- lib/daisybill_api/models/claim_number_verification.rb
|
|
208
211
|
- lib/daisybill_api/models/claims_administrator.rb
|
|
209
212
|
- lib/daisybill_api/models/contact.rb
|
|
210
213
|
- lib/daisybill_api/models/disputed_service.rb
|
|
211
214
|
- lib/daisybill_api/models/employer.rb
|
|
215
|
+
- lib/daisybill_api/models/error_report.rb
|
|
212
216
|
- lib/daisybill_api/models/injury.rb
|
|
213
217
|
- lib/daisybill_api/models/paper_eor.rb
|
|
214
218
|
- lib/daisybill_api/models/patient.rb
|
|
@@ -221,6 +225,9 @@ files:
|
|
|
221
225
|
- lib/daisybill_api/models/rendering_provider.rb
|
|
222
226
|
- lib/daisybill_api/models/request_for_second_review.rb
|
|
223
227
|
- lib/daisybill_api/models/service_line_item.rb
|
|
228
|
+
- lib/daisybill_api/models/service_line_item_payment.rb
|
|
229
|
+
- lib/daisybill_api/models/task.rb
|
|
230
|
+
- lib/daisybill_api/models/user.rb
|
|
224
231
|
- lib/daisybill_api/version.rb
|
|
225
232
|
- spec/daisybill_api/configuration_spec.rb
|
|
226
233
|
- spec/daisybill_api/data/client_spec.rb
|
|
@@ -232,6 +239,7 @@ files:
|
|
|
232
239
|
- spec/daisybill_api/ext/pageable_collection_spec.rb
|
|
233
240
|
- spec/daisybill_api/models/address_spec.rb
|
|
234
241
|
- spec/daisybill_api/models/attachment_spec.rb
|
|
242
|
+
- spec/daisybill_api/models/bill_mailing_address_spec.rb
|
|
235
243
|
- spec/daisybill_api/models/bill_payment_spec.rb
|
|
236
244
|
- spec/daisybill_api/models/bill_spec.rb
|
|
237
245
|
- spec/daisybill_api/models/bill_submission_spec.rb
|
|
@@ -241,18 +249,22 @@ files:
|
|
|
241
249
|
- spec/daisybill_api/models/contact_spec.rb
|
|
242
250
|
- spec/daisybill_api/models/disputed_service_spec.rb
|
|
243
251
|
- spec/daisybill_api/models/employer_spec.rb
|
|
252
|
+
- spec/daisybill_api/models/error_report_spec.rb
|
|
244
253
|
- spec/daisybill_api/models/injury_spec.rb
|
|
245
254
|
- spec/daisybill_api/models/paper_eor_spec.rb
|
|
246
255
|
- spec/daisybill_api/models/patient_spec.rb
|
|
247
256
|
- spec/daisybill_api/models/payer_spec.rb
|
|
248
|
-
- spec/daisybill_api/models/
|
|
257
|
+
- spec/daisybill_api/models/pharmacy_bill_spec.rb
|
|
249
258
|
- spec/daisybill_api/models/place_of_service_spec.rb
|
|
250
259
|
- spec/daisybill_api/models/prescribing_provider_spec.rb
|
|
251
260
|
- spec/daisybill_api/models/referring_provider_spec.rb
|
|
252
261
|
- spec/daisybill_api/models/remittance_spec.rb
|
|
253
262
|
- spec/daisybill_api/models/rendering_provider_spec.rb
|
|
254
263
|
- spec/daisybill_api/models/request_for_second_review_spec.rb
|
|
264
|
+
- spec/daisybill_api/models/service_line_item_payment_spec.rb
|
|
255
265
|
- spec/daisybill_api/models/service_line_item_spec.rb
|
|
266
|
+
- spec/daisybill_api/models/task_spec.rb
|
|
267
|
+
- spec/daisybill_api/models/user_spec.rb
|
|
256
268
|
- spec/daisybill_api_spec.rb
|
|
257
269
|
homepage: https://www.daisybill.com
|
|
258
270
|
licenses:
|
|
@@ -289,6 +301,7 @@ test_files:
|
|
|
289
301
|
- spec/daisybill_api/ext/pageable_collection_spec.rb
|
|
290
302
|
- spec/daisybill_api/models/address_spec.rb
|
|
291
303
|
- spec/daisybill_api/models/attachment_spec.rb
|
|
304
|
+
- spec/daisybill_api/models/bill_mailing_address_spec.rb
|
|
292
305
|
- spec/daisybill_api/models/bill_payment_spec.rb
|
|
293
306
|
- spec/daisybill_api/models/bill_spec.rb
|
|
294
307
|
- spec/daisybill_api/models/bill_submission_spec.rb
|
|
@@ -298,17 +311,21 @@ test_files:
|
|
|
298
311
|
- spec/daisybill_api/models/contact_spec.rb
|
|
299
312
|
- spec/daisybill_api/models/disputed_service_spec.rb
|
|
300
313
|
- spec/daisybill_api/models/employer_spec.rb
|
|
314
|
+
- spec/daisybill_api/models/error_report_spec.rb
|
|
301
315
|
- spec/daisybill_api/models/injury_spec.rb
|
|
302
316
|
- spec/daisybill_api/models/paper_eor_spec.rb
|
|
303
317
|
- spec/daisybill_api/models/patient_spec.rb
|
|
304
318
|
- spec/daisybill_api/models/payer_spec.rb
|
|
305
|
-
- spec/daisybill_api/models/
|
|
319
|
+
- spec/daisybill_api/models/pharmacy_bill_spec.rb
|
|
306
320
|
- spec/daisybill_api/models/place_of_service_spec.rb
|
|
307
321
|
- spec/daisybill_api/models/prescribing_provider_spec.rb
|
|
308
322
|
- spec/daisybill_api/models/referring_provider_spec.rb
|
|
309
323
|
- spec/daisybill_api/models/remittance_spec.rb
|
|
310
324
|
- spec/daisybill_api/models/rendering_provider_spec.rb
|
|
311
325
|
- spec/daisybill_api/models/request_for_second_review_spec.rb
|
|
326
|
+
- spec/daisybill_api/models/service_line_item_payment_spec.rb
|
|
312
327
|
- spec/daisybill_api/models/service_line_item_spec.rb
|
|
328
|
+
- spec/daisybill_api/models/task_spec.rb
|
|
329
|
+
- spec/daisybill_api/models/user_spec.rb
|
|
313
330
|
- spec/daisybill_api_spec.rb
|
|
314
331
|
has_rdoc:
|