candidhealth 0.42.2 → 0.42.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/candidhealth/charge_capture/v_1/client.rb +130 -16
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +10 -1
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb +9 -1
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +16 -8
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary.rb +2 -4
- data/lib/requests.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a005a61196da727062a150f21c673f980a5ebaf7c99dffb0fea0e4a5617309c6
|
4
|
+
data.tar.gz: 841c1f36a32d3c6d507d4e3f10dd4976e619a033e8260733170e44932a7ca6a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbf1ebec8d05b44506041994d1173e78aafbeb56072083871cca847186e57cb2a942fae23a5f2bb8df6f54cc521e09d013958cf89403e523023fd9eda855c3d2
|
7
|
+
data.tar.gz: 67831a45dcab5e412a8e25554abfb2bc5d2871ce3b7068157965d8dc752b0f51a039da338919caaded2b63953e8fbbf79ca44dd2e69a69c1dfcec547cd66b8e0
|
@@ -662,7 +662,9 @@ module CandidApiClient
|
|
662
662
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
663
663
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
664
664
|
# This field should not contain PHI.
|
665
|
-
# @param
|
665
|
+
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
666
|
+
# This date must be the local date in the timezone where the service occurred.
|
667
|
+
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
666
668
|
# This date must be the local date in the timezone where the service occurred.
|
667
669
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
668
670
|
# a resulting claim with one of the IDs in this list.
|
@@ -682,8 +684,33 @@ module CandidApiClient
|
|
682
684
|
# captures with one of the NPIs in this list.
|
683
685
|
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
684
686
|
# captures with one of the names in this list.
|
685
|
-
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a
|
686
|
-
#
|
687
|
+
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
|
688
|
+
# @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
|
689
|
+
# @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
|
690
|
+
# @param charge_external_id_ranked_sort [String] A client-specified unique ID to associate with this encounter;
|
691
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
692
|
+
# This field should not contain PHI.
|
693
|
+
# @param date_of_service_min_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
694
|
+
# This date must be the local date in the timezone where the service occurred.
|
695
|
+
# @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
696
|
+
# This date must be the local date in the timezone where the service occurred.
|
697
|
+
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
698
|
+
# have a resulting claim with one of the IDs in this list.
|
699
|
+
# @param bundle_ids_ranked_sort [String] A list of bundle IDs to show first.
|
700
|
+
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
701
|
+
# captures with one of the NPIs in this list.
|
702
|
+
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
703
|
+
# facility name.
|
704
|
+
# @param primary_payer_ids_ranked_sort [String] A list of primary payer IDs to show first. This will return all charge captures
|
705
|
+
# with one of the primary payer IDs in this list.
|
706
|
+
# @param rendering_provider_npis_ranked_sort [String] A list of rendering provider NPIs to show first. This will return all charge
|
707
|
+
# captures with one of the NPIs in this list.
|
708
|
+
# @param rendering_provider_names_ranked_sort [String] A list of rendering provider names to show first. This will return all charge
|
709
|
+
# captures with one of the names in this list.
|
710
|
+
# @param supervising_provider_npis_ranked_sort [String] A list of supervising provider NPIs to show first. This will return all charge
|
711
|
+
# captures with one of the NPIs in this list.
|
712
|
+
# @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
|
713
|
+
# captures with one of the names in this list.
|
687
714
|
# @param request_options [CandidApiClient::RequestOptions]
|
688
715
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
689
716
|
# @example
|
@@ -696,7 +723,8 @@ module CandidApiClient
|
|
696
723
|
# patient_external_id: "string",
|
697
724
|
# status: PLANNED,
|
698
725
|
# charge_external_id: "string",
|
699
|
-
#
|
726
|
+
# date_of_service_min: DateTime.parse(2023-01-15),
|
727
|
+
# date_of_service_max: DateTime.parse(2023-01-15),
|
700
728
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
701
729
|
# bundle_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
702
730
|
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
@@ -707,10 +735,24 @@ module CandidApiClient
|
|
707
735
|
# rendering_provider_names: "string",
|
708
736
|
# supervising_provider_npis: "string",
|
709
737
|
# supervising_provider_names: "string",
|
710
|
-
# exclude_charges_linked_to_claims: true
|
738
|
+
# exclude_charges_linked_to_claims: true,
|
739
|
+
# patient_external_id_ranked_sort: "string",
|
740
|
+
# status_ranked_sort: PLANNED,
|
741
|
+
# charge_external_id_ranked_sort: "string",
|
742
|
+
# date_of_service_min_ranked_sort: DateTime.parse(2023-01-15),
|
743
|
+
# date_of_service_max_ranked_sort: DateTime.parse(2023-01-15),
|
744
|
+
# claim_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
745
|
+
# bundle_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
746
|
+
# billing_provider_npis_ranked_sort: "string",
|
747
|
+
# service_facility_name_ranked_sort: "string",
|
748
|
+
# primary_payer_ids_ranked_sort: "string",
|
749
|
+
# rendering_provider_npis_ranked_sort: "string",
|
750
|
+
# rendering_provider_names_ranked_sort: "string",
|
751
|
+
# supervising_provider_npis_ranked_sort: "string",
|
752
|
+
# supervising_provider_names_ranked_sort: "string"
|
711
753
|
# )
|
712
754
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
713
|
-
charge_external_id: nil,
|
755
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, bundle_id: nil, bundle_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, claim_ids_ranked_sort: nil, bundle_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
714
756
|
response = @request_client.conn.get do |req|
|
715
757
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
716
758
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -728,7 +770,8 @@ module CandidApiClient
|
|
728
770
|
"patient_external_id": patient_external_id,
|
729
771
|
"status": status,
|
730
772
|
"charge_external_id": charge_external_id,
|
731
|
-
"
|
773
|
+
"date_of_service_min": date_of_service_min,
|
774
|
+
"date_of_service_max": date_of_service_max,
|
732
775
|
"claim_ids": claim_ids,
|
733
776
|
"bundle_id": bundle_id,
|
734
777
|
"bundle_ids": bundle_ids,
|
@@ -739,7 +782,21 @@ module CandidApiClient
|
|
739
782
|
"rendering_provider_names": rendering_provider_names,
|
740
783
|
"supervising_provider_npis": supervising_provider_npis,
|
741
784
|
"supervising_provider_names": supervising_provider_names,
|
742
|
-
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims
|
785
|
+
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
|
786
|
+
"patient_external_id_ranked_sort": patient_external_id_ranked_sort,
|
787
|
+
"status_ranked_sort": status_ranked_sort,
|
788
|
+
"charge_external_id_ranked_sort": charge_external_id_ranked_sort,
|
789
|
+
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
790
|
+
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
791
|
+
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
792
|
+
"bundle_ids_ranked_sort": bundle_ids_ranked_sort,
|
793
|
+
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
794
|
+
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
795
|
+
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
796
|
+
"rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
|
797
|
+
"rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
|
798
|
+
"supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
|
799
|
+
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
|
743
800
|
}.compact
|
744
801
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
745
802
|
request_options: request_options)}/api/charge_captures/v1"
|
@@ -1429,7 +1486,9 @@ module CandidApiClient
|
|
1429
1486
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
1430
1487
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1431
1488
|
# This field should not contain PHI.
|
1432
|
-
# @param
|
1489
|
+
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1490
|
+
# This date must be the local date in the timezone where the service occurred.
|
1491
|
+
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1433
1492
|
# This date must be the local date in the timezone where the service occurred.
|
1434
1493
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
1435
1494
|
# a resulting claim with one of the IDs in this list.
|
@@ -1449,8 +1508,33 @@ module CandidApiClient
|
|
1449
1508
|
# captures with one of the NPIs in this list.
|
1450
1509
|
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
1451
1510
|
# captures with one of the names in this list.
|
1452
|
-
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a
|
1453
|
-
#
|
1511
|
+
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
|
1512
|
+
# @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
|
1513
|
+
# @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
|
1514
|
+
# @param charge_external_id_ranked_sort [String] A client-specified unique ID to associate with this encounter;
|
1515
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1516
|
+
# This field should not contain PHI.
|
1517
|
+
# @param date_of_service_min_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1518
|
+
# This date must be the local date in the timezone where the service occurred.
|
1519
|
+
# @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1520
|
+
# This date must be the local date in the timezone where the service occurred.
|
1521
|
+
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
1522
|
+
# have a resulting claim with one of the IDs in this list.
|
1523
|
+
# @param bundle_ids_ranked_sort [String] A list of bundle IDs to show first.
|
1524
|
+
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
1525
|
+
# captures with one of the NPIs in this list.
|
1526
|
+
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
1527
|
+
# facility name.
|
1528
|
+
# @param primary_payer_ids_ranked_sort [String] A list of primary payer IDs to show first. This will return all charge captures
|
1529
|
+
# with one of the primary payer IDs in this list.
|
1530
|
+
# @param rendering_provider_npis_ranked_sort [String] A list of rendering provider NPIs to show first. This will return all charge
|
1531
|
+
# captures with one of the NPIs in this list.
|
1532
|
+
# @param rendering_provider_names_ranked_sort [String] A list of rendering provider names to show first. This will return all charge
|
1533
|
+
# captures with one of the names in this list.
|
1534
|
+
# @param supervising_provider_npis_ranked_sort [String] A list of supervising provider NPIs to show first. This will return all charge
|
1535
|
+
# captures with one of the NPIs in this list.
|
1536
|
+
# @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
|
1537
|
+
# captures with one of the names in this list.
|
1454
1538
|
# @param request_options [CandidApiClient::RequestOptions]
|
1455
1539
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
1456
1540
|
# @example
|
@@ -1463,7 +1547,8 @@ module CandidApiClient
|
|
1463
1547
|
# patient_external_id: "string",
|
1464
1548
|
# status: PLANNED,
|
1465
1549
|
# charge_external_id: "string",
|
1466
|
-
#
|
1550
|
+
# date_of_service_min: DateTime.parse(2023-01-15),
|
1551
|
+
# date_of_service_max: DateTime.parse(2023-01-15),
|
1467
1552
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1468
1553
|
# bundle_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1469
1554
|
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
@@ -1474,10 +1559,24 @@ module CandidApiClient
|
|
1474
1559
|
# rendering_provider_names: "string",
|
1475
1560
|
# supervising_provider_npis: "string",
|
1476
1561
|
# supervising_provider_names: "string",
|
1477
|
-
# exclude_charges_linked_to_claims: true
|
1562
|
+
# exclude_charges_linked_to_claims: true,
|
1563
|
+
# patient_external_id_ranked_sort: "string",
|
1564
|
+
# status_ranked_sort: PLANNED,
|
1565
|
+
# charge_external_id_ranked_sort: "string",
|
1566
|
+
# date_of_service_min_ranked_sort: DateTime.parse(2023-01-15),
|
1567
|
+
# date_of_service_max_ranked_sort: DateTime.parse(2023-01-15),
|
1568
|
+
# claim_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1569
|
+
# bundle_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1570
|
+
# billing_provider_npis_ranked_sort: "string",
|
1571
|
+
# service_facility_name_ranked_sort: "string",
|
1572
|
+
# primary_payer_ids_ranked_sort: "string",
|
1573
|
+
# rendering_provider_npis_ranked_sort: "string",
|
1574
|
+
# rendering_provider_names_ranked_sort: "string",
|
1575
|
+
# supervising_provider_npis_ranked_sort: "string",
|
1576
|
+
# supervising_provider_names_ranked_sort: "string"
|
1478
1577
|
# )
|
1479
1578
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
1480
|
-
charge_external_id: nil,
|
1579
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, bundle_id: nil, bundle_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, claim_ids_ranked_sort: nil, bundle_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
1481
1580
|
Async do
|
1482
1581
|
response = @request_client.conn.get do |req|
|
1483
1582
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1496,7 +1595,8 @@ module CandidApiClient
|
|
1496
1595
|
"patient_external_id": patient_external_id,
|
1497
1596
|
"status": status,
|
1498
1597
|
"charge_external_id": charge_external_id,
|
1499
|
-
"
|
1598
|
+
"date_of_service_min": date_of_service_min,
|
1599
|
+
"date_of_service_max": date_of_service_max,
|
1500
1600
|
"claim_ids": claim_ids,
|
1501
1601
|
"bundle_id": bundle_id,
|
1502
1602
|
"bundle_ids": bundle_ids,
|
@@ -1507,7 +1607,21 @@ module CandidApiClient
|
|
1507
1607
|
"rendering_provider_names": rendering_provider_names,
|
1508
1608
|
"supervising_provider_npis": supervising_provider_npis,
|
1509
1609
|
"supervising_provider_names": supervising_provider_names,
|
1510
|
-
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims
|
1610
|
+
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
|
1611
|
+
"patient_external_id_ranked_sort": patient_external_id_ranked_sort,
|
1612
|
+
"status_ranked_sort": status_ranked_sort,
|
1613
|
+
"charge_external_id_ranked_sort": charge_external_id_ranked_sort,
|
1614
|
+
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
1615
|
+
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
1616
|
+
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
1617
|
+
"bundle_ids_ranked_sort": bundle_ids_ranked_sort,
|
1618
|
+
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
1619
|
+
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
1620
|
+
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
1621
|
+
"rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
|
1622
|
+
"rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
|
1623
|
+
"supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
|
1624
|
+
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
|
1511
1625
|
}.compact
|
1512
1626
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1513
1627
|
request_options: request_options)}/api/charge_captures/v1"
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative "charge_capture_status"
|
4
4
|
require_relative "charge_capture_data"
|
5
|
+
require "date"
|
5
6
|
require_relative "charge_capture_error"
|
6
7
|
require_relative "charge_capture_post_billed_change"
|
7
8
|
require "ostruct"
|
@@ -18,6 +19,8 @@ module CandidApiClient
|
|
18
19
|
attr_reader :status
|
19
20
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
20
21
|
attr_reader :charge_capture_data
|
22
|
+
# @return [Date]
|
23
|
+
attr_reader :date_of_service
|
21
24
|
# @return [String]
|
22
25
|
attr_reader :patient_external_id
|
23
26
|
# @return [String]
|
@@ -41,6 +44,7 @@ module CandidApiClient
|
|
41
44
|
# @param id [String]
|
42
45
|
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus]
|
43
46
|
# @param charge_capture_data [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
47
|
+
# @param date_of_service [Date]
|
44
48
|
# @param patient_external_id [String]
|
45
49
|
# @param charge_external_id [String]
|
46
50
|
# @param ehr_source_url [String]
|
@@ -50,10 +54,11 @@ module CandidApiClient
|
|
50
54
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
51
55
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
52
56
|
def initialize(id:, status:, charge_capture_data:, patient_external_id:, charge_external_id:, updates:,
|
53
|
-
ehr_source_url: OMIT, error: OMIT, bundle_id: OMIT, additional_properties: nil)
|
57
|
+
date_of_service: OMIT, ehr_source_url: OMIT, error: OMIT, bundle_id: OMIT, additional_properties: nil)
|
54
58
|
@id = id
|
55
59
|
@status = status
|
56
60
|
@charge_capture_data = charge_capture_data
|
61
|
+
@date_of_service = date_of_service if date_of_service != OMIT
|
57
62
|
@patient_external_id = patient_external_id
|
58
63
|
@charge_external_id = charge_external_id
|
59
64
|
@ehr_source_url = ehr_source_url if ehr_source_url != OMIT
|
@@ -65,6 +70,7 @@ module CandidApiClient
|
|
65
70
|
"id": id,
|
66
71
|
"status": status,
|
67
72
|
"charge_capture_data": charge_capture_data,
|
73
|
+
"date_of_service": date_of_service,
|
68
74
|
"patient_external_id": patient_external_id,
|
69
75
|
"charge_external_id": charge_external_id,
|
70
76
|
"ehr_source_url": ehr_source_url,
|
@@ -91,6 +97,7 @@ module CandidApiClient
|
|
91
97
|
charge_capture_data = parsed_json["charge_capture_data"].to_json
|
92
98
|
charge_capture_data = CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData.from_json(json_object: charge_capture_data)
|
93
99
|
end
|
100
|
+
date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
|
94
101
|
patient_external_id = struct["patient_external_id"]
|
95
102
|
charge_external_id = struct["charge_external_id"]
|
96
103
|
ehr_source_url = struct["ehr_source_url"]
|
@@ -109,6 +116,7 @@ module CandidApiClient
|
|
109
116
|
id: id,
|
110
117
|
status: status,
|
111
118
|
charge_capture_data: charge_capture_data,
|
119
|
+
date_of_service: date_of_service,
|
112
120
|
patient_external_id: patient_external_id,
|
113
121
|
charge_external_id: charge_external_id,
|
114
122
|
ehr_source_url: ehr_source_url,
|
@@ -136,6 +144,7 @@ module CandidApiClient
|
|
136
144
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
137
145
|
obj.status.is_a?(CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
138
146
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData.validate_raw(obj: obj.charge_capture_data)
|
147
|
+
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
139
148
|
obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
|
140
149
|
obj.charge_external_id.is_a?(String) != false || raise("Passed value for field obj.charge_external_id is not the expected type, validation failed.")
|
141
150
|
obj.ehr_source_url&.is_a?(String) != false || raise("Passed value for field obj.ehr_source_url is not the expected type, validation failed.")
|
@@ -11,6 +11,8 @@ module CandidApiClient
|
|
11
11
|
class ChargeCapturePage
|
12
12
|
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>]
|
13
13
|
attr_reader :items
|
14
|
+
# @return [Integer]
|
15
|
+
attr_reader :item_count
|
14
16
|
# @return [String]
|
15
17
|
attr_reader :prev_page_token
|
16
18
|
# @return [String]
|
@@ -24,17 +26,20 @@ module CandidApiClient
|
|
24
26
|
OMIT = Object.new
|
25
27
|
|
26
28
|
# @param items [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>]
|
29
|
+
# @param item_count [Integer]
|
27
30
|
# @param prev_page_token [String]
|
28
31
|
# @param next_page_token [String]
|
29
32
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
33
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
31
|
-
def initialize(items:, prev_page_token: OMIT, next_page_token: OMIT, additional_properties: nil)
|
34
|
+
def initialize(items:, item_count:, prev_page_token: OMIT, next_page_token: OMIT, additional_properties: nil)
|
32
35
|
@items = items
|
36
|
+
@item_count = item_count
|
33
37
|
@prev_page_token = prev_page_token if prev_page_token != OMIT
|
34
38
|
@next_page_token = next_page_token if next_page_token != OMIT
|
35
39
|
@additional_properties = additional_properties
|
36
40
|
@_field_set = {
|
37
41
|
"items": items,
|
42
|
+
"item_count": item_count,
|
38
43
|
"prev_page_token": prev_page_token,
|
39
44
|
"next_page_token": next_page_token
|
40
45
|
}.reject do |_k, v|
|
@@ -53,10 +58,12 @@ module CandidApiClient
|
|
53
58
|
item = item.to_json
|
54
59
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: item)
|
55
60
|
end
|
61
|
+
item_count = struct["item_count"]
|
56
62
|
prev_page_token = struct["prev_page_token"]
|
57
63
|
next_page_token = struct["next_page_token"]
|
58
64
|
new(
|
59
65
|
items: items,
|
66
|
+
item_count: item_count,
|
60
67
|
prev_page_token: prev_page_token,
|
61
68
|
next_page_token: next_page_token,
|
62
69
|
additional_properties: struct
|
@@ -78,6 +85,7 @@ module CandidApiClient
|
|
78
85
|
# @return [Void]
|
79
86
|
def self.validate_raw(obj:)
|
80
87
|
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
88
|
+
obj.item_count.is_a?(Integer) != false || raise("Passed value for field obj.item_count is not the expected type, validation failed.")
|
81
89
|
obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
|
82
90
|
obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
|
83
91
|
end
|
@@ -97,7 +97,9 @@ module CandidApiClient
|
|
97
97
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
98
98
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
99
99
|
# This field should not contain PHI.
|
100
|
-
# @param
|
100
|
+
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
101
|
+
# This date must be the local date in the timezone where the service occurred.
|
102
|
+
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
101
103
|
# This date must be the local date in the timezone where the service occurred.
|
102
104
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge capture bundles
|
103
105
|
# that have a resulting claim with one of the IDs in this list.
|
@@ -138,7 +140,8 @@ module CandidApiClient
|
|
138
140
|
# bundle_status: NOT_STARTED,
|
139
141
|
# charge_status: PLANNED,
|
140
142
|
# charge_external_id: "string",
|
141
|
-
#
|
143
|
+
# date_of_service_min: DateTime.parse(2023-01-15),
|
144
|
+
# date_of_service_max: DateTime.parse(2023-01-15),
|
142
145
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
143
146
|
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
144
147
|
# billing_provider_npis: "string",
|
@@ -151,7 +154,7 @@ module CandidApiClient
|
|
151
154
|
# has_charge_capture_updates: true
|
152
155
|
# )
|
153
156
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil,
|
154
|
-
bundle_status: nil, charge_status: nil, charge_external_id: nil,
|
157
|
+
bundle_status: nil, charge_status: nil, charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, bundle_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, has_charge_capture_updates: nil, request_options: nil)
|
155
158
|
response = @request_client.conn.get do |req|
|
156
159
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
157
160
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -170,7 +173,8 @@ module CandidApiClient
|
|
170
173
|
"bundle_status": bundle_status,
|
171
174
|
"charge_status": charge_status,
|
172
175
|
"charge_external_id": charge_external_id,
|
173
|
-
"
|
176
|
+
"date_of_service_min": date_of_service_min,
|
177
|
+
"date_of_service_max": date_of_service_max,
|
174
178
|
"claim_ids": claim_ids,
|
175
179
|
"bundle_ids": bundle_ids,
|
176
180
|
"billing_provider_npis": billing_provider_npis,
|
@@ -278,7 +282,9 @@ module CandidApiClient
|
|
278
282
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
279
283
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
280
284
|
# This field should not contain PHI.
|
281
|
-
# @param
|
285
|
+
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
286
|
+
# This date must be the local date in the timezone where the service occurred.
|
287
|
+
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
282
288
|
# This date must be the local date in the timezone where the service occurred.
|
283
289
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge capture bundles
|
284
290
|
# that have a resulting claim with one of the IDs in this list.
|
@@ -319,7 +325,8 @@ module CandidApiClient
|
|
319
325
|
# bundle_status: NOT_STARTED,
|
320
326
|
# charge_status: PLANNED,
|
321
327
|
# charge_external_id: "string",
|
322
|
-
#
|
328
|
+
# date_of_service_min: DateTime.parse(2023-01-15),
|
329
|
+
# date_of_service_max: DateTime.parse(2023-01-15),
|
323
330
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
324
331
|
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
325
332
|
# billing_provider_npis: "string",
|
@@ -332,7 +339,7 @@ module CandidApiClient
|
|
332
339
|
# has_charge_capture_updates: true
|
333
340
|
# )
|
334
341
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil,
|
335
|
-
bundle_status: nil, charge_status: nil, charge_external_id: nil,
|
342
|
+
bundle_status: nil, charge_status: nil, charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, bundle_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, has_charge_capture_updates: nil, request_options: nil)
|
336
343
|
Async do
|
337
344
|
response = @request_client.conn.get do |req|
|
338
345
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -352,7 +359,8 @@ module CandidApiClient
|
|
352
359
|
"bundle_status": bundle_status,
|
353
360
|
"charge_status": charge_status,
|
354
361
|
"charge_external_id": charge_external_id,
|
355
|
-
"
|
362
|
+
"date_of_service_min": date_of_service_min,
|
363
|
+
"date_of_service_max": date_of_service_max,
|
356
364
|
"claim_ids": claim_ids,
|
357
365
|
"bundle_ids": bundle_ids,
|
358
366
|
"billing_provider_npis": billing_provider_npis,
|
@@ -8,8 +8,7 @@ module CandidApiClient
|
|
8
8
|
module V1
|
9
9
|
module Types
|
10
10
|
class ChargeCaptureBundleSummary
|
11
|
-
# @return [Integer] The count of charge captures which are not part of a
|
12
|
-
# claim.
|
11
|
+
# @return [Integer] The count of charge captures which are not part of a claim creation.
|
13
12
|
attr_reader :charge_capture_charges_not_linked_to_claims_count
|
14
13
|
# @return [Integer] The count of charge capture bundles that have a bundle status of NOT_STARTED.
|
15
14
|
attr_reader :charge_capture_bundles_not_started_count
|
@@ -27,8 +26,7 @@ module CandidApiClient
|
|
27
26
|
|
28
27
|
OMIT = Object.new
|
29
28
|
|
30
|
-
# @param charge_capture_charges_not_linked_to_claims_count [Integer] The count of charge captures which are not part of a
|
31
|
-
# claim.
|
29
|
+
# @param charge_capture_charges_not_linked_to_claims_count [Integer] The count of charge captures which are not part of a claim creation.
|
32
30
|
# @param charge_capture_bundles_not_started_count [Integer] The count of charge capture bundles that have a bundle status of NOT_STARTED.
|
33
31
|
# @param charge_capture_held_bundles_count [Integer] The count of charge capture bundles that have a bundle status of HELD.
|
34
32
|
# @param charge_capture_bundles_in_error_count [Integer] The count of charge capture bundles that have a bundle status of IN_ERROR.
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.42.3" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.42.
|
4
|
+
version: 0.42.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|