daisybill_api 0.1.2 → 0.1.3
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/lib/daisybill_api/ext/associations.rb +2 -0
- data/lib/daisybill_api/ext/crud/index.rb +8 -2
- data/lib/daisybill_api/models.rb +7 -1
- data/lib/daisybill_api/models/bill_payment.rb +6 -1
- data/lib/daisybill_api/models/billing_provider.rb +6 -1
- data/lib/daisybill_api/models/claim_number_verification.rb +29 -0
- data/lib/daisybill_api/models/claims_administrator.rb +1 -1
- data/lib/daisybill_api/models/disputed_service.rb +17 -0
- data/lib/daisybill_api/models/injury.rb +1 -0
- data/lib/daisybill_api/models/paper_eor.rb +12 -0
- data/lib/daisybill_api/models/payer.rb +1 -1
- data/lib/daisybill_api/models/pharmacy_bill.rb +45 -0
- data/lib/daisybill_api/models/prescribing_provider.rb +20 -0
- data/lib/daisybill_api/models/remittance.rb +20 -0
- data/lib/daisybill_api/models/request_for_second_review.rb +21 -0
- data/lib/daisybill_api/models/service_line_item.rb +2 -0
- data/lib/daisybill_api/version.rb +1 -1
- data/spec/daisybill_api/models/bill_payment_spec.rb +2 -3
- data/spec/daisybill_api/models/billing_provider_spec.rb +5 -0
- data/spec/daisybill_api/models/claim_number_verification_spec.rb +8 -0
- data/spec/daisybill_api/models/claims_administrator_spec.rb +1 -1
- data/spec/daisybill_api/models/disputed_service_spec.rb +8 -0
- data/spec/daisybill_api/models/injury_spec.rb +1 -1
- data/spec/daisybill_api/models/paper_eor_spec.rb +8 -0
- data/spec/daisybill_api/models/payer_spec.rb +1 -1
- data/spec/daisybill_api/models/pharamcy_bill_spec.rb +28 -0
- data/spec/daisybill_api/models/prescribing_provider_spec.rb +15 -0
- data/spec/daisybill_api/models/remittance_spec.rb +8 -0
- data/spec/daisybill_api/models/request_for_second_review_spec.rb +10 -0
- data/spec/daisybill_api/models/service_line_item_spec.rb +2 -2
- metadata +23 -5
- data/lib/daisybill_api/models/billing_provider_attachment.rb +0 -25
- data/spec/daisybill_api/models/billing_provider_attachment_spec.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6514037ee9cf3c3d54d279fac5c14bae7f99db6
|
4
|
+
data.tar.gz: 3fd7ebf9e368afbf88164f8d937f8f8b8e45254a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd236aaf3b197a0080026b2fc3db8cde1014a8999c059c425688321180aec25f5ecb7bb2b6a6cd5a5c5ba73c0d680d3ba3a5670930119e7f34482b3df98b2105
|
7
|
+
data.tar.gz: 27c4c861896ef089c814903cc652c88fc68ec5829214ef761b74a199b12d88281a0ee53170105a80b8a4687759e884f7217d9cd016e5834b6a84726269587359
|
@@ -15,6 +15,8 @@ module DaisybillApi
|
|
15
15
|
clazz = modulize options[:class]
|
16
16
|
define_method name do |params = {}|
|
17
17
|
params.merge!(:"#{self.class.singular_key}_id" => self.id)
|
18
|
+
params.merge!(path: "#{show_path}/#{name}") if options[:set_path]
|
19
|
+
params.merge!(collection_key: options[:collection_key]) if options[:collection_key]
|
18
20
|
clazz.constantize.all(params)
|
19
21
|
end
|
20
22
|
end
|
@@ -12,11 +12,17 @@ module DaisybillApi
|
|
12
12
|
# @return [Object] a {DaisybillApi::Ext::PageableCollection PageableCollection} that includes Enumerable
|
13
13
|
def all(options = {})
|
14
14
|
id = options[@prefix_property]
|
15
|
-
|
15
|
+
|
16
|
+
if options[:path]
|
17
|
+
c = client(:get, options.delete(:path), options)
|
18
|
+
else
|
19
|
+
c = client(:get, index_path(id), options)
|
20
|
+
end
|
16
21
|
|
17
22
|
if c.success?
|
23
|
+
collection_key = options[:collection_key] || plural_key.to_s
|
18
24
|
DaisybillApi::Ext::PageableCollection.new(
|
19
|
-
c.response[
|
25
|
+
c.response[collection_key].map { |attributes|
|
20
26
|
instance = new(attributes)
|
21
27
|
instance.send("#{prefix_property}=", id) if path_prefix?
|
22
28
|
instance
|
data/lib/daisybill_api/models.rb
CHANGED
@@ -9,13 +9,19 @@ require 'daisybill_api/models/employer'
|
|
9
9
|
require 'daisybill_api/models/injury'
|
10
10
|
require 'daisybill_api/models/patient'
|
11
11
|
require 'daisybill_api/models/place_of_service'
|
12
|
+
require 'daisybill_api/models/prescribing_provider'
|
12
13
|
require 'daisybill_api/models/referring_provider'
|
13
14
|
require 'daisybill_api/models/rendering_provider'
|
14
15
|
require 'daisybill_api/models/attachment'
|
15
|
-
require 'daisybill_api/models/billing_provider_attachment'
|
16
16
|
require 'daisybill_api/models/service_line_item'
|
17
17
|
require 'daisybill_api/models/bill'
|
18
|
+
require 'daisybill_api/models/pharmacy_bill'
|
18
19
|
require 'daisybill_api/models/bill_payment'
|
20
|
+
require 'daisybill_api/models/claim_number_verification'
|
21
|
+
require 'daisybill_api/models/remittance'
|
22
|
+
require 'daisybill_api/models/paper_eor'
|
23
|
+
require 'daisybill_api/models/disputed_service'
|
24
|
+
require 'daisybill_api/models/request_for_second_review'
|
19
25
|
|
20
26
|
module DaisybillApi
|
21
27
|
# @private
|
@@ -6,7 +6,6 @@ module DaisybillApi
|
|
6
6
|
|
7
7
|
attributes(
|
8
8
|
id: :integer,
|
9
|
-
payment_amount_cents: :integer,
|
10
9
|
check_amount: :integer,
|
11
10
|
check_number: :string,
|
12
11
|
check_effective_date: :date,
|
@@ -14,6 +13,12 @@ module DaisybillApi
|
|
14
13
|
readonly: true
|
15
14
|
)
|
16
15
|
|
16
|
+
attributes(
|
17
|
+
service_line_items: [DaisybillApi::Models::ServiceLineItem],
|
18
|
+
payer_claim_control_number: :integer,
|
19
|
+
payment_amount_cents: :integer
|
20
|
+
)
|
21
|
+
|
17
22
|
link :bill_submission, class: 'BillSubmission'
|
18
23
|
link :bill, class: 'Bill'
|
19
24
|
end
|
@@ -19,8 +19,13 @@ module DaisybillApi
|
|
19
19
|
has_many :patients, class: 'Patient'
|
20
20
|
has_many :rendering_providers, class: 'RenderingProvider'
|
21
21
|
has_many :referring_providers, class: 'ReferringProvider'
|
22
|
+
has_many :prescribing_providers, class: 'PrescribingProvider'
|
22
23
|
has_many :places_of_service, class: 'PlaceOfService'
|
23
|
-
has_many :
|
24
|
+
has_many :remittances, class: 'Remittance'
|
25
|
+
has_many :attachments, class: 'Attachment', set_path: true, collection_key: 'billing_provider_attachments'
|
26
|
+
has_many :bills, class: 'Bill', set_path: true
|
27
|
+
has_many :pharmacy_bills, class: 'PharmacyBill', set_path: true
|
28
|
+
has_many :injuries, class: 'Injury', set_path: true
|
24
29
|
end
|
25
30
|
end
|
26
31
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module DaisybillApi
|
2
|
+
module Models
|
3
|
+
class ClaimNumberVerification < DaisybillApi::Models::Base
|
4
|
+
class << self
|
5
|
+
def index_path(*_)
|
6
|
+
"/claim_number_verifications"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
rest_actions :create
|
11
|
+
|
12
|
+
attributes(
|
13
|
+
matches: :boolean,
|
14
|
+
claim_number_patterns_present: :boolean,
|
15
|
+
readonly: true
|
16
|
+
)
|
17
|
+
|
18
|
+
attributes(
|
19
|
+
claim_number: :string,
|
20
|
+
resource_type: :string,
|
21
|
+
resource_id: :integer,
|
22
|
+
)
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def id; end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module DaisybillApi
|
2
|
+
module Models
|
3
|
+
class DisputedService < DaisybillApi::Models::Base
|
4
|
+
attributes(
|
5
|
+
id: :integer,
|
6
|
+
readonly: true
|
7
|
+
)
|
8
|
+
|
9
|
+
attributes(
|
10
|
+
service_line_item_id: :integer,
|
11
|
+
reason: :string,
|
12
|
+
authorized: :boolean,
|
13
|
+
supporting_documentation_attached: :boolean
|
14
|
+
)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module DaisybillApi
|
2
|
+
module Models
|
3
|
+
class PharmacyBill < DaisybillApi::Models::Base
|
4
|
+
path_prefix '/injuries', :injury_id
|
5
|
+
rest_actions :index, :show, :create, :update, :destroy
|
6
|
+
|
7
|
+
attributes(
|
8
|
+
id: :integer,
|
9
|
+
status: :string,
|
10
|
+
charge_cents: :integer,
|
11
|
+
expected_payment_cents: :integer,
|
12
|
+
allowed_cents: :integer,
|
13
|
+
balance_due_cents: :integer,
|
14
|
+
review_status: :string,
|
15
|
+
review_errors: [:string],
|
16
|
+
readonly: true
|
17
|
+
)
|
18
|
+
|
19
|
+
attributes(
|
20
|
+
product_type: :string,
|
21
|
+
date_of_service: :date,
|
22
|
+
prescription_date: :date,
|
23
|
+
fill_number: :integer,
|
24
|
+
prescription_number: :string,
|
25
|
+
days_supply: :integer,
|
26
|
+
dispense_as_written_code: :integer,
|
27
|
+
unit_of_measurement: :string,
|
28
|
+
authorization_number: :string,
|
29
|
+
compound_name: :string,
|
30
|
+
dosage_form: :integer,
|
31
|
+
route_of_administration: :integer,
|
32
|
+
number_of_containers: :integer,
|
33
|
+
service_line_items: [DaisybillApi::Models::ServiceLineItem]
|
34
|
+
)
|
35
|
+
|
36
|
+
link :injury, class: 'Injury'
|
37
|
+
link :place_of_service, class: 'PlaceOfService'
|
38
|
+
link :prescribing_provider, class: 'PrescribingProvider'
|
39
|
+
|
40
|
+
has_many :attachments, class: 'Attachment'
|
41
|
+
has_many :bill_payments, class: 'BillPayment'
|
42
|
+
has_many :bill_submissions, class: 'BillSubmission'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module DaisybillApi
|
2
|
+
module Models
|
3
|
+
class PrescribingProvider < DaisybillApi::Models::Base
|
4
|
+
path_prefix '/billing_providers', :billing_provider_id
|
5
|
+
rest_actions :index, :show, :create, :update
|
6
|
+
|
7
|
+
attribute :id, :integer, readonly: true
|
8
|
+
attributes(
|
9
|
+
first_name: :string,
|
10
|
+
last_name: :string,
|
11
|
+
middle_initial: :string,
|
12
|
+
suffix: :string,
|
13
|
+
npi: :string,
|
14
|
+
address: DaisybillApi::Models::Address
|
15
|
+
)
|
16
|
+
|
17
|
+
link :billing_provider, class: 'BillingProvider'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module DaisybillApi
|
2
|
+
module Models
|
3
|
+
class Remittance < DaisybillApi::Models::Base
|
4
|
+
path_prefix '/billing_providers', :billing_provider_id
|
5
|
+
rest_actions :index, :show, :create
|
6
|
+
attributes id: :integer, readonly: true
|
7
|
+
attributes(
|
8
|
+
check_number: :string,
|
9
|
+
check_amount_cents: :integer,
|
10
|
+
effective_date: :date,
|
11
|
+
deposited_on: :date,
|
12
|
+
bill_payments: [DaisybillApi::Models::BillPayment]
|
13
|
+
)
|
14
|
+
|
15
|
+
has_many :paper_eors, class: 'PaperEor'
|
16
|
+
|
17
|
+
link :billing_provider, class: 'BillingProvider'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module DaisybillApi
|
2
|
+
module Models
|
3
|
+
class RequestForSecondReview < DaisybillApi::Models::Base
|
4
|
+
rest_actions :create
|
5
|
+
self.path = '/requests_for_second_review'
|
6
|
+
path_prefix '/bills', :bill_id
|
7
|
+
|
8
|
+
attributes(
|
9
|
+
id: :integer,
|
10
|
+
bill_submission_id: :integer,
|
11
|
+
readonly: true
|
12
|
+
)
|
13
|
+
|
14
|
+
attributes(
|
15
|
+
disputed_services: [DaisybillApi::Models::DisputedService]
|
16
|
+
)
|
17
|
+
|
18
|
+
link :bill, class: 'Bill'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -2,10 +2,9 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe DaisybillApi::Models::BillPayment do
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :payment_amount_cents, :check_amount, :check_number,
|
5
|
-
:check_effective_date, :payment_source, :created_at, :updated_at, :bill_id, :bill_submission_id
|
6
|
-
|
5
|
+
:check_effective_date, :payment_source, :created_at, :updated_at, :bill_id, :bill_submission_id,
|
6
|
+
:payer_claim_control_number, service_line_items: :collection
|
7
7
|
it_behaves_like DaisybillApi::Ext::CRUD, :all, '/bill_payments', bill_id: '/bills'
|
8
|
-
|
9
8
|
it_behaves_like DaisybillApi::Ext::Links, bill: DaisybillApi::Models::Bill,
|
10
9
|
bill_submission: DaisybillApi::Models::BillSubmission
|
11
10
|
end
|
@@ -8,7 +8,12 @@ describe DaisybillApi::Models::BillingProvider do
|
|
8
8
|
it_behaves_like DaisybillApi::Ext::Associations, :patients
|
9
9
|
it_behaves_like DaisybillApi::Ext::Associations, :rendering_providers
|
10
10
|
it_behaves_like DaisybillApi::Ext::Associations, :referring_providers
|
11
|
+
it_behaves_like DaisybillApi::Ext::Associations, :prescribing_providers
|
11
12
|
it_behaves_like DaisybillApi::Ext::Associations, :places_of_service
|
12
13
|
it_behaves_like DaisybillApi::Ext::Associations, :attachments
|
14
|
+
it_behaves_like DaisybillApi::Ext::Associations, :remittances
|
15
|
+
it_behaves_like DaisybillApi::Ext::Associations, :bills
|
16
|
+
it_behaves_like DaisybillApi::Ext::Associations, :pharmacy_bills
|
17
|
+
it_behaves_like DaisybillApi::Ext::Associations, :injuries
|
13
18
|
it_behaves_like DaisybillApi::Ext::Links
|
14
19
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe DaisybillApi::Models::ClaimNumberVerification do
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes, :matches, :claim_number_patterns_present, :updated_at, :created_at,
|
5
|
+
:resource_id, :resource_type, :claim_number
|
6
|
+
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, :resource_id, :resource_type, :claim_number
|
7
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :create, "/claim_number_verifications"
|
8
|
+
end
|
@@ -4,5 +4,5 @@ describe DaisybillApi::Models::ClaimsAdministrator do
|
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :name, :created_at, :updated_at, :description
|
5
5
|
it_behaves_like DaisybillApi::Ext::Attributes::SendAs
|
6
6
|
it_behaves_like DaisybillApi::Ext::Associations, :payers
|
7
|
-
it_behaves_like DaisybillApi::Ext::CRUD, :all, '/claims_administrators'
|
7
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, '/claims_administrators'
|
8
8
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe DaisybillApi::Models::DisputedService do
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes, :id, :service_line_item_id, :reason, :authorized,
|
5
|
+
:supporting_documentation_attached, :created_at, :updated_at
|
6
|
+
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, :service_line_item_id, :reason, :authorized,
|
7
|
+
:supporting_documentation_attached
|
8
|
+
end
|
@@ -41,6 +41,6 @@ describe DaisybillApi::Models::Injury do
|
|
41
41
|
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, *EXT_SEND_AS_ATTRIBUTES
|
42
42
|
|
43
43
|
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, :update, :destroy, "/injuries", patient_id: "/patients"
|
44
|
-
it_behaves_like DaisybillApi::Ext::Associations, :bills
|
44
|
+
it_behaves_like DaisybillApi::Ext::Associations, :bills, :pharmacy_bills
|
45
45
|
it_behaves_like DaisybillApi::Ext::Links, patient: DaisybillApi::Models::Patient
|
46
46
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe DaisybillApi::Models::PaperEor do
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes, :id, :remittance_id, :created_at, :updated_at
|
5
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, '/paper_eors', remittance_id: '/remittances'
|
6
|
+
it_behaves_like DaisybillApi::Ext::Associations
|
7
|
+
it_behaves_like DaisybillApi::Ext::Links, remittance: DaisybillApi::Models::Remittance
|
8
|
+
end
|
@@ -4,5 +4,5 @@ describe DaisybillApi::Models::Payer do
|
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :name, :description, :main, :claims_administrator_id,
|
5
5
|
:created_at, :updated_at
|
6
6
|
it_behaves_like DaisybillApi::Ext::Attributes::SendAs
|
7
|
-
it_behaves_like DaisybillApi::Ext::CRUD, :all, '/payers', claims_administrator_id: '/claims_administrators'
|
7
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, '/payers', claims_administrator_id: '/claims_administrators'
|
8
8
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe DaisybillApi::Models::PharmacyBill do
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes,
|
5
|
+
:id, :date_of_service, :authorization_number, :status, :product_type,
|
6
|
+
:prescription_date, :fill_number, :prescription_number, :days_supply,
|
7
|
+
:dispense_as_written_code, :unit_of_measurement, :compound_name,
|
8
|
+
:dosage_form, :route_of_administration, :charge_cents, :number_of_containers,
|
9
|
+
:expected_payment_cents, :allowed_cents, :balance_due_cents, :created_at,
|
10
|
+
:updated_at, :injury_id, :place_of_service_id, :prescribing_provider_id,
|
11
|
+
:review_status, review_errors: :collection, service_line_items: :collection
|
12
|
+
it_behaves_like DaisybillApi::Ext::Attributes::SendAs,
|
13
|
+
:date_of_service, :authorization_number, :product_type, :prescription_date,
|
14
|
+
:fill_number, :prescription_number, :days_supply, :dispense_as_written_code,
|
15
|
+
:unit_of_measurement, :compound_name, :dosage_form,
|
16
|
+
:route_of_administration, :number_of_containers, :injury_id, :place_of_service_id,
|
17
|
+
:prescribing_provider_id, :service_line_items_attributes
|
18
|
+
it_behaves_like DaisybillApi::Ext::CRUD,
|
19
|
+
:all, :find, :create, :update, :destroy,
|
20
|
+
'/pharmacy_bills', injury_id: '/injuries'
|
21
|
+
it_behaves_like DaisybillApi::Ext::Links,
|
22
|
+
injury: DaisybillApi::Models::Injury,
|
23
|
+
place_of_service: DaisybillApi::Models::PlaceOfService,
|
24
|
+
prescribing_provider: DaisybillApi::Models::PrescribingProvider
|
25
|
+
it_behaves_like DaisybillApi::Ext::Associations, :attachments
|
26
|
+
it_behaves_like DaisybillApi::Ext::Associations, :bill_payments
|
27
|
+
it_behaves_like DaisybillApi::Ext::Associations, :bill_submissions
|
28
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe DaisybillApi::Models::PrescribingProvider do
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes,
|
5
|
+
:id, :first_name, :last_name, :middle_initial, :suffix,
|
6
|
+
:npi, :billing_provider_id, :created_at, :updated_at, address: :model
|
7
|
+
it_behaves_like DaisybillApi::Ext::Attributes::SendAs,
|
8
|
+
:first_name, :last_name, :npi, :middle_initial,
|
9
|
+
:suffix, :billing_provider_id, :address_attributes
|
10
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :all, :find, :create, :update,
|
11
|
+
'/prescribing_providers', billing_provider_id: '/billing_providers'
|
12
|
+
it_behaves_like DaisybillApi::Ext::Associations
|
13
|
+
it_behaves_like DaisybillApi::Ext::Links,
|
14
|
+
billing_provider: DaisybillApi::Models::BillingProvider
|
15
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe DaisybillApi::Models::Remittance do
|
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, '/remittances', billing_provider_id: '/billing_providers'
|
6
|
+
it_behaves_like DaisybillApi::Ext::Associations
|
7
|
+
it_behaves_like DaisybillApi::Ext::Links, billing_provider: DaisybillApi::Models::BillingProvider
|
8
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe DaisybillApi::Models::RequestForSecondReview do
|
4
|
+
it_behaves_like DaisybillApi::Ext::Attributes, :id, :bill_submission_id, :bill_id, :created_at, :updated_at,
|
5
|
+
disputed_services: :collection
|
6
|
+
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, :bill_id, :disputed_services_attributes
|
7
|
+
|
8
|
+
it_behaves_like DaisybillApi::Ext::CRUD, :create, '/requests_for_second_review', bill_id: '/bills'
|
9
|
+
it_behaves_like DaisybillApi::Ext::Links, bill: DaisybillApi::Models::Bill
|
10
|
+
end
|
@@ -4,8 +4,8 @@ describe DaisybillApi::Models::ServiceLineItem do
|
|
4
4
|
it_behaves_like DaisybillApi::Ext::Attributes, :id, :units, :supplemental_data, :procedure_code,
|
5
5
|
:diagnosis_code_1, :diagnosis_code_2, :diagnosis_code_3, :diagnosis_code_4, :charge_cents,
|
6
6
|
:expected_payment_cents, :allowed_cents, :balance_due_cents, :write_off_cents, :created_at,
|
7
|
-
:updated_at, :custom_unit_charge_cents, :_destroy, modifier_codes: :collection
|
7
|
+
:updated_at, :custom_unit_charge_cents, :payment_amount_cents, :service_line_item_id, :_destroy, modifier_codes: :collection
|
8
8
|
it_behaves_like DaisybillApi::Ext::Attributes::SendAs, :id, :procedure_code, :units, :supplemental_data,
|
9
9
|
:diagnosis_code_1, :diagnosis_code_2, :diagnosis_code_3, :diagnosis_code_4, :custom_unit_charge_cents,
|
10
|
-
:_destroy, :modifier_codes
|
10
|
+
:payment_amount_cents, :service_line_item_id, :_destroy, :modifier_codes
|
11
11
|
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.3
|
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:
|
13
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -204,16 +204,22 @@ files:
|
|
204
204
|
- lib/daisybill_api/models/bill_payment.rb
|
205
205
|
- lib/daisybill_api/models/bill_submission.rb
|
206
206
|
- lib/daisybill_api/models/billing_provider.rb
|
207
|
-
- lib/daisybill_api/models/
|
207
|
+
- lib/daisybill_api/models/claim_number_verification.rb
|
208
208
|
- lib/daisybill_api/models/claims_administrator.rb
|
209
209
|
- lib/daisybill_api/models/contact.rb
|
210
|
+
- lib/daisybill_api/models/disputed_service.rb
|
210
211
|
- lib/daisybill_api/models/employer.rb
|
211
212
|
- lib/daisybill_api/models/injury.rb
|
213
|
+
- lib/daisybill_api/models/paper_eor.rb
|
212
214
|
- lib/daisybill_api/models/patient.rb
|
213
215
|
- lib/daisybill_api/models/payer.rb
|
216
|
+
- lib/daisybill_api/models/pharmacy_bill.rb
|
214
217
|
- lib/daisybill_api/models/place_of_service.rb
|
218
|
+
- lib/daisybill_api/models/prescribing_provider.rb
|
215
219
|
- lib/daisybill_api/models/referring_provider.rb
|
220
|
+
- lib/daisybill_api/models/remittance.rb
|
216
221
|
- lib/daisybill_api/models/rendering_provider.rb
|
222
|
+
- lib/daisybill_api/models/request_for_second_review.rb
|
217
223
|
- lib/daisybill_api/models/service_line_item.rb
|
218
224
|
- lib/daisybill_api/version.rb
|
219
225
|
- spec/daisybill_api/configuration_spec.rb
|
@@ -229,17 +235,23 @@ files:
|
|
229
235
|
- spec/daisybill_api/models/bill_payment_spec.rb
|
230
236
|
- spec/daisybill_api/models/bill_spec.rb
|
231
237
|
- spec/daisybill_api/models/bill_submission_spec.rb
|
232
|
-
- spec/daisybill_api/models/billing_provider_attachment_spec.rb
|
233
238
|
- spec/daisybill_api/models/billing_provider_spec.rb
|
239
|
+
- spec/daisybill_api/models/claim_number_verification_spec.rb
|
234
240
|
- spec/daisybill_api/models/claims_administrator_spec.rb
|
235
241
|
- spec/daisybill_api/models/contact_spec.rb
|
242
|
+
- spec/daisybill_api/models/disputed_service_spec.rb
|
236
243
|
- spec/daisybill_api/models/employer_spec.rb
|
237
244
|
- spec/daisybill_api/models/injury_spec.rb
|
245
|
+
- spec/daisybill_api/models/paper_eor_spec.rb
|
238
246
|
- spec/daisybill_api/models/patient_spec.rb
|
239
247
|
- spec/daisybill_api/models/payer_spec.rb
|
248
|
+
- spec/daisybill_api/models/pharamcy_bill_spec.rb
|
240
249
|
- spec/daisybill_api/models/place_of_service_spec.rb
|
250
|
+
- spec/daisybill_api/models/prescribing_provider_spec.rb
|
241
251
|
- spec/daisybill_api/models/referring_provider_spec.rb
|
252
|
+
- spec/daisybill_api/models/remittance_spec.rb
|
242
253
|
- spec/daisybill_api/models/rendering_provider_spec.rb
|
254
|
+
- spec/daisybill_api/models/request_for_second_review_spec.rb
|
243
255
|
- spec/daisybill_api/models/service_line_item_spec.rb
|
244
256
|
- spec/daisybill_api_spec.rb
|
245
257
|
homepage: https://www.daisybill.com
|
@@ -280,17 +292,23 @@ test_files:
|
|
280
292
|
- spec/daisybill_api/models/bill_payment_spec.rb
|
281
293
|
- spec/daisybill_api/models/bill_spec.rb
|
282
294
|
- spec/daisybill_api/models/bill_submission_spec.rb
|
283
|
-
- spec/daisybill_api/models/billing_provider_attachment_spec.rb
|
284
295
|
- spec/daisybill_api/models/billing_provider_spec.rb
|
296
|
+
- spec/daisybill_api/models/claim_number_verification_spec.rb
|
285
297
|
- spec/daisybill_api/models/claims_administrator_spec.rb
|
286
298
|
- spec/daisybill_api/models/contact_spec.rb
|
299
|
+
- spec/daisybill_api/models/disputed_service_spec.rb
|
287
300
|
- spec/daisybill_api/models/employer_spec.rb
|
288
301
|
- spec/daisybill_api/models/injury_spec.rb
|
302
|
+
- spec/daisybill_api/models/paper_eor_spec.rb
|
289
303
|
- spec/daisybill_api/models/patient_spec.rb
|
290
304
|
- spec/daisybill_api/models/payer_spec.rb
|
305
|
+
- spec/daisybill_api/models/pharamcy_bill_spec.rb
|
291
306
|
- spec/daisybill_api/models/place_of_service_spec.rb
|
307
|
+
- spec/daisybill_api/models/prescribing_provider_spec.rb
|
292
308
|
- spec/daisybill_api/models/referring_provider_spec.rb
|
309
|
+
- spec/daisybill_api/models/remittance_spec.rb
|
293
310
|
- spec/daisybill_api/models/rendering_provider_spec.rb
|
311
|
+
- spec/daisybill_api/models/request_for_second_review_spec.rb
|
294
312
|
- spec/daisybill_api/models/service_line_item_spec.rb
|
295
313
|
- spec/daisybill_api_spec.rb
|
296
314
|
has_rdoc:
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module DaisybillApi
|
2
|
-
module Models
|
3
|
-
class BillingProviderAttachment < DaisybillApi::Models::Base
|
4
|
-
rest_actions :index
|
5
|
-
self.path = '/attachments'
|
6
|
-
path_prefix '/billing_providers', :billing_provider_id
|
7
|
-
|
8
|
-
attributes(
|
9
|
-
id: :integer,
|
10
|
-
document_url: :string,
|
11
|
-
inactive: :boolean,
|
12
|
-
review_status: :string,
|
13
|
-
review_errors: [:string],
|
14
|
-
document_file_name: :string,
|
15
|
-
document_content_type: :string,
|
16
|
-
document_file_size: :integer,
|
17
|
-
report_type: :string,
|
18
|
-
document: :attachment,
|
19
|
-
readonly: true
|
20
|
-
)
|
21
|
-
|
22
|
-
link :bill, class: 'Bill'
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe DaisybillApi::Models::BillingProviderAttachment do
|
4
|
-
it_behaves_like DaisybillApi::Ext::Attributes, :id, :document_url, :inactive, :report_type, :document,
|
5
|
-
:billing_provider_id, :bill_id, :created_at, :updated_at, :review_status, :document_file_name,
|
6
|
-
:document_content_type, :document_file_size, review_errors: :collection
|
7
|
-
|
8
|
-
it_behaves_like DaisybillApi::Ext::CRUD, :all, '/attachments', billing_provider_id: '/billing_providers'
|
9
|
-
it_behaves_like DaisybillApi::Ext::Links, bill: DaisybillApi::Models::Bill
|
10
|
-
end
|