candidhealth 1.3.0 → 1.5.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/default/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 +33 -0
- package/api/resources/chargeCapture/resources/v1/client/Client.js +102 -6
- package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
- package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
- package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
- package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
- package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
- package/{dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js} +0 -6
- package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
- package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
- package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
- package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +3 -3
- package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
- package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +2 -2
- package/api/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
- package/api/resources/claimSubmission/resources/v1/types/index.js +0 -1
- package/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
- package/api/resources/commons/types/NextResponsibleParty.js +14 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
- package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
- 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 +5 -3
- package/api/resources/diagnoses/client/delete.d.ts +7 -1
- package/api/resources/diagnoses/client/delete.js +11 -0
- package/api/resources/diagnoses/client/update.d.ts +7 -1
- package/api/resources/diagnoses/client/update.js +11 -0
- package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
- package/api/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js} +0 -6
- package/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
- package/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +5 -0
- package/api/resources/diagnoses/types/index.d.ts +2 -0
- package/api/resources/diagnoses/types/index.js +2 -0
- 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/encounters/resources/v4/types/Encounter.d.ts +44 -2
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
- package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
- package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
- package/api/resources/exports/resources/v3/client/Client.js +8 -4
- package/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
- package/api/resources/exports/resources/v3/client/getExports.js +22 -0
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
- package/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
- package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
- package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
- package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
- 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/individual/types/SubscriberCreate.d.ts +1 -0
- package/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
- 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.d.ts +15 -0
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
- package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
- package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
- package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
- package/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
- package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
- package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
- package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
- package/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
- package/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
- package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
- package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
- 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/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
- package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
- package/{dist/api/resources/preEncounter/resources/lists/resources/v1 → api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +4 -4
- package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/common/types/index.js +1 -0
- 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/MutableCoverage.d.ts +1 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +39 -4
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +155 -8
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.js +2 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +12 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -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/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
- package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
- package/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
- package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
- 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/ServiceLine.d.ts +3 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +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/writeOffs/resources/v1/client/Client.js +6 -6
- package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
- package/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
- package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
- package/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
- package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
- package/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
- package/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
- package/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
- package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
- package/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
- package/api/resources/x12/resources/v1/types/index.d.ts +7 -0
- package/api/resources/x12/resources/v1/types/index.js +7 -0
- package/dist/api/resources/auth/resources/default/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 +33 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +102 -6
- package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +14 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +3 -3
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +3 -3
- package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +2 -2
- package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +2 -2
- package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
- package/dist/api/resources/claimSubmission/resources/v1/types/index.js +0 -1
- package/dist/api/resources/commons/types/NextResponsibleParty.d.ts +12 -0
- package/dist/api/resources/commons/types/NextResponsibleParty.js +14 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
- package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
- 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 +5 -3
- package/dist/api/resources/diagnoses/client/delete.d.ts +7 -1
- package/dist/api/resources/diagnoses/client/delete.js +11 -0
- package/dist/api/resources/diagnoses/client/update.d.ts +7 -1
- package/dist/api/resources/diagnoses/client/update.js +11 -0
- package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
- package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
- package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +9 -0
- package/dist/api/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +5 -0
- package/dist/api/resources/diagnoses/types/index.d.ts +2 -0
- package/dist/api/resources/diagnoses/types/index.js +2 -0
- 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/encounters/resources/v4/types/Encounter.d.ts +44 -2
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -2
- package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +21 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +10 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.d.ts +5 -3
- package/dist/api/resources/exports/resources/v3/client/Client.js +8 -4
- package/dist/api/resources/exports/resources/v3/client/getExports.d.ts +13 -1
- package/dist/api/resources/exports/resources/v3/client/getExports.js +22 -0
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
- package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
- 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/individual/types/SubscriberCreate.d.ts +1 -0
- package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
- 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.d.ts +15 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
- 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/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
- package/{api/resources/preEncounter/resources/lists/resources/v1 → dist/api/resources/preEncounter/resources/common}/types/FilterQueryString.d.ts +4 -4
- package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
- 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/MutableCoverage.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +39 -4
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +155 -8
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/createRecommendation.js +57 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +4 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +8 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/payerSearch.js +57 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +57 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/BatchEligibilityPollRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/EligibilityRecommendationRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.d.ts +13 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/PayerSearchRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +13 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +18 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +13 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +12 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +9 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +15 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +5 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -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/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
- 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.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
- 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/ServiceLine.d.ts +3 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +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/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +166 -0
- package/dist/api/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +48 -0
- package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +50 -0
- package/dist/api/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +19 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +30 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +14 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +14 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +114 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +35 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +42 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfCareCode.js +17 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +34 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfFacilityCode.js +15 -0
- package/dist/api/resources/x12/resources/v1/types/index.d.ts +7 -0
- package/dist/api/resources/x12/resources/v1/types/index.js +7 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +2 -2
- package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
- package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +0 -1
- package/dist/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
- package/dist/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/diagnoses/client/delete.d.ts +6 -1
- package/dist/serialization/resources/diagnoses/client/delete.js +6 -0
- package/dist/serialization/resources/diagnoses/client/update.d.ts +6 -1
- package/dist/serialization/resources/diagnoses/client/update.js +6 -0
- package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
- package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
- package/dist/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
- package/dist/serialization/resources/diagnoses/types/index.d.ts +2 -0
- package/dist/serialization/resources/diagnoses/types/index.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +20 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +20 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
- package/dist/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
- package/dist/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → feeSchedules/resources/v3/client/hardDeleteRates.js} +2 -2
- package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -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 +2 -1
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +46 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
- package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
- package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
- package/dist/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
- package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
- package/dist/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.js +41 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.js +7 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +442 -10
- package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
- package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
- package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
- package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
- package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
- package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.js +2 -2
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +2 -2
- package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +0 -1
- package/serialization/resources/claimSubmission/resources/v1/types/index.js +0 -1
- package/serialization/resources/commons/types/NextResponsibleParty.d.ts +10 -0
- package/serialization/resources/commons/types/NextResponsibleParty.js +41 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/diagnoses/client/delete.d.ts +6 -1
- package/serialization/resources/diagnoses/client/delete.js +6 -0
- package/serialization/resources/diagnoses/client/update.d.ts +6 -1
- package/serialization/resources/diagnoses/client/update.js +6 -0
- package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
- package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
- package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.d.ts +16 -0
- package/serialization/resources/diagnoses/types/ServiceLinesMustHaveAtLeastOneDiagnosisError.js +47 -0
- package/serialization/resources/diagnoses/types/index.d.ts +2 -0
- package/serialization/resources/diagnoses/types/index.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +20 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +20 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +10 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.js +41 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/serialization/resources/exports/resources/v3/client/getExports.d.ts +9 -1
- package/serialization/resources/exports/resources/v3/client/getExports.js +10 -0
- package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
- package/serialization/resources/{claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js → feeSchedules/resources/v3/client/hardDeleteRates.js} +2 -2
- package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
- package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
- package/serialization/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +3 -3
- package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/common/types/index.js +1 -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 +2 -1
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/recommendation.js +42 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.d.ts +12 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/CoordinationOfBenefitsRecommendation.js +43 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.d.ts +17 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendation.js +50 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPatientInfo.js +51 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.d.ts +18 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/EligibilityRecommendationPayload.js +51 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendation.js +44 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +46 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PayerSearchResponse.js +48 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.d.ts +16 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/PostEligibilityRecommendationRequest.js +47 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.d.ts +21 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayer.js +52 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.d.ts +14 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/StediPayerItem.js +45 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/index.js +10 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/PatientListItem.js +2 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +0 -1
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +0 -1
- package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/tags/resources/v1/types/MutableTag.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -0
- package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.d.ts +10 -0
- package/serialization/resources/x12/resources/v1/types/PatientDischargeStatusCode.js +82 -0
- package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.d.ts +10 -0
- package/serialization/resources/x12/resources/v1/types/PointOfOriginForAdmissionOrVisitCode.js +41 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.d.ts +10 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfAdmissionOrVisitCode.js +41 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +18 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +49 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.d.ts +10 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillFrequencyCode.js +69 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.d.ts +10 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfCareCode.js +41 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.d.ts +10 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfFacilityCode.js +41 -0
- package/serialization/resources/x12/resources/v1/types/index.d.ts +7 -0
- package/serialization/resources/x12/resources/v1/types/index.js +7 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -9
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +0 -10
- /package/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
- /package/dist/api/resources/preEncounter/resources/{lists/resources/v1 → common}/types/FilterQueryString.js +0 -0
|
@@ -106,7 +106,7 @@ class Default {
|
|
|
106
106
|
const _response = yield core.fetcher({
|
|
107
107
|
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).candidApi, "/api/auth/v2/token"),
|
|
108
108
|
method: "POST",
|
|
109
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
109
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
requestType: "json",
|
|
112
112
|
body: serializers.auth.default_.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -73,7 +73,7 @@ class V2 {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
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).candidApi, "/api/billing_notes/v2"),
|
|
75
75
|
method: "POST",
|
|
76
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
76
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -113,7 +113,7 @@ class V2 {
|
|
|
113
113
|
const _response = yield core.fetcher({
|
|
114
114
|
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).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
|
|
115
115
|
method: "DELETE",
|
|
116
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
116
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -164,7 +164,7 @@ class V2 {
|
|
|
164
164
|
const _response = yield core.fetcher({
|
|
165
165
|
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).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
|
|
166
166
|
method: "PATCH",
|
|
167
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
167
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
|
|
@@ -38,6 +38,39 @@ export declare class V1 {
|
|
|
38
38
|
* })
|
|
39
39
|
*/
|
|
40
40
|
create(request: CandidApi.chargeCapture.v1.CreateChargeCaptureRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapture, CandidApi.chargeCapture.v1.create.Error>>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
|
|
43
|
+
* patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
|
|
44
|
+
* of the pre-encounter service should use the standard create endpoint.
|
|
45
|
+
*
|
|
46
|
+
* At encounter creation time, information from the provided patient and appointment objects will be populated
|
|
47
|
+
* where applicable. In particular, the following fields are populated from the patient and appointment objects:
|
|
48
|
+
* - Patient
|
|
49
|
+
* - Referring Provider
|
|
50
|
+
* - Subscriber Primary
|
|
51
|
+
* - Subscriber Secondary
|
|
52
|
+
* - Referral Number
|
|
53
|
+
* - Responsible Party
|
|
54
|
+
* - Guarantor
|
|
55
|
+
*
|
|
56
|
+
* Note that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.
|
|
57
|
+
*
|
|
58
|
+
* Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
|
|
59
|
+
* encounter has not already been submitted or adjudicated.
|
|
60
|
+
*
|
|
61
|
+
* @param {CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest} request
|
|
62
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.chargeCapture.v1.createFromPreEncounterPatient({
|
|
66
|
+
* data: {},
|
|
67
|
+
* chargeExternalId: "charge_external_id",
|
|
68
|
+
* preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
69
|
+
* preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
70
|
+
* status: "planned"
|
|
71
|
+
* })
|
|
72
|
+
*/
|
|
73
|
+
createFromPreEncounterPatient(request: CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapture, CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error>>;
|
|
41
74
|
/**
|
|
42
75
|
* @param {CandidApi.ChargeCaptureId} chargeCaptureId
|
|
43
76
|
* @param {CandidApi.chargeCapture.v1.ChargeCaptureUpdate} request
|
|
@@ -76,7 +76,7 @@ class V1 {
|
|
|
76
76
|
const _response = yield core.fetcher({
|
|
77
77
|
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).candidApi, "/api/charge_captures/v1"),
|
|
78
78
|
method: "POST",
|
|
79
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
79
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
|
|
@@ -122,6 +122,91 @@ class V1 {
|
|
|
122
122
|
};
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
|
|
127
|
+
* patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
|
|
128
|
+
* of the pre-encounter service should use the standard create endpoint.
|
|
129
|
+
*
|
|
130
|
+
* At encounter creation time, information from the provided patient and appointment objects will be populated
|
|
131
|
+
* where applicable. In particular, the following fields are populated from the patient and appointment objects:
|
|
132
|
+
* - Patient
|
|
133
|
+
* - Referring Provider
|
|
134
|
+
* - Subscriber Primary
|
|
135
|
+
* - Subscriber Secondary
|
|
136
|
+
* - Referral Number
|
|
137
|
+
* - Responsible Party
|
|
138
|
+
* - Guarantor
|
|
139
|
+
*
|
|
140
|
+
* Note that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.
|
|
141
|
+
*
|
|
142
|
+
* Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
|
|
143
|
+
* encounter has not already been submitted or adjudicated.
|
|
144
|
+
*
|
|
145
|
+
* @param {CandidApi.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest} request
|
|
146
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* await client.chargeCapture.v1.createFromPreEncounterPatient({
|
|
150
|
+
* data: {},
|
|
151
|
+
* chargeExternalId: "charge_external_id",
|
|
152
|
+
* preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
153
|
+
* preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
154
|
+
* status: "planned"
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
createFromPreEncounterPatient(request, requestOptions) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
const _response = yield core.fetcher({
|
|
161
|
+
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).candidApi, "/api/charge_captures/v1/create-from-pre-encounter"),
|
|
162
|
+
method: "POST",
|
|
163
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
164
|
+
contentType: "application/json",
|
|
165
|
+
requestType: "json",
|
|
166
|
+
body: serializers.chargeCapture.v1.CreateChargeCaptureFromPreEncounterRequest.jsonOrThrow(request, {
|
|
167
|
+
unrecognizedObjectKeys: "strip",
|
|
168
|
+
}),
|
|
169
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
170
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
171
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
172
|
+
});
|
|
173
|
+
if (_response.ok) {
|
|
174
|
+
return {
|
|
175
|
+
ok: true,
|
|
176
|
+
body: serializers.chargeCapture.v1.ChargeCapture.parseOrThrow(_response.body, {
|
|
177
|
+
unrecognizedObjectKeys: "passthrough",
|
|
178
|
+
allowUnrecognizedUnionMembers: true,
|
|
179
|
+
allowUnrecognizedEnumValues: true,
|
|
180
|
+
breadcrumbsPrefix: ["response"],
|
|
181
|
+
}),
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
if (_response.error.reason === "status-code") {
|
|
185
|
+
switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
|
|
186
|
+
case "EntityNotFoundError":
|
|
187
|
+
case "UnauthorizedError":
|
|
188
|
+
case "HttpRequestValidationsError":
|
|
189
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
190
|
+
case "UnprocessableEntityError":
|
|
191
|
+
case "ChargeExternalIdConflictError":
|
|
192
|
+
return {
|
|
193
|
+
ok: false,
|
|
194
|
+
error: serializers.chargeCapture.v1.createFromPreEncounterPatient.Error.parseOrThrow(_response.error
|
|
195
|
+
.body, {
|
|
196
|
+
unrecognizedObjectKeys: "passthrough",
|
|
197
|
+
allowUnrecognizedUnionMembers: true,
|
|
198
|
+
allowUnrecognizedEnumValues: true,
|
|
199
|
+
breadcrumbsPrefix: ["response"],
|
|
200
|
+
}),
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return {
|
|
205
|
+
ok: false,
|
|
206
|
+
error: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._unknown(_response.error),
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
}
|
|
125
210
|
/**
|
|
126
211
|
* @param {CandidApi.ChargeCaptureId} chargeCaptureId
|
|
127
212
|
* @param {CandidApi.chargeCapture.v1.ChargeCaptureUpdate} request
|
|
@@ -136,7 +221,7 @@ class V1 {
|
|
|
136
221
|
const _response = yield core.fetcher({
|
|
137
222
|
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).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
|
|
138
223
|
method: "PATCH",
|
|
139
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
224
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
140
225
|
contentType: "application/json",
|
|
141
226
|
requestType: "json",
|
|
142
227
|
body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
|
|
@@ -194,7 +279,7 @@ class V1 {
|
|
|
194
279
|
const _response = yield core.fetcher({
|
|
195
280
|
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).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
|
|
196
281
|
method: "GET",
|
|
197
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
282
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
198
283
|
contentType: "application/json",
|
|
199
284
|
requestType: "json",
|
|
200
285
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -228,7 +313,7 @@ class V1 {
|
|
|
228
313
|
getAll() {
|
|
229
314
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
230
315
|
var _a, _b;
|
|
231
|
-
const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, claimCreationIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, patientExternalIdRankedSort, statusRankedSort, chargeExternalIdRankedSort, dateOfServiceMinRankedSort, dateOfServiceMaxRankedSort, claimIdsRankedSort, claimCreationIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
|
|
316
|
+
const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfServiceMin, dateOfServiceMax, claimIds, claimCreationIds, billingProviderNpis, serviceFacilityName, primaryPayerIds, renderingProviderNpis, renderingProviderNames, supervisingProviderNpis, supervisingProviderNames, excludeChargesLinkedToClaims, patientExternalIdRankedSort, statusRankedSort, chargeExternalIdRankedSort, dateOfServiceMinRankedSort, dateOfServiceMaxRankedSort, searchTerm, billableStatus, responsibleParty, claimIdsRankedSort, claimCreationIdsRankedSort, billingProviderNpisRankedSort, serviceFacilityNameRankedSort, primaryPayerIdsRankedSort, renderingProviderNpisRankedSort, renderingProviderNamesRankedSort, supervisingProviderNpisRankedSort, supervisingProviderNamesRankedSort, } = request;
|
|
232
317
|
const _queryParams = {};
|
|
233
318
|
if (limit != null) {
|
|
234
319
|
_queryParams["limit"] = limit.toString();
|
|
@@ -348,6 +433,17 @@ class V1 {
|
|
|
348
433
|
if (dateOfServiceMaxRankedSort != null) {
|
|
349
434
|
_queryParams["date_of_service_max_ranked_sort"] = dateOfServiceMaxRankedSort;
|
|
350
435
|
}
|
|
436
|
+
if (searchTerm != null) {
|
|
437
|
+
_queryParams["search_term"] = searchTerm;
|
|
438
|
+
}
|
|
439
|
+
if (billableStatus != null) {
|
|
440
|
+
_queryParams["billable_status"] = serializers.encounters.v4.BillableStatusType.jsonOrThrow(billableStatus, {
|
|
441
|
+
unrecognizedObjectKeys: "strip",
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
if (responsibleParty != null) {
|
|
445
|
+
_queryParams["responsible_party"] = serializers.encounters.v4.ResponsiblePartyType.jsonOrThrow(responsibleParty, { unrecognizedObjectKeys: "strip" });
|
|
446
|
+
}
|
|
351
447
|
if (claimIdsRankedSort != null) {
|
|
352
448
|
if (Array.isArray(claimIdsRankedSort)) {
|
|
353
449
|
_queryParams["claim_ids_ranked_sort"] = claimIdsRankedSort.map((item) => serializers.EncounterId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
@@ -418,7 +514,7 @@ class V1 {
|
|
|
418
514
|
const _response = yield core.fetcher({
|
|
419
515
|
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).candidApi, "/api/charge_captures/v1"),
|
|
420
516
|
method: "GET",
|
|
421
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
517
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
422
518
|
contentType: "application/json",
|
|
423
519
|
queryParameters: _queryParams,
|
|
424
520
|
requestType: "json",
|
|
@@ -459,7 +555,7 @@ class V1 {
|
|
|
459
555
|
const _response = yield core.fetcher({
|
|
460
556
|
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).candidApi, "/api/charge_captures/v1/changes/"),
|
|
461
557
|
method: "PATCH",
|
|
462
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
558
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
463
559
|
contentType: "application/json",
|
|
464
560
|
requestType: "json",
|
|
465
561
|
body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
|
|
@@ -0,0 +1,58 @@
|
|
|
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.chargeCapture.v1.createFromPreEncounterPatient.Error.EntityNotFoundError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnauthorizedError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.HttpRequestValidationsError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnprocessableEntityError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.ChargeExternalIdConflictError | CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnauthorizedError extends _Utils {
|
|
13
|
+
errorName: "UnauthorizedError";
|
|
14
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
17
|
+
errorName: "HttpRequestValidationsError";
|
|
18
|
+
content: CandidApi.RequestValidationError[];
|
|
19
|
+
}
|
|
20
|
+
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
21
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
22
|
+
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
23
|
+
}
|
|
24
|
+
interface UnprocessableEntityError extends _Utils {
|
|
25
|
+
errorName: "UnprocessableEntityError";
|
|
26
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
27
|
+
}
|
|
28
|
+
interface ChargeExternalIdConflictError extends _Utils {
|
|
29
|
+
errorName: "ChargeExternalIdConflictError";
|
|
30
|
+
content: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage;
|
|
31
|
+
}
|
|
32
|
+
interface _Unknown extends _Utils {
|
|
33
|
+
errorName: void;
|
|
34
|
+
content: core.Fetcher.Error;
|
|
35
|
+
}
|
|
36
|
+
interface _Utils {
|
|
37
|
+
_visit: <_Result>(visitor: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Visitor<_Result>) => _Result;
|
|
38
|
+
}
|
|
39
|
+
interface _Visitor<_Result> {
|
|
40
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
41
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
42
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
43
|
+
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
44
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
45
|
+
chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => _Result;
|
|
46
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export declare const Error: {
|
|
50
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.EntityNotFoundError;
|
|
51
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnauthorizedError;
|
|
52
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.HttpRequestValidationsError;
|
|
53
|
+
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.SchemaInstanceValidationHttpFailure;
|
|
54
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.UnprocessableEntityError;
|
|
55
|
+
readonly chargeExternalIdConflictError: (value: CandidApi.chargeCapture.v1.ChargeExternalIdConflictErrorMessage) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error.ChargeExternalIdConflictError;
|
|
56
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Unknown;
|
|
57
|
+
readonly _visit: <_Result>(value: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error, visitor: CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._Visitor<_Result>) => _Result;
|
|
58
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
entityNotFoundError: (value) => {
|
|
43
|
+
return {
|
|
44
|
+
content: value,
|
|
45
|
+
errorName: "EntityNotFoundError",
|
|
46
|
+
_visit: function (visitor) {
|
|
47
|
+
return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
unauthorizedError: (value) => {
|
|
52
|
+
return {
|
|
53
|
+
content: value,
|
|
54
|
+
errorName: "UnauthorizedError",
|
|
55
|
+
_visit: function (visitor) {
|
|
56
|
+
return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
httpRequestValidationsError: (value) => {
|
|
61
|
+
return {
|
|
62
|
+
content: value,
|
|
63
|
+
errorName: "HttpRequestValidationsError",
|
|
64
|
+
_visit: function (visitor) {
|
|
65
|
+
return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
schemaInstanceValidationHttpFailure: (value) => {
|
|
70
|
+
return {
|
|
71
|
+
content: value,
|
|
72
|
+
errorName: "SchemaInstanceValidationHttpFailure",
|
|
73
|
+
_visit: function (visitor) {
|
|
74
|
+
return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
unprocessableEntityError: (value) => {
|
|
79
|
+
return {
|
|
80
|
+
content: value,
|
|
81
|
+
errorName: "UnprocessableEntityError",
|
|
82
|
+
_visit: function (visitor) {
|
|
83
|
+
return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
},
|
|
87
|
+
chargeExternalIdConflictError: (value) => {
|
|
88
|
+
return {
|
|
89
|
+
content: value,
|
|
90
|
+
errorName: "ChargeExternalIdConflictError",
|
|
91
|
+
_visit: function (visitor) {
|
|
92
|
+
return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
_unknown: (fetcherError) => {
|
|
97
|
+
return {
|
|
98
|
+
errorName: undefined,
|
|
99
|
+
content: fetcherError,
|
|
100
|
+
_visit: function (visitor) {
|
|
101
|
+
return CandidApi.chargeCapture.v1.createFromPreEncounterPatient.Error._visit(this, visitor);
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
_visit: (value, visitor) => {
|
|
106
|
+
switch (value.errorName) {
|
|
107
|
+
case "EntityNotFoundError":
|
|
108
|
+
return visitor.entityNotFoundError(value.content);
|
|
109
|
+
case "UnauthorizedError":
|
|
110
|
+
return visitor.unauthorizedError(value.content);
|
|
111
|
+
case "HttpRequestValidationsError":
|
|
112
|
+
return visitor.httpRequestValidationsError(value.content);
|
|
113
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
114
|
+
return visitor.schemaInstanceValidationHttpFailure(value.content);
|
|
115
|
+
case "UnprocessableEntityError":
|
|
116
|
+
return visitor.unprocessableEntityError(value.content);
|
|
117
|
+
case "ChargeExternalIdConflictError":
|
|
118
|
+
return visitor.chargeExternalIdConflictError(value.content);
|
|
119
|
+
default:
|
|
120
|
+
return visitor._other(value);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
};
|
|
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.updatePostBilledChanges = exports.getAll = exports.get = exports.update = exports.create = void 0;
|
|
39
|
+
exports.updatePostBilledChanges = exports.getAll = exports.get = exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
|
|
40
40
|
__exportStar(require("./requests"), exports);
|
|
41
41
|
exports.create = __importStar(require("./create"));
|
|
42
|
+
exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
|
|
42
43
|
exports.update = __importStar(require("./update"));
|
|
43
44
|
exports.get = __importStar(require("./get"));
|
|
44
45
|
exports.getAll = __importStar(require("./getAll"));
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* data: {},
|
|
9
|
+
* chargeExternalId: "charge_external_id",
|
|
10
|
+
* preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
11
|
+
* preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
12
|
+
* status: "planned"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateChargeCaptureFromPreEncounterRequest {
|
|
16
|
+
/** Charge Capture data contains all the fields needed to create an encounter, but listed as optional. Candid will use this data when attempting to bundle multiple Charge Captures into a single encounter. */
|
|
17
|
+
data: CandidApi.chargeCapture.v1.ChargeCaptureData;
|
|
18
|
+
/** A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI. */
|
|
19
|
+
chargeExternalId: string;
|
|
20
|
+
preEncounterPatientId: CandidApi.PreEncounterPatientId;
|
|
21
|
+
preEncounterAppointmentIds: CandidApi.PreEncounterAppointmentId[];
|
|
22
|
+
/** An optional string field denoting the originating system of the charge. */
|
|
23
|
+
originatingSystem?: string;
|
|
24
|
+
/** An optional string field denoting the user defined category of the claim creation. */
|
|
25
|
+
claimCreationCategory?: string;
|
|
26
|
+
/** External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123). */
|
|
27
|
+
ehrSourceUrl?: string;
|
|
28
|
+
/** the status of the charge capture */
|
|
29
|
+
status: CandidApi.chargeCapture.v1.ChargeCaptureStatus;
|
|
30
|
+
}
|
|
@@ -3,9 +3,3 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ClaimFrequencyTypeCode = void 0;
|
|
7
|
-
exports.ClaimFrequencyTypeCode = {
|
|
8
|
-
Original: "1",
|
|
9
|
-
Replacement: "7",
|
|
10
|
-
Void: "8",
|
|
11
|
-
};
|
package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts
CHANGED
|
@@ -108,6 +108,20 @@ export interface GetAllChargeCapturesRequest {
|
|
|
108
108
|
* This date must be the local date in the timezone where the service occurred.
|
|
109
109
|
*/
|
|
110
110
|
dateOfServiceMaxRankedSort?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Filter by any of the following fields: charge_id, claim_id, patient external_id,
|
|
113
|
+
* patient date of birth, patient first name, patient last name,
|
|
114
|
+
* or charge external id.
|
|
115
|
+
*/
|
|
116
|
+
searchTerm?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Defines if the Encounter is to be billed by Candid to the responsible_party. Examples for when this should be set to NOT_BILLABLE include if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party.
|
|
119
|
+
*/
|
|
120
|
+
billableStatus?: CandidApi.encounters.v4.BillableStatusType;
|
|
121
|
+
/**
|
|
122
|
+
* Defines the party to be billed with the initial balance owed on the claim. Use SELF_PAY if you intend to bill self pay/cash pay.
|
|
123
|
+
*/
|
|
124
|
+
responsibleParty?: CandidApi.encounters.v4.ResponsiblePartyType;
|
|
111
125
|
/**
|
|
112
126
|
* A list of claim IDs to show first. This will return all charge captures that have a resulting claim with one of the IDs in this list.
|
|
113
127
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type CreateChargeCaptureRequest } from "./CreateChargeCaptureRequest";
|
|
2
|
+
export { type CreateChargeCaptureFromPreEncounterRequest } from "./CreateChargeCaptureFromPreEncounterRequest";
|
|
2
3
|
export { type ChargeCaptureUpdate } from "./ChargeCaptureUpdate";
|
|
3
4
|
export { type GetAllChargeCapturesRequest } from "./GetAllChargeCapturesRequest";
|
|
4
5
|
export { type ChargeCapturePostBilledChangeUpdate } from "./ChargeCapturePostBilledChangeUpdate";
|
|
@@ -71,7 +71,7 @@ class V1 {
|
|
|
71
71
|
const _response = yield core.fetcher({
|
|
72
72
|
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).candidApi, `/api/charge_capture_claim_creation/v1/${encodeURIComponent(serializers.ChargeCaptureClaimCreationId.jsonOrThrow(chargeCaptureClaimCreationId))}`),
|
|
73
73
|
method: "GET",
|
|
74
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
74
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -107,7 +107,7 @@ class V1 {
|
|
|
107
107
|
const _response = yield core.fetcher({
|
|
108
108
|
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).candidApi, "/api/charge_capture_claim_creation/v1/all/summary"),
|
|
109
109
|
method: "GET",
|
|
110
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
110
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
requestType: "json",
|
|
113
113
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -145,7 +145,7 @@ class V1 {
|
|
|
145
145
|
const _response = yield core.fetcher({
|
|
146
146
|
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).candidApi, `/api/charge_capture_claim_creation/v1/error/${encodeURIComponent(chargeCaptureBundleErrorId)}`),
|
|
147
147
|
method: "PATCH",
|
|
148
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
148
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
requestType: "json",
|
|
151
151
|
body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundleErrorResolution.jsonOrThrow(request, {
|
|
@@ -305,7 +305,7 @@ class V1 {
|
|
|
305
305
|
const _response = yield core.fetcher({
|
|
306
306
|
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).candidApi, "/api/charge_capture_claim_creation/v1"),
|
|
307
307
|
method: "GET",
|
|
308
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
308
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
309
309
|
contentType: "application/json",
|
|
310
310
|
queryParameters: _queryParams,
|
|
311
311
|
requestType: "json",
|
|
@@ -8,7 +8,7 @@ import * as CandidApi from "../../../../../index";
|
|
|
8
8
|
* @example
|
|
9
9
|
* {
|
|
10
10
|
* submittedAt: "2023-01-01T13:00:00.000000Z",
|
|
11
|
-
* claimFrequencyCode: CandidApi.
|
|
11
|
+
* claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C1,
|
|
12
12
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
13
13
|
* intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
|
|
14
14
|
* }
|
|
@@ -16,7 +16,7 @@ import * as CandidApi from "../../../../../index";
|
|
|
16
16
|
* @example
|
|
17
17
|
* {
|
|
18
18
|
* submittedAt: "2023-01-04T12:00:00.000000Z",
|
|
19
|
-
* claimFrequencyCode: CandidApi.
|
|
19
|
+
* claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C7,
|
|
20
20
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
21
21
|
* intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
|
|
22
22
|
* }
|
|
@@ -24,7 +24,7 @@ import * as CandidApi from "../../../../../index";
|
|
|
24
24
|
export interface ClaimSubmissionRecordCreate {
|
|
25
25
|
/** When the claim was submitted to the payer. */
|
|
26
26
|
submittedAt: Date;
|
|
27
|
-
claimFrequencyCode?: CandidApi.
|
|
27
|
+
claimFrequencyCode?: CandidApi.x12.v1.TypeOfBillFrequencyCode;
|
|
28
28
|
payerResponsibility?: CandidApi.ClaimSubmissionPayerResponsibilityType;
|
|
29
29
|
/**
|
|
30
30
|
* The medium by which the claim was submitted to the payer: paper or electronic.
|
package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as CandidApi from "../../../../../index";
|
|
|
8
8
|
* @example
|
|
9
9
|
* {
|
|
10
10
|
* submittedAt: "2023-01-01T13:00:00.000000Z",
|
|
11
|
-
* claimFrequencyCode: CandidApi.
|
|
11
|
+
* claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C1,
|
|
12
12
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
13
13
|
* intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
|
|
14
14
|
* }
|
|
@@ -16,7 +16,7 @@ import * as CandidApi from "../../../../../index";
|
|
|
16
16
|
* @example
|
|
17
17
|
* {
|
|
18
18
|
* submittedAt: "2023-01-04T12:00:00.000000Z",
|
|
19
|
-
* claimFrequencyCode: CandidApi.
|
|
19
|
+
* claimFrequencyCode: CandidApi.x12.v1.TypeOfBillFrequencyCode.C7,
|
|
20
20
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
21
21
|
* intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
|
|
22
22
|
* }
|
|
@@ -24,7 +24,7 @@ import * as CandidApi from "../../../../../index";
|
|
|
24
24
|
export interface ClaimSubmissionRecordCreateOptional {
|
|
25
25
|
/** When the claim was submitted to the payer. */
|
|
26
26
|
submittedAt?: Date;
|
|
27
|
-
claimFrequencyCode?: CandidApi.
|
|
27
|
+
claimFrequencyCode?: CandidApi.x12.v1.TypeOfBillFrequencyCode;
|
|
28
28
|
payerResponsibility?: CandidApi.ClaimSubmissionPayerResponsibilityType;
|
|
29
29
|
/**
|
|
30
30
|
* The medium by which the claim was submitted to the payer: paper or electronic.
|