candidhealth 0.23.0 → 0.24.1
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 +4 -1
- package/README.md +134 -6
- package/api/resources/auth/client/Client.d.ts +4 -1
- package/api/resources/auth/resources/v2/client/Client.d.ts +5 -2
- package/api/resources/auth/resources/v2/client/Client.js +8 -8
- package/api/resources/billingNotes/client/Client.d.ts +4 -1
- package/api/resources/billingNotes/resources/v2/client/Client.d.ts +5 -2
- package/api/resources/billingNotes/resources/v2/client/Client.js +7 -5
- package/api/resources/contracts/client/Client.d.ts +4 -1
- package/api/resources/contracts/resources/v2/client/Client.d.ts +9 -6
- package/api/resources/contracts/resources/v2/client/Client.js +34 -28
- package/api/resources/eligibility/client/Client.d.ts +4 -1
- package/api/resources/eligibility/resources/v2/client/Client.d.ts +7 -4
- package/api/resources/eligibility/resources/v2/client/Client.js +18 -12
- package/api/resources/encounters/client/Client.d.ts +4 -1
- package/api/resources/encounters/resources/v4/client/Client.d.ts +8 -20
- package/api/resources/encounters/resources/v4/client/Client.js +28 -39
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -24
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/api/resources/expectedNetworkStatus/client/Client.d.ts +4 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -2
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -5
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +6 -3
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +16 -12
- package/api/resources/exports/client/Client.d.ts +4 -1
- package/api/resources/exports/resources/v3/client/Client.d.ts +5 -2
- package/api/resources/exports/resources/v3/client/Client.js +7 -5
- package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +4 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +5 -2
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +6 -4
- package/api/resources/feeSchedules/client/Client.d.ts +4 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +14 -11
- package/api/resources/feeSchedules/resources/v3/client/Client.js +67 -49
- package/api/resources/guarantor/client/Client.d.ts +4 -1
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +7 -4
- package/api/resources/guarantor/resources/v1/client/Client.js +21 -19
- package/api/resources/importInvoice/client/Client.d.ts +4 -1
- package/api/resources/importInvoice/resources/v1/client/Client.d.ts +8 -5
- package/api/resources/importInvoice/resources/v1/client/Client.js +28 -20
- package/api/resources/insuranceAdjudications/client/Client.d.ts +4 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +7 -4
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -13
- package/api/resources/insurancePayments/client/Client.d.ts +4 -1
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -6
- package/api/resources/insurancePayments/resources/v1/client/Client.js +36 -26
- package/api/resources/insuranceRefunds/client/Client.d.ts +4 -1
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +9 -6
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +36 -26
- package/api/resources/organizationProviders/client/Client.d.ts +4 -1
- package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +8 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +29 -21
- package/api/resources/organizationServiceFacilities/client/Client.d.ts +4 -1
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +9 -6
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +39 -25
- package/api/resources/patientPayments/client/Client.d.ts +4 -1
- package/api/resources/patientPayments/resources/v4/client/Client.d.ts +9 -6
- package/api/resources/patientPayments/resources/v4/client/Client.js +36 -26
- package/api/resources/patientRefunds/client/Client.d.ts +4 -1
- package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +9 -6
- package/api/resources/patientRefunds/resources/v1/client/Client.js +36 -26
- package/api/resources/payers/client/Client.d.ts +4 -1
- package/api/resources/payers/resources/v3/client/Client.d.ts +6 -3
- package/api/resources/payers/resources/v3/client/Client.js +12 -8
- package/api/resources/preEncounter/client/Client.d.ts +4 -1
- package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +7 -125
- package/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
- package/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
- package/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
- package/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/index.js +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +147 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +451 -0
- package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
- package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +3 -3
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.js +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
- package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
- package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
- package/api/resources/preEncounter/resources/index.d.ts +0 -4
- package/api/resources/preEncounter/resources/index.js +0 -4
- package/api/resources/preEncounter/resources/patients/client/Client.d.ts +7 -316
- package/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
- package/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
- package/api/resources/preEncounter/resources/patients/client/index.js +0 -35
- package/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/index.js +1 -1
- package/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +338 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +716 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
- package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/scan.js +2 -2
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
- package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
- package/api/resources/serviceFacility/client/Client.d.ts +5 -2
- package/api/resources/serviceFacility/client/Client.js +7 -7
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
- package/api/resources/tasks/client/Client.d.ts +4 -1
- package/api/resources/tasks/resources/v3/client/Client.d.ts +9 -6
- package/api/resources/tasks/resources/v3/client/Client.js +35 -25
- package/api/resources/writeOffs/client/Client.d.ts +4 -1
- package/api/resources/writeOffs/resources/v1/client/Client.d.ts +8 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +25 -17
- package/core/fetcher/Fetcher.d.ts +3 -0
- package/core/fetcher/Fetcher.js +22 -153
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +48 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +12 -1
- package/core/schemas/Schema.d.ts +7 -4
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/Client.d.ts +4 -1
- package/dist/api/resources/auth/client/Client.d.ts +4 -1
- package/dist/api/resources/auth/resources/v2/client/Client.d.ts +5 -2
- package/dist/api/resources/auth/resources/v2/client/Client.js +8 -8
- package/dist/api/resources/billingNotes/client/Client.d.ts +4 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +5 -2
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +7 -5
- package/dist/api/resources/contracts/client/Client.d.ts +4 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +9 -6
- package/dist/api/resources/contracts/resources/v2/client/Client.js +34 -28
- package/dist/api/resources/eligibility/client/Client.d.ts +4 -1
- package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +7 -4
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +18 -12
- package/dist/api/resources/encounters/client/Client.d.ts +4 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +8 -20
- package/dist/api/resources/encounters/resources/v4/client/Client.js +28 -39
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -24
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +4 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -2
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -5
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +6 -3
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +16 -12
- package/dist/api/resources/exports/client/Client.d.ts +4 -1
- package/dist/api/resources/exports/resources/v3/client/Client.d.ts +5 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +7 -5
- package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +4 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +5 -2
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +6 -4
- package/dist/api/resources/feeSchedules/client/Client.d.ts +4 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +14 -11
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +67 -49
- package/dist/api/resources/guarantor/client/Client.d.ts +4 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +7 -4
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +21 -19
- package/dist/api/resources/importInvoice/client/Client.d.ts +4 -1
- package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +8 -5
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +28 -20
- package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +4 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +7 -4
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -13
- package/dist/api/resources/insurancePayments/client/Client.d.ts +4 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -6
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +36 -26
- package/dist/api/resources/insuranceRefunds/client/Client.d.ts +4 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +9 -6
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +36 -26
- package/dist/api/resources/organizationProviders/client/Client.d.ts +4 -1
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +8 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +29 -21
- package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +4 -1
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +9 -6
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +39 -25
- package/dist/api/resources/patientPayments/client/Client.d.ts +4 -1
- package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +9 -6
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +36 -26
- package/dist/api/resources/patientRefunds/client/Client.d.ts +4 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +9 -6
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +36 -26
- package/dist/api/resources/payers/client/Client.d.ts +4 -1
- package/dist/api/resources/payers/resources/v3/client/Client.d.ts +6 -3
- package/dist/api/resources/payers/resources/v3/client/Client.js +12 -8
- package/dist/api/resources/preEncounter/client/Client.d.ts +4 -1
- package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +7 -125
- package/dist/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
- package/dist/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
- package/dist/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
- package/dist/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/index.js +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +147 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +451 -0
- package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
- package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/getHistory.js +3 -3
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.js +2 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
- package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/scan.js +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
- package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
- package/dist/api/resources/preEncounter/resources/index.d.ts +0 -4
- package/dist/api/resources/preEncounter/resources/index.js +0 -4
- package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +7 -316
- package/dist/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
- package/dist/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
- package/dist/api/resources/preEncounter/resources/patients/client/index.js +0 -35
- package/dist/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/index.js +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +338 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +716 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
- package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/getHistory.js +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +2 -2
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
- package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
- package/dist/api/resources/serviceFacility/client/Client.d.ts +5 -2
- package/dist/api/resources/serviceFacility/client/Client.js +7 -7
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
- package/dist/api/resources/tasks/client/Client.d.ts +4 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +9 -6
- package/dist/api/resources/tasks/resources/v3/client/Client.js +35 -25
- package/dist/api/resources/writeOffs/client/Client.d.ts +4 -1
- package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +8 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +25 -17
- package/dist/core/fetcher/Fetcher.d.ts +3 -0
- package/dist/core/fetcher/Fetcher.js +22 -153
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +48 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +12 -1
- package/dist/core/schemas/Schema.d.ts +7 -4
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/environments.d.ts +12 -2
- package/dist/environments.js +8 -2
- package/dist/index.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/index.d.ts +0 -2
- package/dist/serialization/resources/preEncounter/resources/index.js +0 -2
- package/dist/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
- package/dist/serialization/resources/preEncounter/resources/patients/index.js +1 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
- package/environments.d.ts +12 -2
- package/environments.js +8 -2
- package/index.d.ts +1 -1
- package/package.json +7 -2
- package/reference.md +7177 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
- package/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
- package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
- package/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +6 -6
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
- package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
- package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
- package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
- package/serialization/resources/preEncounter/resources/index.d.ts +0 -2
- package/serialization/resources/preEncounter/resources/index.js +0 -2
- package/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
- package/serialization/resources/preEncounter/resources/patients/index.js +1 -2
- package/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
- package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients}/client/update.js +6 -6
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
- package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
- package/dist/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
- package/dist/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
- package/dist/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
- package/dist/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
- package/dist/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
- package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
- package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
- package/dist/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
- package/dist/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
- package/dist/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
- package/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
- package/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
- package/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
- package/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
- package/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
- package/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
- package/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
- package/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
- package/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
- package/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
- package/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
- /package/api/resources/preEncounter/resources/coverages/{client/requests → resources/v1/client}/index.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/requests/index.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/{dist/api/resources/preEncounter/resources/coverages/client/requests → api/resources/preEncounter/resources/patients/resources/v1/client}/index.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
- /package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/requests/index.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
|
@@ -6,12 +6,15 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import { V2 } from "../resources/v2/client/Client";
|
|
7
7
|
export declare namespace Eligibility {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -6,12 +6,15 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import * as CandidApi from "../../../../../index";
|
|
7
7
|
export declare namespace V2 {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -38,7 +41,7 @@ export declare class V2 {
|
|
|
38
41
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
42
|
*
|
|
40
43
|
* @example
|
|
41
|
-
* await
|
|
44
|
+
* await client.eligibility.v2.submitEligibilityCheck({
|
|
42
45
|
* "key": "value"
|
|
43
46
|
* })
|
|
44
47
|
*/
|
|
@@ -66,7 +69,7 @@ export declare class V2 {
|
|
|
66
69
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
70
|
*
|
|
68
71
|
* @example
|
|
69
|
-
* await
|
|
72
|
+
* await client.eligibility.v2.submitEligibilityCheckAvaility()
|
|
70
73
|
*/
|
|
71
74
|
submitEligibilityCheckAvaility(requestOptions?: V2.RequestOptions): Promise<core.APIResponse<unknown, CandidApi.eligibility.v2.submitEligibilityCheckAvaility.Error>>;
|
|
72
75
|
/**
|
|
@@ -89,7 +92,7 @@ export declare class V2 {
|
|
|
89
92
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
93
|
*
|
|
91
94
|
* @example
|
|
92
|
-
* await
|
|
95
|
+
* await client.eligibility.v2.submitEligibilityCheckAvailityPost({
|
|
93
96
|
* "key": "value"
|
|
94
97
|
* })
|
|
95
98
|
*/
|
|
@@ -68,7 +68,7 @@ class V2 {
|
|
|
68
68
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await
|
|
71
|
+
* await client.eligibility.v2.submitEligibilityCheck({
|
|
72
72
|
* "key": "value"
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
@@ -76,17 +76,19 @@ class V2 {
|
|
|
76
76
|
var _a, _b;
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
79
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
80
|
+
.candidApi, "/api/eligibility/v2"),
|
|
80
81
|
method: "POST",
|
|
81
82
|
headers: {
|
|
82
83
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
84
|
"X-Fern-Language": "JavaScript",
|
|
84
85
|
"X-Fern-SDK-Name": "candidhealth",
|
|
85
|
-
"X-Fern-SDK-Version": "0.
|
|
86
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
86
87
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
88
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
89
|
},
|
|
89
90
|
contentType: "application/json",
|
|
91
|
+
requestType: "json",
|
|
90
92
|
body: request,
|
|
91
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
92
94
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -103,7 +105,7 @@ class V2 {
|
|
|
103
105
|
case "HttpServiceUnavailableError":
|
|
104
106
|
return {
|
|
105
107
|
ok: false,
|
|
106
|
-
error:
|
|
108
|
+
error: serializers.eligibility.v2.submitEligibilityCheck.Error.parseOrThrow(_response.error.body, {
|
|
107
109
|
unrecognizedObjectKeys: "passthrough",
|
|
108
110
|
allowUnrecognizedUnionMembers: true,
|
|
109
111
|
allowUnrecognizedEnumValues: true,
|
|
@@ -141,23 +143,25 @@ class V2 {
|
|
|
141
143
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
144
|
*
|
|
143
145
|
* @example
|
|
144
|
-
* await
|
|
146
|
+
* await client.eligibility.v2.submitEligibilityCheckAvaility()
|
|
145
147
|
*/
|
|
146
148
|
submitEligibilityCheckAvaility(requestOptions) {
|
|
147
149
|
var _a, _b;
|
|
148
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
151
|
const _response = yield core.fetcher({
|
|
150
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
152
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
153
|
+
.candidApi, "/api/eligibility/v2/availity"),
|
|
151
154
|
method: "GET",
|
|
152
155
|
headers: {
|
|
153
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
154
157
|
"X-Fern-Language": "JavaScript",
|
|
155
158
|
"X-Fern-SDK-Name": "candidhealth",
|
|
156
|
-
"X-Fern-SDK-Version": "0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
157
160
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
158
161
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
159
162
|
},
|
|
160
163
|
contentType: "application/json",
|
|
164
|
+
requestType: "json",
|
|
161
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
162
166
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
163
167
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -173,7 +177,7 @@ class V2 {
|
|
|
173
177
|
case "HttpRequestValidationError":
|
|
174
178
|
return {
|
|
175
179
|
ok: false,
|
|
176
|
-
error:
|
|
180
|
+
error: serializers.eligibility.v2.submitEligibilityCheckAvaility.Error.parseOrThrow(_response.error.body, {
|
|
177
181
|
unrecognizedObjectKeys: "passthrough",
|
|
178
182
|
allowUnrecognizedUnionMembers: true,
|
|
179
183
|
allowUnrecognizedEnumValues: true,
|
|
@@ -208,7 +212,7 @@ class V2 {
|
|
|
208
212
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
213
|
*
|
|
210
214
|
* @example
|
|
211
|
-
* await
|
|
215
|
+
* await client.eligibility.v2.submitEligibilityCheckAvailityPost({
|
|
212
216
|
* "key": "value"
|
|
213
217
|
* })
|
|
214
218
|
*/
|
|
@@ -216,17 +220,19 @@ class V2 {
|
|
|
216
220
|
var _a, _b;
|
|
217
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
218
222
|
const _response = yield core.fetcher({
|
|
219
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
223
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
224
|
+
.candidApi, "/api/eligibility/v2/availity"),
|
|
220
225
|
method: "POST",
|
|
221
226
|
headers: {
|
|
222
227
|
Authorization: yield this._getAuthorizationHeader(),
|
|
223
228
|
"X-Fern-Language": "JavaScript",
|
|
224
229
|
"X-Fern-SDK-Name": "candidhealth",
|
|
225
|
-
"X-Fern-SDK-Version": "0.
|
|
230
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
226
231
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
227
232
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
228
233
|
},
|
|
229
234
|
contentType: "application/json",
|
|
235
|
+
requestType: "json",
|
|
230
236
|
body: request,
|
|
231
237
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
232
238
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -243,7 +249,7 @@ class V2 {
|
|
|
243
249
|
case "HttpRequestValidationError":
|
|
244
250
|
return {
|
|
245
251
|
ok: false,
|
|
246
|
-
error:
|
|
252
|
+
error: serializers.eligibility.v2.submitEligibilityCheckAvailityPost.Error.parseOrThrow(_response.error
|
|
247
253
|
.body, {
|
|
248
254
|
unrecognizedObjectKeys: "passthrough",
|
|
249
255
|
allowUnrecognizedUnionMembers: true,
|
|
@@ -6,12 +6,15 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import { V4 } from "../resources/v4/client/Client";
|
|
7
7
|
export declare namespace Encounters {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -6,12 +6,15 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import * as CandidApi from "../../../../../index";
|
|
7
7
|
export declare namespace V4 {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -23,7 +26,7 @@ export declare class V4 {
|
|
|
23
26
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
27
|
*
|
|
25
28
|
* @example
|
|
26
|
-
* await
|
|
29
|
+
* await client.encounters.v4.getAll({
|
|
27
30
|
* limit: 100,
|
|
28
31
|
* claimStatus: CandidApi.ClaimStatus.BillerReceived,
|
|
29
32
|
* sort: CandidApi.encounters.v4.EncounterSortOptions.CreatedAtAsc,
|
|
@@ -42,7 +45,7 @@ export declare class V4 {
|
|
|
42
45
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
46
|
*
|
|
44
47
|
* @example
|
|
45
|
-
* await
|
|
48
|
+
* await client.encounters.v4.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
46
49
|
*/
|
|
47
50
|
get(encounterId: CandidApi.EncounterId, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.get.Error>>;
|
|
48
51
|
/**
|
|
@@ -50,7 +53,7 @@ export declare class V4 {
|
|
|
50
53
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
54
|
*
|
|
52
55
|
* @example
|
|
53
|
-
* await
|
|
56
|
+
* await client.encounters.v4.create({
|
|
54
57
|
* dateOfService: "2023-01-15",
|
|
55
58
|
* endDateOfService: "2023-01-15",
|
|
56
59
|
* patient: {
|
|
@@ -152,21 +155,6 @@ export declare class V4 {
|
|
|
152
155
|
* lastName: "string",
|
|
153
156
|
* organizationName: "string"
|
|
154
157
|
* },
|
|
155
|
-
* orderingProvider: {
|
|
156
|
-
* npi: "string",
|
|
157
|
-
* taxonomyCode: "string",
|
|
158
|
-
* address: {
|
|
159
|
-
* address1: "123 Main St",
|
|
160
|
-
* address2: "Apt 1",
|
|
161
|
-
* city: "New York",
|
|
162
|
-
* state: CandidApi.State.Ny,
|
|
163
|
-
* zipCode: "10001",
|
|
164
|
-
* zipPlusFourCode: "1234"
|
|
165
|
-
* },
|
|
166
|
-
* firstName: "string",
|
|
167
|
-
* lastName: "string",
|
|
168
|
-
* organizationName: "string"
|
|
169
|
-
* },
|
|
170
158
|
* serviceFacility: {
|
|
171
159
|
* organizationName: "string",
|
|
172
160
|
* npi: "string",
|
|
@@ -442,7 +430,7 @@ export declare class V4 {
|
|
|
442
430
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
443
431
|
*
|
|
444
432
|
* @example
|
|
445
|
-
* await
|
|
433
|
+
* await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
446
434
|
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
447
435
|
* externalId: CandidApi.EncounterExternalId("string"),
|
|
448
436
|
* dateOfService: "2023-01-15",
|
|
@@ -53,7 +53,7 @@ class V4 {
|
|
|
53
53
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await
|
|
56
|
+
* await client.encounters.v4.getAll({
|
|
57
57
|
* limit: 100,
|
|
58
58
|
* claimStatus: CandidApi.ClaimStatus.BillerReceived,
|
|
59
59
|
* sort: CandidApi.encounters.v4.EncounterSortOptions.CreatedAtAsc,
|
|
@@ -125,18 +125,20 @@ class V4 {
|
|
|
125
125
|
_queryParams["patient_external_id"] = patientExternalId;
|
|
126
126
|
}
|
|
127
127
|
const _response = yield core.fetcher({
|
|
128
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
128
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
129
|
+
.candidApi, "/api/encounters/v4"),
|
|
129
130
|
method: "GET",
|
|
130
131
|
headers: {
|
|
131
132
|
Authorization: yield this._getAuthorizationHeader(),
|
|
132
133
|
"X-Fern-Language": "JavaScript",
|
|
133
134
|
"X-Fern-SDK-Name": "candidhealth",
|
|
134
|
-
"X-Fern-SDK-Version": "0.
|
|
135
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
135
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
136
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
137
138
|
},
|
|
138
139
|
contentType: "application/json",
|
|
139
140
|
queryParameters: _queryParams,
|
|
141
|
+
requestType: "json",
|
|
140
142
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
141
143
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
142
144
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -144,7 +146,7 @@ class V4 {
|
|
|
144
146
|
if (_response.ok) {
|
|
145
147
|
return {
|
|
146
148
|
ok: true,
|
|
147
|
-
body:
|
|
149
|
+
body: serializers.encounters.v4.EncounterPage.parseOrThrow(_response.body, {
|
|
148
150
|
unrecognizedObjectKeys: "passthrough",
|
|
149
151
|
allowUnrecognizedUnionMembers: true,
|
|
150
152
|
allowUnrecognizedEnumValues: true,
|
|
@@ -163,23 +165,25 @@ class V4 {
|
|
|
163
165
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
164
166
|
*
|
|
165
167
|
* @example
|
|
166
|
-
* await
|
|
168
|
+
* await client.encounters.v4.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
167
169
|
*/
|
|
168
170
|
get(encounterId, requestOptions) {
|
|
169
171
|
var _a;
|
|
170
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
173
|
const _response = yield core.fetcher({
|
|
172
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
174
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
175
|
+
.candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
173
176
|
method: "GET",
|
|
174
177
|
headers: {
|
|
175
178
|
Authorization: yield this._getAuthorizationHeader(),
|
|
176
179
|
"X-Fern-Language": "JavaScript",
|
|
177
180
|
"X-Fern-SDK-Name": "candidhealth",
|
|
178
|
-
"X-Fern-SDK-Version": "0.
|
|
181
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
179
182
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
180
183
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
181
184
|
},
|
|
182
185
|
contentType: "application/json",
|
|
186
|
+
requestType: "json",
|
|
183
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
184
188
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
185
189
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -187,7 +191,7 @@ class V4 {
|
|
|
187
191
|
if (_response.ok) {
|
|
188
192
|
return {
|
|
189
193
|
ok: true,
|
|
190
|
-
body:
|
|
194
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
191
195
|
unrecognizedObjectKeys: "passthrough",
|
|
192
196
|
allowUnrecognizedUnionMembers: true,
|
|
193
197
|
allowUnrecognizedEnumValues: true,
|
|
@@ -206,7 +210,7 @@ class V4 {
|
|
|
206
210
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
211
|
*
|
|
208
212
|
* @example
|
|
209
|
-
* await
|
|
213
|
+
* await client.encounters.v4.create({
|
|
210
214
|
* dateOfService: "2023-01-15",
|
|
211
215
|
* endDateOfService: "2023-01-15",
|
|
212
216
|
* patient: {
|
|
@@ -308,21 +312,6 @@ class V4 {
|
|
|
308
312
|
* lastName: "string",
|
|
309
313
|
* organizationName: "string"
|
|
310
314
|
* },
|
|
311
|
-
* orderingProvider: {
|
|
312
|
-
* npi: "string",
|
|
313
|
-
* taxonomyCode: "string",
|
|
314
|
-
* address: {
|
|
315
|
-
* address1: "123 Main St",
|
|
316
|
-
* address2: "Apt 1",
|
|
317
|
-
* city: "New York",
|
|
318
|
-
* state: CandidApi.State.Ny,
|
|
319
|
-
* zipCode: "10001",
|
|
320
|
-
* zipPlusFourCode: "1234"
|
|
321
|
-
* },
|
|
322
|
-
* firstName: "string",
|
|
323
|
-
* lastName: "string",
|
|
324
|
-
* organizationName: "string"
|
|
325
|
-
* },
|
|
326
315
|
* serviceFacility: {
|
|
327
316
|
* organizationName: "string",
|
|
328
317
|
* npi: "string",
|
|
@@ -595,20 +584,20 @@ class V4 {
|
|
|
595
584
|
var _a, _b;
|
|
596
585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
597
586
|
const _response = yield core.fetcher({
|
|
598
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
587
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
588
|
+
.candidApi, "/api/encounters/v4"),
|
|
599
589
|
method: "POST",
|
|
600
590
|
headers: {
|
|
601
591
|
Authorization: yield this._getAuthorizationHeader(),
|
|
602
592
|
"X-Fern-Language": "JavaScript",
|
|
603
593
|
"X-Fern-SDK-Name": "candidhealth",
|
|
604
|
-
"X-Fern-SDK-Version": "0.
|
|
594
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
605
595
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
606
596
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
607
597
|
},
|
|
608
598
|
contentType: "application/json",
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}),
|
|
599
|
+
requestType: "json",
|
|
600
|
+
body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
612
601
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
613
602
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
614
603
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -616,7 +605,7 @@ class V4 {
|
|
|
616
605
|
if (_response.ok) {
|
|
617
606
|
return {
|
|
618
607
|
ok: true,
|
|
619
|
-
body:
|
|
608
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
620
609
|
unrecognizedObjectKeys: "passthrough",
|
|
621
610
|
allowUnrecognizedUnionMembers: true,
|
|
622
611
|
allowUnrecognizedEnumValues: true,
|
|
@@ -634,7 +623,7 @@ class V4 {
|
|
|
634
623
|
case "CashPayPayerError":
|
|
635
624
|
return {
|
|
636
625
|
ok: false,
|
|
637
|
-
error:
|
|
626
|
+
error: serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
|
|
638
627
|
unrecognizedObjectKeys: "passthrough",
|
|
639
628
|
allowUnrecognizedUnionMembers: true,
|
|
640
629
|
allowUnrecognizedEnumValues: true,
|
|
@@ -655,7 +644,7 @@ class V4 {
|
|
|
655
644
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
656
645
|
*
|
|
657
646
|
* @example
|
|
658
|
-
* await
|
|
647
|
+
* await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
659
648
|
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
660
649
|
* externalId: CandidApi.EncounterExternalId("string"),
|
|
661
650
|
* dateOfService: "2023-01-15",
|
|
@@ -754,20 +743,20 @@ class V4 {
|
|
|
754
743
|
var _a, _b;
|
|
755
744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
756
745
|
const _response = yield core.fetcher({
|
|
757
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
746
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
747
|
+
.candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
758
748
|
method: "PATCH",
|
|
759
749
|
headers: {
|
|
760
750
|
Authorization: yield this._getAuthorizationHeader(),
|
|
761
751
|
"X-Fern-Language": "JavaScript",
|
|
762
752
|
"X-Fern-SDK-Name": "candidhealth",
|
|
763
|
-
"X-Fern-SDK-Version": "0.
|
|
753
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
764
754
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
765
755
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
766
756
|
},
|
|
767
757
|
contentType: "application/json",
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}),
|
|
758
|
+
requestType: "json",
|
|
759
|
+
body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
771
760
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
772
761
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
773
762
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -775,7 +764,7 @@ class V4 {
|
|
|
775
764
|
if (_response.ok) {
|
|
776
765
|
return {
|
|
777
766
|
ok: true,
|
|
778
|
-
body:
|
|
767
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
779
768
|
unrecognizedObjectKeys: "passthrough",
|
|
780
769
|
allowUnrecognizedUnionMembers: true,
|
|
781
770
|
allowUnrecognizedEnumValues: true,
|
|
@@ -791,7 +780,7 @@ class V4 {
|
|
|
791
780
|
case "HttpRequestValidationsError":
|
|
792
781
|
return {
|
|
793
782
|
ok: false,
|
|
794
|
-
error:
|
|
783
|
+
error: serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
|
|
795
784
|
unrecognizedObjectKeys: "passthrough",
|
|
796
785
|
allowUnrecognizedUnionMembers: true,
|
|
797
786
|
allowUnrecognizedEnumValues: true,
|
|
@@ -106,21 +106,6 @@ import * as CandidApi from "../../../../../../index";
|
|
|
106
106
|
* lastName: "string",
|
|
107
107
|
* organizationName: "string"
|
|
108
108
|
* },
|
|
109
|
-
* orderingProvider: {
|
|
110
|
-
* npi: "string",
|
|
111
|
-
* taxonomyCode: "string",
|
|
112
|
-
* address: {
|
|
113
|
-
* address1: "123 Main St",
|
|
114
|
-
* address2: "Apt 1",
|
|
115
|
-
* city: "New York",
|
|
116
|
-
* state: CandidApi.State.Ny,
|
|
117
|
-
* zipCode: "10001",
|
|
118
|
-
* zipPlusFourCode: "1234"
|
|
119
|
-
* },
|
|
120
|
-
* firstName: "string",
|
|
121
|
-
* lastName: "string",
|
|
122
|
-
* organizationName: "string"
|
|
123
|
-
* },
|
|
124
109
|
* serviceFacility: {
|
|
125
110
|
* organizationName: "string",
|
|
126
111
|
* npi: "string",
|
|
@@ -433,22 +418,18 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
|
433
418
|
*/
|
|
434
419
|
referringProvider?: CandidApi.encounterProviders.v2.ReferringProvider;
|
|
435
420
|
/**
|
|
436
|
-
* The
|
|
437
|
-
*
|
|
438
|
-
*
|
|
421
|
+
* The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in this loop to
|
|
422
|
+
* indicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.
|
|
423
|
+
* Information in Loop ID-2310 applies to the entire claim unless overridden on a service line by the presence of Loop ID-2420 with the same value in NM101.
|
|
439
424
|
*
|
|
440
425
|
*/
|
|
441
426
|
initialReferringProvider?: CandidApi.encounterProviders.v2.InitialReferringProvider;
|
|
442
427
|
/**
|
|
443
|
-
*
|
|
428
|
+
* Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send.
|
|
429
|
+
* Information in Loop ID-2310 applies to the entire claim unless overridden on a service line by the presence of Loop ID-2420 with the same value in NM101.
|
|
444
430
|
*
|
|
445
431
|
*/
|
|
446
432
|
supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProvider;
|
|
447
|
-
/**
|
|
448
|
-
* The provider who ordered the services that were rendered.
|
|
449
|
-
*
|
|
450
|
-
*/
|
|
451
|
-
orderingProvider?: CandidApi.encounterProviders.v2.OrderingProvider;
|
|
452
433
|
/**
|
|
453
434
|
* Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process.
|
|
454
435
|
*
|
|
@@ -414,7 +414,6 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
|
414
414
|
referringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
415
415
|
initialReferringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
416
416
|
supervisingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
417
|
-
orderingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
418
417
|
/** Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process. */
|
|
419
418
|
serviceFacility: CandidApi.EncounterServiceFacility;
|
|
420
419
|
/**
|
|
@@ -7,12 +7,15 @@ import { V1 } from "../resources/v1/client/Client";
|
|
|
7
7
|
import { V2 } from "../resources/v2/client/Client";
|
|
8
8
|
export declare namespace ExpectedNetworkStatus {
|
|
9
9
|
interface Options {
|
|
10
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
10
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
11
11
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
12
|
}
|
|
13
13
|
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
15
|
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
15
17
|
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
16
19
|
abortSignal?: AbortSignal;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -6,12 +6,15 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import * as CandidApi from "../../../../../index";
|
|
7
7
|
export declare namespace V1 {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -25,7 +28,7 @@ export declare class V1 {
|
|
|
25
28
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
29
|
*
|
|
27
30
|
* @example
|
|
28
|
-
* await
|
|
31
|
+
* await client.expectedNetworkStatus.v1.compute({
|
|
29
32
|
* externalPatientId: "string",
|
|
30
33
|
* subscriberPayerId: "string",
|
|
31
34
|
* subscriberPayerName: "string",
|
|
@@ -55,7 +55,7 @@ class V1 {
|
|
|
55
55
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await
|
|
58
|
+
* await client.expectedNetworkStatus.v1.compute({
|
|
59
59
|
* externalPatientId: "string",
|
|
60
60
|
* subscriberPayerId: "string",
|
|
61
61
|
* subscriberPayerName: "string",
|
|
@@ -72,18 +72,20 @@ class V1 {
|
|
|
72
72
|
var _a;
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
75
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
76
|
+
.candidApi, "/api/expected-network-status/v1"),
|
|
76
77
|
method: "POST",
|
|
77
78
|
headers: {
|
|
78
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
80
|
"X-Fern-Language": "JavaScript",
|
|
80
81
|
"X-Fern-SDK-Name": "candidhealth",
|
|
81
|
-
"X-Fern-SDK-Version": "0.
|
|
82
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
82
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
83
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
84
85
|
},
|
|
85
86
|
contentType: "application/json",
|
|
86
|
-
|
|
87
|
+
requestType: "json",
|
|
88
|
+
body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
87
89
|
unrecognizedObjectKeys: "strip",
|
|
88
90
|
}),
|
|
89
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -93,7 +95,7 @@ class V1 {
|
|
|
93
95
|
if (_response.ok) {
|
|
94
96
|
return {
|
|
95
97
|
ok: true,
|
|
96
|
-
body:
|
|
98
|
+
body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusResponse.parseOrThrow(_response.body, {
|
|
97
99
|
unrecognizedObjectKeys: "passthrough",
|
|
98
100
|
allowUnrecognizedUnionMembers: true,
|
|
99
101
|
allowUnrecognizedEnumValues: true,
|