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,31 @@
|
|
|
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.ExternalProviderType = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.ExternalProviderType = core.serialization.enum_(["PRIMARY", "REFERRING"]);
|
|
@@ -34,3 +34,5 @@ __exportStar(require("./ContactPoint"), exports);
|
|
|
34
34
|
__exportStar(require("./ErrorBase"), exports);
|
|
35
35
|
__exportStar(require("./NotFoundErrorBody"), exports);
|
|
36
36
|
__exportStar(require("./VersionConflictErrorBody"), exports);
|
|
37
|
+
__exportStar(require("./ExternalProviderType"), exports);
|
|
38
|
+
__exportStar(require("./ExternalProvider"), exports);
|
|
@@ -6,6 +6,7 @@ import * as CandidApi from "../../../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../../../core";
|
|
7
7
|
import { PayerId } from "../../../../common/types/PayerId";
|
|
8
8
|
import { NetworkType } from "./NetworkType";
|
|
9
|
+
import { InsuranceTypeCode } from "./InsuranceTypeCode";
|
|
9
10
|
import { Period } from "../../../../common/types/Period";
|
|
10
11
|
export declare const InsurancePlan: core.serialization.ObjectSchema<serializers.preEncounter.coverages.v1.InsurancePlan.Raw, CandidApi.preEncounter.coverages.v1.InsurancePlan>;
|
|
11
12
|
export declare namespace InsurancePlan {
|
|
@@ -15,7 +16,8 @@ export declare namespace InsurancePlan {
|
|
|
15
16
|
payer_name: string;
|
|
16
17
|
group_number?: string | null;
|
|
17
18
|
name?: string | null;
|
|
18
|
-
|
|
19
|
+
plan_type?: NetworkType.Raw | null;
|
|
20
|
+
type?: InsuranceTypeCode.Raw | null;
|
|
19
21
|
period?: Period.Raw | null;
|
|
20
22
|
insurance_card_image_locator?: string | null;
|
|
21
23
|
}
|
package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.js
CHANGED
|
@@ -30,6 +30,7 @@ exports.InsurancePlan = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../../../../core"));
|
|
31
31
|
const PayerId_1 = require("../../../../common/types/PayerId");
|
|
32
32
|
const NetworkType_1 = require("./NetworkType");
|
|
33
|
+
const InsuranceTypeCode_1 = require("./InsuranceTypeCode");
|
|
33
34
|
const Period_1 = require("../../../../common/types/Period");
|
|
34
35
|
exports.InsurancePlan = core.serialization.object({
|
|
35
36
|
memberId: core.serialization.property("member_id", core.serialization.string()),
|
|
@@ -37,7 +38,8 @@ exports.InsurancePlan = core.serialization.object({
|
|
|
37
38
|
payerName: core.serialization.property("payer_name", core.serialization.string()),
|
|
38
39
|
groupNumber: core.serialization.property("group_number", core.serialization.string().optional()),
|
|
39
40
|
name: core.serialization.string().optional(),
|
|
40
|
-
|
|
41
|
+
planType: core.serialization.property("plan_type", NetworkType_1.NetworkType.optional()),
|
|
42
|
+
type: InsuranceTypeCode_1.InsuranceTypeCode.optional(),
|
|
41
43
|
period: Period_1.Period.optional(),
|
|
42
44
|
insuranceCardImageLocator: core.serialization.property("insurance_card_image_locator", core.serialization.string().optional()),
|
|
43
45
|
});
|
|
@@ -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 InsuranceTypeCode: core.serialization.Schema<serializers.preEncounter.coverages.v1.InsuranceTypeCode.Raw, CandidApi.preEncounter.coverages.v1.InsuranceTypeCode>;
|
|
8
|
+
export declare namespace InsuranceTypeCode {
|
|
9
|
+
type Raw = "01" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "41" | "42" | "43" | "47" | "AP" | "C1" | "CO" | "CP" | "D" | "DB" | "E" | "EP" | "FF" | "GP" | "HA" | "HB" | "HD" | "HG" | "HM" | "HN" | "HP" | "HS" | "IN" | "IP" | "LC" | "LD" | "LI" | "LT" | "M" | "MA" | "MB" | "MC" | "MD" | "ME" | "MF" | "MH" | "MI" | "MJ" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MR" | "MT" | "MV" | "OA" | "OT" | "PE" | "PL" | "PP" | "PR" | "PS" | "QM" | "RP" | "SP" | "TF" | "U" | "WC" | "WU";
|
|
10
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.InsuranceTypeCode = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
31
|
+
exports.InsuranceTypeCode = core.serialization.enum_([
|
|
32
|
+
"01",
|
|
33
|
+
"12",
|
|
34
|
+
"13",
|
|
35
|
+
"14",
|
|
36
|
+
"15",
|
|
37
|
+
"16",
|
|
38
|
+
"17",
|
|
39
|
+
"18",
|
|
40
|
+
"19",
|
|
41
|
+
"41",
|
|
42
|
+
"42",
|
|
43
|
+
"43",
|
|
44
|
+
"47",
|
|
45
|
+
"AP",
|
|
46
|
+
"C1",
|
|
47
|
+
"CO",
|
|
48
|
+
"CP",
|
|
49
|
+
"D",
|
|
50
|
+
"DB",
|
|
51
|
+
"E",
|
|
52
|
+
"EP",
|
|
53
|
+
"FF",
|
|
54
|
+
"GP",
|
|
55
|
+
"HA",
|
|
56
|
+
"HB",
|
|
57
|
+
"HD",
|
|
58
|
+
"HG",
|
|
59
|
+
"HM",
|
|
60
|
+
"HN",
|
|
61
|
+
"HP",
|
|
62
|
+
"HS",
|
|
63
|
+
"IN",
|
|
64
|
+
"IP",
|
|
65
|
+
"LC",
|
|
66
|
+
"LD",
|
|
67
|
+
"LI",
|
|
68
|
+
"LT",
|
|
69
|
+
"M",
|
|
70
|
+
"MA",
|
|
71
|
+
"MB",
|
|
72
|
+
"MC",
|
|
73
|
+
"MD",
|
|
74
|
+
"ME",
|
|
75
|
+
"MF",
|
|
76
|
+
"MH",
|
|
77
|
+
"MI",
|
|
78
|
+
"MJ",
|
|
79
|
+
"MK",
|
|
80
|
+
"ML",
|
|
81
|
+
"MM",
|
|
82
|
+
"MN",
|
|
83
|
+
"MO",
|
|
84
|
+
"MP",
|
|
85
|
+
"MR",
|
|
86
|
+
"MT",
|
|
87
|
+
"MV",
|
|
88
|
+
"OA",
|
|
89
|
+
"OT",
|
|
90
|
+
"PE",
|
|
91
|
+
"PL",
|
|
92
|
+
"PP",
|
|
93
|
+
"PR",
|
|
94
|
+
"PS",
|
|
95
|
+
"QM",
|
|
96
|
+
"RP",
|
|
97
|
+
"SP",
|
|
98
|
+
"TF",
|
|
99
|
+
"U",
|
|
100
|
+
"WC",
|
|
101
|
+
"WU",
|
|
102
|
+
]);
|
package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../../../core";
|
|
7
7
|
export declare const NetworkType: core.serialization.Schema<serializers.preEncounter.coverages.v1.NetworkType.Raw, CandidApi.preEncounter.coverages.v1.NetworkType>;
|
|
8
8
|
export declare namespace NetworkType {
|
|
9
|
-
type Raw = "12" | "13" | "14" | "15" | "16" | "17" | "AM" | "CH" | "DS" | "HM" | "LM" | "MA" | "MB" | "MC" | "OF" | "TV" | "VA" | "WC" | "ZZ";
|
|
9
|
+
type Raw = "09" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "AM" | "BL" | "CH" | "CI" | "DS" | "FI" | "HM" | "LM" | "MA" | "MB" | "MC" | "OF" | "TV" | "VA" | "WC" | "ZZ";
|
|
10
10
|
}
|
package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/NetworkType.js
CHANGED
|
@@ -29,6 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.NetworkType = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../core"));
|
|
31
31
|
exports.NetworkType = core.serialization.enum_([
|
|
32
|
+
"09",
|
|
33
|
+
"11",
|
|
32
34
|
"12",
|
|
33
35
|
"13",
|
|
34
36
|
"14",
|
|
@@ -36,8 +38,11 @@ exports.NetworkType = core.serialization.enum_([
|
|
|
36
38
|
"16",
|
|
37
39
|
"17",
|
|
38
40
|
"AM",
|
|
41
|
+
"BL",
|
|
39
42
|
"CH",
|
|
43
|
+
"CI",
|
|
40
44
|
"DS",
|
|
45
|
+
"FI",
|
|
41
46
|
"HM",
|
|
42
47
|
"LM",
|
|
43
48
|
"MA",
|
package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ import * as serializers from "../../../../../../../index";
|
|
|
5
5
|
import * as CandidApi from "../../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../../core";
|
|
7
7
|
import { HumanName } from "../../../../common/types/HumanName";
|
|
8
|
-
import {
|
|
8
|
+
import { Sex } from "../../../../common/types/Sex";
|
|
9
9
|
export declare const Subscriber: core.serialization.ObjectSchema<serializers.preEncounter.coverages.v1.Subscriber.Raw, CandidApi.preEncounter.coverages.v1.Subscriber>;
|
|
10
10
|
export declare namespace Subscriber {
|
|
11
11
|
interface Raw {
|
|
12
12
|
name: HumanName.Raw;
|
|
13
13
|
date_of_birth: string;
|
|
14
|
-
|
|
14
|
+
biological_sex: Sex.Raw;
|
|
15
15
|
}
|
|
16
16
|
}
|
package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js
CHANGED
|
@@ -29,9 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Subscriber = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../core"));
|
|
31
31
|
const HumanName_1 = require("../../../../common/types/HumanName");
|
|
32
|
-
const
|
|
32
|
+
const Sex_1 = require("../../../../common/types/Sex");
|
|
33
33
|
exports.Subscriber = core.serialization.object({
|
|
34
34
|
name: HumanName_1.HumanName,
|
|
35
35
|
dateOfBirth: core.serialization.property("date_of_birth", core.serialization.string()),
|
|
36
|
-
|
|
36
|
+
biologicalSex: core.serialization.property("biological_sex", Sex_1.Sex),
|
|
37
37
|
});
|
package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import * as CandidApi from "../../../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../../../core";
|
|
7
7
|
import { Relationship } from "../../../../common/types/Relationship";
|
|
8
8
|
import { HumanName } from "../../../../common/types/HumanName";
|
|
9
|
-
import { Gender } from "../../../../common/types/Gender";
|
|
10
9
|
import { ContactPoint } from "../../../../common/types/ContactPoint";
|
|
11
10
|
import { Address } from "../../../../common/types/Address";
|
|
12
11
|
import { Period } from "../../../../common/types/Period";
|
|
@@ -15,7 +14,6 @@ export declare namespace Contact {
|
|
|
15
14
|
interface Raw {
|
|
16
15
|
relationship: Relationship.Raw[];
|
|
17
16
|
name: HumanName.Raw;
|
|
18
|
-
gender?: Gender.Raw | null;
|
|
19
17
|
telecoms: ContactPoint.Raw[];
|
|
20
18
|
addresses: Address.Raw[];
|
|
21
19
|
period?: Period.Raw | null;
|
package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Contact.js
CHANGED
|
@@ -30,14 +30,12 @@ exports.Contact = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../../../../core"));
|
|
31
31
|
const Relationship_1 = require("../../../../common/types/Relationship");
|
|
32
32
|
const HumanName_1 = require("../../../../common/types/HumanName");
|
|
33
|
-
const Gender_1 = require("../../../../common/types/Gender");
|
|
34
33
|
const ContactPoint_1 = require("../../../../common/types/ContactPoint");
|
|
35
34
|
const Address_1 = require("../../../../common/types/Address");
|
|
36
35
|
const Period_1 = require("../../../../common/types/Period");
|
|
37
36
|
exports.Contact = core.serialization.object({
|
|
38
37
|
relationship: core.serialization.list(Relationship_1.Relationship),
|
|
39
38
|
name: HumanName_1.HumanName,
|
|
40
|
-
gender: Gender_1.Gender.optional(),
|
|
41
39
|
telecoms: core.serialization.list(ContactPoint_1.ContactPoint),
|
|
42
40
|
addresses: core.serialization.list(Address_1.Address),
|
|
43
41
|
period: Period_1.Period.optional(),
|
|
@@ -16,17 +16,17 @@ import { Address } from "../../../../common/types/Address";
|
|
|
16
16
|
import { ContactPoint } from "../../../../common/types/ContactPoint";
|
|
17
17
|
import { ExternalProvenance } from "./ExternalProvenance";
|
|
18
18
|
import { Contact } from "./Contact";
|
|
19
|
-
import { ExternalProvider } from "
|
|
19
|
+
import { ExternalProvider } from "../../../../common/types/ExternalProvider";
|
|
20
20
|
import { FilingOrder } from "./FilingOrder";
|
|
21
21
|
export declare const MutablePatient: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.MutablePatient.Raw, CandidApi.preEncounter.patients.v1.MutablePatient>;
|
|
22
22
|
export declare namespace MutablePatient {
|
|
23
23
|
interface Raw {
|
|
24
24
|
name: HumanName.Raw;
|
|
25
25
|
other_names: HumanName.Raw[];
|
|
26
|
-
gender
|
|
26
|
+
gender?: Gender.Raw | null;
|
|
27
27
|
birth_date: string;
|
|
28
28
|
social_security_number?: string | null;
|
|
29
|
-
biological_sex
|
|
29
|
+
biological_sex: Sex.Raw;
|
|
30
30
|
sexual_orientation?: SexualOrientation.Raw | null;
|
|
31
31
|
race?: Race.Raw | null;
|
|
32
32
|
ethnicity?: Ethnicity.Raw | null;
|
package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js
CHANGED
|
@@ -40,15 +40,15 @@ const Address_1 = require("../../../../common/types/Address");
|
|
|
40
40
|
const ContactPoint_1 = require("../../../../common/types/ContactPoint");
|
|
41
41
|
const ExternalProvenance_1 = require("./ExternalProvenance");
|
|
42
42
|
const Contact_1 = require("./Contact");
|
|
43
|
-
const ExternalProvider_1 = require("
|
|
43
|
+
const ExternalProvider_1 = require("../../../../common/types/ExternalProvider");
|
|
44
44
|
const FilingOrder_1 = require("./FilingOrder");
|
|
45
45
|
exports.MutablePatient = core.serialization.object({
|
|
46
46
|
name: HumanName_1.HumanName,
|
|
47
47
|
otherNames: core.serialization.property("other_names", core.serialization.list(HumanName_1.HumanName)),
|
|
48
|
-
gender: Gender_1.Gender,
|
|
48
|
+
gender: Gender_1.Gender.optional(),
|
|
49
49
|
birthDate: core.serialization.property("birth_date", core.serialization.string()),
|
|
50
50
|
socialSecurityNumber: core.serialization.property("social_security_number", core.serialization.string().optional()),
|
|
51
|
-
biologicalSex: core.serialization.property("biological_sex", Sex_1.Sex
|
|
51
|
+
biologicalSex: core.serialization.property("biological_sex", Sex_1.Sex),
|
|
52
52
|
sexualOrientation: core.serialization.property("sexual_orientation", SexualOrientation_1.SexualOrientation.optional()),
|
|
53
53
|
race: Race_1.Race.optional(),
|
|
54
54
|
ethnicity: Ethnicity_1.Ethnicity.optional(),
|
|
@@ -18,7 +18,6 @@ __exportStar(require("./PatientId"), exports);
|
|
|
18
18
|
__exportStar(require("./MaritalStatus"), exports);
|
|
19
19
|
__exportStar(require("./ExternalProvenance"), exports);
|
|
20
20
|
__exportStar(require("./Contact"), exports);
|
|
21
|
-
__exportStar(require("./ExternalProvider"), exports);
|
|
22
21
|
__exportStar(require("./FilingOrder"), exports);
|
|
23
22
|
__exportStar(require("./MutablePatient"), exports);
|
|
24
23
|
__exportStar(require("./Patient"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.serviceLines.v2.create.Error.Raw, CandidApi.serviceLines.v2.create.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.HttpRequestValidationError;
|
|
11
|
+
interface HttpRequestValidationError {
|
|
12
|
+
errorName: "HttpRequestValidationError";
|
|
13
|
+
content: RequestValidationError.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../../../core"));
|
|
43
|
+
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
44
|
+
exports.Error = core.serialization
|
|
45
|
+
.union("errorName", {
|
|
46
|
+
HttpRequestValidationError: core.serialization.object({
|
|
47
|
+
content: RequestValidationError_1.RequestValidationError,
|
|
48
|
+
}),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
case "HttpRequestValidationError":
|
|
54
|
+
return CandidApi.serviceLines.v2.create.Error.httpRequestValidationError(value.content);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
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.update = exports.create = void 0;
|
|
27
|
+
exports.create = __importStar(require("./create"));
|
|
28
|
+
exports.update = __importStar(require("./update"));
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
|
|
8
|
+
import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
|
|
9
|
+
import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
10
|
+
export declare const Error: core.serialization.Schema<serializers.serviceLines.v2.update.Error.Raw, CandidApi.serviceLines.v2.update.Error>;
|
|
11
|
+
export declare namespace Error {
|
|
12
|
+
type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationError;
|
|
13
|
+
interface EntityNotFoundError {
|
|
14
|
+
errorName: "EntityNotFoundError";
|
|
15
|
+
content: EntityNotFoundErrorMessage.Raw;
|
|
16
|
+
}
|
|
17
|
+
interface UnauthorizedError {
|
|
18
|
+
errorName: "UnauthorizedError";
|
|
19
|
+
content: UnauthorizedErrorMessage.Raw;
|
|
20
|
+
}
|
|
21
|
+
interface HttpRequestValidationError {
|
|
22
|
+
errorName: "HttpRequestValidationError";
|
|
23
|
+
content: RequestValidationError.Raw;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../../../core"));
|
|
43
|
+
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
44
|
+
const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
|
|
45
|
+
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
46
|
+
exports.Error = core.serialization
|
|
47
|
+
.union("errorName", {
|
|
48
|
+
EntityNotFoundError: core.serialization.object({
|
|
49
|
+
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
50
|
+
}),
|
|
51
|
+
UnauthorizedError: core.serialization.object({
|
|
52
|
+
content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
|
|
53
|
+
}),
|
|
54
|
+
HttpRequestValidationError: core.serialization.object({
|
|
55
|
+
content: RequestValidationError_1.RequestValidationError,
|
|
56
|
+
}),
|
|
57
|
+
})
|
|
58
|
+
.transform({
|
|
59
|
+
transform: (value) => {
|
|
60
|
+
switch (value.errorName) {
|
|
61
|
+
case "EntityNotFoundError":
|
|
62
|
+
return CandidApi.serviceLines.v2.update.Error.entityNotFoundError(value.content);
|
|
63
|
+
case "UnauthorizedError":
|
|
64
|
+
return CandidApi.serviceLines.v2.update.Error.unauthorizedError(value.content);
|
|
65
|
+
case "HttpRequestValidationError":
|
|
66
|
+
return CandidApi.serviceLines.v2.update.Error.httpRequestValidationError(value.content);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
untransform: (_a) => {
|
|
70
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
71
|
+
return value;
|
|
72
|
+
},
|
|
73
|
+
});
|
package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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 { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
|
|
8
|
+
import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
|
|
9
|
+
import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
|
|
10
|
+
import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
|
|
11
|
+
import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
|
|
12
|
+
import { Decimal } from "../../../../commons/types/Decimal";
|
|
13
|
+
import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
|
|
14
|
+
import { ClaimId } from "../../../../commons/types/ClaimId";
|
|
15
|
+
export declare const ServiceLineCreateStandalone: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLineCreateStandalone.Raw, CandidApi.serviceLines.v2.ServiceLineCreateStandalone>;
|
|
16
|
+
export declare namespace ServiceLineCreateStandalone {
|
|
17
|
+
interface Raw {
|
|
18
|
+
modifiers?: ProcedureModifier.Raw[] | null;
|
|
19
|
+
charge_amount_cents?: number | null;
|
|
20
|
+
allowed_amount_cents?: number | null;
|
|
21
|
+
insurance_balance_cents?: number | null;
|
|
22
|
+
patient_balance_cents?: number | null;
|
|
23
|
+
primary_paid_amount_cents?: number | null;
|
|
24
|
+
secondary_paid_amount_cents?: number | null;
|
|
25
|
+
tertiary_paid_amount_cents?: number | null;
|
|
26
|
+
patient_responsibility_cents?: number | null;
|
|
27
|
+
diagnosis_id_zero?: DiagnosisId.Raw | null;
|
|
28
|
+
diagnosis_id_one?: DiagnosisId.Raw | null;
|
|
29
|
+
diagnosis_id_two?: DiagnosisId.Raw | null;
|
|
30
|
+
diagnosis_id_three?: DiagnosisId.Raw | null;
|
|
31
|
+
service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
|
|
32
|
+
denial_reason?: ServiceLineDenialReason.Raw | null;
|
|
33
|
+
place_of_service_code?: FacilityTypeCode.Raw | null;
|
|
34
|
+
place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
|
|
35
|
+
procedure_code: string;
|
|
36
|
+
quantity: Decimal.Raw;
|
|
37
|
+
units: ServiceLineUnits.Raw;
|
|
38
|
+
claim_id: ClaimId.Raw;
|
|
39
|
+
description?: string | null;
|
|
40
|
+
date_of_service?: string | null;
|
|
41
|
+
end_date_of_service?: string | null;
|
|
42
|
+
}
|
|
43
|
+
}
|