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
|
@@ -3,333 +3,24 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../../../environments";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
import
|
|
6
|
+
import { V1 } from "../resources/v1/client/Client";
|
|
7
7
|
export declare namespace Patients {
|
|
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
|
}
|
|
18
21
|
export declare class Patients {
|
|
19
22
|
protected readonly _options: Patients.Options;
|
|
20
23
|
constructor(_options?: Patients.Options);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
* @param {CandidApi.preEncounter.MutablePatient} request
|
|
25
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* await candidApi.preEncounter.patients.create({
|
|
29
|
-
* name: {
|
|
30
|
-
* family: "string",
|
|
31
|
-
* given: ["string"],
|
|
32
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
33
|
-
* period: {}
|
|
34
|
-
* },
|
|
35
|
-
* otherNames: [{
|
|
36
|
-
* family: "string",
|
|
37
|
-
* given: ["string"],
|
|
38
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
39
|
-
* period: {}
|
|
40
|
-
* }],
|
|
41
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
42
|
-
* birthDate: "2023-01-15",
|
|
43
|
-
* maritalStatus: CandidApi.preEncounter.MaritalStatus.Annulled,
|
|
44
|
-
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
45
|
-
* multipleBirth: 1,
|
|
46
|
-
* primaryAddress: {
|
|
47
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
48
|
-
* line: ["string"],
|
|
49
|
-
* city: "string",
|
|
50
|
-
* state: "string",
|
|
51
|
-
* postalCode: "string",
|
|
52
|
-
* country: "string",
|
|
53
|
-
* period: {}
|
|
54
|
-
* },
|
|
55
|
-
* otherAddresses: [{
|
|
56
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
57
|
-
* line: ["string"],
|
|
58
|
-
* city: "string",
|
|
59
|
-
* state: "string",
|
|
60
|
-
* postalCode: "string",
|
|
61
|
-
* country: "string",
|
|
62
|
-
* period: {}
|
|
63
|
-
* }],
|
|
64
|
-
* primaryTelecom: {
|
|
65
|
-
* value: "string",
|
|
66
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
67
|
-
* period: {
|
|
68
|
-
* start: "2023-01-15",
|
|
69
|
-
* end: "2023-01-15"
|
|
70
|
-
* }
|
|
71
|
-
* },
|
|
72
|
-
* otherTelecoms: [{
|
|
73
|
-
* value: "string",
|
|
74
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
75
|
-
* period: {
|
|
76
|
-
* start: "2023-01-15",
|
|
77
|
-
* end: "2023-01-15"
|
|
78
|
-
* }
|
|
79
|
-
* }],
|
|
80
|
-
* photo: "string",
|
|
81
|
-
* language: "string",
|
|
82
|
-
* externalProvenance: {
|
|
83
|
-
* externalId: "string",
|
|
84
|
-
* systemName: "string"
|
|
85
|
-
* },
|
|
86
|
-
* contacts: [{
|
|
87
|
-
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
88
|
-
* name: {
|
|
89
|
-
* family: "string",
|
|
90
|
-
* given: ["string"],
|
|
91
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
92
|
-
* period: {}
|
|
93
|
-
* },
|
|
94
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
95
|
-
* telecoms: [{
|
|
96
|
-
* value: "string",
|
|
97
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
98
|
-
* period: {
|
|
99
|
-
* start: "2023-01-15",
|
|
100
|
-
* end: "2023-01-15"
|
|
101
|
-
* }
|
|
102
|
-
* }],
|
|
103
|
-
* addresses: [{
|
|
104
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
105
|
-
* line: ["string"],
|
|
106
|
-
* city: "string",
|
|
107
|
-
* state: "string",
|
|
108
|
-
* postalCode: "string",
|
|
109
|
-
* country: "string",
|
|
110
|
-
* period: {}
|
|
111
|
-
* }],
|
|
112
|
-
* period: {
|
|
113
|
-
* start: "2023-01-15",
|
|
114
|
-
* end: "2023-01-15"
|
|
115
|
-
* }
|
|
116
|
-
* }],
|
|
117
|
-
* generalPractitioners: [{
|
|
118
|
-
* name: {
|
|
119
|
-
* family: "string",
|
|
120
|
-
* given: ["string"],
|
|
121
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
122
|
-
* period: {}
|
|
123
|
-
* },
|
|
124
|
-
* telecoms: [{
|
|
125
|
-
* value: "string",
|
|
126
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
127
|
-
* period: {
|
|
128
|
-
* start: "2023-01-15",
|
|
129
|
-
* end: "2023-01-15"
|
|
130
|
-
* }
|
|
131
|
-
* }],
|
|
132
|
-
* addresses: [{
|
|
133
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
134
|
-
* line: ["string"],
|
|
135
|
-
* city: "string",
|
|
136
|
-
* state: "string",
|
|
137
|
-
* postalCode: "string",
|
|
138
|
-
* country: "string",
|
|
139
|
-
* period: {}
|
|
140
|
-
* }],
|
|
141
|
-
* period: {
|
|
142
|
-
* start: "2023-01-15",
|
|
143
|
-
* end: "2023-01-15"
|
|
144
|
-
* }
|
|
145
|
-
* }]
|
|
146
|
-
* })
|
|
147
|
-
*/
|
|
148
|
-
create(request: CandidApi.preEncounter.MutablePatient, requestOptions?: Patients.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.Patient, CandidApi.preEncounter.patients.create.Error>>;
|
|
149
|
-
/**
|
|
150
|
-
* Gets a patient.
|
|
151
|
-
*
|
|
152
|
-
* @param {CandidApi.preEncounter.PatientId} id
|
|
153
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* await candidApi.preEncounter.patients.get(CandidApi.preEncounter.PatientId("string"))
|
|
157
|
-
*/
|
|
158
|
-
get(id: CandidApi.preEncounter.PatientId, requestOptions?: Patients.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.Patient, CandidApi.preEncounter.patients.get.Error>>;
|
|
159
|
-
/**
|
|
160
|
-
* Gets a patient along with it's full history. The return list is ordered by version ascending.
|
|
161
|
-
*
|
|
162
|
-
* @param {CandidApi.preEncounter.PatientId} id
|
|
163
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
164
|
-
*
|
|
165
|
-
* @example
|
|
166
|
-
* await candidApi.preEncounter.patients.getHistory(CandidApi.preEncounter.PatientId("string"))
|
|
167
|
-
*/
|
|
168
|
-
getHistory(id: CandidApi.preEncounter.PatientId, requestOptions?: Patients.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.Patient[], CandidApi.preEncounter.patients.getHistory.Error>>;
|
|
169
|
-
/**
|
|
170
|
-
* Updates a patient. The path must contain the most recent version to prevent races. Updating historic versions is not supported.
|
|
171
|
-
*
|
|
172
|
-
* @param {CandidApi.preEncounter.PatientId} id
|
|
173
|
-
* @param {number} version
|
|
174
|
-
* @param {CandidApi.preEncounter.MutablePatient} request
|
|
175
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* await candidApi.preEncounter.patients.update(CandidApi.preEncounter.PatientId("string"), 1, {
|
|
179
|
-
* name: {
|
|
180
|
-
* family: "string",
|
|
181
|
-
* given: ["string"],
|
|
182
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
183
|
-
* period: {}
|
|
184
|
-
* },
|
|
185
|
-
* otherNames: [{
|
|
186
|
-
* family: "string",
|
|
187
|
-
* given: ["string"],
|
|
188
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
189
|
-
* period: {}
|
|
190
|
-
* }],
|
|
191
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
192
|
-
* birthDate: "2023-01-15",
|
|
193
|
-
* maritalStatus: CandidApi.preEncounter.MaritalStatus.Annulled,
|
|
194
|
-
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
195
|
-
* multipleBirth: 1,
|
|
196
|
-
* primaryAddress: {
|
|
197
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
198
|
-
* line: ["string"],
|
|
199
|
-
* city: "string",
|
|
200
|
-
* state: "string",
|
|
201
|
-
* postalCode: "string",
|
|
202
|
-
* country: "string",
|
|
203
|
-
* period: {}
|
|
204
|
-
* },
|
|
205
|
-
* otherAddresses: [{
|
|
206
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
207
|
-
* line: ["string"],
|
|
208
|
-
* city: "string",
|
|
209
|
-
* state: "string",
|
|
210
|
-
* postalCode: "string",
|
|
211
|
-
* country: "string",
|
|
212
|
-
* period: {}
|
|
213
|
-
* }],
|
|
214
|
-
* primaryTelecom: {
|
|
215
|
-
* value: "string",
|
|
216
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
217
|
-
* period: {
|
|
218
|
-
* start: "2023-01-15",
|
|
219
|
-
* end: "2023-01-15"
|
|
220
|
-
* }
|
|
221
|
-
* },
|
|
222
|
-
* otherTelecoms: [{
|
|
223
|
-
* value: "string",
|
|
224
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
225
|
-
* period: {
|
|
226
|
-
* start: "2023-01-15",
|
|
227
|
-
* end: "2023-01-15"
|
|
228
|
-
* }
|
|
229
|
-
* }],
|
|
230
|
-
* photo: "string",
|
|
231
|
-
* language: "string",
|
|
232
|
-
* externalProvenance: {
|
|
233
|
-
* externalId: "string",
|
|
234
|
-
* systemName: "string"
|
|
235
|
-
* },
|
|
236
|
-
* contacts: [{
|
|
237
|
-
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
238
|
-
* name: {
|
|
239
|
-
* family: "string",
|
|
240
|
-
* given: ["string"],
|
|
241
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
242
|
-
* period: {}
|
|
243
|
-
* },
|
|
244
|
-
* gender: CandidApi.preEncounter.Gender.Female,
|
|
245
|
-
* telecoms: [{
|
|
246
|
-
* value: "string",
|
|
247
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
248
|
-
* period: {
|
|
249
|
-
* start: "2023-01-15",
|
|
250
|
-
* end: "2023-01-15"
|
|
251
|
-
* }
|
|
252
|
-
* }],
|
|
253
|
-
* addresses: [{
|
|
254
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
255
|
-
* line: ["string"],
|
|
256
|
-
* city: "string",
|
|
257
|
-
* state: "string",
|
|
258
|
-
* postalCode: "string",
|
|
259
|
-
* country: "string",
|
|
260
|
-
* period: {}
|
|
261
|
-
* }],
|
|
262
|
-
* period: {
|
|
263
|
-
* start: "2023-01-15",
|
|
264
|
-
* end: "2023-01-15"
|
|
265
|
-
* }
|
|
266
|
-
* }],
|
|
267
|
-
* generalPractitioners: [{
|
|
268
|
-
* name: {
|
|
269
|
-
* family: "string",
|
|
270
|
-
* given: ["string"],
|
|
271
|
-
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
272
|
-
* period: {}
|
|
273
|
-
* },
|
|
274
|
-
* telecoms: [{
|
|
275
|
-
* value: "string",
|
|
276
|
-
* use: CandidApi.preEncounter.ContactPointUse.Home,
|
|
277
|
-
* period: {
|
|
278
|
-
* start: "2023-01-15",
|
|
279
|
-
* end: "2023-01-15"
|
|
280
|
-
* }
|
|
281
|
-
* }],
|
|
282
|
-
* addresses: [{
|
|
283
|
-
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
284
|
-
* line: ["string"],
|
|
285
|
-
* city: "string",
|
|
286
|
-
* state: "string",
|
|
287
|
-
* postalCode: "string",
|
|
288
|
-
* country: "string",
|
|
289
|
-
* period: {}
|
|
290
|
-
* }],
|
|
291
|
-
* period: {
|
|
292
|
-
* start: "2023-01-15",
|
|
293
|
-
* end: "2023-01-15"
|
|
294
|
-
* }
|
|
295
|
-
* }]
|
|
296
|
-
* })
|
|
297
|
-
*/
|
|
298
|
-
update(id: CandidApi.preEncounter.PatientId, version: number, request: CandidApi.preEncounter.MutablePatient, requestOptions?: Patients.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.Patient, CandidApi.preEncounter.patients.update.Error>>;
|
|
299
|
-
/**
|
|
300
|
-
* Sets a patient as deactivated. The path must contain the most recent version to prevent races. Dactivating historic versions is not supported. Subsequent updates via PUT to the patient will "reactivate" the patient and set the deactivated flag to false.
|
|
301
|
-
*
|
|
302
|
-
* @param {CandidApi.preEncounter.PatientId} id
|
|
303
|
-
* @param {number} version
|
|
304
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
305
|
-
*
|
|
306
|
-
* @example
|
|
307
|
-
* await candidApi.preEncounter.patients.deactivate(CandidApi.preEncounter.PatientId("string"), 1)
|
|
308
|
-
*/
|
|
309
|
-
deactivate(id: CandidApi.preEncounter.PatientId, version: number, requestOptions?: Patients.RequestOptions): Promise<core.APIResponse<void, CandidApi.preEncounter.patients.deactivate.Error>>;
|
|
310
|
-
/**
|
|
311
|
-
* Searches for patients that match the query parameters.
|
|
312
|
-
*
|
|
313
|
-
* @param {CandidApi.preEncounter.PatientsSearchRequest} request
|
|
314
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
315
|
-
*
|
|
316
|
-
* @example
|
|
317
|
-
* await candidApi.preEncounter.patients.search({
|
|
318
|
-
* nameContains: "string"
|
|
319
|
-
* })
|
|
320
|
-
*/
|
|
321
|
-
search(request?: CandidApi.preEncounter.PatientsSearchRequest, requestOptions?: Patients.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.Patient[], CandidApi.preEncounter.patients.search.Error>>;
|
|
322
|
-
/**
|
|
323
|
-
* Scans up to 100 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt descending.
|
|
324
|
-
*
|
|
325
|
-
* @param {CandidApi.preEncounter.PatientScanRequest} request
|
|
326
|
-
* @param {Patients.RequestOptions} requestOptions - Request-specific configuration.
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
* await candidApi.preEncounter.patients.scan({
|
|
330
|
-
* since: new Date("2024-01-15T09:30:00.000Z")
|
|
331
|
-
* })
|
|
332
|
-
*/
|
|
333
|
-
scan(request: CandidApi.preEncounter.PatientScanRequest, requestOptions?: Patients.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.Patient[], CandidApi.preEncounter.patients.scan.Error>>;
|
|
334
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
24
|
+
protected _v1: V1 | undefined;
|
|
25
|
+
get v1(): V1;
|
|
335
26
|
}
|