candidhealth 0.30.0 → 0.32.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 +37 -32
- 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/contracts/resources/v2/client/Client.d.ts +8 -1
- package/api/resources/contracts/resources/v2/client/Client.js +13 -6
- package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +8 -1
- 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.d.ts +32 -50
- package/api/resources/encounters/resources/v4/client/Client.js +36 -54
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +16 -50
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +22 -2
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +24 -0
- package/api/resources/encounters/resources/v4/types/VitalsUpdate.js +5 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +22 -2
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +24 -4
- 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.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +11 -11
- package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
- package/api/resources/financials/types/AllocationTargetCreate.d.ts +3 -4
- package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +1 -0
- package/api/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +8 -0
- package/api/resources/financials/types/AppointmentByIdAndPatientExternalId.js +5 -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.d.ts +14 -2
- package/api/resources/importInvoice/resources/v1/client/Client.js +34 -7
- package/api/resources/importInvoice/resources/v1/client/importInvoice.d.ts +13 -1
- package/api/resources/importInvoice/resources/v1/client/importInvoice.js +22 -0
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/individual/types/Patient.d.ts +8 -0
- package/api/resources/individual/types/PatientCreate.d.ts +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +27 -2
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +30 -5
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +7 -1
- package/api/resources/insurancePayments/resources/v1/client/Client.js +12 -6
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +7 -1
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +12 -6
- package/api/resources/medicationDispense/client/Client.d.ts +26 -0
- package/api/resources/medicationDispense/client/Client.js +17 -0
- package/api/resources/medicationDispense/client/index.d.ts +1 -0
- package/api/resources/medicationDispense/client/index.js +2 -0
- package/api/resources/medicationDispense/index.d.ts +2 -0
- package/api/resources/medicationDispense/index.js +18 -0
- package/api/resources/medicationDispense/resources/index.d.ts +1 -0
- package/api/resources/medicationDispense/resources/index.js +27 -0
- package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +51 -0
- package/api/resources/medicationDispense/resources/v1/client/Client.js +145 -0
- package/api/resources/medicationDispense/resources/v1/client/create.d.ts +52 -0
- package/api/resources/medicationDispense/resources/v1/client/create.js +102 -0
- package/api/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
- package/api/resources/medicationDispense/resources/v1/client/index.js +27 -0
- package/api/resources/medicationDispense/resources/v1/index.d.ts +2 -0
- package/api/resources/medicationDispense/resources/v1/index.js +18 -0
- package/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +15 -0
- package/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +5 -0
- package/api/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
- package/api/resources/medicationDispense/resources/v1/types/index.js +17 -0
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +7 -1
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +12 -6
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +7 -1
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +12 -6
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +10 -0
- package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +23 -2
- package/api/resources/organizationProviders/resources/v3/client/Client.js +27 -6
- 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/appointments/resources/v1/client/Client.d.ts +144 -4
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +150 -10
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -8
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +62 -16
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +456 -33
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +465 -42
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -2
- package/api/resources/serviceLines/resources/v2/client/Client.js +18 -5
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -3
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -17
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +7 -1
- package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +12 -6
- package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +7 -1
- package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +12 -6
- package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +37 -32
- 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/contracts/resources/v2/client/Client.d.ts +8 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +13 -6
- package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +8 -1
- 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.d.ts +32 -50
- package/dist/api/resources/encounters/resources/v4/client/Client.js +36 -54
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +16 -50
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +22 -2
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +24 -0
- package/dist/api/resources/encounters/resources/v4/types/VitalsUpdate.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +22 -2
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +24 -4
- 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.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +11 -11
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
- package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +3 -4
- package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +1 -0
- package/dist/api/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +8 -0
- package/dist/api/resources/financials/types/AppointmentByIdAndPatientExternalId.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.d.ts +14 -2
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +34 -7
- package/dist/api/resources/importInvoice/resources/v1/client/importInvoice.d.ts +13 -1
- package/dist/api/resources/importInvoice/resources/v1/client/importInvoice.js +22 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/individual/types/Patient.d.ts +8 -0
- package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +27 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +30 -5
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +7 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +12 -6
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +7 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +12 -6
- package/dist/api/resources/medicationDispense/client/Client.d.ts +26 -0
- package/dist/api/resources/medicationDispense/client/Client.js +17 -0
- package/dist/api/resources/medicationDispense/client/index.d.ts +1 -0
- package/dist/api/resources/medicationDispense/client/index.js +2 -0
- package/dist/api/resources/medicationDispense/index.d.ts +2 -0
- package/dist/api/resources/medicationDispense/index.js +18 -0
- package/dist/api/resources/medicationDispense/resources/index.d.ts +1 -0
- package/dist/api/resources/medicationDispense/resources/index.js +27 -0
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +51 -0
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +145 -0
- package/dist/api/resources/medicationDispense/resources/v1/client/create.d.ts +52 -0
- package/dist/api/resources/medicationDispense/resources/v1/client/create.js +102 -0
- package/dist/api/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/medicationDispense/resources/v1/client/index.js +27 -0
- package/dist/api/resources/medicationDispense/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/medicationDispense/resources/v1/index.js +18 -0
- package/dist/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +15 -0
- package/dist/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +5 -0
- package/dist/api/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/medicationDispense/resources/v1/types/index.js +17 -0
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +7 -1
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +12 -6
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +7 -1
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +12 -6
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +10 -0
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +23 -2
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +27 -6
- 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/appointments/resources/v1/client/Client.d.ts +144 -4
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +150 -10
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -8
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +62 -16
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +456 -33
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +465 -42
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -2
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +18 -5
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -3
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -17
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +7 -1
- package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +12 -6
- package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +7 -1
- package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +12 -6
- package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +18 -0
- package/dist/serialization/resources/encounters/resources/v4/types/VitalsUpdate.js +39 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -5
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +2 -4
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +2 -0
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +2 -0
- package/dist/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +15 -0
- package/dist/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.js +36 -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/importInvoice/resources/v1/client/importInvoice.d.ts +20 -0
- package/dist/serialization/resources/importInvoice/resources/v1/client/importInvoice.js +67 -0
- package/dist/serialization/resources/importInvoice/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/importInvoice/resources/v1/client/index.js +2 -1
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/individual/types/Patient.d.ts +2 -0
- package/dist/serialization/resources/individual/types/Patient.js +2 -0
- package/dist/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
- package/dist/serialization/resources/individual/types/PatientCreate.js +2 -0
- package/dist/serialization/resources/medicationDispense/index.d.ts +1 -0
- package/dist/serialization/resources/medicationDispense/index.js +17 -0
- package/dist/serialization/resources/medicationDispense/resources/index.d.ts +1 -0
- package/dist/serialization/resources/medicationDispense/resources/index.js +27 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +35 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/client/create.js +85 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/client/index.js +27 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/index.js +18 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +24 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +45 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/medicationDispense/resources/v1/types/index.js +17 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -3
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -3
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -6
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +0 -6
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
- package/package.json +1 -1
- package/reference.md +994 -111
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +18 -0
- package/serialization/resources/encounters/resources/v4/types/VitalsUpdate.js +39 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -5
- package/serialization/resources/financials/types/AllocationTargetCreate.js +2 -4
- package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +2 -0
- package/serialization/resources/financials/types/AppointmentAllocationTarget.js +2 -0
- package/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +15 -0
- package/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.js +36 -0
- package/serialization/resources/financials/types/index.d.ts +1 -0
- package/serialization/resources/financials/types/index.js +1 -0
- package/serialization/resources/importInvoice/resources/v1/client/importInvoice.d.ts +20 -0
- package/serialization/resources/importInvoice/resources/v1/client/importInvoice.js +67 -0
- package/serialization/resources/importInvoice/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/importInvoice/resources/v1/client/index.js +2 -1
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/individual/types/Patient.d.ts +2 -0
- package/serialization/resources/individual/types/Patient.js +2 -0
- package/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
- package/serialization/resources/individual/types/PatientCreate.js +2 -0
- package/serialization/resources/medicationDispense/index.d.ts +1 -0
- package/serialization/resources/medicationDispense/index.js +17 -0
- package/serialization/resources/medicationDispense/resources/index.d.ts +1 -0
- package/serialization/resources/medicationDispense/resources/index.js +27 -0
- package/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +35 -0
- package/serialization/resources/medicationDispense/resources/v1/client/create.js +85 -0
- package/serialization/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/medicationDispense/resources/v1/client/index.js +27 -0
- package/serialization/resources/medicationDispense/resources/v1/index.d.ts +2 -0
- package/serialization/resources/medicationDispense/resources/v1/index.js +18 -0
- package/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +24 -0
- package/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +45 -0
- package/serialization/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/medicationDispense/resources/v1/types/index.js +17 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -3
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -3
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -6
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +0 -6
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
|
@@ -61,14 +61,20 @@ class V1 {
|
|
|
61
61
|
* externalCustomerIdentifier: "string",
|
|
62
62
|
* note: "string",
|
|
63
63
|
* dueDate: "2023-01-15",
|
|
64
|
-
* items: [{
|
|
64
|
+
* items: [{
|
|
65
|
+
* attribution: {
|
|
66
|
+
* type: "service_line_id",
|
|
67
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
68
|
+
* },
|
|
69
|
+
* amountCents: 1
|
|
70
|
+
* }],
|
|
65
71
|
* status: CandidApi.invoices.v2.InvoiceStatus.Draft,
|
|
66
72
|
* externalIdentifier: "string",
|
|
67
73
|
* customerInvoiceUrl: "string"
|
|
68
74
|
* })
|
|
69
75
|
*/
|
|
70
76
|
importInvoice(request, requestOptions) {
|
|
71
|
-
var _a;
|
|
77
|
+
var _a, _b;
|
|
72
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
79
|
const _response = yield core.fetcher({
|
|
74
80
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
@@ -78,7 +84,7 @@ class V1 {
|
|
|
78
84
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
85
|
"X-Fern-Language": "JavaScript",
|
|
80
86
|
"X-Fern-SDK-Name": "candidhealth",
|
|
81
|
-
"X-Fern-SDK-Version": "0.
|
|
87
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
82
88
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
83
89
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
84
90
|
},
|
|
@@ -102,6 +108,21 @@ class V1 {
|
|
|
102
108
|
}),
|
|
103
109
|
};
|
|
104
110
|
}
|
|
111
|
+
if (_response.error.reason === "status-code") {
|
|
112
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
113
|
+
case "UnprocessableEntityError":
|
|
114
|
+
case "EntityConflictError":
|
|
115
|
+
return {
|
|
116
|
+
ok: false,
|
|
117
|
+
error: serializers.importInvoice.v1.importInvoice.Error.parseOrThrow(_response.error.body, {
|
|
118
|
+
unrecognizedObjectKeys: "passthrough",
|
|
119
|
+
allowUnrecognizedUnionMembers: true,
|
|
120
|
+
allowUnrecognizedEnumValues: true,
|
|
121
|
+
breadcrumbsPrefix: ["response"],
|
|
122
|
+
}),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
}
|
|
105
126
|
return {
|
|
106
127
|
ok: false,
|
|
107
128
|
error: CandidApi.importInvoice.v1.importInvoice.Error._unknown(_response.error),
|
|
@@ -176,7 +197,7 @@ class V1 {
|
|
|
176
197
|
Authorization: yield this._getAuthorizationHeader(),
|
|
177
198
|
"X-Fern-Language": "JavaScript",
|
|
178
199
|
"X-Fern-SDK-Name": "candidhealth",
|
|
179
|
-
"X-Fern-SDK-Version": "0.
|
|
200
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
180
201
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
181
202
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
182
203
|
},
|
|
@@ -224,7 +245,7 @@ class V1 {
|
|
|
224
245
|
Authorization: yield this._getAuthorizationHeader(),
|
|
225
246
|
"X-Fern-Language": "JavaScript",
|
|
226
247
|
"X-Fern-SDK-Name": "candidhealth",
|
|
227
|
-
"X-Fern-SDK-Version": "0.
|
|
248
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
228
249
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
229
250
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
230
251
|
},
|
|
@@ -280,7 +301,13 @@ class V1 {
|
|
|
280
301
|
* dueDate: "2023-01-15",
|
|
281
302
|
* items: {
|
|
282
303
|
* updateType: CandidApi.importInvoice.v1.InvoiceItemUpdateType.Append,
|
|
283
|
-
* items: [{
|
|
304
|
+
* items: [{
|
|
305
|
+
* attribution: {
|
|
306
|
+
* type: "service_line_id",
|
|
307
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
308
|
+
* },
|
|
309
|
+
* amountCents: 1
|
|
310
|
+
* }]
|
|
284
311
|
* }
|
|
285
312
|
* })
|
|
286
313
|
*/
|
|
@@ -295,7 +322,7 @@ class V1 {
|
|
|
295
322
|
Authorization: yield this._getAuthorizationHeader(),
|
|
296
323
|
"X-Fern-Language": "JavaScript",
|
|
297
324
|
"X-Fern-SDK-Name": "candidhealth",
|
|
298
|
-
"X-Fern-SDK-Version": "0.
|
|
325
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
299
326
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
300
327
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
301
328
|
},
|
|
@@ -3,8 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.importInvoice.v1.importInvoice.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.importInvoice.v1.importInvoice.Error.UnprocessableEntityError | CandidApi.importInvoice.v1.importInvoice.Error.EntityConflictError | CandidApi.importInvoice.v1.importInvoice.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface UnprocessableEntityError extends _Utils {
|
|
9
|
+
errorName: "UnprocessableEntityError";
|
|
10
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface EntityConflictError extends _Utils {
|
|
13
|
+
errorName: "EntityConflictError";
|
|
14
|
+
content: CandidApi.EntityConflictErrorMessage;
|
|
15
|
+
}
|
|
8
16
|
interface _Unknown extends _Utils {
|
|
9
17
|
errorName: void;
|
|
10
18
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +21,14 @@ export declare namespace Error {
|
|
|
13
21
|
_visit: <_Result>(visitor: CandidApi.importInvoice.v1.importInvoice.Error._Visitor<_Result>) => _Result;
|
|
14
22
|
}
|
|
15
23
|
interface _Visitor<_Result> {
|
|
24
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
25
|
+
entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => _Result;
|
|
16
26
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
export declare const Error: {
|
|
30
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.importInvoice.v1.importInvoice.Error.UnprocessableEntityError;
|
|
31
|
+
readonly entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => CandidApi.importInvoice.v1.importInvoice.Error.EntityConflictError;
|
|
20
32
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.importInvoice.v1.importInvoice.Error._Unknown;
|
|
21
33
|
readonly _visit: <_Result>(value: CandidApi.importInvoice.v1.importInvoice.Error, visitor: CandidApi.importInvoice.v1.importInvoice.Error._Visitor<_Result>) => _Result;
|
|
22
34
|
};
|
|
@@ -29,6 +29,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../../index"));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
unprocessableEntityError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "UnprocessableEntityError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.importInvoice.v1.importInvoice.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
entityConflictError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "EntityConflictError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.importInvoice.v1.importInvoice.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
32
50
|
_unknown: (fetcherError) => {
|
|
33
51
|
return {
|
|
34
52
|
errorName: undefined,
|
|
@@ -40,6 +58,10 @@ exports.Error = {
|
|
|
40
58
|
},
|
|
41
59
|
_visit: (value, visitor) => {
|
|
42
60
|
switch (value.errorName) {
|
|
61
|
+
case "UnprocessableEntityError":
|
|
62
|
+
return visitor.unprocessableEntityError(value.content);
|
|
63
|
+
case "EntityConflictError":
|
|
64
|
+
return visitor.entityConflictError(value.content);
|
|
43
65
|
default:
|
|
44
66
|
return visitor._other(value);
|
|
45
67
|
}
|
package/api/resources/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * as insuranceCards from "./insuranceCards";
|
|
|
16
16
|
export * as insurancePayments from "./insurancePayments";
|
|
17
17
|
export * as insuranceRefunds from "./insuranceRefunds";
|
|
18
18
|
export * as invoices from "./invoices";
|
|
19
|
+
export * as medicationDispense from "./medicationDispense";
|
|
19
20
|
export * as nonInsurancePayerPayments from "./nonInsurancePayerPayments";
|
|
20
21
|
export * as nonInsurancePayerRefunds from "./nonInsurancePayerRefunds";
|
|
21
22
|
export * as nonInsurancePayers from "./nonInsurancePayers";
|
package/api/resources/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.thirdPartyPayers = exports.thirdPartyPayerRefunds = exports.thirdPartyPayerPayments = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.feeSchedules = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
|
|
29
|
+
exports.eligibility = exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.thirdPartyPayers = exports.thirdPartyPayerRefunds = exports.thirdPartyPayerPayments = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.feeSchedules = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
|
|
30
30
|
exports.auth = __importStar(require("./auth"));
|
|
31
31
|
exports.billingNotes = __importStar(require("./billingNotes"));
|
|
32
32
|
exports.claimSubmission = __importStar(require("./claimSubmission"));
|
|
@@ -45,6 +45,7 @@ exports.insuranceCards = __importStar(require("./insuranceCards"));
|
|
|
45
45
|
exports.insurancePayments = __importStar(require("./insurancePayments"));
|
|
46
46
|
exports.insuranceRefunds = __importStar(require("./insuranceRefunds"));
|
|
47
47
|
exports.invoices = __importStar(require("./invoices"));
|
|
48
|
+
exports.medicationDispense = __importStar(require("./medicationDispense"));
|
|
48
49
|
exports.nonInsurancePayerPayments = __importStar(require("./nonInsurancePayerPayments"));
|
|
49
50
|
exports.nonInsurancePayerRefunds = __importStar(require("./nonInsurancePayerRefunds"));
|
|
50
51
|
exports.nonInsurancePayers = __importStar(require("./nonInsurancePayers"));
|
|
@@ -10,6 +10,13 @@ import * as CandidApi from "../../../index";
|
|
|
10
10
|
* number: "1234567890",
|
|
11
11
|
* type: CandidApi.PhoneNumberType.Home
|
|
12
12
|
* }],
|
|
13
|
+
* nonInsurancePayers: [{
|
|
14
|
+
* nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("EB7623AB-D5BC-4B25-B257-2B8FCEC578DE"),
|
|
15
|
+
* name: "Sunrise Foundation",
|
|
16
|
+
* category: "Foundation",
|
|
17
|
+
* description: "Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.",
|
|
18
|
+
* enabled: true
|
|
19
|
+
* }],
|
|
13
20
|
* phoneConsent: true,
|
|
14
21
|
* email: CandidApi.Email("johndoe@joincandidhealth.com"),
|
|
15
22
|
* emailConsent: true,
|
|
@@ -34,4 +41,5 @@ export interface Patient extends CandidApi.PatientBase {
|
|
|
34
41
|
phoneConsent: boolean;
|
|
35
42
|
email?: CandidApi.Email;
|
|
36
43
|
emailConsent: boolean;
|
|
44
|
+
nonInsurancePayers: CandidApi.nonInsurancePayers.v1.NonInsurancePayer[];
|
|
37
45
|
}
|
|
@@ -7,6 +7,7 @@ export interface PatientCreate extends CandidApi.PatientBase {
|
|
|
7
7
|
/** Defaults to false */
|
|
8
8
|
phoneConsent?: boolean;
|
|
9
9
|
email?: CandidApi.Email;
|
|
10
|
+
nonInsurancePayers?: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId[];
|
|
10
11
|
/** Defaults to false */
|
|
11
12
|
emailConsent?: boolean;
|
|
12
13
|
}
|
|
@@ -42,13 +42,38 @@ export declare class V1 {
|
|
|
42
42
|
* payerIdentifier: {
|
|
43
43
|
* type: "payer_info"
|
|
44
44
|
* },
|
|
45
|
-
* payee: {
|
|
45
|
+
* payee: {
|
|
46
|
+
* payeeName: "string",
|
|
47
|
+
* payeeIdentifier: {
|
|
48
|
+
* type: "npi",
|
|
49
|
+
* value: CandidApi.Npi("string")
|
|
50
|
+
* }
|
|
51
|
+
* },
|
|
46
52
|
* postDate: "2023-01-15",
|
|
47
53
|
* checkNumber: "string",
|
|
48
54
|
* checkDate: "2023-01-15",
|
|
49
55
|
* note: "string",
|
|
50
56
|
* claims: {
|
|
51
|
-
* "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
|
|
57
|
+
* "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
|
|
58
|
+
* claimStatusCode: CandidApi.ClaimStatusCodeCreate.ProcessedAsPrimary,
|
|
59
|
+
* insurancePaidAmountCents: {
|
|
60
|
+
* "key": "value"
|
|
61
|
+
* },
|
|
62
|
+
* chargeAmountCents: {
|
|
63
|
+
* "key": "value"
|
|
64
|
+
* },
|
|
65
|
+
* serviceLines: {
|
|
66
|
+
* "string": {
|
|
67
|
+
* "key": "value"
|
|
68
|
+
* }
|
|
69
|
+
* },
|
|
70
|
+
* payerClaimNumber: {
|
|
71
|
+
* "key": "value"
|
|
72
|
+
* },
|
|
73
|
+
* carcs: [{
|
|
74
|
+
* "key": "value"
|
|
75
|
+
* }]
|
|
76
|
+
* }]
|
|
52
77
|
* }
|
|
53
78
|
* })
|
|
54
79
|
*/
|
|
@@ -68,7 +68,7 @@ class V1 {
|
|
|
68
68
|
Authorization: yield this._getAuthorizationHeader(),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "candidhealth",
|
|
71
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
74
|
},
|
|
@@ -106,13 +106,38 @@ class V1 {
|
|
|
106
106
|
* payerIdentifier: {
|
|
107
107
|
* type: "payer_info"
|
|
108
108
|
* },
|
|
109
|
-
* payee: {
|
|
109
|
+
* payee: {
|
|
110
|
+
* payeeName: "string",
|
|
111
|
+
* payeeIdentifier: {
|
|
112
|
+
* type: "npi",
|
|
113
|
+
* value: CandidApi.Npi("string")
|
|
114
|
+
* }
|
|
115
|
+
* },
|
|
110
116
|
* postDate: "2023-01-15",
|
|
111
117
|
* checkNumber: "string",
|
|
112
118
|
* checkDate: "2023-01-15",
|
|
113
119
|
* note: "string",
|
|
114
120
|
* claims: {
|
|
115
|
-
* "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
|
|
121
|
+
* "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
|
|
122
|
+
* claimStatusCode: CandidApi.ClaimStatusCodeCreate.ProcessedAsPrimary,
|
|
123
|
+
* insurancePaidAmountCents: {
|
|
124
|
+
* "key": "value"
|
|
125
|
+
* },
|
|
126
|
+
* chargeAmountCents: {
|
|
127
|
+
* "key": "value"
|
|
128
|
+
* },
|
|
129
|
+
* serviceLines: {
|
|
130
|
+
* "string": {
|
|
131
|
+
* "key": "value"
|
|
132
|
+
* }
|
|
133
|
+
* },
|
|
134
|
+
* payerClaimNumber: {
|
|
135
|
+
* "key": "value"
|
|
136
|
+
* },
|
|
137
|
+
* carcs: [{
|
|
138
|
+
* "key": "value"
|
|
139
|
+
* }]
|
|
140
|
+
* }]
|
|
116
141
|
* }
|
|
117
142
|
* })
|
|
118
143
|
*/
|
|
@@ -127,7 +152,7 @@ class V1 {
|
|
|
127
152
|
Authorization: yield this._getAuthorizationHeader(),
|
|
128
153
|
"X-Fern-Language": "JavaScript",
|
|
129
154
|
"X-Fern-SDK-Name": "candidhealth",
|
|
130
|
-
"X-Fern-SDK-Version": "0.
|
|
155
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
131
156
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
132
157
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
133
158
|
},
|
|
@@ -191,7 +216,7 @@ class V1 {
|
|
|
191
216
|
Authorization: yield this._getAuthorizationHeader(),
|
|
192
217
|
"X-Fern-Language": "JavaScript",
|
|
193
218
|
"X-Fern-SDK-Name": "candidhealth",
|
|
194
|
-
"X-Fern-SDK-Version": "0.
|
|
219
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
195
220
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
196
221
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
197
222
|
},
|
|
@@ -67,7 +67,13 @@ export declare class V1 {
|
|
|
67
67
|
* amountCents: 1,
|
|
68
68
|
* paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
69
69
|
* paymentNote: "string",
|
|
70
|
-
* allocations: [{
|
|
70
|
+
* allocations: [{
|
|
71
|
+
* amountCents: 1,
|
|
72
|
+
* target: {
|
|
73
|
+
* type: "service_line_by_id",
|
|
74
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
75
|
+
* }
|
|
76
|
+
* }]
|
|
71
77
|
* })
|
|
72
78
|
*/
|
|
73
79
|
create(request: CandidApi.insurancePayments.v1.InsurancePaymentCreate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.create.Error>>;
|
|
@@ -103,7 +103,7 @@ class V1 {
|
|
|
103
103
|
Authorization: yield this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
107
107
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
108
108
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
109
109
|
},
|
|
@@ -167,7 +167,7 @@ class V1 {
|
|
|
167
167
|
Authorization: yield this._getAuthorizationHeader(),
|
|
168
168
|
"X-Fern-Language": "JavaScript",
|
|
169
169
|
"X-Fern-SDK-Name": "candidhealth",
|
|
170
|
-
"X-Fern-SDK-Version": "0.
|
|
170
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
171
171
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
172
172
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
173
173
|
},
|
|
@@ -225,7 +225,13 @@ class V1 {
|
|
|
225
225
|
* amountCents: 1,
|
|
226
226
|
* paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
227
227
|
* paymentNote: "string",
|
|
228
|
-
* allocations: [{
|
|
228
|
+
* allocations: [{
|
|
229
|
+
* amountCents: 1,
|
|
230
|
+
* target: {
|
|
231
|
+
* type: "service_line_by_id",
|
|
232
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
233
|
+
* }
|
|
234
|
+
* }]
|
|
229
235
|
* })
|
|
230
236
|
*/
|
|
231
237
|
create(request, requestOptions) {
|
|
@@ -239,7 +245,7 @@ class V1 {
|
|
|
239
245
|
Authorization: yield this._getAuthorizationHeader(),
|
|
240
246
|
"X-Fern-Language": "JavaScript",
|
|
241
247
|
"X-Fern-SDK-Name": "candidhealth",
|
|
242
|
-
"X-Fern-SDK-Version": "0.
|
|
248
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
243
249
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
244
250
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
245
251
|
},
|
|
@@ -313,7 +319,7 @@ class V1 {
|
|
|
313
319
|
Authorization: yield this._getAuthorizationHeader(),
|
|
314
320
|
"X-Fern-Language": "JavaScript",
|
|
315
321
|
"X-Fern-SDK-Name": "candidhealth",
|
|
316
|
-
"X-Fern-SDK-Version": "0.
|
|
322
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
317
323
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
318
324
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
319
325
|
},
|
|
@@ -381,7 +387,7 @@ class V1 {
|
|
|
381
387
|
Authorization: yield this._getAuthorizationHeader(),
|
|
382
388
|
"X-Fern-Language": "JavaScript",
|
|
383
389
|
"X-Fern-SDK-Name": "candidhealth",
|
|
384
|
-
"X-Fern-SDK-Version": "0.
|
|
390
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
385
391
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
386
392
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
387
393
|
},
|
|
@@ -68,7 +68,13 @@ export declare class V1 {
|
|
|
68
68
|
* amountCents: 1,
|
|
69
69
|
* refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
70
70
|
* refundNote: "string",
|
|
71
|
-
* allocations: [{
|
|
71
|
+
* allocations: [{
|
|
72
|
+
* amountCents: 1,
|
|
73
|
+
* target: {
|
|
74
|
+
* type: "service_line_by_id",
|
|
75
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
76
|
+
* }
|
|
77
|
+
* }],
|
|
72
78
|
* refundReason: CandidApi.RefundReason.Overcharged
|
|
73
79
|
* })
|
|
74
80
|
*/
|
|
@@ -104,7 +104,7 @@ class V1 {
|
|
|
104
104
|
Authorization: yield this._getAuthorizationHeader(),
|
|
105
105
|
"X-Fern-Language": "JavaScript",
|
|
106
106
|
"X-Fern-SDK-Name": "candidhealth",
|
|
107
|
-
"X-Fern-SDK-Version": "0.
|
|
107
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
108
108
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
109
109
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
110
110
|
},
|
|
@@ -168,7 +168,7 @@ class V1 {
|
|
|
168
168
|
Authorization: yield this._getAuthorizationHeader(),
|
|
169
169
|
"X-Fern-Language": "JavaScript",
|
|
170
170
|
"X-Fern-SDK-Name": "candidhealth",
|
|
171
|
-
"X-Fern-SDK-Version": "0.
|
|
171
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
172
172
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
173
173
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
174
174
|
},
|
|
@@ -226,7 +226,13 @@ class V1 {
|
|
|
226
226
|
* amountCents: 1,
|
|
227
227
|
* refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
228
228
|
* refundNote: "string",
|
|
229
|
-
* allocations: [{
|
|
229
|
+
* allocations: [{
|
|
230
|
+
* amountCents: 1,
|
|
231
|
+
* target: {
|
|
232
|
+
* type: "service_line_by_id",
|
|
233
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
234
|
+
* }
|
|
235
|
+
* }],
|
|
230
236
|
* refundReason: CandidApi.RefundReason.Overcharged
|
|
231
237
|
* })
|
|
232
238
|
*/
|
|
@@ -241,7 +247,7 @@ class V1 {
|
|
|
241
247
|
Authorization: yield this._getAuthorizationHeader(),
|
|
242
248
|
"X-Fern-Language": "JavaScript",
|
|
243
249
|
"X-Fern-SDK-Name": "candidhealth",
|
|
244
|
-
"X-Fern-SDK-Version": "0.
|
|
250
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
245
251
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
246
252
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
247
253
|
},
|
|
@@ -319,7 +325,7 @@ class V1 {
|
|
|
319
325
|
Authorization: yield this._getAuthorizationHeader(),
|
|
320
326
|
"X-Fern-Language": "JavaScript",
|
|
321
327
|
"X-Fern-SDK-Name": "candidhealth",
|
|
322
|
-
"X-Fern-SDK-Version": "0.
|
|
328
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
323
329
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
324
330
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
325
331
|
},
|
|
@@ -387,7 +393,7 @@ class V1 {
|
|
|
387
393
|
Authorization: yield this._getAuthorizationHeader(),
|
|
388
394
|
"X-Fern-Language": "JavaScript",
|
|
389
395
|
"X-Fern-SDK-Name": "candidhealth",
|
|
390
|
-
"X-Fern-SDK-Version": "0.
|
|
396
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
391
397
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
392
398
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
393
399
|
},
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import { V1 } from "../resources/v1/client/Client";
|
|
7
|
+
export declare namespace MedicationDispense {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare class MedicationDispense {
|
|
22
|
+
protected readonly _options: MedicationDispense.Options;
|
|
23
|
+
constructor(_options?: MedicationDispense.Options);
|
|
24
|
+
protected _v1: V1 | undefined;
|
|
25
|
+
get v1(): V1;
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MedicationDispense = void 0;
|
|
7
|
+
const Client_1 = require("../resources/v1/client/Client");
|
|
8
|
+
class MedicationDispense {
|
|
9
|
+
constructor(_options = {}) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get v1() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._v1) !== null && _a !== void 0 ? _a : (this._v1 = new Client_1.V1(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MedicationDispense = MedicationDispense;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.v1 = void 0;
|
|
27
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as CandidApi from "../../../../../index";
|
|
7
|
+
export declare namespace V1 {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare class V1 {
|
|
22
|
+
protected readonly _options: V1.Options;
|
|
23
|
+
constructor(_options?: V1.Options);
|
|
24
|
+
/**
|
|
25
|
+
* @param {CandidApi.medicationDispense.v1.MedicationDispenseCreate} request
|
|
26
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.medicationDispense.v1.create({
|
|
30
|
+
* medicationDispenseExternalId: "string",
|
|
31
|
+
* patientExternalId: "string",
|
|
32
|
+
* procedureCode: "string",
|
|
33
|
+
* quantity: CandidApi.Decimal("string"),
|
|
34
|
+
* units: CandidApi.ServiceLineUnits.Mj,
|
|
35
|
+
* dateOfService: "2023-01-15",
|
|
36
|
+
* drugIdentification: {
|
|
37
|
+
* serviceIdQualifier: CandidApi.serviceLines.v2.ServiceIdQualifier.EanUcc13,
|
|
38
|
+
* nationalDrugCode: "string",
|
|
39
|
+
* nationalDrugUnitCount: "string",
|
|
40
|
+
* measurementUnitCode: CandidApi.serviceLines.v2.MeasurementUnitCode.Milliliters,
|
|
41
|
+
* linkSequenceNumber: "string",
|
|
42
|
+
* pharmacyPrescriptionNumber: "string",
|
|
43
|
+
* conversionFormula: "string"
|
|
44
|
+
* },
|
|
45
|
+
* description: "string",
|
|
46
|
+
* modifiers: [CandidApi.ProcedureModifier.TwentyTwo]
|
|
47
|
+
* })
|
|
48
|
+
*/
|
|
49
|
+
create(request: CandidApi.medicationDispense.v1.MedicationDispenseCreate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.medicationDispense.v1.create.Error>>;
|
|
50
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
51
|
+
}
|