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
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.transform = exports.optional = exports.getSchemaUtils = void 0;
|
|
13
4
|
const Schema_1 = require("../../Schema");
|
|
@@ -17,20 +8,20 @@ function getSchemaUtils(schema) {
|
|
|
17
8
|
return {
|
|
18
9
|
optional: () => optional(schema),
|
|
19
10
|
transform: (transformer) => transform(schema, transformer),
|
|
20
|
-
parseOrThrow: (raw, opts) =>
|
|
21
|
-
const parsed =
|
|
11
|
+
parseOrThrow: (raw, opts) => {
|
|
12
|
+
const parsed = schema.parse(raw, opts);
|
|
22
13
|
if (parsed.ok) {
|
|
23
14
|
return parsed.value;
|
|
24
15
|
}
|
|
25
16
|
throw new ParseError_1.ParseError(parsed.errors);
|
|
26
|
-
}
|
|
27
|
-
jsonOrThrow: (parsed, opts) =>
|
|
28
|
-
const raw =
|
|
17
|
+
},
|
|
18
|
+
jsonOrThrow: (parsed, opts) => {
|
|
19
|
+
const raw = schema.json(parsed, opts);
|
|
29
20
|
if (raw.ok) {
|
|
30
21
|
return raw.value;
|
|
31
22
|
}
|
|
32
23
|
throw new JsonError_1.JsonError(raw.errors);
|
|
33
|
-
}
|
|
24
|
+
},
|
|
34
25
|
};
|
|
35
26
|
}
|
|
36
27
|
exports.getSchemaUtils = getSchemaUtils;
|
|
@@ -49,6 +40,12 @@ function optional(schema) {
|
|
|
49
40
|
return schema.parse(raw, opts);
|
|
50
41
|
},
|
|
51
42
|
json: (parsed, opts) => {
|
|
43
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.omitUndefined) && parsed === undefined) {
|
|
44
|
+
return {
|
|
45
|
+
ok: true,
|
|
46
|
+
value: undefined,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
52
49
|
if (parsed == null) {
|
|
53
50
|
return {
|
|
54
51
|
ok: true,
|
|
@@ -64,8 +61,8 @@ function optional(schema) {
|
|
|
64
61
|
exports.optional = optional;
|
|
65
62
|
function transform(schema, transformer) {
|
|
66
63
|
const baseSchema = {
|
|
67
|
-
parse: (raw, opts) =>
|
|
68
|
-
const parsed =
|
|
64
|
+
parse: (raw, opts) => {
|
|
65
|
+
const parsed = schema.parse(raw, opts);
|
|
69
66
|
if (!parsed.ok) {
|
|
70
67
|
return parsed;
|
|
71
68
|
}
|
|
@@ -73,11 +70,11 @@ function transform(schema, transformer) {
|
|
|
73
70
|
ok: true,
|
|
74
71
|
value: transformer.transform(parsed.value),
|
|
75
72
|
};
|
|
76
|
-
}
|
|
77
|
-
json: (transformed, opts) =>
|
|
78
|
-
const parsed =
|
|
73
|
+
},
|
|
74
|
+
json: (transformed, opts) => {
|
|
75
|
+
const parsed = transformer.untransform(transformed);
|
|
79
76
|
return schema.json(parsed, opts);
|
|
80
|
-
}
|
|
77
|
+
},
|
|
81
78
|
getType: () => schema.getType(),
|
|
82
79
|
};
|
|
83
80
|
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.set = void 0;
|
|
13
4
|
const Schema_1 = require("../../Schema");
|
|
@@ -18,8 +9,8 @@ const schema_utils_1 = require("../schema-utils");
|
|
|
18
9
|
function set(schema) {
|
|
19
10
|
const listSchema = (0, list_1.list)(schema);
|
|
20
11
|
const baseSchema = {
|
|
21
|
-
parse: (raw, opts) =>
|
|
22
|
-
const parsedList =
|
|
12
|
+
parse: (raw, opts) => {
|
|
13
|
+
const parsedList = listSchema.parse(raw, opts);
|
|
23
14
|
if (parsedList.ok) {
|
|
24
15
|
return {
|
|
25
16
|
ok: true,
|
|
@@ -29,8 +20,8 @@ function set(schema) {
|
|
|
29
20
|
else {
|
|
30
21
|
return parsedList;
|
|
31
22
|
}
|
|
32
|
-
}
|
|
33
|
-
json: (parsed, opts) =>
|
|
23
|
+
},
|
|
24
|
+
json: (parsed, opts) => {
|
|
34
25
|
var _a;
|
|
35
26
|
if (!(parsed instanceof Set)) {
|
|
36
27
|
return {
|
|
@@ -43,9 +34,9 @@ function set(schema) {
|
|
|
43
34
|
],
|
|
44
35
|
};
|
|
45
36
|
}
|
|
46
|
-
const jsonList =
|
|
37
|
+
const jsonList = listSchema.json([...parsed], opts);
|
|
47
38
|
return jsonList;
|
|
48
|
-
}
|
|
39
|
+
},
|
|
49
40
|
getType: () => Schema_1.SchemaType.SET,
|
|
50
41
|
};
|
|
51
42
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.undiscriminatedUnion = void 0;
|
|
13
4
|
const Schema_1 = require("../../Schema");
|
|
@@ -15,37 +6,35 @@ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
|
15
6
|
const schema_utils_1 = require("../schema-utils");
|
|
16
7
|
function undiscriminatedUnion(schemas) {
|
|
17
8
|
const baseSchema = {
|
|
18
|
-
parse: (raw, opts) =>
|
|
9
|
+
parse: (raw, opts) => {
|
|
19
10
|
return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.parse(raw, opts), schemas, opts);
|
|
20
|
-
}
|
|
21
|
-
json: (parsed, opts) =>
|
|
11
|
+
},
|
|
12
|
+
json: (parsed, opts) => {
|
|
22
13
|
return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.json(parsed, opts), schemas, opts);
|
|
23
|
-
}
|
|
14
|
+
},
|
|
24
15
|
getType: () => Schema_1.SchemaType.UNDISCRIMINATED_UNION,
|
|
25
16
|
};
|
|
26
17
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
27
18
|
}
|
|
28
19
|
exports.undiscriminatedUnion = undiscriminatedUnion;
|
|
29
20
|
function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
}
|
|
21
|
+
const errors = [];
|
|
22
|
+
for (const [index, schema] of schemas.entries()) {
|
|
23
|
+
const transformed = transform(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
|
|
24
|
+
if (transformed.ok) {
|
|
25
|
+
return transformed;
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
for (const error of transformed.errors) {
|
|
29
|
+
errors.push({
|
|
30
|
+
path: error.path,
|
|
31
|
+
message: `[Variant ${index}] ${error.message}`,
|
|
32
|
+
});
|
|
44
33
|
}
|
|
45
34
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
ok: false,
|
|
38
|
+
errors,
|
|
39
|
+
};
|
|
51
40
|
}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
3
|
var t = {};
|
|
13
4
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -36,7 +27,7 @@ function union(discriminant, union) {
|
|
|
36
27
|
: discriminant.parsedDiscriminant;
|
|
37
28
|
const discriminantValueSchema = (0, enum_1.enum_)((0, keys_1.keys)(union));
|
|
38
29
|
const baseSchema = {
|
|
39
|
-
parse: (raw, opts) =>
|
|
30
|
+
parse: (raw, opts) => {
|
|
40
31
|
return transformAndValidateUnion({
|
|
41
32
|
value: raw,
|
|
42
33
|
discriminant: rawDiscriminant,
|
|
@@ -53,8 +44,8 @@ function union(discriminant, union) {
|
|
|
53
44
|
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.parse(additionalProperties, opts),
|
|
54
45
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
55
46
|
});
|
|
56
|
-
}
|
|
57
|
-
json: (parsed, opts) =>
|
|
47
|
+
},
|
|
48
|
+
json: (parsed, opts) => {
|
|
58
49
|
return transformAndValidateUnion({
|
|
59
50
|
value: parsed,
|
|
60
51
|
discriminant: parsedDiscriminant,
|
|
@@ -71,71 +62,69 @@ function union(discriminant, union) {
|
|
|
71
62
|
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.json(additionalProperties, opts),
|
|
72
63
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
73
64
|
});
|
|
74
|
-
}
|
|
65
|
+
},
|
|
75
66
|
getType: () => Schema_1.SchemaType.UNION,
|
|
76
67
|
};
|
|
77
68
|
return Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema));
|
|
78
69
|
}
|
|
79
70
|
exports.union = union;
|
|
80
71
|
function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
73
|
+
return {
|
|
74
|
+
ok: false,
|
|
75
|
+
errors: [
|
|
76
|
+
{
|
|
77
|
+
path: breadcrumbsPrefix,
|
|
78
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
const _a = value, _b = discriminant, discriminantValue = _a[_b], additionalProperties = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
|
|
84
|
+
if (discriminantValue == null) {
|
|
85
|
+
return {
|
|
86
|
+
ok: false,
|
|
87
|
+
errors: [
|
|
88
|
+
{
|
|
89
|
+
path: breadcrumbsPrefix,
|
|
90
|
+
message: `Missing discriminant ("${discriminant}")`,
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const transformedDiscriminantValue = transformDiscriminantValue(discriminantValue);
|
|
96
|
+
if (!transformedDiscriminantValue.ok) {
|
|
97
|
+
return {
|
|
98
|
+
ok: false,
|
|
99
|
+
errors: transformedDiscriminantValue.errors,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
|
|
103
|
+
if (additionalPropertiesSchema == null) {
|
|
104
|
+
if (allowUnrecognizedUnionMembers) {
|
|
83
105
|
return {
|
|
84
|
-
ok:
|
|
85
|
-
|
|
86
|
-
{
|
|
87
|
-
path: breadcrumbsPrefix,
|
|
88
|
-
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
89
|
-
},
|
|
90
|
-
],
|
|
106
|
+
ok: true,
|
|
107
|
+
value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
|
|
91
108
|
};
|
|
92
109
|
}
|
|
93
|
-
|
|
94
|
-
if (discriminantValue == null) {
|
|
110
|
+
else {
|
|
95
111
|
return {
|
|
96
112
|
ok: false,
|
|
97
113
|
errors: [
|
|
98
114
|
{
|
|
99
|
-
path: breadcrumbsPrefix,
|
|
100
|
-
message:
|
|
115
|
+
path: [...breadcrumbsPrefix, discriminant],
|
|
116
|
+
message: "Unexpected discriminant value",
|
|
101
117
|
},
|
|
102
118
|
],
|
|
103
119
|
};
|
|
104
120
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if (allowUnrecognizedUnionMembers) {
|
|
115
|
-
return {
|
|
116
|
-
ok: true,
|
|
117
|
-
value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return {
|
|
122
|
-
ok: false,
|
|
123
|
-
errors: [
|
|
124
|
-
{
|
|
125
|
-
path: [...breadcrumbsPrefix, discriminant],
|
|
126
|
-
message: "Unexpected discriminant value",
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
const transformedAdditionalProperties = yield transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
|
|
133
|
-
if (!transformedAdditionalProperties.ok) {
|
|
134
|
-
return transformedAdditionalProperties;
|
|
135
|
-
}
|
|
136
|
-
return {
|
|
137
|
-
ok: true,
|
|
138
|
-
value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
|
|
139
|
-
};
|
|
140
|
-
});
|
|
121
|
+
}
|
|
122
|
+
const transformedAdditionalProperties = transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
|
|
123
|
+
if (!transformedAdditionalProperties.ok) {
|
|
124
|
+
return transformedAdditionalProperties;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
ok: true,
|
|
128
|
+
value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
|
|
129
|
+
};
|
|
141
130
|
}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.maybeSkipValidation = void 0;
|
|
13
4
|
function maybeSkipValidation(schema) {
|
|
@@ -15,8 +6,8 @@ function maybeSkipValidation(schema) {
|
|
|
15
6
|
}
|
|
16
7
|
exports.maybeSkipValidation = maybeSkipValidation;
|
|
17
8
|
function transformAndMaybeSkipValidation(transform) {
|
|
18
|
-
return (value, opts) =>
|
|
19
|
-
const transformed =
|
|
9
|
+
return (value, opts) => {
|
|
10
|
+
const transformed = transform(value, opts);
|
|
20
11
|
const { skipValidation = false } = opts !== null && opts !== void 0 ? opts : {};
|
|
21
12
|
if (!transformed.ok && skipValidation) {
|
|
22
13
|
// eslint-disable-next-line no-console
|
|
@@ -33,5 +24,5 @@ function transformAndMaybeSkipValidation(transform) {
|
|
|
33
24
|
else {
|
|
34
25
|
return transformed;
|
|
35
26
|
}
|
|
36
|
-
}
|
|
27
|
+
};
|
|
37
28
|
}
|
package/dist/environments.d.ts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
export interface CandidApiEnvironmentUrls {
|
|
5
|
+
candidApi: string;
|
|
6
|
+
preEncounter: string;
|
|
7
|
+
}
|
|
4
8
|
export declare const CandidApiEnvironment: {
|
|
5
|
-
readonly Production:
|
|
6
|
-
|
|
9
|
+
readonly Production: {
|
|
10
|
+
readonly candidApi: "https://api.joincandidhealth.com";
|
|
11
|
+
readonly preEncounter: "https://pre-api.joincandidhealth.com";
|
|
12
|
+
};
|
|
13
|
+
readonly Staging: {
|
|
14
|
+
readonly candidApi: "https://api-staging.joincandidhealth.com";
|
|
15
|
+
readonly preEncounter: "https://pre-api-staging.joincandidhealth.com";
|
|
16
|
+
};
|
|
7
17
|
};
|
|
8
18
|
export declare type CandidApiEnvironment = typeof CandidApiEnvironment.Production | typeof CandidApiEnvironment.Staging;
|
package/dist/environments.js
CHANGED
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CandidApiEnvironment = void 0;
|
|
7
7
|
exports.CandidApiEnvironment = {
|
|
8
|
-
Production:
|
|
9
|
-
|
|
8
|
+
Production: {
|
|
9
|
+
candidApi: "https://api.joincandidhealth.com",
|
|
10
|
+
preEncounter: "https://pre-api.joincandidhealth.com",
|
|
11
|
+
},
|
|
12
|
+
Staging: {
|
|
13
|
+
candidApi: "https://api-staging.joincandidhealth.com",
|
|
14
|
+
preEncounter: "https://pre-api-staging.joincandidhealth.com",
|
|
15
|
+
},
|
|
10
16
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * as CandidApi from "./api";
|
|
2
2
|
export { CandidApiClient } from "./Client";
|
|
3
|
-
export { CandidApiEnvironment } from "./environments";
|
|
3
|
+
export { CandidApiEnvironment, CandidApiEnvironmentUrls } from "./environments";
|
|
4
4
|
export { CandidApiError, CandidApiTimeoutError } from "./errors";
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { RenderingProvider } from "../../../../../encounterProviders/resources/v
|
|
|
10
10
|
import { ReferringProvider } from "../../../../../encounterProviders/resources/v2/types/ReferringProvider";
|
|
11
11
|
import { InitialReferringProvider } from "../../../../../encounterProviders/resources/v2/types/InitialReferringProvider";
|
|
12
12
|
import { SupervisingProvider } from "../../../../../encounterProviders/resources/v2/types/SupervisingProvider";
|
|
13
|
-
import { OrderingProvider } from "../../../../../encounterProviders/resources/v2/types/OrderingProvider";
|
|
14
13
|
import { EncounterServiceFacilityBase } from "../../../../../serviceFacility/types/EncounterServiceFacilityBase";
|
|
15
14
|
import { SubscriberCreate } from "../../../../../individual/types/SubscriberCreate";
|
|
16
15
|
import { DiagnosisCreate } from "../../../../../diagnoses/types/DiagnosisCreate";
|
|
@@ -34,7 +33,6 @@ export declare namespace EncounterCreate {
|
|
|
34
33
|
referring_provider?: ReferringProvider.Raw | null;
|
|
35
34
|
initial_referring_provider?: InitialReferringProvider.Raw | null;
|
|
36
35
|
supervising_provider?: SupervisingProvider.Raw | null;
|
|
37
|
-
ordering_provider?: OrderingProvider.Raw | null;
|
|
38
36
|
service_facility?: EncounterServiceFacilityBase.Raw | null;
|
|
39
37
|
subscriber_primary?: SubscriberCreate.Raw | null;
|
|
40
38
|
subscriber_secondary?: SubscriberCreate.Raw | null;
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js
CHANGED
|
@@ -34,7 +34,6 @@ const RenderingProvider_1 = require("../../../../../encounterProviders/resources
|
|
|
34
34
|
const ReferringProvider_1 = require("../../../../../encounterProviders/resources/v2/types/ReferringProvider");
|
|
35
35
|
const InitialReferringProvider_1 = require("../../../../../encounterProviders/resources/v2/types/InitialReferringProvider");
|
|
36
36
|
const SupervisingProvider_1 = require("../../../../../encounterProviders/resources/v2/types/SupervisingProvider");
|
|
37
|
-
const OrderingProvider_1 = require("../../../../../encounterProviders/resources/v2/types/OrderingProvider");
|
|
38
37
|
const EncounterServiceFacilityBase_1 = require("../../../../../serviceFacility/types/EncounterServiceFacilityBase");
|
|
39
38
|
const SubscriberCreate_1 = require("../../../../../individual/types/SubscriberCreate");
|
|
40
39
|
const DiagnosisCreate_1 = require("../../../../../diagnoses/types/DiagnosisCreate");
|
|
@@ -57,7 +56,6 @@ exports.EncounterCreate = core.serialization
|
|
|
57
56
|
referringProvider: core.serialization.property("referring_provider", ReferringProvider_1.ReferringProvider.optional()),
|
|
58
57
|
initialReferringProvider: core.serialization.property("initial_referring_provider", InitialReferringProvider_1.InitialReferringProvider.optional()),
|
|
59
58
|
supervisingProvider: core.serialization.property("supervising_provider", SupervisingProvider_1.SupervisingProvider.optional()),
|
|
60
|
-
orderingProvider: core.serialization.property("ordering_provider", OrderingProvider_1.OrderingProvider.optional()),
|
|
61
59
|
serviceFacility: core.serialization.property("service_facility", EncounterServiceFacilityBase_1.EncounterServiceFacilityBase.optional()),
|
|
62
60
|
subscriberPrimary: core.serialization.property("subscriber_primary", SubscriberCreate_1.SubscriberCreate.optional()),
|
|
63
61
|
subscriberSecondary: core.serialization.property("subscriber_secondary", SubscriberCreate_1.SubscriberCreate.optional()),
|
|
@@ -39,7 +39,6 @@ export declare namespace Encounter {
|
|
|
39
39
|
referring_provider?: EncounterProvider.Raw | null;
|
|
40
40
|
initial_referring_provider?: EncounterProvider.Raw | null;
|
|
41
41
|
supervising_provider?: EncounterProvider.Raw | null;
|
|
42
|
-
ordering_provider?: EncounterProvider.Raw | null;
|
|
43
42
|
service_facility: EncounterServiceFacility.Raw;
|
|
44
43
|
subscriber_primary?: Subscriber.Raw | null;
|
|
45
44
|
subscriber_secondary?: Subscriber.Raw | null;
|
|
@@ -62,7 +62,6 @@ exports.Encounter = core.serialization
|
|
|
62
62
|
referringProvider: core.serialization.property("referring_provider", EncounterProvider_1.EncounterProvider.optional()),
|
|
63
63
|
initialReferringProvider: core.serialization.property("initial_referring_provider", EncounterProvider_1.EncounterProvider.optional()),
|
|
64
64
|
supervisingProvider: core.serialization.property("supervising_provider", EncounterProvider_1.EncounterProvider.optional()),
|
|
65
|
-
orderingProvider: core.serialization.property("ordering_provider", EncounterProvider_1.EncounterProvider.optional()),
|
|
66
65
|
serviceFacility: core.serialization.property("service_facility", EncounterServiceFacility_1.EncounterServiceFacility),
|
|
67
66
|
subscriberPrimary: core.serialization.property("subscriber_primary", Subscriber_1.Subscriber.optional()),
|
|
68
67
|
subscriberSecondary: core.serialization.property("subscriber_secondary", Subscriber_1.Subscriber.optional()),
|
|
@@ -35,7 +35,7 @@ exports.Address = core.serialization.object({
|
|
|
35
35
|
line: core.serialization.list(core.serialization.string()),
|
|
36
36
|
city: core.serialization.string(),
|
|
37
37
|
state: core.serialization.string(),
|
|
38
|
-
postalCode: core.serialization.string(),
|
|
38
|
+
postalCode: core.serialization.property("postal_code", core.serialization.string()),
|
|
39
39
|
country: core.serialization.string(),
|
|
40
40
|
period: Period_1.Period.optional(),
|
|
41
41
|
});
|
|
@@ -9,6 +9,6 @@ export declare const VersionConflictErrorBody: core.serialization.ObjectSchema<s
|
|
|
9
9
|
export declare namespace VersionConflictErrorBody {
|
|
10
10
|
interface Raw extends ErrorBase.Raw {
|
|
11
11
|
code: "VERSION_CONFLICT";
|
|
12
|
-
|
|
12
|
+
latest_version: number;
|
|
13
13
|
}
|
|
14
14
|
}
|
package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js
CHANGED
|
@@ -32,6 +32,6 @@ const ErrorBase_1 = require("./ErrorBase");
|
|
|
32
32
|
exports.VersionConflictErrorBody = core.serialization
|
|
33
33
|
.object({
|
|
34
34
|
code: core.serialization.stringLiteral("VERSION_CONFLICT"),
|
|
35
|
-
latestVersion: core.serialization.number(),
|
|
35
|
+
latestVersion: core.serialization.property("latest_version", core.serialization.number()),
|
|
36
36
|
})
|
|
37
37
|
.extend(ErrorBase_1.ErrorBase);
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./client";
|
|
1
|
+
export * from "./resources";
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.v1 = void 0;
|
|
27
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as CandidApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
import { Coverage } from "../types/Coverage";
|
|
8
|
+
import { NotFoundErrorBody } from "../../../../../../common/types/NotFoundErrorBody";
|
|
9
|
+
export declare const Response: core.serialization.Schema<serializers.preEncounter.coverages.v1.coverages.getHistory.Response.Raw, CandidApi.preEncounter.coverages.v1.Coverage[]>;
|
|
10
|
+
export declare namespace Response {
|
|
11
|
+
type Raw = Coverage.Raw[];
|
|
12
|
+
}
|
|
13
|
+
export declare const Error: core.serialization.Schema<serializers.preEncounter.coverages.v1.coverages.getHistory.Error.Raw, CandidApi.preEncounter.coverages.v1.coverages.getHistory.Error>;
|
|
14
|
+
export declare namespace Error {
|
|
15
|
+
type Raw = Error.NotFoundError;
|
|
16
|
+
interface NotFoundError {
|
|
17
|
+
errorName: "NotFoundError";
|
|
18
|
+
content: NotFoundErrorBody.Raw;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -38,10 +38,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
exports.Error = exports.Response = void 0;
|
|
41
|
-
const CandidApi = __importStar(require("
|
|
42
|
-
const core = __importStar(require("
|
|
41
|
+
const CandidApi = __importStar(require("../../../../../../../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
43
43
|
const Coverage_1 = require("../types/Coverage");
|
|
44
|
-
const NotFoundErrorBody_1 = require("
|
|
44
|
+
const NotFoundErrorBody_1 = require("../../../../../../common/types/NotFoundErrorBody");
|
|
45
45
|
exports.Response = core.serialization.list(Coverage_1.Coverage);
|
|
46
46
|
exports.Error = core.serialization
|
|
47
47
|
.union("errorName", {
|
|
@@ -53,7 +53,7 @@ exports.Error = core.serialization
|
|
|
53
53
|
transform: (value) => {
|
|
54
54
|
switch (value.errorName) {
|
|
55
55
|
case "NotFoundError":
|
|
56
|
-
return CandidApi.preEncounter.coverages.getHistory.Error.notFoundError(value.content);
|
|
56
|
+
return CandidApi.preEncounter.coverages.v1.coverages.getHistory.Error.notFoundError(value.content);
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
untransform: (_a) => {
|