candidhealth 0.40.2 → 0.40.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +19 -14
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
- package/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
- package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
- package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
- package/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.js +3 -3
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.js +5 -5
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
- package/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
- package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -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/index.d.ts +1 -0
- package/api/resources/index.js +3 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
- package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
- package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
- package/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
- package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
- package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
- package/api/resources/payerPlanGroups/client/Client.js +17 -0
- package/api/resources/payerPlanGroups/client/index.d.ts +1 -0
- package/api/resources/payerPlanGroups/client/index.js +2 -0
- package/api/resources/payerPlanGroups/index.d.ts +2 -0
- package/api/resources/payerPlanGroups/index.js +18 -0
- package/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
- package/api/resources/payerPlanGroups/resources/index.js +37 -0
- package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
- package/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
- package/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
- package/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
- package/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
- package/api/resources/{insurancePayments/resources/v1/client/create.js → payerPlanGroups/resources/v1/client/deactivate.js} +3 -14
- package/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
- package/{dist/api/resources/insurancePayments/resources/v1/client/create.js → api/resources/payerPlanGroups/resources/v1/client/get.js} +3 -14
- package/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
- package/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
- package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
- package/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
- package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
- package/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
- package/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
- package/api/resources/{insurancePayments → payerPlanGroups}/resources/v1/client/update.js +8 -8
- package/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
- package/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
- package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
- package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
- package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
- package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
- package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
- package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
- package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
- package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
- package/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
- package/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
- package/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +19 -14
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
- package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.js +3 -3
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -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/index.d.ts +1 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
- package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
- package/dist/api/resources/payerPlanGroups/client/Client.js +17 -0
- package/dist/api/resources/payerPlanGroups/client/index.d.ts +1 -0
- package/dist/api/resources/payerPlanGroups/client/index.js +2 -0
- package/dist/api/resources/payerPlanGroups/index.d.ts +2 -0
- package/dist/api/resources/payerPlanGroups/index.js +18 -0
- package/dist/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
- package/dist/api/resources/payerPlanGroups/resources/index.js +37 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
- package/{api/resources/insurancePayments/resources/v1/client/delete.js → dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.js} +3 -14
- package/dist/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
- package/dist/api/resources/{insurancePayments → payerPlanGroups}/resources/v1/client/update.js +8 -8
- package/dist/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
- package/dist/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
- 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/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
- package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/dist/serialization/resources/payerPlanGroups/index.d.ts +1 -0
- package/dist/serialization/resources/payerPlanGroups/index.js +17 -0
- package/dist/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
- package/dist/serialization/resources/payerPlanGroups/resources/index.js +37 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
- package/dist/serialization/resources/{insurancePayments/resources/v1/client/create.d.ts → payerPlanGroups/resources/v1/client/deactivate.d.ts} +2 -7
- package/dist/serialization/resources/{insurancePayments/resources/v1/client/create.js → payerPlanGroups/resources/v1/client/deactivate.js} +2 -8
- package/dist/serialization/resources/{insurancePayments/resources/v1/client/delete.d.ts → payerPlanGroups/resources/v1/client/get.d.ts} +2 -7
- package/dist/serialization/resources/{insurancePayments/resources/v1/client/delete.js → payerPlanGroups/resources/v1/client/get.js} +2 -8
- package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js +71 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
- package/{serialization/resources/insurancePayments → dist/serialization/resources/payerPlanGroups}/resources/v1/client/update.d.ts +6 -6
- package/{serialization/resources/insurancePayments → dist/serialization/resources/payerPlanGroups}/resources/v1/client/update.js +7 -7
- package/dist/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
- package/{serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js → dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js} +7 -9
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
- package/dist/serialization/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js} +6 -6
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
- package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +393 -231
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +45 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
- package/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
- package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/serialization/resources/payerPlanGroups/index.d.ts +1 -0
- package/serialization/resources/payerPlanGroups/index.js +17 -0
- package/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
- package/serialization/resources/payerPlanGroups/resources/index.js +37 -0
- package/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
- package/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
- package/serialization/resources/{insurancePayments/resources/v1/client/create.d.ts → payerPlanGroups/resources/v1/client/deactivate.d.ts} +2 -7
- package/{dist/serialization/resources/insurancePayments/resources/v1/client/update.js → serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js} +2 -8
- package/{dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts → serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts} +2 -7
- package/serialization/resources/{insurancePayments/resources/v1/client/create.js → payerPlanGroups/resources/v1/client/get.js} +2 -8
- package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
- package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js +71 -0
- package/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
- package/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
- package/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
- package/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
- package/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
- package/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
- package/serialization/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js} +6 -6
- package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
- package/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
- package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
- package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
- package/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
- package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
- package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
- package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
- package/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
- package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
- /package/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
- /package/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js} +0 -0
- /package/{dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js} +0 -0
- /package/{dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js → api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import { OrganizationServiceFacilities } from "./api/resources/organizationServi
|
|
|
30
30
|
import { OrganizationProviders } from "./api/resources/organizationProviders/client/Client";
|
|
31
31
|
import { PatientPayments } from "./api/resources/patientPayments/client/Client";
|
|
32
32
|
import { PatientRefunds } from "./api/resources/patientRefunds/client/Client";
|
|
33
|
+
import { PayerPlanGroups } from "./api/resources/payerPlanGroups/client/Client";
|
|
33
34
|
import { Payers } from "./api/resources/payers/client/Client";
|
|
34
35
|
import { ServiceLines } from "./api/resources/serviceLines/client/Client";
|
|
35
36
|
import { Tasks } from "./api/resources/tasks/client/Client";
|
|
@@ -86,6 +87,7 @@ export declare class CandidApiClient {
|
|
|
86
87
|
protected _organizationProviders: OrganizationProviders | undefined;
|
|
87
88
|
protected _patientPayments: PatientPayments | undefined;
|
|
88
89
|
protected _patientRefunds: PatientRefunds | undefined;
|
|
90
|
+
protected _payerPlanGroups: PayerPlanGroups | undefined;
|
|
89
91
|
protected _payers: Payers | undefined;
|
|
90
92
|
protected _serviceLines: ServiceLines | undefined;
|
|
91
93
|
protected _tasks: Tasks | undefined;
|
|
@@ -121,6 +123,7 @@ export declare class CandidApiClient {
|
|
|
121
123
|
get organizationProviders(): OrganizationProviders;
|
|
122
124
|
get patientPayments(): PatientPayments;
|
|
123
125
|
get patientRefunds(): PatientRefunds;
|
|
126
|
+
get payerPlanGroups(): PayerPlanGroups;
|
|
124
127
|
get payers(): Payers;
|
|
125
128
|
get serviceLines(): ServiceLines;
|
|
126
129
|
get tasks(): Tasks;
|
package/Client.js
CHANGED
|
@@ -75,13 +75,14 @@ const Client_25 = require("./api/resources/organizationServiceFacilities/client/
|
|
|
75
75
|
const Client_26 = require("./api/resources/organizationProviders/client/Client");
|
|
76
76
|
const Client_27 = require("./api/resources/patientPayments/client/Client");
|
|
77
77
|
const Client_28 = require("./api/resources/patientRefunds/client/Client");
|
|
78
|
-
const Client_29 = require("./api/resources/
|
|
79
|
-
const Client_30 = require("./api/resources/
|
|
80
|
-
const Client_31 = require("./api/resources/
|
|
81
|
-
const Client_32 = require("./api/resources/
|
|
82
|
-
const Client_33 = require("./api/resources/
|
|
83
|
-
const Client_34 = require("./api/resources/
|
|
84
|
-
const Client_35 = require("./api/resources/
|
|
78
|
+
const Client_29 = require("./api/resources/payerPlanGroups/client/Client");
|
|
79
|
+
const Client_30 = require("./api/resources/payers/client/Client");
|
|
80
|
+
const Client_31 = require("./api/resources/serviceLines/client/Client");
|
|
81
|
+
const Client_32 = require("./api/resources/tasks/client/Client");
|
|
82
|
+
const Client_33 = require("./api/resources/writeOffs/client/Client");
|
|
83
|
+
const Client_34 = require("./api/resources/preEncounter/client/Client");
|
|
84
|
+
const Client_35 = require("./api/resources/diagnoses/client/Client");
|
|
85
|
+
const Client_36 = require("./api/resources/serviceFacility/client/Client");
|
|
85
86
|
class CandidApiClient {
|
|
86
87
|
constructor(_options) {
|
|
87
88
|
this._options = _options;
|
|
@@ -201,33 +202,37 @@ class CandidApiClient {
|
|
|
201
202
|
var _a;
|
|
202
203
|
return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new Client_28.PatientRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
203
204
|
}
|
|
205
|
+
get payerPlanGroups() {
|
|
206
|
+
var _a;
|
|
207
|
+
return ((_a = this._payerPlanGroups) !== null && _a !== void 0 ? _a : (this._payerPlanGroups = new Client_29.PayerPlanGroups(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
208
|
+
}
|
|
204
209
|
get payers() {
|
|
205
210
|
var _a;
|
|
206
|
-
return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new
|
|
211
|
+
return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_30.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
207
212
|
}
|
|
208
213
|
get serviceLines() {
|
|
209
214
|
var _a;
|
|
210
|
-
return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new
|
|
215
|
+
return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_31.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
211
216
|
}
|
|
212
217
|
get tasks() {
|
|
213
218
|
var _a;
|
|
214
|
-
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new
|
|
219
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_32.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
215
220
|
}
|
|
216
221
|
get writeOffs() {
|
|
217
222
|
var _a;
|
|
218
|
-
return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new
|
|
223
|
+
return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_33.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
219
224
|
}
|
|
220
225
|
get preEncounter() {
|
|
221
226
|
var _a;
|
|
222
|
-
return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new
|
|
227
|
+
return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_34.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
223
228
|
}
|
|
224
229
|
get diagnoses() {
|
|
225
230
|
var _a;
|
|
226
|
-
return ((_a = this._diagnoses) !== null && _a !== void 0 ? _a : (this._diagnoses = new
|
|
231
|
+
return ((_a = this._diagnoses) !== null && _a !== void 0 ? _a : (this._diagnoses = new Client_35.Diagnoses(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
227
232
|
}
|
|
228
233
|
get serviceFacility() {
|
|
229
234
|
var _a;
|
|
230
|
-
return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new
|
|
235
|
+
return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_36.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
|
|
231
236
|
}
|
|
232
237
|
}
|
|
233
238
|
exports.CandidApiClient = CandidApiClient;
|
|
@@ -92,7 +92,7 @@ class V2 {
|
|
|
92
92
|
const _response = yield core.fetcher({
|
|
93
93
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/auth/v2/token"),
|
|
94
94
|
method: "POST",
|
|
95
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
95
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
requestType: "json",
|
|
98
98
|
body: serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -74,7 +74,7 @@ class V2 {
|
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
75
|
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"),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
77
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -114,7 +114,7 @@ class V2 {
|
|
|
114
114
|
const _response = yield core.fetcher({
|
|
115
115
|
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))}`),
|
|
116
116
|
method: "DELETE",
|
|
117
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
117
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
118
118
|
contentType: "application/json",
|
|
119
119
|
requestType: "json",
|
|
120
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -165,7 +165,7 @@ class V2 {
|
|
|
165
165
|
const _response = yield core.fetcher({
|
|
166
166
|
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))}`),
|
|
167
167
|
method: "PATCH",
|
|
168
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
168
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
requestType: "json",
|
|
171
171
|
body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
|
|
@@ -78,7 +78,7 @@ class V1 {
|
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
|
|
80
80
|
method: "POST",
|
|
81
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
81
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
|
|
@@ -136,7 +136,7 @@ class V1 {
|
|
|
136
136
|
const _response = yield core.fetcher({
|
|
137
137
|
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
138
|
method: "DELETE",
|
|
139
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
139
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
requestType: "json",
|
|
142
142
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -191,7 +191,7 @@ class V1 {
|
|
|
191
191
|
const _response = yield core.fetcher({
|
|
192
192
|
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))}`),
|
|
193
193
|
method: "PATCH",
|
|
194
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
194
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
requestType: "json",
|
|
197
197
|
body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
|
|
@@ -249,7 +249,7 @@ class V1 {
|
|
|
249
249
|
const _response = yield core.fetcher({
|
|
250
250
|
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))}`),
|
|
251
251
|
method: "GET",
|
|
252
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
252
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
requestType: "json",
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -287,13 +287,14 @@ class V1 {
|
|
|
287
287
|
* status: "planned",
|
|
288
288
|
* chargeExternalId: "string",
|
|
289
289
|
* dateOfService: "2023-01-15",
|
|
290
|
+
* bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
290
291
|
* excludeBundled: true
|
|
291
292
|
* })
|
|
292
293
|
*/
|
|
293
294
|
getAll() {
|
|
294
295
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
295
296
|
var _a, _b;
|
|
296
|
-
const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfService, excludeBundled, } = request;
|
|
297
|
+
const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfService, bundleId, excludeBundled, } = request;
|
|
297
298
|
const _queryParams = {};
|
|
298
299
|
if (limit != null) {
|
|
299
300
|
_queryParams["limit"] = limit.toString();
|
|
@@ -325,13 +326,16 @@ class V1 {
|
|
|
325
326
|
if (dateOfService != null) {
|
|
326
327
|
_queryParams["date_of_service"] = dateOfService;
|
|
327
328
|
}
|
|
329
|
+
if (bundleId != null) {
|
|
330
|
+
_queryParams["bundle_id"] = bundleId;
|
|
331
|
+
}
|
|
328
332
|
if (excludeBundled != null) {
|
|
329
333
|
_queryParams["exclude_bundled"] = excludeBundled.toString();
|
|
330
334
|
}
|
|
331
335
|
const _response = yield core.fetcher({
|
|
332
336
|
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"),
|
|
333
337
|
method: "GET",
|
|
334
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
338
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
335
339
|
contentType: "application/json",
|
|
336
340
|
queryParameters: _queryParams,
|
|
337
341
|
requestType: "json",
|
package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import * as CandidApi from "../../../../../../index";
|
|
|
13
13
|
* status: "planned",
|
|
14
14
|
* chargeExternalId: "string",
|
|
15
15
|
* dateOfService: "2023-01-15",
|
|
16
|
+
* bundleId: CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
16
17
|
* excludeBundled: true
|
|
17
18
|
* }
|
|
18
19
|
*/
|
|
@@ -49,6 +50,10 @@ export interface GetAllChargeCapturesRequest {
|
|
|
49
50
|
* This date must be the local date in the timezone where the service occurred.
|
|
50
51
|
*/
|
|
51
52
|
dateOfService?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the charge capture bundle to which this charge capture belongs.
|
|
55
|
+
*/
|
|
56
|
+
bundleId?: CandidApi.ChargeCaptureBundleId;
|
|
52
57
|
/**
|
|
53
58
|
* Whether to exclude charge captures which are associated with a charge capture bundle.
|
|
54
59
|
*/
|
|
@@ -33,6 +33,13 @@ export declare class V1 {
|
|
|
33
33
|
* await client.chargeCaptureBundles.v1.get(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
34
34
|
*/
|
|
35
35
|
get(chargeCaptureBundleId: CandidApi.ChargeCaptureBundleId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundle, CandidApi.chargeCaptureBundles.v1.get.Error>>;
|
|
36
|
+
/**
|
|
37
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.chargeCaptureBundles.v1.getSummary()
|
|
41
|
+
*/
|
|
42
|
+
getSummary(requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleSummary, CandidApi.chargeCaptureBundles.v1.getSummary.Error>>;
|
|
36
43
|
/**
|
|
37
44
|
* @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
|
|
38
45
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -52,7 +59,7 @@ export declare class V1 {
|
|
|
52
59
|
* sortDirection: "asc",
|
|
53
60
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
54
61
|
* patientExternalId: "string",
|
|
55
|
-
* bundleStatus: "
|
|
62
|
+
* bundleStatus: "not-started",
|
|
56
63
|
* chargeStatus: "planned",
|
|
57
64
|
* chargeExternalId: "string",
|
|
58
65
|
* dateOfService: "2023-01-15",
|
|
@@ -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_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
|
|
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": "0.40.
|
|
74
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "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,
|
|
@@ -109,6 +109,42 @@ class V1 {
|
|
|
109
109
|
};
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.chargeCaptureBundles.v1.getSummary()
|
|
117
|
+
*/
|
|
118
|
+
getSummary(requestOptions) {
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
var _a, _b;
|
|
121
|
+
const _response = yield core.fetcher({
|
|
122
|
+
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_bundle/v1/summary"),
|
|
123
|
+
method: "GET",
|
|
124
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
125
|
+
contentType: "application/json",
|
|
126
|
+
requestType: "json",
|
|
127
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
128
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
129
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
130
|
+
});
|
|
131
|
+
if (_response.ok) {
|
|
132
|
+
return {
|
|
133
|
+
ok: true,
|
|
134
|
+
body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundleSummary.parseOrThrow(_response.body, {
|
|
135
|
+
unrecognizedObjectKeys: "passthrough",
|
|
136
|
+
allowUnrecognizedUnionMembers: true,
|
|
137
|
+
allowUnrecognizedEnumValues: true,
|
|
138
|
+
breadcrumbsPrefix: ["response"],
|
|
139
|
+
}),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
ok: false,
|
|
144
|
+
error: CandidApi.chargeCaptureBundles.v1.getSummary.Error._unknown(_response.error),
|
|
145
|
+
};
|
|
146
|
+
});
|
|
147
|
+
}
|
|
112
148
|
/**
|
|
113
149
|
* @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
|
|
114
150
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -122,7 +158,7 @@ class V1 {
|
|
|
122
158
|
const _response = yield core.fetcher({
|
|
123
159
|
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_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
|
|
124
160
|
method: "POST",
|
|
125
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
161
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
126
162
|
contentType: "application/json",
|
|
127
163
|
requestType: "json",
|
|
128
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -171,7 +207,7 @@ class V1 {
|
|
|
171
207
|
* sortDirection: "asc",
|
|
172
208
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
173
209
|
* patientExternalId: "string",
|
|
174
|
-
* bundleStatus: "
|
|
210
|
+
* bundleStatus: "not-started",
|
|
175
211
|
* chargeStatus: "planned",
|
|
176
212
|
* chargeExternalId: "string",
|
|
177
213
|
* dateOfService: "2023-01-15",
|
|
@@ -222,7 +258,7 @@ class V1 {
|
|
|
222
258
|
const _response = yield core.fetcher({
|
|
223
259
|
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_bundle/v1"),
|
|
224
260
|
method: "GET",
|
|
225
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
261
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
226
262
|
contentType: "application/json",
|
|
227
263
|
queryParameters: _queryParams,
|
|
228
264
|
requestType: "json",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export type Error = CandidApi.chargeCaptureBundles.v1.getSummary.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.getSummary.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.getSummary.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.getSummary.Error, visitor: CandidApi.chargeCaptureBundles.v1.getSummary.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Error = void 0;
|
|
40
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
41
|
+
exports.Error = {
|
|
42
|
+
_unknown: (fetcherError) => {
|
|
43
|
+
return {
|
|
44
|
+
errorName: undefined,
|
|
45
|
+
content: fetcherError,
|
|
46
|
+
_visit: function (visitor) {
|
|
47
|
+
return CandidApi.chargeCaptureBundles.v1.getSummary.Error._visit(this, visitor);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
_visit: (value, visitor) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
default:
|
|
54
|
+
return visitor._other(value);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -36,8 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAll = exports.resubmit = exports.get = void 0;
|
|
39
|
+
exports.getAll = exports.resubmit = exports.getSummary = exports.get = void 0;
|
|
40
40
|
__exportStar(require("./requests"), exports);
|
|
41
41
|
exports.get = __importStar(require("./get"));
|
|
42
|
+
exports.getSummary = __importStar(require("./getSummary"));
|
|
42
43
|
exports.resubmit = __importStar(require("./resubmit"));
|
|
43
44
|
exports.getAll = __importStar(require("./getAll"));
|
|
@@ -10,7 +10,7 @@ import * as CandidApi from "../../../../../../index";
|
|
|
10
10
|
* sortDirection: "asc",
|
|
11
11
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
12
12
|
* patientExternalId: "string",
|
|
13
|
-
* bundleStatus: "
|
|
13
|
+
* bundleStatus: "not-started",
|
|
14
14
|
* chargeStatus: "planned",
|
|
15
15
|
* chargeExternalId: "string",
|
|
16
16
|
* dateOfService: "2023-01-15",
|
package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ChargeCaptureBundleStatus = "in-progress" | "in-error" | "successful" | "aborted";
|
|
4
|
+
export type ChargeCaptureBundleStatus = "not-started" | "in-progress" | "in-error" | "successful" | "successful-dry-run" | "aborted";
|
|
5
5
|
export declare const ChargeCaptureBundleStatus: {
|
|
6
|
+
readonly NotStarted: "not-started";
|
|
6
7
|
readonly InProgress: "in-progress";
|
|
7
8
|
readonly InError: "in-error";
|
|
8
9
|
readonly Successful: "successful";
|
|
10
|
+
readonly SuccessfulDryRun: "successful-dry-run";
|
|
9
11
|
readonly Aborted: "aborted";
|
|
10
12
|
};
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ChargeCaptureBundleStatus = void 0;
|
|
7
7
|
exports.ChargeCaptureBundleStatus = {
|
|
8
|
+
NotStarted: "not-started",
|
|
8
9
|
InProgress: "in-progress",
|
|
9
10
|
InError: "in-error",
|
|
10
11
|
Successful: "successful",
|
|
12
|
+
SuccessfulDryRun: "successful-dry-run",
|
|
11
13
|
Aborted: "aborted",
|
|
12
14
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ChargeCaptureBundleSummary {
|
|
5
|
+
/** The count of charge captures which are not bundled. */
|
|
6
|
+
chargeCaptureUnbundledCount: number;
|
|
7
|
+
/** The count of charge capture bundles that are in an error state. */
|
|
8
|
+
chargeCaptureBundlesInErrorCount: number;
|
|
9
|
+
/** The number of ChargeCapturePostBilledChange items that are unresolved. */
|
|
10
|
+
chargeCaptureUnresolvedChangeCount: number;
|
|
11
|
+
}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ChargeCaptureBundlePage"), exports);
|
|
18
18
|
__exportStar(require("./ChargeCaptureBundle"), exports);
|
|
19
|
+
__exportStar(require("./ChargeCaptureBundleSummary"), exports);
|
|
19
20
|
__exportStar(require("./ChargeBundleError"), exports);
|
|
20
21
|
__exportStar(require("./ChargeCaptureBundleStatus"), exports);
|
|
21
22
|
__exportStar(require("./ChargeCaptureBundleSortField"), exports);
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export type ProcedureModifier =
|
|
5
|
+
/**
|
|
6
|
+
* Ambulance service provided as a volunteer ambulance service organization as defined by the state */
|
|
7
|
+
"AV"
|
|
8
|
+
/**
|
|
9
|
+
* Item furnished in conjunction with a urological, ostomy, or tracheostomy supply */
|
|
10
|
+
| "AU"
|
|
11
|
+
/**
|
|
12
|
+
* Item furnished in conjunction with dialysis services */
|
|
13
|
+
| "AW"
|
|
5
14
|
/**
|
|
6
15
|
* Increased Procedural Services */
|
|
7
|
-
"22"
|
|
16
|
+
| "22"
|
|
8
17
|
/**
|
|
9
18
|
* Unusual Anesthesia */
|
|
10
19
|
| "23"
|
|
@@ -1185,6 +1194,9 @@ export type ProcedureModifier =
|
|
|
1185
1194
|
* The use of a service that is distinct because it does not overlap usual components of the main service */
|
|
1186
1195
|
| "XU";
|
|
1187
1196
|
export declare const ProcedureModifier: {
|
|
1197
|
+
readonly Av: "AV";
|
|
1198
|
+
readonly Au: "AU";
|
|
1199
|
+
readonly Aw: "AW";
|
|
1188
1200
|
readonly TwentyTwo: "22";
|
|
1189
1201
|
readonly TwentyThree: "23";
|
|
1190
1202
|
readonly TwentyFour: "24";
|
|
@@ -71,7 +71,7 @@ class V2 {
|
|
|
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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
|
|
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": "0.40.
|
|
74
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "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,
|
|
@@ -170,7 +170,7 @@ class V2 {
|
|
|
170
170
|
const _response = yield core.fetcher({
|
|
171
171
|
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/contracts/v2"),
|
|
172
172
|
method: "GET",
|
|
173
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
173
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
queryParameters: _queryParams,
|
|
176
176
|
requestType: "json",
|
|
@@ -237,7 +237,7 @@ class V2 {
|
|
|
237
237
|
const _response = yield core.fetcher({
|
|
238
238
|
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/contracts/v2"),
|
|
239
239
|
method: "POST",
|
|
240
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
240
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
requestType: "json",
|
|
243
243
|
body: serializers.contracts.v2.ContractCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -275,7 +275,7 @@ class V2 {
|
|
|
275
275
|
const _response = yield core.fetcher({
|
|
276
276
|
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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
|
|
277
277
|
method: "DELETE",
|
|
278
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
278
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
requestType: "json",
|
|
281
281
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -355,7 +355,7 @@ class V2 {
|
|
|
355
355
|
const _response = yield core.fetcher({
|
|
356
356
|
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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
|
|
357
357
|
method: "PATCH",
|
|
358
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
|
358
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
359
359
|
contentType: "application/json",
|
|
360
360
|
requestType: "json",
|
|
361
361
|
body: serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|