candidhealth 0.46.0 → 1.0.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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +0 -8
- package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -52
- package/api/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
- package/api/resources/chargeCapture/resources/v1/client/index.js +1 -2
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.js +3 -3
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.js +5 -5
- 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/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- 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 +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/pipelineCommons/index.d.ts +1 -0
- package/api/resources/pipelineCommons/index.js +17 -0
- package/api/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +8 -0
- package/api/resources/pipelineCommons/types/ConfigurableRuleId.js +9 -0
- package/api/resources/pipelineCommons/types/index.d.ts +1 -0
- package/api/resources/pipelineCommons/types/index.js +17 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +40 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +102 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +22 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +57 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +3 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.d.ts +22 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.js +57 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +10 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +2 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +8 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +14 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +11 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +10 -0
- package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +1 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +7 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +5 -0
- package/{dist/api/resources/preEncounter/resources/coverages → api/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +5 -0
- package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +3 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/api/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +3 -1
- package/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +2 -0
- package/api/resources/superbills/resources/v1/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/tasks/resources/v3/types/Task.d.ts +1 -0
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
- package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +0 -8
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -52
- package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
- package/dist/api/resources/chargeCapture/resources/v1/client/index.js +1 -2
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.js +3 -3
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
- 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/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- 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 +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/pipelineCommons/index.d.ts +1 -0
- package/dist/api/resources/pipelineCommons/index.js +17 -0
- package/dist/api/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +8 -0
- package/dist/api/resources/pipelineCommons/types/ConfigurableRuleId.js +9 -0
- package/dist/api/resources/pipelineCommons/types/index.d.ts +1 -0
- package/dist/api/resources/pipelineCommons/types/index.js +17 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +40 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +102 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +57 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +3 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/pollBatch.js +57 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +14 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +10 -0
- package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckMetadata.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +5 -0
- package/{api/resources/preEncounter/resources/coverages → dist/api/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +5 -0
- package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +3 -1
- package/dist/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +2 -0
- package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/tasks/resources/v3/types/Task.d.ts +1 -0
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
- package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
- package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/pipelineCommons/index.d.ts +1 -0
- package/dist/serialization/resources/pipelineCommons/index.js +17 -0
- package/dist/serialization/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +10 -0
- package/dist/serialization/resources/pipelineCommons/types/ConfigurableRuleId.js +45 -0
- package/dist/serialization/resources/pipelineCommons/types/index.d.ts +1 -0
- package/dist/serialization/resources/pipelineCommons/types/index.js +17 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +42 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +37 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js +44 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +3 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.js +3 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.js +46 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +17 -0
- package/{serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js → dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js} +8 -10
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +41 -0
- package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +47 -0
- package/{serialization/resources/preEncounter/resources/coverages → dist/serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.js +1 -0
- package/{serialization/resources/preEncounter/resources/coverages → dist/serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +2 -0
- package/dist/serialization/resources/tasks/resources/v3/types/Task.d.ts +2 -0
- package/dist/serialization/resources/tasks/resources/v3/types/Task.js +2 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +149 -48
- package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
- package/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/pipelineCommons/index.d.ts +1 -0
- package/serialization/resources/pipelineCommons/index.js +17 -0
- package/serialization/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +10 -0
- package/serialization/resources/pipelineCommons/types/ConfigurableRuleId.js +45 -0
- package/serialization/resources/pipelineCommons/types/index.d.ts +1 -0
- package/serialization/resources/pipelineCommons/types/index.js +17 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -5
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -5
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js +42 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +37 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/index.js +1 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js +44 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.d.ts +3 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheck.js +3 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckError.js +46 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.d.ts +17 -0
- package/{dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js → serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js} +8 -10
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorSource.js +41 -0
- package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.js +1 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckPage.js +47 -0
- package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRequest.js +1 -0
- package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityStatus.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/ParsedResponse.js +1 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +8 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +8 -0
- package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +2 -0
- package/serialization/resources/tasks/resources/v3/types/Task.d.ts +2 -0
- package/serialization/resources/tasks/resources/v3/types/Task.js +2 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/chargeCapture/resources/v1/client/delete.d.ts +0 -34
- package/api/resources/chargeCapture/resources/v1/client/delete.js +0 -79
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -11
- package/dist/api/resources/chargeCapture/resources/v1/client/delete.d.ts +0 -34
- package/dist/api/resources/chargeCapture/resources/v1/client/delete.js +0 -79
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -11
- package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +0 -20
- package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.js +0 -77
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -19
- package/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +0 -20
- package/serialization/resources/chargeCapture/resources/v1/client/delete.js +0 -77
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +0 -19
- /package/api/resources/preEncounter/resources/{coverages/resources/v1/types/EligibilityCheck.js → eligibilityChecks/resources/v1/types/BatchEligibilityResponse.js} +0 -0
- /package/api/resources/preEncounter/resources/{coverages/resources/v1/types/EligibilityCheckMetadata.js → eligibilityChecks/resources/v1/types/EligibilityCheckError.js} +0 -0
- /package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js → api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityCheckErrorDetails.js} +0 -0
- /package/{dist/api/resources/preEncounter/resources/coverages → api/resources/preEncounter/resources/eligibilityChecks}/resources/v1/types/EligibilityCheckMetadata.js +0 -0
- /package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
- /package/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
- /package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityCheckStatus.js +0 -0
- /package/serialization/resources/preEncounter/resources/{coverages → eligibilityChecks}/resources/v1/types/EligibilityStatus.js +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
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("./ConfigurableRuleId"), exports);
|
package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js
CHANGED
|
@@ -78,7 +78,7 @@ class V1 {
|
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/appointments/v1"),
|
|
80
80
|
method: "POST",
|
|
81
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
81
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
|
|
@@ -154,7 +154,7 @@ class V1 {
|
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/appointments/v1/visits"),
|
|
156
156
|
method: "GET",
|
|
157
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
157
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
queryParameters: _queryParams,
|
|
160
160
|
requestType: "json",
|
|
@@ -208,7 +208,7 @@ class V1 {
|
|
|
208
208
|
const _response = yield core.fetcher({
|
|
209
209
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}`),
|
|
210
210
|
method: "GET",
|
|
211
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
211
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
212
212
|
contentType: "application/json",
|
|
213
213
|
requestType: "json",
|
|
214
214
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -261,7 +261,7 @@ class V1 {
|
|
|
261
261
|
const _response = yield core.fetcher({
|
|
262
262
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/history`),
|
|
263
263
|
method: "GET",
|
|
264
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
264
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
requestType: "json",
|
|
267
267
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -321,7 +321,7 @@ class V1 {
|
|
|
321
321
|
const _response = yield core.fetcher({
|
|
322
322
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
323
323
|
method: "PUT",
|
|
324
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
324
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
325
325
|
contentType: "application/json",
|
|
326
326
|
requestType: "json",
|
|
327
327
|
body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
|
|
@@ -383,7 +383,7 @@ class V1 {
|
|
|
383
383
|
const _response = yield core.fetcher({
|
|
384
384
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/appointments/v1/updates/scan"),
|
|
385
385
|
method: "GET",
|
|
386
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
386
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
387
387
|
contentType: "application/json",
|
|
388
388
|
queryParameters: _queryParams,
|
|
389
389
|
requestType: "json",
|
|
@@ -424,7 +424,7 @@ class V1 {
|
|
|
424
424
|
const _response = yield core.fetcher({
|
|
425
425
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
426
426
|
method: "DELETE",
|
|
427
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
427
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
428
428
|
contentType: "application/json",
|
|
429
429
|
requestType: "json",
|
|
430
430
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -167,7 +167,7 @@ export declare class V1 {
|
|
|
167
167
|
* npi: "npi"
|
|
168
168
|
* })
|
|
169
169
|
*/
|
|
170
|
-
checkEligibility(id: CandidApi.preEncounter.CoverageId, request: CandidApi.preEncounter.coverages.v1.CheckEligibilityRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.
|
|
170
|
+
checkEligibility(id: CandidApi.preEncounter.CoverageId, request: CandidApi.preEncounter.coverages.v1.CheckEligibilityRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.eligibilityChecks.v1.EligibilityCheckMetadata, CandidApi.preEncounter.coverages.v1.checkEligibility.Error>>;
|
|
171
171
|
/**
|
|
172
172
|
* Gets the eligibility of a patient for a specific coverage if successful.
|
|
173
173
|
*
|
|
@@ -92,7 +92,7 @@ class V1 {
|
|
|
92
92
|
const _response = yield core.fetcher({
|
|
93
93
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
|
|
94
94
|
method: "POST",
|
|
95
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
95
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
requestType: "json",
|
|
98
98
|
body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
|
|
@@ -155,7 +155,7 @@ class V1 {
|
|
|
155
155
|
const _response = yield core.fetcher({
|
|
156
156
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
157
157
|
method: "PUT",
|
|
158
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
158
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
requestType: "json",
|
|
161
161
|
body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
|
|
@@ -226,7 +226,7 @@ class V1 {
|
|
|
226
226
|
const _response = yield core.fetcher({
|
|
227
227
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/get-multi-paginated"),
|
|
228
228
|
method: "GET",
|
|
229
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
229
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
230
230
|
contentType: "application/json",
|
|
231
231
|
queryParameters: _queryParams,
|
|
232
232
|
requestType: "json",
|
|
@@ -280,7 +280,7 @@ class V1 {
|
|
|
280
280
|
const _response = yield core.fetcher({
|
|
281
281
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}`),
|
|
282
282
|
method: "GET",
|
|
283
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
283
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
284
284
|
contentType: "application/json",
|
|
285
285
|
requestType: "json",
|
|
286
286
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -319,7 +319,7 @@ class V1 {
|
|
|
319
319
|
const _response = yield core.fetcher({
|
|
320
320
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
|
|
321
321
|
method: "GET",
|
|
322
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
322
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
323
323
|
contentType: "application/json",
|
|
324
324
|
requestType: "json",
|
|
325
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -377,7 +377,7 @@ class V1 {
|
|
|
377
377
|
const _response = yield core.fetcher({
|
|
378
378
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
|
|
379
379
|
method: "GET",
|
|
380
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
380
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
381
381
|
contentType: "application/json",
|
|
382
382
|
queryParameters: _queryParams,
|
|
383
383
|
requestType: "json",
|
|
@@ -422,7 +422,7 @@ class V1 {
|
|
|
422
422
|
const _response = yield core.fetcher({
|
|
423
423
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/updates/scan"),
|
|
424
424
|
method: "GET",
|
|
425
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
425
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
426
426
|
contentType: "application/json",
|
|
427
427
|
queryParameters: _queryParams,
|
|
428
428
|
requestType: "json",
|
|
@@ -468,7 +468,7 @@ class V1 {
|
|
|
468
468
|
const _response = yield core.fetcher({
|
|
469
469
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/batch-update-ppg/${encodeURIComponent(serializers.preEncounter.PayerPlanGroupId.jsonOrThrow(ppgId))}`),
|
|
470
470
|
method: "POST",
|
|
471
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
471
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
472
472
|
contentType: "application/json",
|
|
473
473
|
requestType: "json",
|
|
474
474
|
body: serializers.preEncounter.coverages.v1.PayerPlanGroupFields.jsonOrThrow(request, {
|
|
@@ -510,7 +510,7 @@ class V1 {
|
|
|
510
510
|
const _response = yield core.fetcher({
|
|
511
511
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility`),
|
|
512
512
|
method: "POST",
|
|
513
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
513
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
514
514
|
contentType: "application/json",
|
|
515
515
|
requestType: "json",
|
|
516
516
|
body: serializers.preEncounter.coverages.v1.CheckEligibilityRequest.jsonOrThrow(request, {
|
|
@@ -523,7 +523,7 @@ class V1 {
|
|
|
523
523
|
if (_response.ok) {
|
|
524
524
|
return {
|
|
525
525
|
ok: true,
|
|
526
|
-
body: serializers.preEncounter.
|
|
526
|
+
body: serializers.preEncounter.eligibilityChecks.v1.EligibilityCheckMetadata.parseOrThrow(_response.body, {
|
|
527
527
|
unrecognizedObjectKeys: "passthrough",
|
|
528
528
|
allowUnrecognizedUnionMembers: true,
|
|
529
529
|
allowUnrecognizedEnumValues: true,
|
|
@@ -553,7 +553,7 @@ class V1 {
|
|
|
553
553
|
const _response = yield core.fetcher({
|
|
554
554
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility/${encodeURIComponent(checkId)}`),
|
|
555
555
|
method: "GET",
|
|
556
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
556
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
557
557
|
contentType: "application/json",
|
|
558
558
|
requestType: "json",
|
|
559
559
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../../../index";
|
|
5
5
|
export interface CoverageEligibilityCheckResponse {
|
|
6
|
-
metadata: CandidApi.preEncounter.
|
|
7
|
-
check?: CandidApi.preEncounter.
|
|
6
|
+
metadata: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityCheckMetadata;
|
|
7
|
+
check?: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityCheck;
|
|
8
8
|
}
|
|
@@ -7,6 +7,6 @@ import * as CandidApi from "../../../../../../../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface LatestEligibilityCheck {
|
|
9
9
|
checkId: string;
|
|
10
|
-
status: CandidApi.preEncounter.
|
|
10
|
+
status: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityStatus;
|
|
11
11
|
initiatedAt: Date;
|
|
12
12
|
}
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface MutableCoverage {
|
|
|
15
15
|
/** A boolean indicating if the coverage has been verified by a user. */
|
|
16
16
|
verified: boolean;
|
|
17
17
|
/** A list of eligibility check metadata that have been initiated on this coverage. */
|
|
18
|
-
eligibilityChecks?: CandidApi.preEncounter.
|
|
18
|
+
eligibilityChecks?: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityCheckMetadata[];
|
|
19
19
|
/** The latest eligibility check metadata that has been initiated on this coverage. */
|
|
20
20
|
latestEligibilityCheck?: CandidApi.preEncounter.coverages.v1.LatestEligibilityCheck;
|
|
21
21
|
/** The eligibility of the patient for the coverage, manually verified by users. */
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export * from "./PayerPlanGroupFields";
|
|
2
2
|
export * from "./CoveragesPage";
|
|
3
3
|
export * from "./LatestEligibilityCheck";
|
|
4
|
-
export * from "./EligibilityCheckMetadata";
|
|
5
|
-
export * from "./CoverageEligibilityCheckResponse";
|
|
6
|
-
export * from "./EligibilityCheck";
|
|
7
|
-
export * from "./EligibilityCheckStatus";
|
|
8
4
|
export * from "./BenefitType";
|
|
5
|
+
export * from "./CoverageEligibilityCheckResponse";
|
|
9
6
|
export * from "./CoverageValue";
|
|
10
7
|
export * from "./CoverageBenefits";
|
|
11
8
|
export * from "./CoverageDetails";
|
|
@@ -15,7 +12,6 @@ export * from "./ServiceCoverage";
|
|
|
15
12
|
export * from "./ServiceCoverageDetails";
|
|
16
13
|
export * from "./PlanMetadata";
|
|
17
14
|
export * from "./PlanDate";
|
|
18
|
-
export * from "./EligibilityStatus";
|
|
19
15
|
export * from "./CoverageLevel";
|
|
20
16
|
export * from "./CoverageValueUnit";
|
|
21
17
|
export * from "./Subscriber";
|
|
@@ -17,11 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./PayerPlanGroupFields"), exports);
|
|
18
18
|
__exportStar(require("./CoveragesPage"), exports);
|
|
19
19
|
__exportStar(require("./LatestEligibilityCheck"), exports);
|
|
20
|
-
__exportStar(require("./EligibilityCheckMetadata"), exports);
|
|
21
|
-
__exportStar(require("./CoverageEligibilityCheckResponse"), exports);
|
|
22
|
-
__exportStar(require("./EligibilityCheck"), exports);
|
|
23
|
-
__exportStar(require("./EligibilityCheckStatus"), exports);
|
|
24
20
|
__exportStar(require("./BenefitType"), exports);
|
|
21
|
+
__exportStar(require("./CoverageEligibilityCheckResponse"), exports);
|
|
25
22
|
__exportStar(require("./CoverageValue"), exports);
|
|
26
23
|
__exportStar(require("./CoverageBenefits"), exports);
|
|
27
24
|
__exportStar(require("./CoverageDetails"), exports);
|
|
@@ -31,7 +28,6 @@ __exportStar(require("./ServiceCoverage"), exports);
|
|
|
31
28
|
__exportStar(require("./ServiceCoverageDetails"), exports);
|
|
32
29
|
__exportStar(require("./PlanMetadata"), exports);
|
|
33
30
|
__exportStar(require("./PlanDate"), exports);
|
|
34
|
-
__exportStar(require("./EligibilityStatus"), exports);
|
|
35
31
|
__exportStar(require("./CoverageLevel"), exports);
|
|
36
32
|
__exportStar(require("./CoverageValueUnit"), exports);
|
|
37
33
|
__exportStar(require("./Subscriber"), exports);
|
package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts
CHANGED
|
@@ -45,5 +45,45 @@ export declare class V1 {
|
|
|
45
45
|
* })
|
|
46
46
|
*/
|
|
47
47
|
post(request: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.eligibilityChecks.v1.EligibilityResponse, CandidApi.preEncounter.eligibilityChecks.v1.post.Error>>;
|
|
48
|
+
/**
|
|
49
|
+
* Sends a batch of eligibility checks to payers through Stedi.
|
|
50
|
+
*
|
|
51
|
+
* @param {CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRequest[]} request
|
|
52
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.preEncounter.eligibilityChecks.v1.batch([{
|
|
56
|
+
* payerId: "payer_id",
|
|
57
|
+
* provider: {
|
|
58
|
+
* npi: "npi"
|
|
59
|
+
* },
|
|
60
|
+
* subscriber: {
|
|
61
|
+
* firstName: "first_name",
|
|
62
|
+
* lastName: "last_name"
|
|
63
|
+
* }
|
|
64
|
+
* }, {
|
|
65
|
+
* payerId: "payer_id",
|
|
66
|
+
* provider: {
|
|
67
|
+
* npi: "npi"
|
|
68
|
+
* },
|
|
69
|
+
* subscriber: {
|
|
70
|
+
* firstName: "first_name",
|
|
71
|
+
* lastName: "last_name"
|
|
72
|
+
* }
|
|
73
|
+
* }])
|
|
74
|
+
*/
|
|
75
|
+
batch(request: CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRequest[], requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.eligibilityChecks.v1.BatchEligibilityResponse, CandidApi.preEncounter.eligibilityChecks.v1.batch.Error>>;
|
|
76
|
+
/**
|
|
77
|
+
* Polls the status of a batch eligibility check.
|
|
78
|
+
* <Note>Batch eligibility checks are not yet available. Please reach out to the Candid team for more information.</Note>
|
|
79
|
+
* path-parameters:
|
|
80
|
+
*
|
|
81
|
+
* @param {string} batchId
|
|
82
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.preEncounter.eligibilityChecks.v1.pollBatch("batch_id")
|
|
86
|
+
*/
|
|
87
|
+
pollBatch(batchId: string, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.eligibilityChecks.v1.EligibilityCheckPage, CandidApi.preEncounter.eligibilityChecks.v1.pollBatch.Error>>;
|
|
48
88
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
49
89
|
}
|
package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js
CHANGED
|
@@ -83,7 +83,7 @@ class V1 {
|
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1"),
|
|
85
85
|
method: "POST",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
body: serializers.preEncounter.eligibilityChecks.v1.EligibilityRequest.jsonOrThrow(request, {
|
|
@@ -110,6 +110,107 @@ class V1 {
|
|
|
110
110
|
};
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Sends a batch of eligibility checks to payers through Stedi.
|
|
115
|
+
*
|
|
116
|
+
* @param {CandidApi.preEncounter.eligibilityChecks.v1.EligibilityRequest[]} request
|
|
117
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* await client.preEncounter.eligibilityChecks.v1.batch([{
|
|
121
|
+
* payerId: "payer_id",
|
|
122
|
+
* provider: {
|
|
123
|
+
* npi: "npi"
|
|
124
|
+
* },
|
|
125
|
+
* subscriber: {
|
|
126
|
+
* firstName: "first_name",
|
|
127
|
+
* lastName: "last_name"
|
|
128
|
+
* }
|
|
129
|
+
* }, {
|
|
130
|
+
* payerId: "payer_id",
|
|
131
|
+
* provider: {
|
|
132
|
+
* npi: "npi"
|
|
133
|
+
* },
|
|
134
|
+
* subscriber: {
|
|
135
|
+
* firstName: "first_name",
|
|
136
|
+
* lastName: "last_name"
|
|
137
|
+
* }
|
|
138
|
+
* }])
|
|
139
|
+
*/
|
|
140
|
+
batch(request, requestOptions) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
var _a, _b;
|
|
143
|
+
const _response = yield core.fetcher({
|
|
144
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1/batch"),
|
|
145
|
+
method: "POST",
|
|
146
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
|
+
contentType: "application/json",
|
|
148
|
+
requestType: "json",
|
|
149
|
+
body: serializers.preEncounter.eligibilityChecks.v1.batch.Request.jsonOrThrow(request, {
|
|
150
|
+
unrecognizedObjectKeys: "strip",
|
|
151
|
+
}),
|
|
152
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
153
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
154
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
155
|
+
});
|
|
156
|
+
if (_response.ok) {
|
|
157
|
+
return {
|
|
158
|
+
ok: true,
|
|
159
|
+
body: serializers.preEncounter.eligibilityChecks.v1.BatchEligibilityResponse.parseOrThrow(_response.body, {
|
|
160
|
+
unrecognizedObjectKeys: "passthrough",
|
|
161
|
+
allowUnrecognizedUnionMembers: true,
|
|
162
|
+
allowUnrecognizedEnumValues: true,
|
|
163
|
+
breadcrumbsPrefix: ["response"],
|
|
164
|
+
}),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
ok: false,
|
|
169
|
+
error: CandidApi.preEncounter.eligibilityChecks.v1.batch.Error._unknown(_response.error),
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Polls the status of a batch eligibility check.
|
|
175
|
+
* <Note>Batch eligibility checks are not yet available. Please reach out to the Candid team for more information.</Note>
|
|
176
|
+
* path-parameters:
|
|
177
|
+
*
|
|
178
|
+
* @param {string} batchId
|
|
179
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* await client.preEncounter.eligibilityChecks.v1.pollBatch("batch_id")
|
|
183
|
+
*/
|
|
184
|
+
pollBatch(batchId, requestOptions) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
var _a, _b;
|
|
187
|
+
const _response = yield core.fetcher({
|
|
188
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/eligibility-checks/v1/batch/${encodeURIComponent(batchId)}`),
|
|
189
|
+
method: "GET",
|
|
190
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
|
+
contentType: "application/json",
|
|
192
|
+
requestType: "json",
|
|
193
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
194
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
195
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
196
|
+
});
|
|
197
|
+
if (_response.ok) {
|
|
198
|
+
return {
|
|
199
|
+
ok: true,
|
|
200
|
+
body: serializers.preEncounter.eligibilityChecks.v1.EligibilityCheckPage.parseOrThrow(_response.body, {
|
|
201
|
+
unrecognizedObjectKeys: "passthrough",
|
|
202
|
+
allowUnrecognizedUnionMembers: true,
|
|
203
|
+
allowUnrecognizedEnumValues: true,
|
|
204
|
+
breadcrumbsPrefix: ["response"],
|
|
205
|
+
}),
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
ok: false,
|
|
210
|
+
error: CandidApi.preEncounter.eligibilityChecks.v1.pollBatch.Error._unknown(_response.error),
|
|
211
|
+
};
|
|
212
|
+
});
|
|
213
|
+
}
|
|
113
214
|
_getAuthorizationHeader() {
|
|
114
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
216
|
const bearer = yield core.Supplier.get(this._options.token);
|
package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../../../core";
|
|
6
|
+
export type Error = CandidApi.preEncounter.eligibilityChecks.v1.batch.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.preEncounter.eligibilityChecks.v1.batch.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.preEncounter.eligibilityChecks.v1.batch.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.eligibilityChecks.v1.batch.Error, visitor: CandidApi.preEncounter.eligibilityChecks.v1.batch.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/batch.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Error = void 0;
|
|
40
|
+
const CandidApi = __importStar(require("../../../../../../../index"));
|
|
41
|
+
exports.Error = {
|
|
42
|
+
_unknown: (fetcherError) => {
|
|
43
|
+
return {
|
|
44
|
+
errorName: undefined,
|
|
45
|
+
content: fetcherError,
|
|
46
|
+
_visit: function (visitor) {
|
|
47
|
+
return CandidApi.preEncounter.eligibilityChecks.v1.batch.Error._visit(this, visitor);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
_visit: (value, visitor) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
default:
|
|
54
|
+
return visitor._other(value);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
};
|
package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js
CHANGED
|
@@ -33,5 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.post = void 0;
|
|
36
|
+
exports.pollBatch = exports.batch = exports.post = void 0;
|
|
37
37
|
exports.post = __importStar(require("./post"));
|
|
38
|
+
exports.batch = __importStar(require("./batch"));
|
|
39
|
+
exports.pollBatch = __importStar(require("./pollBatch"));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../../../core";
|
|
6
|
+
export type Error = CandidApi.preEncounter.eligibilityChecks.v1.pollBatch.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.preEncounter.eligibilityChecks.v1.pollBatch.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.preEncounter.eligibilityChecks.v1.pollBatch.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.eligibilityChecks.v1.pollBatch.Error, visitor: CandidApi.preEncounter.eligibilityChecks.v1.pollBatch.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|