candidhealth 0.10.0 → 0.11.0
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/README.md +1 -0
- 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/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +8 -1
- package/api/resources/claims/types/ClaimStatus.d.ts +2 -1
- package/api/resources/claims/types/ClaimStatus.js +1 -0
- package/api/resources/commons/types/SortDirection.d.ts +12 -0
- package/api/resources/commons/types/SortDirection.js +10 -0
- package/api/resources/commons/types/TaxId.d.ts +8 -0
- package/api/resources/commons/types/TaxId.js +10 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- 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/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +36 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +5 -1
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +36 -0
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +5 -1
- package/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +39 -0
- package/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +15 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +0 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -2
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +0 -2
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -4
- package/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +14 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +16 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
- package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -2
- package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +29 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +5 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/api/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
- package/api/resources/financials/types/PatientTransactionSource.d.ts +13 -0
- package/api/resources/financials/types/PatientTransactionSource.js +15 -0
- package/api/resources/financials/types/index.d.ts +1 -0
- package/api/resources/financials/types/index.js +1 -0
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +0 -3
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -6
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +0 -3
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -6
- package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +0 -3
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +3 -6
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
- 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.d.ts +6 -3
- package/api/resources/patientPayments/resources/v4/client/Client.js +76 -7
- package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +22 -0
- package/api/resources/patientPayments/resources/v4/client/getMulti.js +47 -0
- package/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
- package/api/resources/patientPayments/resources/v4/client/index.js +2 -1
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +24 -0
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.js +5 -0
- package/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
- package/api/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
- package/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +12 -0
- package/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +7 -0
- package/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +5 -0
- package/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/api/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +6 -3
- package/api/resources/patientRefunds/resources/v1/client/Client.js +76 -7
- package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/patientRefunds/resources/v1/client/getMulti.js +47 -0
- package/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
- package/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +24 -0
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.js +5 -0
- package/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
- package/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +11 -0
- package/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +13 -0
- package/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +7 -0
- package/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +5 -0
- package/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/api/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/payers/resources/v3/types/PayerIdentifier.d.ts +14 -0
- package/api/resources/payers/resources/v3/types/PayerIdentifier.js +5 -0
- package/api/resources/payers/resources/v3/types/PayerInfo.d.ts +8 -0
- package/api/resources/payers/resources/v3/types/PayerInfo.js +5 -0
- package/api/resources/payers/resources/v3/types/PayerName.d.ts +8 -0
- package/api/resources/payers/resources/v3/types/PayerName.js +10 -0
- package/api/resources/payers/resources/v3/types/index.d.ts +3 -0
- package/api/resources/payers/resources/v3/types/index.js +3 -0
- package/api/resources/remits/index.d.ts +1 -0
- package/api/resources/remits/index.js +17 -0
- package/api/resources/remits/resources/index.d.ts +1 -0
- package/api/resources/remits/resources/index.js +27 -0
- package/api/resources/remits/resources/v1/index.d.ts +1 -0
- package/api/resources/remits/resources/v1/index.js +17 -0
- package/api/resources/remits/resources/v1/types/Payee.d.ts +8 -0
- package/api/resources/remits/resources/v1/types/Payee.js +5 -0
- package/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +19 -0
- package/api/resources/remits/resources/v1/types/PayeeIdentifier.js +5 -0
- package/api/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/api/resources/remits/resources/v1/types/index.js +18 -0
- package/api/resources/tasks/resources/v3/client/Client.d.ts +0 -20
- package/api/resources/tasks/resources/v3/client/Client.js +5 -25
- package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
- package/api/resources/writeOffs/resources/v1/client/Client.js +61 -8
- package/api/resources/writeOffs/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/writeOffs/resources/v1/client/getMulti.js +47 -0
- package/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -0
- package/api/resources/writeOffs/resources/v1/client/index.js +2 -1
- package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +21 -0
- package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.js +5 -0
- package/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +7 -0
- package/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +5 -0
- package/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
- package/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
- package/api/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/api/resources/writeOffs/resources/v1/types/WriteOffSortField.js +12 -0
- package/api/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +7 -0
- package/api/resources/writeOffs/resources/v1/types/WriteOffsPage.js +5 -0
- package/api/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
- package/api/resources/writeOffs/resources/v1/types/index.js +3 -0
- 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/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +8 -1
- package/dist/api/resources/claims/types/ClaimStatus.d.ts +2 -1
- package/dist/api/resources/claims/types/ClaimStatus.js +1 -0
- package/dist/api/resources/commons/types/SortDirection.d.ts +12 -0
- package/dist/api/resources/commons/types/SortDirection.js +10 -0
- package/dist/api/resources/commons/types/TaxId.d.ts +8 -0
- package/dist/api/resources/commons/types/TaxId.js +10 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- 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/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +36 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +5 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +36 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +5 -1
- package/dist/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +39 -0
- package/dist/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +15 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +0 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -2
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +0 -2
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +14 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +16 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -2
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +29 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +5 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
- package/dist/api/resources/financials/types/PatientTransactionSource.d.ts +13 -0
- package/dist/api/resources/financials/types/PatientTransactionSource.js +15 -0
- package/dist/api/resources/financials/types/index.d.ts +1 -0
- package/dist/api/resources/financials/types/index.js +1 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +0 -3
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -6
- 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.d.ts +0 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -6
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +0 -3
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +3 -6
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
- 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.d.ts +6 -3
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +76 -7
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +22 -0
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +47 -0
- package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
- package/dist/api/resources/patientPayments/resources/v4/client/index.js +2 -1
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +24 -0
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.js +5 -0
- package/dist/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +12 -0
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +7 -0
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +5 -0
- package/dist/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/dist/api/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +6 -3
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +76 -7
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +24 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.js +5 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +11 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +13 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +7 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +5 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/payers/resources/v3/types/PayerIdentifier.d.ts +14 -0
- package/dist/api/resources/payers/resources/v3/types/PayerIdentifier.js +5 -0
- package/dist/api/resources/payers/resources/v3/types/PayerInfo.d.ts +8 -0
- package/dist/api/resources/payers/resources/v3/types/PayerInfo.js +5 -0
- package/dist/api/resources/payers/resources/v3/types/PayerName.d.ts +8 -0
- package/dist/api/resources/payers/resources/v3/types/PayerName.js +10 -0
- package/dist/api/resources/payers/resources/v3/types/index.d.ts +3 -0
- package/dist/api/resources/payers/resources/v3/types/index.js +3 -0
- package/dist/api/resources/remits/index.d.ts +1 -0
- package/dist/api/resources/remits/index.js +17 -0
- package/dist/api/resources/remits/resources/index.d.ts +1 -0
- package/dist/api/resources/remits/resources/index.js +27 -0
- package/dist/api/resources/remits/resources/v1/index.d.ts +1 -0
- package/dist/api/resources/remits/resources/v1/index.js +17 -0
- package/dist/api/resources/remits/resources/v1/types/Payee.d.ts +8 -0
- package/dist/api/resources/remits/resources/v1/types/Payee.js +5 -0
- package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +19 -0
- package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.js +5 -0
- package/dist/api/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/remits/resources/v1/types/index.js +18 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +0 -20
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -25
- package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +61 -8
- package/dist/api/resources/writeOffs/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/writeOffs/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/writeOffs/resources/v1/client/index.js +2 -1
- package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +21 -0
- package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.js +5 -0
- package/dist/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +7 -0
- package/dist/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +5 -0
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffSortField.js +12 -0
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +7 -0
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffsPage.js +5 -0
- package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
- package/dist/api/resources/writeOffs/resources/v1/types/index.js +3 -0
- package/dist/serialization/resources/claims/types/ClaimStatus.d.ts +1 -1
- package/dist/serialization/resources/claims/types/ClaimStatus.js +1 -0
- package/dist/serialization/resources/commons/types/SortDirection.d.ts +10 -0
- package/dist/serialization/resources/commons/types/SortDirection.js +31 -0
- package/dist/serialization/resources/commons/types/TaxId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/TaxId.js +37 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +5 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +7 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +7 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +10 -0
- package/dist/serialization/resources/{writeOffs/resources/v1/client/create.js → encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js} +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +10 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +40 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.js +2 -1
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -1
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.js +1 -1
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +20 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +42 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.js +1 -1
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
- package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/dist/serialization/resources/financials/types/AllocationTarget.js +1 -0
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +1 -0
- package/dist/serialization/resources/financials/types/PatientTransactionSource.d.ts +10 -0
- package/dist/serialization/resources/financials/types/PatientTransactionSource.js +31 -0
- package/dist/serialization/resources/financials/types/index.d.ts +1 -0
- package/dist/serialization/resources/financials/types/index.js +1 -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/types/ClaimAdjudication.d.ts +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -2
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +1 -1
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +1 -1
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPayment.js +2 -1
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/{serialization/resources/writeOffs/resources/v1/client/create.js → dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js} +2 -2
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +12 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +35 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.js +2 -1
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +10 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +31 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +12 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +35 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/payers/resources/v3/types/PayerIdentifier.d.ts +17 -0
- package/dist/serialization/resources/payers/resources/v3/types/PayerIdentifier.js +41 -0
- package/dist/serialization/resources/payers/resources/v3/types/PayerInfo.d.ts +13 -0
- package/dist/serialization/resources/payers/resources/v3/types/PayerInfo.js +34 -0
- package/dist/serialization/resources/payers/resources/v3/types/PayerName.d.ts +10 -0
- package/dist/serialization/resources/payers/resources/v3/types/PayerName.js +35 -0
- package/dist/serialization/resources/payers/resources/v3/types/index.d.ts +3 -0
- package/dist/serialization/resources/payers/resources/v3/types/index.js +3 -0
- package/dist/serialization/resources/remits/index.d.ts +1 -0
- package/dist/serialization/resources/remits/index.js +17 -0
- package/dist/serialization/resources/remits/resources/index.d.ts +1 -0
- package/dist/serialization/resources/remits/resources/index.js +27 -0
- package/dist/serialization/resources/remits/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/remits/resources/v1/index.js +17 -0
- package/dist/serialization/resources/remits/resources/v1/types/Payee.d.ts +13 -0
- package/dist/serialization/resources/remits/resources/v1/types/Payee.js +34 -0
- package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +22 -0
- package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.js +46 -0
- package/dist/serialization/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/remits/resources/v1/types/index.js +18 -0
- package/dist/serialization/resources/writeOffs/resources/v1/client/index.d.ts +0 -1
- package/dist/serialization/resources/writeOffs/resources/v1/client/index.js +0 -14
- package/dist/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +12 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +33 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +2 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +2 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.js +31 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +12 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +35 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +3 -0
- package/package.json +1 -1
- package/serialization/resources/claims/types/ClaimStatus.d.ts +1 -1
- package/serialization/resources/claims/types/ClaimStatus.js +1 -0
- package/serialization/resources/commons/types/SortDirection.d.ts +10 -0
- package/serialization/resources/commons/types/SortDirection.js +31 -0
- package/serialization/resources/commons/types/TaxId.d.ts +10 -0
- package/serialization/resources/commons/types/TaxId.js +37 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +5 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +7 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +7 -0
- package/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +10 -0
- package/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +31 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +10 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +40 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.js +2 -1
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -1
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.js +1 -1
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +20 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +42 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.js +1 -1
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
- package/serialization/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/serialization/resources/financials/types/AllocationTarget.js +1 -0
- package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
- package/serialization/resources/financials/types/AllocationTargetCreate.js +1 -0
- package/serialization/resources/financials/types/PatientTransactionSource.d.ts +10 -0
- package/serialization/resources/financials/types/PatientTransactionSource.js +31 -0
- package/serialization/resources/financials/types/index.d.ts +1 -0
- package/serialization/resources/financials/types/index.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -2
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +1 -1
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +1 -1
- package/serialization/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
- package/serialization/resources/patientPayments/resources/v4/types/PatientPayment.js +2 -1
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +31 -0
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +12 -0
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +35 -0
- package/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/serialization/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.js +2 -1
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +10 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +31 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +12 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +35 -0
- package/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/serialization/resources/payers/resources/v3/types/PayerIdentifier.d.ts +17 -0
- package/serialization/resources/payers/resources/v3/types/PayerIdentifier.js +41 -0
- package/serialization/resources/payers/resources/v3/types/PayerInfo.d.ts +13 -0
- package/serialization/resources/payers/resources/v3/types/PayerInfo.js +34 -0
- package/serialization/resources/payers/resources/v3/types/PayerName.d.ts +10 -0
- package/serialization/resources/payers/resources/v3/types/PayerName.js +35 -0
- package/serialization/resources/payers/resources/v3/types/index.d.ts +3 -0
- package/serialization/resources/payers/resources/v3/types/index.js +3 -0
- package/serialization/resources/remits/index.d.ts +1 -0
- package/serialization/resources/remits/index.js +17 -0
- package/serialization/resources/remits/resources/index.d.ts +1 -0
- package/serialization/resources/remits/resources/index.js +27 -0
- package/serialization/resources/remits/resources/v1/index.d.ts +1 -0
- package/serialization/resources/remits/resources/v1/index.js +17 -0
- package/serialization/resources/remits/resources/v1/types/Payee.d.ts +13 -0
- package/serialization/resources/remits/resources/v1/types/Payee.js +34 -0
- package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +22 -0
- package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.js +46 -0
- package/serialization/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/remits/resources/v1/types/index.js +18 -0
- package/serialization/resources/writeOffs/resources/v1/client/index.d.ts +0 -1
- package/serialization/resources/writeOffs/resources/v1/client/index.js +0 -14
- package/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +12 -0
- package/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +33 -0
- package/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
- package/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +2 -1
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +2 -1
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.js +31 -0
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +12 -0
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +35 -0
- package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
- package/serialization/resources/writeOffs/resources/v1/types/index.js +3 -0
- package/dist/serialization/resources/writeOffs/resources/v1/client/create.d.ts +0 -10
- package/serialization/resources/writeOffs/resources/v1/client/create.d.ts +0 -10
|
@@ -0,0 +1,15 @@
|
|
|
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.PatientTransactionSource = void 0;
|
|
7
|
+
exports.PatientTransactionSource = {
|
|
8
|
+
ManualEntry: "MANUAL_ENTRY",
|
|
9
|
+
Chargebee: "CHARGEBEE",
|
|
10
|
+
Square: "SQUARE",
|
|
11
|
+
Stripe: "STRIPE",
|
|
12
|
+
Elation: "ELATION",
|
|
13
|
+
Cedar: "CEDAR",
|
|
14
|
+
Healthie: "HEALTHIE",
|
|
15
|
+
};
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./RefundReason"), exports);
|
|
18
|
+
__exportStar(require("./PatientTransactionSource"), exports);
|
|
18
19
|
__exportStar(require("./Allocation"), exports);
|
|
19
20
|
__exportStar(require("./AllocationTarget"), exports);
|
|
20
21
|
__exportStar(require("./AllocationCreate"), exports);
|
|
@@ -14,19 +14,16 @@ export declare class V1 {
|
|
|
14
14
|
protected readonly options: V1.Options;
|
|
15
15
|
constructor(options: V1.Options);
|
|
16
16
|
/**
|
|
17
|
-
* **This endpoint is incubating.**
|
|
18
17
|
* Creates a new guarantor and returns the newly created Guarantor object.
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
20
|
create(encounterId: CandidApi.EncounterId, request: CandidApi.guarantor.v1.GuarantorCreate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.create.Error>>;
|
|
22
21
|
/**
|
|
23
|
-
* **This endpoint is incubating.**
|
|
24
22
|
* Retrieves a guarantor by its `guarantor_id`.
|
|
25
23
|
*
|
|
26
24
|
*/
|
|
27
25
|
get(guarantorId: CandidApi.guarantor.v1.GuarantorId): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.get.Error>>;
|
|
28
26
|
/**
|
|
29
|
-
* **This endpoint is incubating.**
|
|
30
27
|
* Updates a guarantor by its `guarantor_id`.
|
|
31
28
|
*
|
|
32
29
|
*/
|
|
@@ -41,7 +41,6 @@ class V1 {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* **This endpoint is incubating.**
|
|
45
44
|
* Creates a new guarantor and returns the newly created Guarantor object.
|
|
46
45
|
*
|
|
47
46
|
*/
|
|
@@ -53,7 +52,7 @@ class V1 {
|
|
|
53
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
54
53
|
"X-Fern-Language": "JavaScript",
|
|
55
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
56
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
57
56
|
},
|
|
58
57
|
contentType: "application/json",
|
|
59
58
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -92,7 +91,6 @@ class V1 {
|
|
|
92
91
|
};
|
|
93
92
|
}
|
|
94
93
|
/**
|
|
95
|
-
* **This endpoint is incubating.**
|
|
96
94
|
* Retrieves a guarantor by its `guarantor_id`.
|
|
97
95
|
*
|
|
98
96
|
*/
|
|
@@ -104,7 +102,7 @@ class V1 {
|
|
|
104
102
|
Authorization: await this._getAuthorizationHeader(),
|
|
105
103
|
"X-Fern-Language": "JavaScript",
|
|
106
104
|
"X-Fern-SDK-Name": "candidhealth",
|
|
107
|
-
"X-Fern-SDK-Version": "0.
|
|
105
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
108
106
|
},
|
|
109
107
|
contentType: "application/json",
|
|
110
108
|
timeoutMs: 60000,
|
|
@@ -126,7 +124,6 @@ class V1 {
|
|
|
126
124
|
};
|
|
127
125
|
}
|
|
128
126
|
/**
|
|
129
|
-
* **This endpoint is incubating.**
|
|
130
127
|
* Updates a guarantor by its `guarantor_id`.
|
|
131
128
|
*
|
|
132
129
|
*/
|
|
@@ -138,7 +135,7 @@ class V1 {
|
|
|
138
135
|
Authorization: await this._getAuthorizationHeader(),
|
|
139
136
|
"X-Fern-Language": "JavaScript",
|
|
140
137
|
"X-Fern-SDK-Name": "candidhealth",
|
|
141
|
-
"X-Fern-SDK-Version": "0.
|
|
138
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
142
139
|
},
|
|
143
140
|
contentType: "application/json",
|
|
144
141
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
@@ -13,6 +13,7 @@ export * as organizationProviders from "./organizationProviders";
|
|
|
13
13
|
export * as patientPayments from "./patientPayments";
|
|
14
14
|
export * as patientRefunds from "./patientRefunds";
|
|
15
15
|
export * as payers from "./payers";
|
|
16
|
+
export * as remits from "./remits";
|
|
16
17
|
export * as serviceLines from "./serviceLines";
|
|
17
18
|
export * as tasks from "./tasks";
|
|
18
19
|
export * as writeOffs from "./writeOffs";
|
|
@@ -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.insuranceCard = exports.individual = exports.identifiers = exports.financials = exports.era = exports.diagnoses = exports.contracts = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
|
|
29
|
+
exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.insuranceCard = exports.individual = exports.identifiers = exports.financials = exports.era = exports.diagnoses = exports.contracts = 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.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = 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"));
|
|
@@ -42,6 +42,7 @@ exports.organizationProviders = __importStar(require("./organizationProviders"))
|
|
|
42
42
|
exports.patientPayments = __importStar(require("./patientPayments"));
|
|
43
43
|
exports.patientRefunds = __importStar(require("./patientRefunds"));
|
|
44
44
|
exports.payers = __importStar(require("./payers"));
|
|
45
|
+
exports.remits = __importStar(require("./remits"));
|
|
45
46
|
exports.serviceLines = __importStar(require("./serviceLines"));
|
|
46
47
|
exports.tasks = __importStar(require("./tasks"));
|
|
47
48
|
exports.writeOffs = __importStar(require("./writeOffs"));
|
|
@@ -14,19 +14,16 @@ export declare class V1 {
|
|
|
14
14
|
protected readonly options: V1.Options;
|
|
15
15
|
constructor(options: V1.Options);
|
|
16
16
|
/**
|
|
17
|
-
* **This endpoint is incubating.**
|
|
18
17
|
* Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
20
|
get(insuranceAdjudicationId: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId): Promise<core.APIResponse<CandidApi.insuranceAdjudications.v1.InsuranceAdjudication, CandidApi.insuranceAdjudications.v1.get.Error>>;
|
|
22
21
|
/**
|
|
23
|
-
* **This endpoint is incubating.**
|
|
24
22
|
* Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
|
|
25
23
|
*
|
|
26
24
|
*/
|
|
27
25
|
create(request: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationCreate): Promise<core.APIResponse<CandidApi.insuranceAdjudications.v1.InsuranceAdjudication, CandidApi.insuranceAdjudications.v1.create.Error>>;
|
|
28
26
|
/**
|
|
29
|
-
* **This endpoint is incubating.**
|
|
30
27
|
* Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
|
|
31
28
|
*
|
|
32
29
|
*/
|
|
@@ -41,7 +41,6 @@ class V1 {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* **This endpoint is incubating.**
|
|
45
44
|
* Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
|
|
46
45
|
*
|
|
47
46
|
*/
|
|
@@ -53,7 +52,7 @@ class V1 {
|
|
|
53
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
54
53
|
"X-Fern-Language": "JavaScript",
|
|
55
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
56
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
57
56
|
},
|
|
58
57
|
contentType: "application/json",
|
|
59
58
|
timeoutMs: 60000,
|
|
@@ -75,7 +74,6 @@ class V1 {
|
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
76
|
/**
|
|
78
|
-
* **This endpoint is incubating.**
|
|
79
77
|
* Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
|
|
80
78
|
*
|
|
81
79
|
*/
|
|
@@ -87,7 +85,7 @@ class V1 {
|
|
|
87
85
|
Authorization: await this._getAuthorizationHeader(),
|
|
88
86
|
"X-Fern-Language": "JavaScript",
|
|
89
87
|
"X-Fern-SDK-Name": "candidhealth",
|
|
90
|
-
"X-Fern-SDK-Version": "0.
|
|
88
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
91
89
|
},
|
|
92
90
|
contentType: "application/json",
|
|
93
91
|
body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
|
|
@@ -112,7 +110,6 @@ class V1 {
|
|
|
112
110
|
};
|
|
113
111
|
}
|
|
114
112
|
/**
|
|
115
|
-
* **This endpoint is incubating.**
|
|
116
113
|
* Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
|
|
117
114
|
*
|
|
118
115
|
*/
|
|
@@ -124,7 +121,7 @@ class V1 {
|
|
|
124
121
|
Authorization: await this._getAuthorizationHeader(),
|
|
125
122
|
"X-Fern-Language": "JavaScript",
|
|
126
123
|
"X-Fern-SDK-Name": "candidhealth",
|
|
127
|
-
"X-Fern-SDK-Version": "0.
|
|
124
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
128
125
|
},
|
|
129
126
|
contentType: "application/json",
|
|
130
127
|
timeoutMs: 60000,
|
|
@@ -6,5 +6,6 @@ export interface ClaimAdjudication {
|
|
|
6
6
|
insuranceAllowedAmountCents?: number;
|
|
7
7
|
insurancePaidAmountCents?: number;
|
|
8
8
|
serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudication>;
|
|
9
|
+
payerClaimNumber?: string;
|
|
9
10
|
carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
|
|
10
11
|
}
|
package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export interface ClaimAdjudicationCreate {
|
|
|
6
6
|
insuranceAllowedAmountCents?: number;
|
|
7
7
|
insurancePaidAmountCents?: number;
|
|
8
8
|
serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudicationCreate>;
|
|
9
|
+
payerClaimNumber?: string;
|
|
9
10
|
carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
|
|
10
11
|
}
|
package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export interface InsuranceAdjudication {
|
|
|
6
6
|
insuranceAdjudicationId: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId;
|
|
7
7
|
payerUuid: CandidApi.payers.v3.PayerUuid;
|
|
8
8
|
postDate?: string;
|
|
9
|
-
payerClaimNumber: string;
|
|
10
9
|
checkNumber?: string;
|
|
11
10
|
checkDate: string;
|
|
12
11
|
note?: string;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface InsuranceAdjudicationCreate {
|
|
6
|
-
|
|
6
|
+
payerIdentifier: CandidApi.payers.v3.PayerIdentifier;
|
|
7
|
+
payee: CandidApi.remits.v1.Payee;
|
|
7
8
|
postDate?: string;
|
|
8
|
-
payerClaimNumber: string;
|
|
9
9
|
checkNumber?: string;
|
|
10
10
|
checkDate: string;
|
|
11
11
|
note?: string;
|
|
@@ -14,14 +14,12 @@ export declare class V1 {
|
|
|
14
14
|
protected readonly options: V1.Options;
|
|
15
15
|
constructor(options: V1.Options);
|
|
16
16
|
/**
|
|
17
|
-
* **This endpoint is incubating.**
|
|
18
17
|
* Retrieves a previously created insurance refund by its `insurance_refund_id`.
|
|
19
18
|
* If the refund does not exist, a `403` will be thrown.
|
|
20
19
|
*
|
|
21
20
|
*/
|
|
22
21
|
get(insuranceRefundId: CandidApi.insuranceRefunds.v1.InsuranceRefundId): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefund, CandidApi.insuranceRefunds.v1.get.Error>>;
|
|
23
22
|
/**
|
|
24
|
-
* **This endpoint is incubating.**
|
|
25
23
|
* Creates a new insurance refund record and returns the newly created `InsuranceRefund` object.
|
|
26
24
|
* The allocations can describe whether the refund is being applied toward a specific service line,
|
|
27
25
|
* claim, or billing provider.
|
|
@@ -29,7 +27,6 @@ export declare class V1 {
|
|
|
29
27
|
*/
|
|
30
28
|
create(request: CandidApi.insuranceRefunds.v1.InsuranceRefundCreate): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefund, CandidApi.insuranceRefunds.v1.create.Error>>;
|
|
31
29
|
/**
|
|
32
|
-
* **This endpoint is incubating.**
|
|
33
30
|
* Deletes the insurance refund record matching the provided `insurance_refund_id`.
|
|
34
31
|
* If the matching record's organization_id does not match the authenticated user's
|
|
35
32
|
* current organization_id, then a response code of `403` will be returned.
|
|
@@ -41,7 +41,6 @@ class V1 {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* **This endpoint is incubating.**
|
|
45
44
|
* Retrieves a previously created insurance refund by its `insurance_refund_id`.
|
|
46
45
|
* If the refund does not exist, a `403` will be thrown.
|
|
47
46
|
*
|
|
@@ -54,7 +53,7 @@ class V1 {
|
|
|
54
53
|
Authorization: await this._getAuthorizationHeader(),
|
|
55
54
|
"X-Fern-Language": "JavaScript",
|
|
56
55
|
"X-Fern-SDK-Name": "candidhealth",
|
|
57
|
-
"X-Fern-SDK-Version": "0.
|
|
56
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
58
57
|
},
|
|
59
58
|
contentType: "application/json",
|
|
60
59
|
timeoutMs: 60000,
|
|
@@ -76,7 +75,6 @@ class V1 {
|
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
77
|
/**
|
|
79
|
-
* **This endpoint is incubating.**
|
|
80
78
|
* Creates a new insurance refund record and returns the newly created `InsuranceRefund` object.
|
|
81
79
|
* The allocations can describe whether the refund is being applied toward a specific service line,
|
|
82
80
|
* claim, or billing provider.
|
|
@@ -90,7 +88,7 @@ class V1 {
|
|
|
90
88
|
Authorization: await this._getAuthorizationHeader(),
|
|
91
89
|
"X-Fern-Language": "JavaScript",
|
|
92
90
|
"X-Fern-SDK-Name": "candidhealth",
|
|
93
|
-
"X-Fern-SDK-Version": "0.
|
|
91
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
94
92
|
},
|
|
95
93
|
contentType: "application/json",
|
|
96
94
|
body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
|
|
@@ -115,7 +113,6 @@ class V1 {
|
|
|
115
113
|
};
|
|
116
114
|
}
|
|
117
115
|
/**
|
|
118
|
-
* **This endpoint is incubating.**
|
|
119
116
|
* Deletes the insurance refund record matching the provided `insurance_refund_id`.
|
|
120
117
|
* If the matching record's organization_id does not match the authenticated user's
|
|
121
118
|
* current organization_id, then a response code of `403` will be returned.
|
|
@@ -129,7 +126,7 @@ class V1 {
|
|
|
129
126
|
Authorization: await this._getAuthorizationHeader(),
|
|
130
127
|
"X-Fern-Language": "JavaScript",
|
|
131
128
|
"X-Fern-SDK-Name": "candidhealth",
|
|
132
|
-
"X-Fern-SDK-Version": "0.
|
|
129
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
133
130
|
},
|
|
134
131
|
contentType: "application/json",
|
|
135
132
|
timeoutMs: 60000,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface InsuranceRefund {
|
|
6
6
|
insuranceRefundId: CandidApi.insuranceRefunds.v1.InsuranceRefundId;
|
|
7
|
-
|
|
7
|
+
payer: CandidApi.payers.v3.Payer;
|
|
8
8
|
amountCents: number;
|
|
9
9
|
refundTimestamp?: Date;
|
|
10
10
|
refundNote?: string;
|
|
@@ -49,7 +49,7 @@ class V3 {
|
|
|
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.11.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -115,7 +115,7 @@ class V3 {
|
|
|
115
115
|
Authorization: await this._getAuthorizationHeader(),
|
|
116
116
|
"X-Fern-Language": "JavaScript",
|
|
117
117
|
"X-Fern-SDK-Name": "candidhealth",
|
|
118
|
-
"X-Fern-SDK-Version": "0.
|
|
118
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
119
119
|
},
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
queryParameters: _queryParams,
|
|
@@ -145,7 +145,7 @@ class V3 {
|
|
|
145
145
|
Authorization: await this._getAuthorizationHeader(),
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "candidhealth",
|
|
148
|
-
"X-Fern-SDK-Version": "0.
|
|
148
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
149
149
|
},
|
|
150
150
|
contentType: "application/json",
|
|
151
151
|
body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
|
|
@@ -192,7 +192,7 @@ class V3 {
|
|
|
192
192
|
Authorization: await this._getAuthorizationHeader(),
|
|
193
193
|
"X-Fern-Language": "JavaScript",
|
|
194
194
|
"X-Fern-SDK-Name": "candidhealth",
|
|
195
|
-
"X-Fern-SDK-Version": "0.
|
|
195
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
196
196
|
},
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.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.11.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -103,7 +103,7 @@ class V2 {
|
|
|
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.11.0",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V2 {
|
|
|
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.11.0",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -177,7 +177,7 @@ class V2 {
|
|
|
177
177
|
Authorization: await this._getAuthorizationHeader(),
|
|
178
178
|
"X-Fern-Language": "JavaScript",
|
|
179
179
|
"X-Fern-SDK-Name": "candidhealth",
|
|
180
|
-
"X-Fern-SDK-Version": "0.
|
|
180
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
181
181
|
},
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -222,7 +222,7 @@ class V2 {
|
|
|
222
222
|
Authorization: await this._getAuthorizationHeader(),
|
|
223
223
|
"X-Fern-Language": "JavaScript",
|
|
224
224
|
"X-Fern-SDK-Name": "candidhealth",
|
|
225
|
-
"X-Fern-SDK-Version": "0.
|
|
225
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
226
226
|
},
|
|
227
227
|
contentType: "application/json",
|
|
228
228
|
timeoutMs: 60000,
|
|
@@ -14,13 +14,17 @@ export declare class V4 {
|
|
|
14
14
|
protected readonly options: V4.Options;
|
|
15
15
|
constructor(options: V4.Options);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Returns all patient payments satisfying the search criteria AND whose organization_id matches
|
|
18
|
+
* the current organization_id of the authenticated user.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
getMulti(request?: CandidApi.patientPayments.v4.GetMultiPatientPaymentsRequest): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPaymentsPage, CandidApi.patientPayments.v4.getMulti.Error>>;
|
|
22
|
+
/**
|
|
18
23
|
* Retrieves a previously created patient payment by its `patient_payment_id`.
|
|
19
24
|
*
|
|
20
25
|
*/
|
|
21
26
|
get(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.get.Error>>;
|
|
22
27
|
/**
|
|
23
|
-
* **This endpoint is incubating.**
|
|
24
28
|
* Creates a new patient payment record and returns the newly created PatientPayment object.
|
|
25
29
|
* The allocations can describe whether the payment is being applied toward a specific service line,
|
|
26
30
|
* claim, or billing provider.
|
|
@@ -28,7 +32,6 @@ export declare class V4 {
|
|
|
28
32
|
*/
|
|
29
33
|
create(request: CandidApi.patientPayments.v4.PatientPaymentCreate): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.create.Error>>;
|
|
30
34
|
/**
|
|
31
|
-
* **This endpoint is incubating.**
|
|
32
35
|
* Deletes the patient payment record matching the provided patient_payment_id.
|
|
33
36
|
*
|
|
34
37
|
*/
|
|
@@ -33,15 +33,86 @@ exports.V4 = void 0;
|
|
|
33
33
|
const environments = __importStar(require("../../../../../../environments"));
|
|
34
34
|
const core = __importStar(require("../../../../../../core"));
|
|
35
35
|
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
-
const
|
|
36
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
37
37
|
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
38
39
|
class V4 {
|
|
39
40
|
options;
|
|
40
41
|
constructor(options) {
|
|
41
42
|
this.options = options;
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* Returns all patient payments satisfying the search criteria AND whose organization_id matches
|
|
46
|
+
* the current organization_id of the authenticated user.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
async getMulti(request = {}) {
|
|
50
|
+
const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, sources, sort, sortDirection, pageToken, } = request;
|
|
51
|
+
const _queryParams = new url_search_params_1.default();
|
|
52
|
+
if (limit != null) {
|
|
53
|
+
_queryParams.append("limit", limit.toString());
|
|
54
|
+
}
|
|
55
|
+
if (patientExternalId != null) {
|
|
56
|
+
_queryParams.append("patient_external_id", patientExternalId);
|
|
57
|
+
}
|
|
58
|
+
if (claimId != null) {
|
|
59
|
+
_queryParams.append("claim_id", claimId);
|
|
60
|
+
}
|
|
61
|
+
if (serviceLineId != null) {
|
|
62
|
+
_queryParams.append("service_line_id", serviceLineId);
|
|
63
|
+
}
|
|
64
|
+
if (billingProviderId != null) {
|
|
65
|
+
_queryParams.append("billing_provider_id", billingProviderId);
|
|
66
|
+
}
|
|
67
|
+
if (sources != null) {
|
|
68
|
+
if (Array.isArray(sources)) {
|
|
69
|
+
for (const _item of sources) {
|
|
70
|
+
_queryParams.append("sources", _item);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
_queryParams.append("sources", sources);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (sort != null) {
|
|
78
|
+
_queryParams.append("sort", sort);
|
|
79
|
+
}
|
|
80
|
+
if (sortDirection != null) {
|
|
81
|
+
_queryParams.append("sort_direction", sortDirection);
|
|
82
|
+
}
|
|
83
|
+
if (pageToken != null) {
|
|
84
|
+
_queryParams.append("page_token", pageToken);
|
|
85
|
+
}
|
|
86
|
+
const _response = await core.fetcher({
|
|
87
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/patient-payments/v4"),
|
|
88
|
+
method: "GET",
|
|
89
|
+
headers: {
|
|
90
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
91
|
+
"X-Fern-Language": "JavaScript",
|
|
92
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
93
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
94
|
+
},
|
|
95
|
+
contentType: "application/json",
|
|
96
|
+
queryParameters: _queryParams,
|
|
97
|
+
timeoutMs: 60000,
|
|
98
|
+
});
|
|
99
|
+
if (_response.ok) {
|
|
100
|
+
return {
|
|
101
|
+
ok: true,
|
|
102
|
+
body: await serializers.patientPayments.v4.PatientPaymentsPage.parseOrThrow(_response.body, {
|
|
103
|
+
unrecognizedObjectKeys: "passthrough",
|
|
104
|
+
allowUnrecognizedUnionMembers: true,
|
|
105
|
+
allowUnrecognizedEnumValues: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
ok: false,
|
|
112
|
+
error: CandidApi.patientPayments.v4.getMulti.Error._unknown(_response.error),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
45
116
|
* Retrieves a previously created patient payment by its `patient_payment_id`.
|
|
46
117
|
*
|
|
47
118
|
*/
|
|
@@ -53,7 +124,7 @@ class V4 {
|
|
|
53
124
|
Authorization: await this._getAuthorizationHeader(),
|
|
54
125
|
"X-Fern-Language": "JavaScript",
|
|
55
126
|
"X-Fern-SDK-Name": "candidhealth",
|
|
56
|
-
"X-Fern-SDK-Version": "0.
|
|
127
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
57
128
|
},
|
|
58
129
|
contentType: "application/json",
|
|
59
130
|
timeoutMs: 60000,
|
|
@@ -75,7 +146,6 @@ class V4 {
|
|
|
75
146
|
};
|
|
76
147
|
}
|
|
77
148
|
/**
|
|
78
|
-
* **This endpoint is incubating.**
|
|
79
149
|
* Creates a new patient payment record and returns the newly created PatientPayment object.
|
|
80
150
|
* The allocations can describe whether the payment is being applied toward a specific service line,
|
|
81
151
|
* claim, or billing provider.
|
|
@@ -89,7 +159,7 @@ class V4 {
|
|
|
89
159
|
Authorization: await this._getAuthorizationHeader(),
|
|
90
160
|
"X-Fern-Language": "JavaScript",
|
|
91
161
|
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.
|
|
162
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
93
163
|
},
|
|
94
164
|
contentType: "application/json",
|
|
95
165
|
body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
|
|
@@ -114,7 +184,6 @@ class V4 {
|
|
|
114
184
|
};
|
|
115
185
|
}
|
|
116
186
|
/**
|
|
117
|
-
* **This endpoint is incubating.**
|
|
118
187
|
* Deletes the patient payment record matching the provided patient_payment_id.
|
|
119
188
|
*
|
|
120
189
|
*/
|
|
@@ -126,7 +195,7 @@ class V4 {
|
|
|
126
195
|
Authorization: await this._getAuthorizationHeader(),
|
|
127
196
|
"X-Fern-Language": "JavaScript",
|
|
128
197
|
"X-Fern-SDK-Name": "candidhealth",
|
|
129
|
-
"X-Fern-SDK-Version": "0.
|
|
198
|
+
"X-Fern-SDK-Version": "0.11.0",
|
|
130
199
|
},
|
|
131
200
|
contentType: "application/json",
|
|
132
201
|
timeoutMs: 60000,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.patientPayments.v4.getMulti.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.patientPayments.v4.getMulti.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientPayments.v4.getMulti.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.patientPayments.v4.getMulti.Error, visitor: CandidApi.patientPayments.v4.getMulti.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.patientPayments.v4.getMulti.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.errorName) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|