candidhealth 0.26.1 → 0.28.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 +1 -1
- package/api/resources/claims/types/Claim.d.ts +37 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +37 -0
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +37 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/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 +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/invoices/index.d.ts +1 -0
- package/api/resources/invoices/index.js +1 -0
- package/api/resources/invoices/types/Invoice.d.ts +19 -0
- package/api/resources/invoices/types/InvoiceItem.d.ts +8 -0
- package/api/resources/invoices/types/InvoiceStatus.d.ts +12 -0
- package/api/resources/invoices/types/InvoiceStatus.js +14 -0
- package/api/resources/invoices/types/index.d.ts +3 -0
- package/api/resources/invoices/types/index.js +19 -0
- 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/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/client/Client.d.ts +3 -0
- package/api/resources/preEncounter/client/Client.js +9 -4
- package/api/resources/preEncounter/resources/appointments/client/Client.d.ts +26 -0
- package/api/resources/preEncounter/resources/appointments/client/Client.js +17 -0
- package/api/resources/preEncounter/resources/appointments/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/appointments/client/index.js +2 -0
- package/api/resources/preEncounter/resources/appointments/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/appointments/index.js +18 -0
- package/api/resources/preEncounter/resources/appointments/resources/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/appointments/resources/index.js +27 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +132 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +493 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +28 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/create.js +58 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +34 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +69 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +28 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/get.js +58 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +28 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +58 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.js +47 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +7 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +36 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentsSearchRequest.d.ts +38 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.js +2 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +34 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/update.js +69 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/index.js +18 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +19 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.d.ts +11 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.js +10 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.d.ts +11 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.js +13 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.d.ts +8 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.js +10 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.d.ts +9 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.js +11 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +9 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +11 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +32 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +5 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/Service.d.ts +9 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/Service.js +5 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.d.ts +10 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.js +12 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/index.d.ts +9 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/index.js +25 -0
- package/api/resources/preEncounter/resources/common/types/CanonicalProviderId.d.ts +11 -0
- package/api/resources/preEncounter/resources/common/types/CanonicalProviderId.js +10 -0
- package/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
- package/api/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +2 -1
- package/api/resources/preEncounter/resources/common/types/ExternalProviderType.js +1 -0
- package/api/resources/preEncounter/resources/common/types/PageToken.d.ts +11 -0
- package/api/resources/preEncounter/resources/common/types/PageToken.js +10 -0
- package/api/resources/preEncounter/resources/common/types/ResourcePage.d.ts +8 -0
- package/api/resources/preEncounter/resources/common/types/ResourcePage.js +5 -0
- package/api/resources/preEncounter/resources/common/types/SortDirection.d.ts +8 -0
- package/api/resources/preEncounter/resources/common/types/SortDirection.js +10 -0
- package/api/resources/preEncounter/resources/common/types/index.d.ts +4 -0
- package/api/resources/preEncounter/resources/common/types/index.js +4 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -6
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +136 -11
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/checkEligibility.d.ts +22 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/checkEligibility.js +47 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/getEligibility.d.ts +22 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/getEligibility.js +47 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +3 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +17 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/{GetAllCoveragesRequest.d.ts → CoverageGetMultiRequest.d.ts} +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +2 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +8 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +9 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +7 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +6 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.d.ts +11 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +13 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +12 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +0 -4
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +0 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +4 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +8 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +11 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +9 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.d.ts +11 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.d.ts +757 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.js +195 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +11 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +11 -0
- package/api/resources/preEncounter/resources/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/index.js +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -8
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +90 -17
- package/api/resources/preEncounter/resources/patients/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/getMulti.js +47 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +17 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.js +5 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +22 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.js +5 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.d.ts +7 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.js +5 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +11 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.js +10 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/client/Client.js +57 -2
- package/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
- package/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
- package/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/client/index.js +2 -1
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +41 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- 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/claims/types/Claim.d.ts +37 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +37 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +37 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/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 +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/invoices/index.d.ts +1 -0
- package/dist/api/resources/invoices/index.js +1 -0
- package/dist/api/resources/invoices/types/Invoice.d.ts +19 -0
- package/dist/api/resources/invoices/types/Invoice.js +5 -0
- package/dist/api/resources/invoices/types/InvoiceItem.d.ts +8 -0
- package/dist/api/resources/invoices/types/InvoiceItem.js +5 -0
- package/dist/api/resources/invoices/types/InvoiceStatus.d.ts +12 -0
- package/dist/api/resources/invoices/types/InvoiceStatus.js +14 -0
- package/dist/api/resources/invoices/types/index.d.ts +3 -0
- package/dist/api/resources/invoices/types/index.js +19 -0
- 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/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/client/Client.d.ts +3 -0
- package/dist/api/resources/preEncounter/client/Client.js +9 -4
- package/dist/api/resources/preEncounter/resources/appointments/client/Client.d.ts +26 -0
- package/dist/api/resources/preEncounter/resources/appointments/client/Client.js +17 -0
- package/dist/api/resources/preEncounter/resources/appointments/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/appointments/client/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/appointments/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/appointments/index.js +18 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/index.js +27 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +132 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +493 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +28 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/create.js +58 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +34 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +69 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +28 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/get.js +58 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +28 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +58 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +36 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentsSearchRequest.d.ts +38 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentsSearchRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +34 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/update.js +69 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/index.js +18 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +19 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.js +5 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.js +10 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.js +13 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.js +10 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.js +11 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +11 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +32 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +5 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Service.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Service.js +5 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.js +12 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/index.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/index.js +25 -0
- package/dist/api/resources/preEncounter/resources/common/types/CanonicalProviderId.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/common/types/CanonicalProviderId.js +10 -0
- package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/common/types/ExternalProviderType.js +1 -0
- package/dist/api/resources/preEncounter/resources/common/types/PageToken.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/common/types/PageToken.js +10 -0
- package/dist/api/resources/preEncounter/resources/common/types/ResourcePage.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/common/types/ResourcePage.js +5 -0
- package/dist/api/resources/preEncounter/resources/common/types/SortDirection.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/common/types/SortDirection.js +10 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +4 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.js +4 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +136 -11
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/checkEligibility.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/checkEligibility.js +47 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getEligibility.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getEligibility.js +47 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +3 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +17 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/{GetAllCoveragesRequest.d.ts → CoverageGetMultiRequest.d.ts} +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +6 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +13 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +12 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +0 -4
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +0 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +4 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.d.ts +757 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.js +195 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +11 -0
- package/dist/api/resources/preEncounter/resources/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/index.js +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -8
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +90 -17
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +17 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.js +5 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.js +5 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.js +10 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +57 -2
- package/dist/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
- package/dist/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.js +2 -1
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +41 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineEraData.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/invoices/index.d.ts +1 -0
- package/dist/serialization/resources/invoices/index.js +1 -0
- package/dist/serialization/resources/invoices/types/Invoice.d.ts +30 -0
- package/dist/serialization/resources/invoices/types/Invoice.js +51 -0
- package/dist/serialization/resources/invoices/types/InvoiceItem.d.ts +14 -0
- package/dist/serialization/resources/invoices/types/InvoiceItem.js +35 -0
- package/dist/serialization/resources/invoices/types/InvoiceStatus.d.ts +10 -0
- package/dist/serialization/resources/invoices/types/InvoiceStatus.js +31 -0
- package/dist/serialization/resources/invoices/types/index.d.ts +3 -0
- package/dist/serialization/resources/invoices/types/index.js +19 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/index.js +17 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/index.js +27 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +61 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +67 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +61 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +63 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.js +32 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +6 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.js +32 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +67 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/index.js +18 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +21 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.js +44 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +30 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +51 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Service.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Service.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/index.d.ts +9 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/index.js +25 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalProviderId.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalProviderId.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProvider.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/PageToken.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/PageToken.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/ResourcePage.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/ResourcePage.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/SortDirection.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/SortDirection.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +4 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.js +4 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.js +36 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.js +5 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +36 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +16 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +37 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +34 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +12 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js +33 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.d.ts +19 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.js +40 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +0 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +4 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +4 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +17 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +38 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +16 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.js +37 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.d.ts +17 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.js +38 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.js +219 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +11 -0
- package/dist/serialization/resources/preEncounter/resources/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/index.js +2 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.js +37 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +6 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +14 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineEraData.js +35 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +879 -133
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/invoices/index.d.ts +1 -0
- package/serialization/resources/invoices/index.js +1 -0
- package/serialization/resources/invoices/types/Invoice.d.ts +30 -0
- package/serialization/resources/invoices/types/Invoice.js +51 -0
- package/serialization/resources/invoices/types/InvoiceItem.d.ts +14 -0
- package/serialization/resources/invoices/types/InvoiceItem.js +35 -0
- package/serialization/resources/invoices/types/InvoiceStatus.d.ts +10 -0
- package/serialization/resources/invoices/types/InvoiceStatus.js +31 -0
- package/serialization/resources/invoices/types/index.d.ts +3 -0
- package/serialization/resources/invoices/types/index.js +19 -0
- package/serialization/resources/preEncounter/resources/appointments/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/appointments/index.js +17 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/index.js +27 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +61 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +67 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +61 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +63 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getMulti.js +32 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +6 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.js +32 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +67 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/index.js +18 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.d.ts +21 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.js +44 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentId.js +35 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentReason.js +31 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentSortField.js +31 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentType.js +31 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +31 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +30 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +51 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Service.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Service.js +35 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/UniversalServiceIdentifier.js +31 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/index.d.ts +9 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/index.js +25 -0
- package/serialization/resources/preEncounter/resources/common/types/CanonicalProviderId.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/CanonicalProviderId.js +35 -0
- package/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/common/types/ExternalProvider.js +2 -0
- package/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.js +1 -1
- package/serialization/resources/preEncounter/resources/common/types/PageToken.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/PageToken.js +35 -0
- package/serialization/resources/preEncounter/resources/common/types/ResourcePage.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/common/types/ResourcePage.js +35 -0
- package/serialization/resources/preEncounter/resources/common/types/SortDirection.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/SortDirection.js +31 -0
- package/serialization/resources/preEncounter/resources/common/types/index.d.ts +4 -0
- package/serialization/resources/preEncounter/resources/common/types/index.js +4 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.js +36 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.js +5 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +36 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.d.ts +16 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageEligibilityCheckResponse.js +37 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +34 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.d.ts +12 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheck.js +33 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.d.ts +19 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckMetadata.js +40 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +31 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +0 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +4 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +4 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.js +35 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +17 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +38 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +16 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.js +37 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.d.ts +17 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverageDetails.js +38 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceTypeCode.js +219 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +11 -0
- package/serialization/resources/preEncounter/resources/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/index.js +2 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.js +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientPage.js +37 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.js +35 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
- package/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +6 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineEraData.d.ts +14 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineEraData.js +35 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequest.d.ts +0 -12
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequest.d.ts +0 -12
- /package/api/resources/{preEncounter/resources/coverages/resources/v1/client/requests/GetAllCoveragesRequest.js → invoices/types/Invoice.js} +0 -0
- /package/api/resources/{preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequest.js → invoices/types/InvoiceItem.js} +0 -0
- /package/{dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/GetAllCoveragesRequest.js → api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentsSearchRequest.js} +0 -0
- /package/{dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequest.js → api/resources/preEncounter/resources/appointments/resources/v1/types/Appointment.js} +0 -0
|
@@ -75,7 +75,18 @@ class V1 {
|
|
|
75
75
|
* period: {},
|
|
76
76
|
* insuranceCardImageLocator: "string"
|
|
77
77
|
* },
|
|
78
|
-
* verified: true
|
|
78
|
+
* verified: true,
|
|
79
|
+
* eligibilityChecks: [{
|
|
80
|
+
* checkId: "string",
|
|
81
|
+
* serviceCode: CandidApi.preEncounter.coverages.v1.ServiceTypeCode.MedicalCare,
|
|
82
|
+
* status: CandidApi.preEncounter.coverages.v1.EligibilityCheckStatus.Created,
|
|
83
|
+
* initiatedBy: CandidApi.preEncounter.UserId("string"),
|
|
84
|
+
* initiatedAt: new Date("2024-01-15T09:30:00.000Z")
|
|
85
|
+
* }],
|
|
86
|
+
* benefits: {
|
|
87
|
+
* planCoverage: {},
|
|
88
|
+
* serviceSpecificCoverage: [{}]
|
|
89
|
+
* }
|
|
79
90
|
* })
|
|
80
91
|
*/
|
|
81
92
|
create(request, requestOptions) {
|
|
@@ -89,7 +100,7 @@ class V1 {
|
|
|
89
100
|
Authorization: yield this._getAuthorizationHeader(),
|
|
90
101
|
"X-Fern-Language": "JavaScript",
|
|
91
102
|
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.
|
|
103
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
93
104
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
94
105
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
95
106
|
},
|
|
@@ -120,7 +131,7 @@ class V1 {
|
|
|
120
131
|
});
|
|
121
132
|
}
|
|
122
133
|
/**
|
|
123
|
-
* Updates a Coverage. The path must contain the most recent version to prevent
|
|
134
|
+
* Updates a Coverage. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
|
|
124
135
|
*
|
|
125
136
|
* @param {CandidApi.preEncounter.coverages.v1.CoverageId} id
|
|
126
137
|
* @param {string} version
|
|
@@ -148,7 +159,18 @@ class V1 {
|
|
|
148
159
|
* period: {},
|
|
149
160
|
* insuranceCardImageLocator: "string"
|
|
150
161
|
* },
|
|
151
|
-
* verified: true
|
|
162
|
+
* verified: true,
|
|
163
|
+
* eligibilityChecks: [{
|
|
164
|
+
* checkId: "string",
|
|
165
|
+
* serviceCode: CandidApi.preEncounter.coverages.v1.ServiceTypeCode.MedicalCare,
|
|
166
|
+
* status: CandidApi.preEncounter.coverages.v1.EligibilityCheckStatus.Created,
|
|
167
|
+
* initiatedBy: CandidApi.preEncounter.UserId("string"),
|
|
168
|
+
* initiatedAt: new Date("2024-01-15T09:30:00.000Z")
|
|
169
|
+
* }],
|
|
170
|
+
* benefits: {
|
|
171
|
+
* planCoverage: {},
|
|
172
|
+
* serviceSpecificCoverage: [{}]
|
|
173
|
+
* }
|
|
152
174
|
* })
|
|
153
175
|
*/
|
|
154
176
|
update(id, version, request, requestOptions) {
|
|
@@ -162,7 +184,7 @@ class V1 {
|
|
|
162
184
|
Authorization: yield this._getAuthorizationHeader(),
|
|
163
185
|
"X-Fern-Language": "JavaScript",
|
|
164
186
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.
|
|
187
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
166
188
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
167
189
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
168
190
|
},
|
|
@@ -227,7 +249,7 @@ class V1 {
|
|
|
227
249
|
Authorization: yield this._getAuthorizationHeader(),
|
|
228
250
|
"X-Fern-Language": "JavaScript",
|
|
229
251
|
"X-Fern-SDK-Name": "candidhealth",
|
|
230
|
-
"X-Fern-SDK-Version": "0.
|
|
252
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
231
253
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
232
254
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
233
255
|
},
|
|
@@ -274,7 +296,7 @@ class V1 {
|
|
|
274
296
|
Authorization: yield this._getAuthorizationHeader(),
|
|
275
297
|
"X-Fern-Language": "JavaScript",
|
|
276
298
|
"X-Fern-SDK-Name": "candidhealth",
|
|
277
|
-
"X-Fern-SDK-Version": "0.
|
|
299
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
278
300
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
279
301
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
280
302
|
},
|
|
@@ -316,9 +338,9 @@ class V1 {
|
|
|
316
338
|
});
|
|
317
339
|
}
|
|
318
340
|
/**
|
|
319
|
-
*
|
|
341
|
+
* Returns a list of Coverages based on the search criteria.
|
|
320
342
|
*
|
|
321
|
-
* @param {CandidApi.preEncounter.coverages.v1.
|
|
343
|
+
* @param {CandidApi.preEncounter.coverages.v1.CoverageGetMultiRequest} request
|
|
322
344
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
323
345
|
*
|
|
324
346
|
* @example
|
|
@@ -342,7 +364,7 @@ class V1 {
|
|
|
342
364
|
Authorization: yield this._getAuthorizationHeader(),
|
|
343
365
|
"X-Fern-Language": "JavaScript",
|
|
344
366
|
"X-Fern-SDK-Name": "candidhealth",
|
|
345
|
-
"X-Fern-SDK-Version": "0.
|
|
367
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
346
368
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
347
369
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
348
370
|
},
|
|
@@ -395,7 +417,7 @@ class V1 {
|
|
|
395
417
|
Authorization: yield this._getAuthorizationHeader(),
|
|
396
418
|
"X-Fern-Language": "JavaScript",
|
|
397
419
|
"X-Fern-SDK-Name": "candidhealth",
|
|
398
|
-
"X-Fern-SDK-Version": "0.
|
|
420
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
399
421
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
400
422
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
401
423
|
},
|
|
@@ -423,6 +445,109 @@ class V1 {
|
|
|
423
445
|
};
|
|
424
446
|
});
|
|
425
447
|
}
|
|
448
|
+
/**
|
|
449
|
+
* Initiates an eligibility check. Returns the metadata of the check if successfully initiated.
|
|
450
|
+
*
|
|
451
|
+
* @param {CandidApi.preEncounter.coverages.v1.CoverageId} id
|
|
452
|
+
* @param {CandidApi.preEncounter.coverages.v1.CheckEligibilityRequest} request
|
|
453
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
454
|
+
*
|
|
455
|
+
* @example
|
|
456
|
+
* await client.preEncounter.coverages.v1.checkEligibility(CandidApi.preEncounter.coverages.v1.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
457
|
+
* serviceCode: CandidApi.preEncounter.coverages.v1.ServiceTypeCode.MedicalCare,
|
|
458
|
+
* dateOfService: "2023-01-15",
|
|
459
|
+
* npi: "string"
|
|
460
|
+
* })
|
|
461
|
+
*/
|
|
462
|
+
checkEligibility(id, request, requestOptions) {
|
|
463
|
+
var _a;
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
const _response = yield core.fetcher({
|
|
466
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
467
|
+
.preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.coverages.v1.CoverageId.jsonOrThrow(id))}/eligibility`),
|
|
468
|
+
method: "POST",
|
|
469
|
+
headers: {
|
|
470
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
471
|
+
"X-Fern-Language": "JavaScript",
|
|
472
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
473
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
474
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
475
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
476
|
+
},
|
|
477
|
+
contentType: "application/json",
|
|
478
|
+
requestType: "json",
|
|
479
|
+
body: serializers.preEncounter.coverages.v1.CheckEligibilityRequest.jsonOrThrow(request, {
|
|
480
|
+
unrecognizedObjectKeys: "strip",
|
|
481
|
+
}),
|
|
482
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
483
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
484
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
485
|
+
});
|
|
486
|
+
if (_response.ok) {
|
|
487
|
+
return {
|
|
488
|
+
ok: true,
|
|
489
|
+
body: serializers.preEncounter.coverages.v1.EligibilityCheckMetadata.parseOrThrow(_response.body, {
|
|
490
|
+
unrecognizedObjectKeys: "passthrough",
|
|
491
|
+
allowUnrecognizedUnionMembers: true,
|
|
492
|
+
allowUnrecognizedEnumValues: true,
|
|
493
|
+
breadcrumbsPrefix: ["response"],
|
|
494
|
+
}),
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
return {
|
|
498
|
+
ok: false,
|
|
499
|
+
error: CandidApi.preEncounter.coverages.v1.checkEligibility.Error._unknown(_response.error),
|
|
500
|
+
};
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Gets the eligibility of a patient for a specific coverage if successful.
|
|
505
|
+
*
|
|
506
|
+
* @param {CandidApi.preEncounter.coverages.v1.CoverageId} id
|
|
507
|
+
* @param {string} checkId
|
|
508
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
509
|
+
*
|
|
510
|
+
* @example
|
|
511
|
+
* await client.preEncounter.coverages.v1.getEligibility(CandidApi.preEncounter.coverages.v1.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), "string")
|
|
512
|
+
*/
|
|
513
|
+
getEligibility(id, checkId, requestOptions) {
|
|
514
|
+
var _a;
|
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
+
const _response = yield core.fetcher({
|
|
517
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
518
|
+
.preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.coverages.v1.CoverageId.jsonOrThrow(id))}/eligibility/${encodeURIComponent(checkId)}`),
|
|
519
|
+
method: "GET",
|
|
520
|
+
headers: {
|
|
521
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
522
|
+
"X-Fern-Language": "JavaScript",
|
|
523
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
524
|
+
"X-Fern-SDK-Version": "0.28.0",
|
|
525
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
526
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
527
|
+
},
|
|
528
|
+
contentType: "application/json",
|
|
529
|
+
requestType: "json",
|
|
530
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
531
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
532
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
533
|
+
});
|
|
534
|
+
if (_response.ok) {
|
|
535
|
+
return {
|
|
536
|
+
ok: true,
|
|
537
|
+
body: serializers.preEncounter.coverages.v1.CoverageEligibilityCheckResponse.parseOrThrow(_response.body, {
|
|
538
|
+
unrecognizedObjectKeys: "passthrough",
|
|
539
|
+
allowUnrecognizedUnionMembers: true,
|
|
540
|
+
allowUnrecognizedEnumValues: true,
|
|
541
|
+
breadcrumbsPrefix: ["response"],
|
|
542
|
+
}),
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
return {
|
|
546
|
+
ok: false,
|
|
547
|
+
error: CandidApi.preEncounter.coverages.v1.getEligibility.Error._unknown(_response.error),
|
|
548
|
+
};
|
|
549
|
+
});
|
|
550
|
+
}
|
|
426
551
|
_getAuthorizationHeader() {
|
|
427
552
|
return __awaiter(this, void 0, void 0, function* () {
|
|
428
553
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -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 declare type Error = CandidApi.preEncounter.coverages.v1.checkEligibility.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.coverages.v1.checkEligibility.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.coverages.v1.checkEligibility.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.checkEligibility.Error, visitor: CandidApi.preEncounter.coverages.v1.checkEligibility.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/checkEligibility.js
ADDED
|
@@ -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("../../../../../../../index"));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.preEncounter.coverages.v1.checkEligibility.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
|
+
};
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getEligibility.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 declare type Error = CandidApi.preEncounter.coverages.v1.getEligibility.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.coverages.v1.getEligibility.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.coverages.v1.getEligibility.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.getEligibility.Error, visitor: CandidApi.preEncounter.coverages.v1.getEligibility.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getEligibility.js
ADDED
|
@@ -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("../../../../../../../index"));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.preEncounter.coverages.v1.getEligibility.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
|
+
};
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.scan = exports.getMulti = exports.getHistory = exports.get = exports.update = exports.create = void 0;
|
|
29
|
+
exports.getEligibility = exports.checkEligibility = exports.scan = exports.getMulti = exports.getHistory = exports.get = exports.update = exports.create = void 0;
|
|
30
30
|
__exportStar(require("./requests"), exports);
|
|
31
31
|
exports.create = __importStar(require("./create"));
|
|
32
32
|
exports.update = __importStar(require("./update"));
|
|
@@ -34,3 +34,5 @@ exports.get = __importStar(require("./get"));
|
|
|
34
34
|
exports.getHistory = __importStar(require("./getHistory"));
|
|
35
35
|
exports.getMulti = __importStar(require("./getMulti"));
|
|
36
36
|
exports.scan = __importStar(require("./scan"));
|
|
37
|
+
exports.checkEligibility = __importStar(require("./checkEligibility"));
|
|
38
|
+
exports.getEligibility = __importStar(require("./getEligibility"));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* serviceCode: CandidApi.preEncounter.coverages.v1.ServiceTypeCode.MedicalCare,
|
|
9
|
+
* dateOfService: "2023-01-15",
|
|
10
|
+
* npi: "string"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface CheckEligibilityRequest {
|
|
14
|
+
serviceCode: CandidApi.preEncounter.coverages.v1.ServiceTypeCode;
|
|
15
|
+
dateOfService: string;
|
|
16
|
+
npi: string;
|
|
17
|
+
}
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type CoverageGetMultiRequest } from "./CoverageGetMultiRequest";
|
|
2
2
|
export { type CoverageScanRequest } from "./CoverageScanRequest";
|
|
3
|
+
export { type CheckEligibilityRequest } from "./CheckEligibilityRequest";
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
export interface CoverageBenefits {
|
|
6
|
+
planCoverage?: CandidApi.preEncounter.coverages.v1.PlanCoverage;
|
|
7
|
+
serviceSpecificCoverage?: CandidApi.preEncounter.coverages.v1.ServiceCoverage[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
export interface CoverageEligibilityCheckResponse {
|
|
6
|
+
metadata: CandidApi.preEncounter.coverages.v1.EligibilityCheckMetadata;
|
|
7
|
+
error?: string;
|
|
8
|
+
check?: CandidApi.preEncounter.coverages.v1.EligibilityCheck;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
export interface EligibilityCheckMetadata {
|
|
6
|
+
checkId: string;
|
|
7
|
+
serviceCode: CandidApi.preEncounter.coverages.v1.ServiceTypeCode;
|
|
8
|
+
status: CandidApi.preEncounter.coverages.v1.EligibilityCheckStatus;
|
|
9
|
+
initiatedBy: CandidApi.preEncounter.UserId;
|
|
10
|
+
initiatedAt: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* enum to represent the statuses of eligibility checks
|
|
6
|
+
*/
|
|
7
|
+
export declare type EligibilityCheckStatus = "CREATED" | "COMPLETED" | "FAILED" | "PENDING";
|
|
8
|
+
export declare const EligibilityCheckStatus: {
|
|
9
|
+
readonly Created: "CREATED";
|
|
10
|
+
readonly Completed: "COMPLETED";
|
|
11
|
+
readonly Failed: "FAILED";
|
|
12
|
+
readonly Pending: "PENDING";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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.EligibilityCheckStatus = void 0;
|
|
7
|
+
exports.EligibilityCheckStatus = {
|
|
8
|
+
Created: "CREATED",
|
|
9
|
+
Completed: "COMPLETED",
|
|
10
|
+
Failed: "FAILED",
|
|
11
|
+
Pending: "PENDING",
|
|
12
|
+
};
|
|
@@ -179,9 +179,6 @@ export declare type InsuranceTypeCode =
|
|
|
179
179
|
/**
|
|
180
180
|
* Other */
|
|
181
181
|
| "OT"
|
|
182
|
-
/**
|
|
183
|
-
* Property Insurance - Personal */
|
|
184
|
-
| "PE"
|
|
185
182
|
/**
|
|
186
183
|
* Personal */
|
|
187
184
|
| "PL"
|
|
@@ -274,7 +271,6 @@ export declare const InsuranceTypeCode: {
|
|
|
274
271
|
readonly Cmv: "MV";
|
|
275
272
|
readonly Coa: "OA";
|
|
276
273
|
readonly Cot: "OT";
|
|
277
|
-
readonly Cpe: "PE";
|
|
278
274
|
readonly Cpl: "PL";
|
|
279
275
|
readonly Cpp: "PP";
|
|
280
276
|
readonly Cpr: "PR";
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts
CHANGED
|
@@ -14,4 +14,8 @@ export interface MutableCoverage {
|
|
|
14
14
|
insurancePlan: CandidApi.preEncounter.coverages.v1.InsurancePlan;
|
|
15
15
|
/** A boolean indicating if the coverage has been verified by a user. */
|
|
16
16
|
verified: boolean;
|
|
17
|
+
/** A list of eligibility check metadata that have been initiated on this coverage. */
|
|
18
|
+
eligibilityChecks?: CandidApi.preEncounter.coverages.v1.EligibilityCheckMetadata[];
|
|
19
|
+
/** The eligibility of the patient for the coverage, manually verified by users. */
|
|
20
|
+
benefits?: CandidApi.preEncounter.coverages.v1.CoverageBenefits;
|
|
17
21
|
}
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
export interface PlanCoverage {
|
|
6
|
+
inNetwork?: CandidApi.preEncounter.coverages.v1.PlanCoverageDetails;
|
|
7
|
+
outOfNetwork?: CandidApi.preEncounter.coverages.v1.PlanCoverageDetails;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
export interface PlanCoverageDetails {
|
|
6
|
+
deductible?: CandidApi.preEncounter.coverages.v1.CoverageValue;
|
|
7
|
+
deductibleRemaining?: CandidApi.preEncounter.coverages.v1.CoverageValue;
|
|
8
|
+
oopMax?: CandidApi.preEncounter.coverages.v1.CoverageValue;
|
|
9
|
+
oopMaxRemaining?: CandidApi.preEncounter.coverages.v1.CoverageValue;
|
|
10
|
+
additionalNotes?: string;
|
|
11
|
+
}
|
package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../index";
|
|
5
|
+
export interface ServiceCoverage {
|
|
6
|
+
serviceCode: CandidApi.preEncounter.coverages.v1.ServiceTypeCode;
|
|
7
|
+
inNetwork?: CandidApi.preEncounter.coverages.v1.ServiceCoverageDetails;
|
|
8
|
+
outOfNetwork?: CandidApi.preEncounter.coverages.v1.ServiceCoverageDetails;
|
|
9
|
+
}
|