candidhealth 0.15.0 → 0.16.1
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.
- package/Client.d.ts +3 -0
- package/Client.js +23 -18
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +8 -0
- package/api/resources/era/types/EraNotFullyProcessedErrorMessage.js +5 -0
- package/api/resources/era/types/index.d.ts +1 -0
- package/api/resources/era/types/index.js +1 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/financials/types/AllocationCreate.d.ts +5 -0
- package/api/resources/financials/types/AllocationTarget.d.ts +8 -6
- package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
- package/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
- package/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
- package/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
- package/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
- package/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
- package/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
- package/api/resources/financials/types/index.d.ts +3 -0
- package/api/resources/financials/types/index.js +3 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +17 -3
- package/api/resources/insuranceAdjudications/resources/v1/client/create.d.ts +7 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/create.js +11 -0
- package/api/resources/insurancePayments/client/Client.d.ts +18 -0
- package/api/resources/insurancePayments/client/Client.js +18 -0
- package/api/resources/insurancePayments/client/index.d.ts +1 -0
- package/api/resources/insurancePayments/client/index.js +2 -0
- package/api/resources/insurancePayments/index.d.ts +2 -0
- package/api/resources/insurancePayments/index.js +18 -0
- package/api/resources/insurancePayments/resources/index.d.ts +1 -0
- package/api/resources/insurancePayments/resources/index.js +27 -0
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
- package/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
- package/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
- package/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
- package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
- package/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
- package/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
- package/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
- package/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
- package/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/api/resources/insurancePayments/resources/v1/index.js +18 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
- package/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/api/resources/x12/resources/v1/types/Carc.d.ts +109 -1
- package/api/resources/x12/resources/v1/types/Carc.js +108 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +23 -18
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +8 -0
- package/dist/api/resources/era/types/EraNotFullyProcessedErrorMessage.js +5 -0
- package/dist/api/resources/era/types/index.d.ts +1 -0
- package/dist/api/resources/era/types/index.js +1 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/financials/types/AllocationCreate.d.ts +5 -0
- package/dist/api/resources/financials/types/AllocationTarget.d.ts +8 -6
- package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
- package/dist/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
- package/dist/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
- package/dist/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
- package/dist/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/index.d.ts +3 -0
- package/dist/api/resources/financials/types/index.js +3 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +17 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/create.d.ts +7 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/create.js +11 -0
- package/dist/api/resources/insurancePayments/client/Client.d.ts +18 -0
- package/dist/api/resources/insurancePayments/client/Client.js +18 -0
- package/dist/api/resources/insurancePayments/client/index.d.ts +1 -0
- package/dist/api/resources/insurancePayments/client/index.js +2 -0
- package/dist/api/resources/insurancePayments/index.d.ts +2 -0
- package/dist/api/resources/insurancePayments/index.js +18 -0
- package/dist/api/resources/insurancePayments/resources/index.d.ts +1 -0
- package/dist/api/resources/insurancePayments/resources/index.js +27 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/insurancePayments/resources/v1/index.js +18 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +109 -1
- package/dist/api/resources/x12/resources/v1/types/Carc.js +108 -0
- package/dist/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +13 -0
- package/dist/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.js +34 -0
- package/dist/serialization/resources/era/types/index.d.ts +1 -0
- package/dist/serialization/resources/era/types/index.js +1 -0
- package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
- package/dist/serialization/resources/financials/types/AllocationTarget.js +3 -9
- package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
- package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
- package/dist/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
- package/dist/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
- package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
- package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
- package/dist/serialization/resources/financials/types/index.d.ts +3 -0
- package/dist/serialization/resources/financials/types/index.js +3 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/create.d.ts +14 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/create.js +46 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +27 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.js +1 -0
- package/dist/serialization/resources/insurancePayments/index.d.ts +1 -0
- package/dist/serialization/resources/insurancePayments/index.js +17 -0
- package/dist/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
- package/dist/serialization/resources/insurancePayments/resources/index.js +27 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/Carc.js +108 -0
- package/package.json +1 -1
- package/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +13 -0
- package/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.js +34 -0
- package/serialization/resources/era/types/index.d.ts +1 -0
- package/serialization/resources/era/types/index.js +1 -0
- package/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
- package/serialization/resources/financials/types/AllocationTarget.js +3 -9
- package/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
- package/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
- package/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
- package/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
- package/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
- package/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
- package/serialization/resources/financials/types/index.d.ts +3 -0
- package/serialization/resources/financials/types/index.js +3 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/client/create.d.ts +14 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/client/create.js +46 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +27 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/index.js +1 -0
- package/serialization/resources/insurancePayments/index.d.ts +1 -0
- package/serialization/resources/insurancePayments/index.js +17 -0
- package/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
- package/serialization/resources/insurancePayments/resources/index.js +27 -0
- package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
- package/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
- package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
- package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
- package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/Carc.js +108 -0
package/dist/Client.js
CHANGED
|
@@ -13,15 +13,16 @@ const Client_6 = require("./api/resources/expectedNetworkStatus/client/Client");
|
|
|
13
13
|
const Client_7 = require("./api/resources/exports/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/guarantor/client/Client");
|
|
15
15
|
const Client_9 = require("./api/resources/insuranceAdjudications/client/Client");
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
19
|
-
const Client_13 = require("./api/resources/
|
|
20
|
-
const Client_14 = require("./api/resources/
|
|
21
|
-
const Client_15 = require("./api/resources/
|
|
22
|
-
const Client_16 = require("./api/resources/
|
|
23
|
-
const Client_17 = require("./api/resources/
|
|
24
|
-
const Client_18 = require("./api/resources/
|
|
16
|
+
const Client_10 = require("./api/resources/insurancePayments/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/insuranceRefunds/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/organizationServiceFacilities/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/organizationProviders/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/patientPayments/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/patientRefunds/client/Client");
|
|
22
|
+
const Client_16 = require("./api/resources/payers/client/Client");
|
|
23
|
+
const Client_17 = require("./api/resources/tasks/client/Client");
|
|
24
|
+
const Client_18 = require("./api/resources/writeOffs/client/Client");
|
|
25
|
+
const Client_19 = require("./api/resources/serviceFacility/client/Client");
|
|
25
26
|
class CandidApiClient {
|
|
26
27
|
options;
|
|
27
28
|
constructor(options) {
|
|
@@ -63,41 +64,45 @@ class CandidApiClient {
|
|
|
63
64
|
get insuranceAdjudications() {
|
|
64
65
|
return (this._insuranceAdjudications ??= new Client_9.InsuranceAdjudications(this.options));
|
|
65
66
|
}
|
|
67
|
+
_insurancePayments;
|
|
68
|
+
get insurancePayments() {
|
|
69
|
+
return (this._insurancePayments ??= new Client_10.InsurancePayments(this.options));
|
|
70
|
+
}
|
|
66
71
|
_insuranceRefunds;
|
|
67
72
|
get insuranceRefunds() {
|
|
68
|
-
return (this._insuranceRefunds ??= new
|
|
73
|
+
return (this._insuranceRefunds ??= new Client_11.InsuranceRefunds(this.options));
|
|
69
74
|
}
|
|
70
75
|
_organizationServiceFacilities;
|
|
71
76
|
get organizationServiceFacilities() {
|
|
72
|
-
return (this._organizationServiceFacilities ??= new
|
|
77
|
+
return (this._organizationServiceFacilities ??= new Client_12.OrganizationServiceFacilities(this.options));
|
|
73
78
|
}
|
|
74
79
|
_organizationProviders;
|
|
75
80
|
get organizationProviders() {
|
|
76
|
-
return (this._organizationProviders ??= new
|
|
81
|
+
return (this._organizationProviders ??= new Client_13.OrganizationProviders(this.options));
|
|
77
82
|
}
|
|
78
83
|
_patientPayments;
|
|
79
84
|
get patientPayments() {
|
|
80
|
-
return (this._patientPayments ??= new
|
|
85
|
+
return (this._patientPayments ??= new Client_14.PatientPayments(this.options));
|
|
81
86
|
}
|
|
82
87
|
_patientRefunds;
|
|
83
88
|
get patientRefunds() {
|
|
84
|
-
return (this._patientRefunds ??= new
|
|
89
|
+
return (this._patientRefunds ??= new Client_15.PatientRefunds(this.options));
|
|
85
90
|
}
|
|
86
91
|
_payers;
|
|
87
92
|
get payers() {
|
|
88
|
-
return (this._payers ??= new
|
|
93
|
+
return (this._payers ??= new Client_16.Payers(this.options));
|
|
89
94
|
}
|
|
90
95
|
_tasks;
|
|
91
96
|
get tasks() {
|
|
92
|
-
return (this._tasks ??= new
|
|
97
|
+
return (this._tasks ??= new Client_17.Tasks(this.options));
|
|
93
98
|
}
|
|
94
99
|
_writeOffs;
|
|
95
100
|
get writeOffs() {
|
|
96
|
-
return (this._writeOffs ??= new
|
|
101
|
+
return (this._writeOffs ??= new Client_18.WriteOffs(this.options));
|
|
97
102
|
}
|
|
98
103
|
_serviceFacility;
|
|
99
104
|
get serviceFacility() {
|
|
100
|
-
return (this._serviceFacility ??= new
|
|
105
|
+
return (this._serviceFacility ??= new Client_19.ServiceFacility(this.options));
|
|
101
106
|
}
|
|
102
107
|
}
|
|
103
108
|
exports.CandidApiClient = CandidApiClient;
|
|
@@ -62,7 +62,7 @@ class V2 {
|
|
|
62
62
|
Authorization: await this._getAuthorizationHeader(),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "candidhealth",
|
|
65
|
-
"X-Fern-SDK-Version": "0.
|
|
65
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -49,7 +49,7 @@ class V2 {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -136,7 +136,7 @@ class V2 {
|
|
|
136
136
|
Authorization: await this._getAuthorizationHeader(),
|
|
137
137
|
"X-Fern-Language": "JavaScript",
|
|
138
138
|
"X-Fern-SDK-Name": "candidhealth",
|
|
139
|
-
"X-Fern-SDK-Version": "0.
|
|
139
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
140
140
|
},
|
|
141
141
|
contentType: "application/json",
|
|
142
142
|
queryParameters: _queryParams,
|
|
@@ -169,7 +169,7 @@ class V2 {
|
|
|
169
169
|
Authorization: await this._getAuthorizationHeader(),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "candidhealth",
|
|
172
|
-
"X-Fern-SDK-Version": "0.
|
|
172
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
173
173
|
},
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
|
|
@@ -201,7 +201,7 @@ class V2 {
|
|
|
201
201
|
Authorization: await this._getAuthorizationHeader(),
|
|
202
202
|
"X-Fern-Language": "JavaScript",
|
|
203
203
|
"X-Fern-SDK-Name": "candidhealth",
|
|
204
|
-
"X-Fern-SDK-Version": "0.
|
|
204
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
205
205
|
},
|
|
206
206
|
contentType: "application/json",
|
|
207
207
|
timeoutMs: 60000,
|
|
@@ -239,7 +239,7 @@ class V2 {
|
|
|
239
239
|
Authorization: await this._getAuthorizationHeader(),
|
|
240
240
|
"X-Fern-Language": "JavaScript",
|
|
241
241
|
"X-Fern-SDK-Name": "candidhealth",
|
|
242
|
-
"X-Fern-SDK-Version": "0.
|
|
242
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
243
243
|
},
|
|
244
244
|
contentType: "application/json",
|
|
245
245
|
body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
|
|
@@ -65,7 +65,7 @@ class V2 {
|
|
|
65
65
|
Authorization: await this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "candidhealth",
|
|
68
|
-
"X-Fern-SDK-Version": "0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
body: request,
|
|
@@ -103,7 +103,7 @@ class V4 {
|
|
|
103
103
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V4 {
|
|
|
133
133
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
134
|
"X-Fern-Language": "JavaScript",
|
|
135
135
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.
|
|
136
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
timeoutMs: 60000,
|
|
@@ -162,7 +162,7 @@ class V4 {
|
|
|
162
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
163
|
"X-Fern-Language": "JavaScript",
|
|
164
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
166
166
|
},
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -213,7 +213,7 @@ class V4 {
|
|
|
213
213
|
Authorization: await this._getAuthorizationHeader(),
|
|
214
214
|
"X-Fern-Language": "JavaScript",
|
|
215
215
|
"X-Fern-SDK-Name": "candidhealth",
|
|
216
|
-
"X-Fern-SDK-Version": "0.
|
|
216
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
217
217
|
},
|
|
218
218
|
contentType: "application/json",
|
|
219
219
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./EraId"), exports);
|
|
18
18
|
__exportStar(require("./EraBase"), exports);
|
|
19
|
+
__exportStar(require("./EraNotFullyProcessedErrorMessage"), exports);
|
|
19
20
|
__exportStar(require("./Era"), exports);
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -54,7 +54,7 @@ class V2 {
|
|
|
54
54
|
Authorization: await this._getAuthorizationHeader(),
|
|
55
55
|
"X-Fern-Language": "JavaScript",
|
|
56
56
|
"X-Fern-SDK-Name": "candidhealth",
|
|
57
|
-
"X-Fern-SDK-Version": "0.
|
|
57
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
58
58
|
},
|
|
59
59
|
contentType: "application/json",
|
|
60
60
|
body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
|
|
@@ -109,7 +109,7 @@ class V2 {
|
|
|
109
109
|
Authorization: await this._getAuthorizationHeader(),
|
|
110
110
|
"X-Fern-Language": "JavaScript",
|
|
111
111
|
"X-Fern-SDK-Name": "candidhealth",
|
|
112
|
-
"X-Fern-SDK-Version": "0.
|
|
112
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
113
113
|
},
|
|
114
114
|
contentType: "application/json",
|
|
115
115
|
body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class V3 {
|
|
|
68
68
|
Authorization: await this._getAuthorizationHeader(),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "candidhealth",
|
|
71
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* Allocations are portions of payments that are applied to specific resources, known as targets. Each allocation has
|
|
7
|
+
* and amount, defined in cents, and a target.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
5
10
|
export interface AllocationCreate {
|
|
6
11
|
amountCents: number;
|
|
7
12
|
target: CandidApi.AllocationTargetCreate;
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* Allocation targets describe whether the portion of a payment is being applied toward a specific service line,
|
|
7
|
+
* claim, billing provider, or is unallocated.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
5
10
|
export declare type AllocationTarget = CandidApi.AllocationTarget.ServiceLine | CandidApi.AllocationTarget.Claim | CandidApi.AllocationTarget.BillingProviderId | CandidApi.AllocationTarget.Unattributed;
|
|
6
11
|
export declare namespace AllocationTarget {
|
|
7
|
-
interface ServiceLine {
|
|
12
|
+
interface ServiceLine extends CandidApi.ServiceLineAllocationTarget {
|
|
8
13
|
type: "service_line";
|
|
9
|
-
value: CandidApi.ServiceLineId;
|
|
10
14
|
}
|
|
11
|
-
interface Claim {
|
|
15
|
+
interface Claim extends CandidApi.ClaimAllocationTarget {
|
|
12
16
|
type: "claim";
|
|
13
|
-
value: CandidApi.ClaimId;
|
|
14
17
|
}
|
|
15
|
-
interface BillingProviderId {
|
|
18
|
+
interface BillingProviderId extends CandidApi.BillingProviderAllocationTarget {
|
|
16
19
|
type: "billing_provider_id";
|
|
17
|
-
value: CandidApi.ProviderId;
|
|
18
20
|
}
|
|
19
21
|
interface Unattributed {
|
|
20
22
|
type: "unattributed";
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* Allocation targets describe whether the portion of a payment is being applied toward a specific service line,
|
|
7
|
+
* claim, billing provider, or is unallocated.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
5
10
|
export declare type AllocationTargetCreate = CandidApi.AllocationTargetCreate.ServiceLineById | CandidApi.AllocationTargetCreate.ClaimById | CandidApi.AllocationTargetCreate.BillingProviderById | CandidApi.AllocationTargetCreate.Unattributed;
|
|
6
11
|
export declare namespace AllocationTargetCreate {
|
|
7
12
|
interface ServiceLineById {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../..";
|
|
5
|
+
export interface ServiceLineAllocationTarget {
|
|
6
|
+
serviceLineId: CandidApi.ServiceLineId;
|
|
7
|
+
claimId: CandidApi.ClaimId;
|
|
8
|
+
encounterId: CandidApi.EncounterId;
|
|
9
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./RefundReason";
|
|
2
2
|
export * from "./PatientTransactionSource";
|
|
3
3
|
export * from "./Allocation";
|
|
4
|
+
export * from "./ServiceLineAllocationTarget";
|
|
5
|
+
export * from "./ClaimAllocationTarget";
|
|
6
|
+
export * from "./BillingProviderAllocationTarget";
|
|
4
7
|
export * from "./AllocationTarget";
|
|
5
8
|
export * from "./AllocationCreate";
|
|
6
9
|
export * from "./AllocationTargetCreate";
|
|
@@ -17,6 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./RefundReason"), exports);
|
|
18
18
|
__exportStar(require("./PatientTransactionSource"), exports);
|
|
19
19
|
__exportStar(require("./Allocation"), exports);
|
|
20
|
+
__exportStar(require("./ServiceLineAllocationTarget"), exports);
|
|
21
|
+
__exportStar(require("./ClaimAllocationTarget"), exports);
|
|
22
|
+
__exportStar(require("./BillingProviderAllocationTarget"), exports);
|
|
20
23
|
__exportStar(require("./AllocationTarget"), exports);
|
|
21
24
|
__exportStar(require("./AllocationCreate"), exports);
|
|
22
25
|
__exportStar(require("./AllocationTargetCreate"), exports);
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -102,7 +102,7 @@ class V1 {
|
|
|
102
102
|
Authorization: await this._getAuthorizationHeader(),
|
|
103
103
|
"X-Fern-Language": "JavaScript",
|
|
104
104
|
"X-Fern-SDK-Name": "candidhealth",
|
|
105
|
-
"X-Fern-SDK-Version": "0.
|
|
105
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
106
106
|
},
|
|
107
107
|
contentType: "application/json",
|
|
108
108
|
timeoutMs: 60000,
|
|
@@ -135,7 +135,7 @@ class V1 {
|
|
|
135
135
|
Authorization: await this._getAuthorizationHeader(),
|
|
136
136
|
"X-Fern-Language": "JavaScript",
|
|
137
137
|
"X-Fern-SDK-Name": "candidhealth",
|
|
138
|
-
"X-Fern-SDK-Version": "0.
|
|
138
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
139
139
|
},
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
@@ -9,6 +9,7 @@ export * as exports from "./exports";
|
|
|
9
9
|
export * as guarantor from "./guarantor";
|
|
10
10
|
export * as insuranceAdjudications from "./insuranceAdjudications";
|
|
11
11
|
export * as insuranceCards from "./insuranceCards";
|
|
12
|
+
export * as insurancePayments from "./insurancePayments";
|
|
12
13
|
export * as insuranceRefunds from "./insuranceRefunds";
|
|
13
14
|
export * as organizationServiceFacilities from "./organizationServiceFacilities";
|
|
14
15
|
export * as organizationProviders from "./organizationProviders";
|
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insuranceCards = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
|
|
29
|
+
exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
|
|
30
30
|
exports.auth = __importStar(require("./auth"));
|
|
31
31
|
exports.billingNotes = __importStar(require("./billingNotes"));
|
|
32
32
|
exports.claimSubmission = __importStar(require("./claimSubmission"));
|
|
@@ -38,6 +38,7 @@ exports.exports = __importStar(require("./exports"));
|
|
|
38
38
|
exports.guarantor = __importStar(require("./guarantor"));
|
|
39
39
|
exports.insuranceAdjudications = __importStar(require("./insuranceAdjudications"));
|
|
40
40
|
exports.insuranceCards = __importStar(require("./insuranceCards"));
|
|
41
|
+
exports.insurancePayments = __importStar(require("./insurancePayments"));
|
|
41
42
|
exports.insuranceRefunds = __importStar(require("./insuranceRefunds"));
|
|
42
43
|
exports.organizationServiceFacilities = __importStar(require("./organizationServiceFacilities"));
|
|
43
44
|
exports.organizationProviders = __importStar(require("./organizationProviders"));
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
timeoutMs: 60000,
|
|
@@ -85,7 +85,7 @@ class V1 {
|
|
|
85
85
|
Authorization: await this._getAuthorizationHeader(),
|
|
86
86
|
"X-Fern-Language": "JavaScript",
|
|
87
87
|
"X-Fern-SDK-Name": "candidhealth",
|
|
88
|
-
"X-Fern-SDK-Version": "0.
|
|
88
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
89
89
|
},
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
|
|
@@ -104,6 +104,20 @@ class V1 {
|
|
|
104
104
|
}),
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
+
if (_response.error.reason === "status-code") {
|
|
108
|
+
switch (_response.error.body?.errorName) {
|
|
109
|
+
case "EraNotFullyProcessedError":
|
|
110
|
+
return {
|
|
111
|
+
ok: false,
|
|
112
|
+
error: await serializers.insuranceAdjudications.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
113
|
+
unrecognizedObjectKeys: "passthrough",
|
|
114
|
+
allowUnrecognizedUnionMembers: true,
|
|
115
|
+
allowUnrecognizedEnumValues: true,
|
|
116
|
+
breadcrumbsPrefix: ["response"],
|
|
117
|
+
}),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
107
121
|
return {
|
|
108
122
|
ok: false,
|
|
109
123
|
error: CandidApi.insuranceAdjudications.v1.create.Error._unknown(_response.error),
|
|
@@ -121,7 +135,7 @@ class V1 {
|
|
|
121
135
|
Authorization: await this._getAuthorizationHeader(),
|
|
122
136
|
"X-Fern-Language": "JavaScript",
|
|
123
137
|
"X-Fern-SDK-Name": "candidhealth",
|
|
124
|
-
"X-Fern-SDK-Version": "0.
|
|
138
|
+
"X-Fern-SDK-Version": "0.16.1",
|
|
125
139
|
},
|
|
126
140
|
contentType: "application/json",
|
|
127
141
|
timeoutMs: 60000,
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insuranceAdjudications.v1.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insuranceAdjudications.v1.create.Error.EraNotFullyProcessedError | CandidApi.insuranceAdjudications.v1.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EraNotFullyProcessedError extends _Utils {
|
|
9
|
+
errorName: "EraNotFullyProcessedError";
|
|
10
|
+
content: CandidApi.EraNotFullyProcessedErrorMessage;
|
|
11
|
+
}
|
|
8
12
|
interface _Unknown extends _Utils {
|
|
9
13
|
errorName: void;
|
|
10
14
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +17,12 @@ export declare namespace Error {
|
|
|
13
17
|
_visit: <_Result>(visitor: CandidApi.insuranceAdjudications.v1.create.Error._Visitor<_Result>) => _Result;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
eraNotFullyProcessedError: (value: CandidApi.EraNotFullyProcessedErrorMessage) => _Result;
|
|
16
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
export declare const Error: {
|
|
25
|
+
readonly eraNotFullyProcessedError: (value: CandidApi.EraNotFullyProcessedErrorMessage) => CandidApi.insuranceAdjudications.v1.create.Error.EraNotFullyProcessedError;
|
|
20
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceAdjudications.v1.create.Error._Unknown;
|
|
21
27
|
readonly _visit: <_Result>(value: CandidApi.insuranceAdjudications.v1.create.Error, visitor: CandidApi.insuranceAdjudications.v1.create.Error._Visitor<_Result>) => _Result;
|
|
22
28
|
};
|
|
@@ -29,6 +29,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
eraNotFullyProcessedError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EraNotFullyProcessedError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insuranceAdjudications.v1.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
32
41
|
_unknown: (fetcherError) => {
|
|
33
42
|
return {
|
|
34
43
|
errorName: undefined,
|
|
@@ -40,6 +49,8 @@ exports.Error = {
|
|
|
40
49
|
},
|
|
41
50
|
_visit: (value, visitor) => {
|
|
42
51
|
switch (value.errorName) {
|
|
52
|
+
case "EraNotFullyProcessedError":
|
|
53
|
+
return visitor.eraNotFullyProcessedError(value.content);
|
|
43
54
|
default:
|
|
44
55
|
return visitor._other(value);
|
|
45
56
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import { V1 } from "../resources/v1/client/Client";
|
|
7
|
+
export declare namespace InsurancePayments {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class InsurancePayments {
|
|
14
|
+
protected readonly options: InsurancePayments.Options;
|
|
15
|
+
constructor(options: InsurancePayments.Options);
|
|
16
|
+
protected _v1: V1 | undefined;
|
|
17
|
+
get v1(): V1;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InsurancePayments = void 0;
|
|
7
|
+
const Client_1 = require("../resources/v1/client/Client");
|
|
8
|
+
class InsurancePayments {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_v1;
|
|
14
|
+
get v1() {
|
|
15
|
+
return (this._v1 ??= new Client_1.V1(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.InsurancePayments = InsurancePayments;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|