candidhealth 0.24.5 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +13 -8
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/commons/types/AppointmentId.d.ts +8 -0
- package/api/resources/commons/types/AppointmentId.js +10 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
- package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
- package/api/resources/financials/types/index.d.ts +1 -0
- package/api/resources/financials/types/index.js +1 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.d.ts +3 -2
- package/api/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +8 -0
- package/api/resources/preEncounter/resources/common/types/ExternalProviderType.js +10 -0
- package/api/resources/preEncounter/resources/common/types/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/common/types/index.js +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +6 -4
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +12 -10
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +2 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +289 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +78 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +21 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -16
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -23
- package/api/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/client/Client.d.ts +26 -0
- package/api/resources/serviceLines/client/Client.js +17 -0
- package/api/resources/serviceLines/client/index.d.ts +1 -0
- package/api/resources/serviceLines/client/index.js +2 -0
- package/api/resources/serviceLines/index.d.ts +1 -0
- package/api/resources/serviceLines/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
- package/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
- package/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
- package/api/resources/serviceLines/resources/v2/client/create.js +58 -0
- package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
- package/api/resources/serviceLines/resources/v2/client/update.js +80 -0
- package/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/commons/types/AppointmentId.d.ts +8 -0
- package/dist/api/resources/commons/types/AppointmentId.js +10 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
- package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
- package/dist/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/index.d.ts +1 -0
- package/dist/api/resources/financials/types/index.js +1 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.d.ts +3 -2
- package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.js +5 -0
- package/dist/api/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/common/types/ExternalProviderType.js +10 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/common/types/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +6 -4
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +12 -10
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +289 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +78 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +21 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -16
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -23
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/client/Client.d.ts +26 -0
- package/dist/api/resources/serviceLines/client/Client.js +17 -0
- package/dist/api/resources/serviceLines/client/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/client/index.js +2 -0
- package/dist/api/resources/serviceLines/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
- package/dist/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
- package/dist/api/resources/serviceLines/resources/v2/client/create.js +58 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/dist/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
- package/dist/api/resources/serviceLines/resources/v2/client/update.js +80 -0
- package/dist/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
- package/dist/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/AppointmentId.js +35 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
- package/dist/serialization/resources/financials/types/AllocationTarget.js +2 -0
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
- package/dist/serialization/resources/financials/types/index.d.ts +1 -0
- package/dist/serialization/resources/financials/types/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +22 -0
- package/dist/serialization/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.js +8 -6
- package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/common/types/index.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +3 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.js +3 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +102 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.js +0 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
- package/dist/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
- package/dist/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
- package/package.json +1 -1
- package/reference.md +164 -24
- package/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
- package/serialization/resources/commons/types/AppointmentId.js +35 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
- package/serialization/resources/financials/types/AllocationTarget.js +2 -0
- package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
- package/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
- package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
- package/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
- package/serialization/resources/financials/types/index.d.ts +1 -0
- package/serialization/resources/financials/types/index.js +1 -0
- package/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +22 -0
- package/serialization/resources/preEncounter/resources/{patients/resources/v1 → common}/types/ExternalProvider.js +8 -6
- package/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/common/types/ExternalProviderType.js +31 -0
- package/serialization/resources/preEncounter/resources/common/types/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/common/types/index.js +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +3 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.js +3 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.js +102 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js +5 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts +0 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.js +0 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -1
- package/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
- package/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
- package/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
- package/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ExternalProvider.d.ts +0 -20
- /package/api/resources/{preEncounter/resources/patients/resources/v1/types/ExternalProvider.js → financials/types/AppointmentAllocationTarget.js} +0 -0
- /package/{dist/api/resources/preEncounter/resources/patients/resources/v1 → api/resources/preEncounter/resources/common}/types/ExternalProvider.js +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ServiceLineUpdate = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
|
|
32
|
+
const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
|
|
33
|
+
const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
|
|
34
|
+
const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
|
|
35
|
+
const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
|
|
36
|
+
const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
|
|
37
|
+
const Decimal_1 = require("../../../../commons/types/Decimal");
|
|
38
|
+
exports.ServiceLineUpdate = core.serialization.object({
|
|
39
|
+
editReason: core.serialization.property("edit_reason", core.serialization.string().optional()),
|
|
40
|
+
modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
|
|
41
|
+
chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
|
|
42
|
+
allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
|
|
43
|
+
insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
|
|
44
|
+
patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
|
|
45
|
+
primaryPaidAmountCents: core.serialization.property("primary_paid_amount_cents", core.serialization.number().optional()),
|
|
46
|
+
secondaryPaidAmountCents: core.serialization.property("secondary_paid_amount_cents", core.serialization.number().optional()),
|
|
47
|
+
tertiaryPaidAmountCents: core.serialization.property("tertiary_paid_amount_cents", core.serialization.number().optional()),
|
|
48
|
+
patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
|
|
49
|
+
diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
|
|
50
|
+
diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
|
|
51
|
+
diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
|
|
52
|
+
diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
|
|
53
|
+
serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
|
|
54
|
+
denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
|
|
55
|
+
placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
|
|
56
|
+
placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
|
|
57
|
+
units: ServiceLineUnits_1.ServiceLineUnits.optional(),
|
|
58
|
+
procedureCode: core.serialization.property("procedure_code", core.serialization.string().optional()),
|
|
59
|
+
quantity: Decimal_1.Decimal.optional(),
|
|
60
|
+
description: core.serialization.string().optional(),
|
|
61
|
+
dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
|
|
62
|
+
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
63
|
+
});
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ServiceLineCreate"), exports);
|
|
18
|
+
__exportStar(require("./ServiceLineCreateStandalone"), exports);
|
|
19
|
+
__exportStar(require("./ServiceLineUpdate"), exports);
|
|
18
20
|
__exportStar(require("./ServiceLine"), exports);
|
|
19
21
|
__exportStar(require("./ServiceLineEraData"), exports);
|
|
20
22
|
__exportStar(require("./ServiceLineAdjustment"), exports);
|
|
@@ -6,6 +6,8 @@ import * as CandidApi from "../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { WriteOffId } from "./WriteOffId";
|
|
8
8
|
import { PatientWriteOffReason } from "./PatientWriteOffReason";
|
|
9
|
+
import { PatientExternalId } from "../../../../commons/types/PatientExternalId";
|
|
10
|
+
import { ClaimId } from "../../../../commons/types/ClaimId";
|
|
9
11
|
import { ServiceLineId } from "../../../../commons/types/ServiceLineId";
|
|
10
12
|
export declare const PatientWriteOff: core.serialization.ObjectSchema<serializers.writeOffs.v1.PatientWriteOff.Raw, CandidApi.writeOffs.v1.PatientWriteOff>;
|
|
11
13
|
export declare namespace PatientWriteOff {
|
|
@@ -14,6 +16,8 @@ export declare namespace PatientWriteOff {
|
|
|
14
16
|
write_off_timestamp: string;
|
|
15
17
|
write_off_note?: string | null;
|
|
16
18
|
write_off_reason: PatientWriteOffReason.Raw;
|
|
19
|
+
patient_external_id: PatientExternalId.Raw;
|
|
20
|
+
claim_id: ClaimId.Raw;
|
|
17
21
|
service_line_id: ServiceLineId.Raw;
|
|
18
22
|
reverts_write_off_id?: WriteOffId.Raw | null;
|
|
19
23
|
reverted_by_write_off_id?: WriteOffId.Raw | null;
|
|
@@ -30,12 +30,16 @@ exports.PatientWriteOff = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
31
|
const WriteOffId_1 = require("./WriteOffId");
|
|
32
32
|
const PatientWriteOffReason_1 = require("./PatientWriteOffReason");
|
|
33
|
+
const PatientExternalId_1 = require("../../../../commons/types/PatientExternalId");
|
|
34
|
+
const ClaimId_1 = require("../../../../commons/types/ClaimId");
|
|
33
35
|
const ServiceLineId_1 = require("../../../../commons/types/ServiceLineId");
|
|
34
36
|
exports.PatientWriteOff = core.serialization.object({
|
|
35
37
|
writeOffId: core.serialization.property("write_off_id", WriteOffId_1.WriteOffId),
|
|
36
38
|
writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
|
|
37
39
|
writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
|
|
38
40
|
writeOffReason: core.serialization.property("write_off_reason", PatientWriteOffReason_1.PatientWriteOffReason),
|
|
41
|
+
patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
|
|
42
|
+
claimId: core.serialization.property("claim_id", ClaimId_1.ClaimId),
|
|
39
43
|
serviceLineId: core.serialization.property("service_line_id", ServiceLineId_1.ServiceLineId),
|
|
40
44
|
revertsWriteOffId: core.serialization.property("reverts_write_off_id", WriteOffId_1.WriteOffId.optional()),
|
|
41
45
|
revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", WriteOffId_1.WriteOffId.optional()),
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -5656,6 +5656,162 @@ await client.payers.v3.getAll({
|
|
|
5656
5656
|
</dl>
|
|
5657
5657
|
</details>
|
|
5658
5658
|
|
|
5659
|
+
## ServiceLines V2
|
|
5660
|
+
|
|
5661
|
+
<details><summary><code>client.serviceLines.v2.<a href="/src/api/resources/serviceLines/resources/v2/client/Client.ts">create</a>({ ...params }) -> core.APIResponse<CandidApi.ServiceLine, CandidApi.serviceLines.v2.create.Error></code></summary>
|
|
5662
|
+
<dl>
|
|
5663
|
+
<dd>
|
|
5664
|
+
|
|
5665
|
+
#### 🔌 Usage
|
|
5666
|
+
|
|
5667
|
+
<dl>
|
|
5668
|
+
<dd>
|
|
5669
|
+
|
|
5670
|
+
<dl>
|
|
5671
|
+
<dd>
|
|
5672
|
+
|
|
5673
|
+
```typescript
|
|
5674
|
+
await client.serviceLines.v2.create({
|
|
5675
|
+
modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
|
|
5676
|
+
chargeAmountCents: 1,
|
|
5677
|
+
allowedAmountCents: 1,
|
|
5678
|
+
insuranceBalanceCents: 1,
|
|
5679
|
+
patientBalanceCents: 1,
|
|
5680
|
+
primaryPaidAmountCents: 1,
|
|
5681
|
+
secondaryPaidAmountCents: 1,
|
|
5682
|
+
tertiaryPaidAmountCents: 1,
|
|
5683
|
+
patientResponsibilityCents: 1,
|
|
5684
|
+
diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5685
|
+
diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5686
|
+
diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5687
|
+
diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5688
|
+
serviceLineManualAdjustments: [{}],
|
|
5689
|
+
denialReason: {},
|
|
5690
|
+
placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5691
|
+
placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5692
|
+
procedureCode: "string",
|
|
5693
|
+
quantity: CandidApi.Decimal("string"),
|
|
5694
|
+
units: CandidApi.ServiceLineUnits.Mj,
|
|
5695
|
+
claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5696
|
+
description: "string",
|
|
5697
|
+
dateOfService: "2023-01-15",
|
|
5698
|
+
endDateOfService: "2023-01-15",
|
|
5699
|
+
});
|
|
5700
|
+
```
|
|
5701
|
+
|
|
5702
|
+
</dd>
|
|
5703
|
+
</dl>
|
|
5704
|
+
</dd>
|
|
5705
|
+
</dl>
|
|
5706
|
+
|
|
5707
|
+
#### ⚙️ Parameters
|
|
5708
|
+
|
|
5709
|
+
<dl>
|
|
5710
|
+
<dd>
|
|
5711
|
+
|
|
5712
|
+
<dl>
|
|
5713
|
+
<dd>
|
|
5714
|
+
|
|
5715
|
+
**request:** `CandidApi.ServiceLineCreateStandalone`
|
|
5716
|
+
|
|
5717
|
+
</dd>
|
|
5718
|
+
</dl>
|
|
5719
|
+
|
|
5720
|
+
<dl>
|
|
5721
|
+
<dd>
|
|
5722
|
+
|
|
5723
|
+
**requestOptions:** `V2.RequestOptions`
|
|
5724
|
+
|
|
5725
|
+
</dd>
|
|
5726
|
+
</dl>
|
|
5727
|
+
</dd>
|
|
5728
|
+
</dl>
|
|
5729
|
+
|
|
5730
|
+
</dd>
|
|
5731
|
+
</dl>
|
|
5732
|
+
</details>
|
|
5733
|
+
|
|
5734
|
+
<details><summary><code>client.serviceLines.v2.<a href="/src/api/resources/serviceLines/resources/v2/client/Client.ts">update</a>(serviceLineId, { ...params }) -> core.APIResponse<CandidApi.ServiceLine, CandidApi.serviceLines.v2.update.Error></code></summary>
|
|
5735
|
+
<dl>
|
|
5736
|
+
<dd>
|
|
5737
|
+
|
|
5738
|
+
#### 🔌 Usage
|
|
5739
|
+
|
|
5740
|
+
<dl>
|
|
5741
|
+
<dd>
|
|
5742
|
+
|
|
5743
|
+
<dl>
|
|
5744
|
+
<dd>
|
|
5745
|
+
|
|
5746
|
+
```typescript
|
|
5747
|
+
await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
5748
|
+
editReason: "string",
|
|
5749
|
+
modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
|
|
5750
|
+
chargeAmountCents: 1,
|
|
5751
|
+
allowedAmountCents: 1,
|
|
5752
|
+
insuranceBalanceCents: 1,
|
|
5753
|
+
patientBalanceCents: 1,
|
|
5754
|
+
primaryPaidAmountCents: 1,
|
|
5755
|
+
secondaryPaidAmountCents: 1,
|
|
5756
|
+
tertiaryPaidAmountCents: 1,
|
|
5757
|
+
patientResponsibilityCents: 1,
|
|
5758
|
+
diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5759
|
+
diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5760
|
+
diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5761
|
+
diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5762
|
+
serviceLineManualAdjustments: [{}],
|
|
5763
|
+
denialReason: {},
|
|
5764
|
+
placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5765
|
+
placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5766
|
+
units: CandidApi.ServiceLineUnits.Mj,
|
|
5767
|
+
procedureCode: "string",
|
|
5768
|
+
quantity: CandidApi.Decimal("string"),
|
|
5769
|
+
description: "string",
|
|
5770
|
+
dateOfService: "2023-01-15",
|
|
5771
|
+
endDateOfService: "2023-01-15",
|
|
5772
|
+
});
|
|
5773
|
+
```
|
|
5774
|
+
|
|
5775
|
+
</dd>
|
|
5776
|
+
</dl>
|
|
5777
|
+
</dd>
|
|
5778
|
+
</dl>
|
|
5779
|
+
|
|
5780
|
+
#### ⚙️ Parameters
|
|
5781
|
+
|
|
5782
|
+
<dl>
|
|
5783
|
+
<dd>
|
|
5784
|
+
|
|
5785
|
+
<dl>
|
|
5786
|
+
<dd>
|
|
5787
|
+
|
|
5788
|
+
**serviceLineId:** `CandidApi.ServiceLineId`
|
|
5789
|
+
|
|
5790
|
+
</dd>
|
|
5791
|
+
</dl>
|
|
5792
|
+
|
|
5793
|
+
<dl>
|
|
5794
|
+
<dd>
|
|
5795
|
+
|
|
5796
|
+
**request:** `CandidApi.ServiceLineUpdate`
|
|
5797
|
+
|
|
5798
|
+
</dd>
|
|
5799
|
+
</dl>
|
|
5800
|
+
|
|
5801
|
+
<dl>
|
|
5802
|
+
<dd>
|
|
5803
|
+
|
|
5804
|
+
**requestOptions:** `V2.RequestOptions`
|
|
5805
|
+
|
|
5806
|
+
</dd>
|
|
5807
|
+
</dl>
|
|
5808
|
+
</dd>
|
|
5809
|
+
</dl>
|
|
5810
|
+
|
|
5811
|
+
</dd>
|
|
5812
|
+
</dl>
|
|
5813
|
+
</details>
|
|
5814
|
+
|
|
5659
5815
|
## Tasks V3
|
|
5660
5816
|
|
|
5661
5817
|
<details><summary><code>client.tasks.v3.<a href="/src/api/resources/tasks/resources/v3/client/Client.ts">getActions</a>(taskId) -> core.APIResponse<CandidApi.TaskActions, CandidApi.tasks.v3.getActions.Error></code></summary>
|
|
@@ -6244,7 +6400,7 @@ await client.preEncounter.coverages.v1.create({
|
|
|
6244
6400
|
subscriber: {
|
|
6245
6401
|
name: {},
|
|
6246
6402
|
dateOfBirth: "2023-01-15",
|
|
6247
|
-
|
|
6403
|
+
biologicalSex: CandidApi.Sex.Female,
|
|
6248
6404
|
},
|
|
6249
6405
|
relationship: CandidApi.Relationship.Self,
|
|
6250
6406
|
patient: CandidApi.PatientId("string"),
|
|
@@ -6254,7 +6410,8 @@ await client.preEncounter.coverages.v1.create({
|
|
|
6254
6410
|
payerName: "string",
|
|
6255
6411
|
groupNumber: "string",
|
|
6256
6412
|
name: "string",
|
|
6257
|
-
|
|
6413
|
+
planType: CandidApi.NetworkType.SelfPay,
|
|
6414
|
+
type: CandidApi.InsuranceTypeCode.C01,
|
|
6258
6415
|
period: {},
|
|
6259
6416
|
insuranceCardImageLocator: "string",
|
|
6260
6417
|
},
|
|
@@ -6327,7 +6484,7 @@ await client.preEncounter.coverages.v1.update(CandidApi.CoverageId("d5e9c84f-c2b
|
|
|
6327
6484
|
subscriber: {
|
|
6328
6485
|
name: {},
|
|
6329
6486
|
dateOfBirth: "2023-01-15",
|
|
6330
|
-
|
|
6487
|
+
biologicalSex: CandidApi.Sex.Female,
|
|
6331
6488
|
},
|
|
6332
6489
|
relationship: CandidApi.Relationship.Self,
|
|
6333
6490
|
patient: CandidApi.PatientId("string"),
|
|
@@ -6337,7 +6494,8 @@ await client.preEncounter.coverages.v1.update(CandidApi.CoverageId("d5e9c84f-c2b
|
|
|
6337
6494
|
payerName: "string",
|
|
6338
6495
|
groupNumber: "string",
|
|
6339
6496
|
name: "string",
|
|
6340
|
-
|
|
6497
|
+
planType: CandidApi.NetworkType.SelfPay,
|
|
6498
|
+
type: CandidApi.InsuranceTypeCode.C01,
|
|
6341
6499
|
period: {},
|
|
6342
6500
|
insuranceCardImageLocator: "string",
|
|
6343
6501
|
},
|
|
@@ -6709,21 +6867,12 @@ await client.preEncounter.patients.v1.create({
|
|
|
6709
6867
|
{
|
|
6710
6868
|
relationship: [CandidApi.Relationship.Self],
|
|
6711
6869
|
name: {},
|
|
6712
|
-
gender: CandidApi.Gender.Man,
|
|
6713
|
-
telecoms: [{}],
|
|
6714
|
-
addresses: [{}],
|
|
6715
|
-
period: {},
|
|
6716
|
-
},
|
|
6717
|
-
],
|
|
6718
|
-
generalPractitioners: [
|
|
6719
|
-
{
|
|
6720
|
-
name: {},
|
|
6721
|
-
npi: "string",
|
|
6722
6870
|
telecoms: [{}],
|
|
6723
6871
|
addresses: [{}],
|
|
6724
6872
|
period: {},
|
|
6725
6873
|
},
|
|
6726
6874
|
],
|
|
6875
|
+
generalPractitioners: [{}],
|
|
6727
6876
|
filingOrder: {
|
|
6728
6877
|
coverages: [CandidApi.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
6729
6878
|
},
|
|
@@ -6946,21 +7095,12 @@ await client.preEncounter.patients.v1.update(CandidApi.PatientId("string"), "str
|
|
|
6946
7095
|
{
|
|
6947
7096
|
relationship: [CandidApi.Relationship.Self],
|
|
6948
7097
|
name: {},
|
|
6949
|
-
gender: CandidApi.Gender.Man,
|
|
6950
|
-
telecoms: [{}],
|
|
6951
|
-
addresses: [{}],
|
|
6952
|
-
period: {},
|
|
6953
|
-
},
|
|
6954
|
-
],
|
|
6955
|
-
generalPractitioners: [
|
|
6956
|
-
{
|
|
6957
|
-
name: {},
|
|
6958
|
-
npi: "string",
|
|
6959
7098
|
telecoms: [{}],
|
|
6960
7099
|
addresses: [{}],
|
|
6961
7100
|
period: {},
|
|
6962
7101
|
},
|
|
6963
7102
|
],
|
|
7103
|
+
generalPractitioners: [{}],
|
|
6964
7104
|
filingOrder: {
|
|
6965
7105
|
coverages: [CandidApi.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
6966
7106
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export declare const AppointmentId: core.serialization.Schema<serializers.AppointmentId.Raw, CandidApi.AppointmentId>;
|
|
8
|
+
export declare namespace AppointmentId {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AppointmentId = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../api/index"));
|
|
31
|
+
const core = __importStar(require("../../../../core"));
|
|
32
|
+
exports.AppointmentId = core.serialization.string().transform({
|
|
33
|
+
transform: CandidApi.AppointmentId,
|
|
34
|
+
untransform: (value) => value,
|
|
35
|
+
});
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./EncounterId"), exports);
|
|
18
18
|
__exportStar(require("./OrganizationId"), exports);
|
|
19
19
|
__exportStar(require("./ClaimId"), exports);
|
|
20
|
+
__exportStar(require("./AppointmentId"), exports);
|
|
20
21
|
__exportStar(require("./ServiceLineId"), exports);
|
|
21
22
|
__exportStar(require("./PatientExternalId"), exports);
|
|
22
23
|
__exportStar(require("./EncounterExternalId"), exports);
|
|
@@ -7,9 +7,10 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { ServiceLineAllocationTarget } from "./ServiceLineAllocationTarget";
|
|
8
8
|
import { ClaimAllocationTarget } from "./ClaimAllocationTarget";
|
|
9
9
|
import { BillingProviderAllocationTarget } from "./BillingProviderAllocationTarget";
|
|
10
|
+
import { AppointmentAllocationTarget } from "./AppointmentAllocationTarget";
|
|
10
11
|
export declare const AllocationTarget: core.serialization.Schema<serializers.AllocationTarget.Raw, CandidApi.AllocationTarget>;
|
|
11
12
|
export declare namespace AllocationTarget {
|
|
12
|
-
type Raw = AllocationTarget.ServiceLine | AllocationTarget.Claim | AllocationTarget.BillingProviderId | AllocationTarget.Unattributed;
|
|
13
|
+
type Raw = AllocationTarget.ServiceLine | AllocationTarget.Claim | AllocationTarget.BillingProviderId | AllocationTarget.Appointment | AllocationTarget.Unattributed;
|
|
13
14
|
interface ServiceLine extends ServiceLineAllocationTarget.Raw {
|
|
14
15
|
type: "service_line";
|
|
15
16
|
}
|
|
@@ -19,6 +20,9 @@ export declare namespace AllocationTarget {
|
|
|
19
20
|
interface BillingProviderId extends BillingProviderAllocationTarget.Raw {
|
|
20
21
|
type: "billing_provider_id";
|
|
21
22
|
}
|
|
23
|
+
interface Appointment extends AppointmentAllocationTarget.Raw {
|
|
24
|
+
type: "appointment";
|
|
25
|
+
}
|
|
22
26
|
interface Unattributed {
|
|
23
27
|
type: "unattributed";
|
|
24
28
|
}
|
|
@@ -31,11 +31,13 @@ const core = __importStar(require("../../../../core"));
|
|
|
31
31
|
const ServiceLineAllocationTarget_1 = require("./ServiceLineAllocationTarget");
|
|
32
32
|
const ClaimAllocationTarget_1 = require("./ClaimAllocationTarget");
|
|
33
33
|
const BillingProviderAllocationTarget_1 = require("./BillingProviderAllocationTarget");
|
|
34
|
+
const AppointmentAllocationTarget_1 = require("./AppointmentAllocationTarget");
|
|
34
35
|
exports.AllocationTarget = core.serialization
|
|
35
36
|
.union("type", {
|
|
36
37
|
service_line: ServiceLineAllocationTarget_1.ServiceLineAllocationTarget,
|
|
37
38
|
claim: ClaimAllocationTarget_1.ClaimAllocationTarget,
|
|
38
39
|
billing_provider_id: BillingProviderAllocationTarget_1.BillingProviderAllocationTarget,
|
|
40
|
+
appointment: AppointmentAllocationTarget_1.AppointmentAllocationTarget,
|
|
39
41
|
unattributed: core.serialization.object({}),
|
|
40
42
|
})
|
|
41
43
|
.transform({
|
|
@@ -8,9 +8,10 @@ import { ServiceLineId } from "../../commons/types/ServiceLineId";
|
|
|
8
8
|
import { ClaimId } from "../../commons/types/ClaimId";
|
|
9
9
|
import { EncounterExternalId } from "../../commons/types/EncounterExternalId";
|
|
10
10
|
import { ProviderId } from "../../commons/types/ProviderId";
|
|
11
|
+
import { AppointmentId } from "../../commons/types/AppointmentId";
|
|
11
12
|
export declare const AllocationTargetCreate: core.serialization.Schema<serializers.AllocationTargetCreate.Raw, CandidApi.AllocationTargetCreate>;
|
|
12
13
|
export declare namespace AllocationTargetCreate {
|
|
13
|
-
type Raw = AllocationTargetCreate.ServiceLineById | AllocationTargetCreate.ClaimById | AllocationTargetCreate.ClaimByEncounterExternalId | AllocationTargetCreate.BillingProviderById | AllocationTargetCreate.Unattributed;
|
|
14
|
+
type Raw = AllocationTargetCreate.ServiceLineById | AllocationTargetCreate.ClaimById | AllocationTargetCreate.ClaimByEncounterExternalId | AllocationTargetCreate.BillingProviderById | AllocationTargetCreate.AppointmentById | AllocationTargetCreate.Unattributed;
|
|
14
15
|
interface ServiceLineById {
|
|
15
16
|
type: "service_line_by_id";
|
|
16
17
|
value: ServiceLineId.Raw;
|
|
@@ -27,6 +28,10 @@ export declare namespace AllocationTargetCreate {
|
|
|
27
28
|
type: "billing_provider_by_id";
|
|
28
29
|
value: ProviderId.Raw;
|
|
29
30
|
}
|
|
31
|
+
interface AppointmentById {
|
|
32
|
+
type: "appointment_by_id";
|
|
33
|
+
value: AppointmentId.Raw;
|
|
34
|
+
}
|
|
30
35
|
interface Unattributed {
|
|
31
36
|
type: "unattributed";
|
|
32
37
|
}
|
|
@@ -32,6 +32,7 @@ const ServiceLineId_1 = require("../../commons/types/ServiceLineId");
|
|
|
32
32
|
const ClaimId_1 = require("../../commons/types/ClaimId");
|
|
33
33
|
const EncounterExternalId_1 = require("../../commons/types/EncounterExternalId");
|
|
34
34
|
const ProviderId_1 = require("../../commons/types/ProviderId");
|
|
35
|
+
const AppointmentId_1 = require("../../commons/types/AppointmentId");
|
|
35
36
|
exports.AllocationTargetCreate = core.serialization
|
|
36
37
|
.union("type", {
|
|
37
38
|
service_line_by_id: core.serialization.object({
|
|
@@ -46,6 +47,9 @@ exports.AllocationTargetCreate = core.serialization
|
|
|
46
47
|
billing_provider_by_id: core.serialization.object({
|
|
47
48
|
value: ProviderId_1.ProviderId,
|
|
48
49
|
}),
|
|
50
|
+
appointment_by_id: core.serialization.object({
|
|
51
|
+
value: AppointmentId_1.AppointmentId,
|
|
52
|
+
}),
|
|
49
53
|
unattributed: core.serialization.object({}),
|
|
50
54
|
})
|
|
51
55
|
.transform({
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { AppointmentId } from "../../commons/types/AppointmentId";
|
|
8
|
+
export declare const AppointmentAllocationTarget: core.serialization.ObjectSchema<serializers.AppointmentAllocationTarget.Raw, CandidApi.AppointmentAllocationTarget>;
|
|
9
|
+
export declare namespace AppointmentAllocationTarget {
|
|
10
|
+
interface Raw {
|
|
11
|
+
appointment_id: AppointmentId.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AppointmentAllocationTarget = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const AppointmentId_1 = require("../../commons/types/AppointmentId");
|
|
32
|
+
exports.AppointmentAllocationTarget = core.serialization.object({
|
|
33
|
+
appointmentId: core.serialization.property("appointment_id", AppointmentId_1.AppointmentId),
|
|
34
|
+
});
|
|
@@ -4,6 +4,7 @@ export * from "./Allocation";
|
|
|
4
4
|
export * from "./ServiceLineAllocationTarget";
|
|
5
5
|
export * from "./ClaimAllocationTarget";
|
|
6
6
|
export * from "./BillingProviderAllocationTarget";
|
|
7
|
+
export * from "./AppointmentAllocationTarget";
|
|
7
8
|
export * from "./AllocationTarget";
|
|
8
9
|
export * from "./AllocationCreate";
|
|
9
10
|
export * from "./AllocationTargetCreate";
|
|
@@ -20,6 +20,7 @@ __exportStar(require("./Allocation"), exports);
|
|
|
20
20
|
__exportStar(require("./ServiceLineAllocationTarget"), exports);
|
|
21
21
|
__exportStar(require("./ClaimAllocationTarget"), exports);
|
|
22
22
|
__exportStar(require("./BillingProviderAllocationTarget"), exports);
|
|
23
|
+
__exportStar(require("./AppointmentAllocationTarget"), exports);
|
|
23
24
|
__exportStar(require("./AllocationTarget"), exports);
|
|
24
25
|
__exportStar(require("./AllocationCreate"), exports);
|
|
25
26
|
__exportStar(require("./AllocationTargetCreate"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { HumanName } from "./HumanName";
|
|
8
|
+
import { ExternalProviderType } from "./ExternalProviderType";
|
|
9
|
+
import { ContactPoint } from "./ContactPoint";
|
|
10
|
+
import { Address } from "./Address";
|
|
11
|
+
import { Period } from "./Period";
|
|
12
|
+
export declare const ExternalProvider: core.serialization.ObjectSchema<serializers.preEncounter.ExternalProvider.Raw, CandidApi.preEncounter.ExternalProvider>;
|
|
13
|
+
export declare namespace ExternalProvider {
|
|
14
|
+
interface Raw {
|
|
15
|
+
name: HumanName.Raw;
|
|
16
|
+
type?: ExternalProviderType.Raw | null;
|
|
17
|
+
npi?: string | null;
|
|
18
|
+
telecoms: ContactPoint.Raw[];
|
|
19
|
+
addresses: Address.Raw[];
|
|
20
|
+
period?: Period.Raw | null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -27,14 +27,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ExternalProvider = void 0;
|
|
30
|
-
const core = __importStar(require("
|
|
31
|
-
const HumanName_1 = require("
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const HumanName_1 = require("./HumanName");
|
|
32
|
+
const ExternalProviderType_1 = require("./ExternalProviderType");
|
|
33
|
+
const ContactPoint_1 = require("./ContactPoint");
|
|
34
|
+
const Address_1 = require("./Address");
|
|
35
|
+
const Period_1 = require("./Period");
|
|
35
36
|
exports.ExternalProvider = core.serialization.object({
|
|
36
37
|
name: HumanName_1.HumanName,
|
|
37
|
-
|
|
38
|
+
type: ExternalProviderType_1.ExternalProviderType.optional(),
|
|
39
|
+
npi: core.serialization.string().optional(),
|
|
38
40
|
telecoms: core.serialization.list(ContactPoint_1.ContactPoint),
|
|
39
41
|
addresses: core.serialization.list(Address_1.Address),
|
|
40
42
|
period: Period_1.Period.optional(),
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export declare const ExternalProviderType: core.serialization.Schema<serializers.preEncounter.ExternalProviderType.Raw, CandidApi.preEncounter.ExternalProviderType>;
|
|
8
|
+
export declare namespace ExternalProviderType {
|
|
9
|
+
type Raw = "PRIMARY" | "REFERRING";
|
|
10
|
+
}
|