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
|
@@ -0,0 +1,145 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.V1 = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../../../core"));
|
|
44
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
45
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
46
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
+
class V1 {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
|
+
this._options = _options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @param {CandidApi.medicationDispense.v1.MedicationDispenseCreate} request
|
|
53
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.medicationDispense.v1.create({
|
|
57
|
+
* medicationDispenseExternalId: "string",
|
|
58
|
+
* patientExternalId: "string",
|
|
59
|
+
* procedureCode: "string",
|
|
60
|
+
* quantity: CandidApi.Decimal("string"),
|
|
61
|
+
* units: CandidApi.ServiceLineUnits.Mj,
|
|
62
|
+
* dateOfService: "2023-01-15",
|
|
63
|
+
* drugIdentification: {
|
|
64
|
+
* serviceIdQualifier: CandidApi.serviceLines.v2.ServiceIdQualifier.EanUcc13,
|
|
65
|
+
* nationalDrugCode: "string",
|
|
66
|
+
* nationalDrugUnitCount: "string",
|
|
67
|
+
* measurementUnitCode: CandidApi.serviceLines.v2.MeasurementUnitCode.Milliliters,
|
|
68
|
+
* linkSequenceNumber: "string",
|
|
69
|
+
* pharmacyPrescriptionNumber: "string",
|
|
70
|
+
* conversionFormula: "string"
|
|
71
|
+
* },
|
|
72
|
+
* description: "string",
|
|
73
|
+
* modifiers: [CandidApi.ProcedureModifier.TwentyTwo]
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
create(request, requestOptions) {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const _response = yield core.fetcher({
|
|
80
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
81
|
+
.candidApi, "/api/medication-dispense/v1"),
|
|
82
|
+
method: "POST",
|
|
83
|
+
headers: {
|
|
84
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
85
|
+
"X-Fern-Language": "JavaScript",
|
|
86
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
87
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
88
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
89
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
90
|
+
},
|
|
91
|
+
contentType: "application/json",
|
|
92
|
+
requestType: "json",
|
|
93
|
+
body: serializers.medicationDispense.v1.MedicationDispenseCreate.jsonOrThrow(request, {
|
|
94
|
+
unrecognizedObjectKeys: "strip",
|
|
95
|
+
}),
|
|
96
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
97
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
+
});
|
|
100
|
+
if (_response.ok) {
|
|
101
|
+
return {
|
|
102
|
+
ok: true,
|
|
103
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
104
|
+
unrecognizedObjectKeys: "passthrough",
|
|
105
|
+
allowUnrecognizedUnionMembers: true,
|
|
106
|
+
allowUnrecognizedEnumValues: true,
|
|
107
|
+
breadcrumbsPrefix: ["response"],
|
|
108
|
+
}),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
if (_response.error.reason === "status-code") {
|
|
112
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
113
|
+
case "HttpRequestValidationError":
|
|
114
|
+
case "EncounterExternalIdUniquenessError":
|
|
115
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
116
|
+
case "EntityNotFoundError":
|
|
117
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
118
|
+
return {
|
|
119
|
+
ok: false,
|
|
120
|
+
error: serializers.medicationDispense.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
121
|
+
unrecognizedObjectKeys: "passthrough",
|
|
122
|
+
allowUnrecognizedUnionMembers: true,
|
|
123
|
+
allowUnrecognizedEnumValues: true,
|
|
124
|
+
breadcrumbsPrefix: ["response"],
|
|
125
|
+
}),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
ok: false,
|
|
131
|
+
error: CandidApi.medicationDispense.v1.create.Error._unknown(_response.error),
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
_getAuthorizationHeader() {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
138
|
+
if (bearer != null) {
|
|
139
|
+
return `Bearer ${bearer}`;
|
|
140
|
+
}
|
|
141
|
+
return undefined;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.V1 = V1;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.medicationDispense.v1.create.Error.HttpRequestValidationError | CandidApi.medicationDispense.v1.create.Error.EncounterExternalIdUniquenessError | CandidApi.medicationDispense.v1.create.Error.EncounterPatientControlNumberUniquenessError | CandidApi.medicationDispense.v1.create.Error.EntityNotFoundError | CandidApi.medicationDispense.v1.create.Error.SchemaInstanceValidationHttpFailure | CandidApi.medicationDispense.v1.create.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface HttpRequestValidationError extends _Utils {
|
|
9
|
+
errorName: "HttpRequestValidationError";
|
|
10
|
+
content: CandidApi.RequestValidationError;
|
|
11
|
+
}
|
|
12
|
+
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
13
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
14
|
+
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
15
|
+
}
|
|
16
|
+
interface EncounterPatientControlNumberUniquenessError extends _Utils {
|
|
17
|
+
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
18
|
+
content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
|
|
19
|
+
}
|
|
20
|
+
interface EntityNotFoundError extends _Utils {
|
|
21
|
+
errorName: "EntityNotFoundError";
|
|
22
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
23
|
+
}
|
|
24
|
+
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
25
|
+
errorName: "SchemaInstanceValidationHttpFailure";
|
|
26
|
+
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
27
|
+
}
|
|
28
|
+
interface _Unknown extends _Utils {
|
|
29
|
+
errorName: void;
|
|
30
|
+
content: core.Fetcher.Error;
|
|
31
|
+
}
|
|
32
|
+
interface _Utils {
|
|
33
|
+
_visit: <_Result>(visitor: CandidApi.medicationDispense.v1.create.Error._Visitor<_Result>) => _Result;
|
|
34
|
+
}
|
|
35
|
+
interface _Visitor<_Result> {
|
|
36
|
+
httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
|
|
37
|
+
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
38
|
+
encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
|
|
39
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
40
|
+
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
41
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export declare const Error: {
|
|
45
|
+
readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.medicationDispense.v1.create.Error.HttpRequestValidationError;
|
|
46
|
+
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.medicationDispense.v1.create.Error.EncounterExternalIdUniquenessError;
|
|
47
|
+
readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.medicationDispense.v1.create.Error.EncounterPatientControlNumberUniquenessError;
|
|
48
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.medicationDispense.v1.create.Error.EntityNotFoundError;
|
|
49
|
+
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.medicationDispense.v1.create.Error.SchemaInstanceValidationHttpFailure;
|
|
50
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.medicationDispense.v1.create.Error._Unknown;
|
|
51
|
+
readonly _visit: <_Result>(value: CandidApi.medicationDispense.v1.create.Error, visitor: CandidApi.medicationDispense.v1.create.Error._Visitor<_Result>) => _Result;
|
|
52
|
+
};
|
|
@@ -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.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
httpRequestValidationError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "HttpRequestValidationError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.medicationDispense.v1.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
encounterExternalIdUniquenessError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "EncounterExternalIdUniquenessError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.medicationDispense.v1.create.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
encounterPatientControlNumberUniquenessError: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
content: value,
|
|
53
|
+
errorName: "EncounterPatientControlNumberUniquenessError",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.medicationDispense.v1.create.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
entityNotFoundError: (value) => {
|
|
60
|
+
return {
|
|
61
|
+
content: value,
|
|
62
|
+
errorName: "EntityNotFoundError",
|
|
63
|
+
_visit: function (visitor) {
|
|
64
|
+
return CandidApi.medicationDispense.v1.create.Error._visit(this, visitor);
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
schemaInstanceValidationHttpFailure: (value) => {
|
|
69
|
+
return {
|
|
70
|
+
content: value,
|
|
71
|
+
errorName: "SchemaInstanceValidationHttpFailure",
|
|
72
|
+
_visit: function (visitor) {
|
|
73
|
+
return CandidApi.medicationDispense.v1.create.Error._visit(this, visitor);
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
_unknown: (fetcherError) => {
|
|
78
|
+
return {
|
|
79
|
+
errorName: undefined,
|
|
80
|
+
content: fetcherError,
|
|
81
|
+
_visit: function (visitor) {
|
|
82
|
+
return CandidApi.medicationDispense.v1.create.Error._visit(this, visitor);
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
_visit: (value, visitor) => {
|
|
87
|
+
switch (value.errorName) {
|
|
88
|
+
case "HttpRequestValidationError":
|
|
89
|
+
return visitor.httpRequestValidationError(value.content);
|
|
90
|
+
case "EncounterExternalIdUniquenessError":
|
|
91
|
+
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
92
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
93
|
+
return visitor.encounterPatientControlNumberUniquenessError(value.content);
|
|
94
|
+
case "EntityNotFoundError":
|
|
95
|
+
return visitor.entityNotFoundError(value.content);
|
|
96
|
+
case "SchemaInstanceValidationHttpFailure":
|
|
97
|
+
return visitor.schemaInstanceValidationHttpFailure(value.content);
|
|
98
|
+
default:
|
|
99
|
+
return visitor._other(value);
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as create from "./create";
|
|
@@ -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.create = void 0;
|
|
27
|
+
exports.create = __importStar(require("./create"));
|
|
@@ -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("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
export interface MedicationDispenseCreate {
|
|
6
|
+
medicationDispenseExternalId: string;
|
|
7
|
+
patientExternalId: string;
|
|
8
|
+
procedureCode: string;
|
|
9
|
+
quantity: CandidApi.Decimal;
|
|
10
|
+
units: CandidApi.ServiceLineUnits;
|
|
11
|
+
dateOfService: string;
|
|
12
|
+
drugIdentification?: CandidApi.serviceLines.v2.DrugIdentification;
|
|
13
|
+
description?: string;
|
|
14
|
+
modifiers?: CandidApi.ProcedureModifier[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MedicationDispenseCreate";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./MedicationDispenseCreate"), exports);
|
|
@@ -60,7 +60,13 @@ export declare class V1 {
|
|
|
60
60
|
* paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
61
61
|
* paymentNote: "string",
|
|
62
62
|
* checkNumber: "string",
|
|
63
|
-
* allocations: [{
|
|
63
|
+
* allocations: [{
|
|
64
|
+
* amountCents: 1,
|
|
65
|
+
* target: {
|
|
66
|
+
* type: "service_line_by_id",
|
|
67
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
68
|
+
* }
|
|
69
|
+
* }],
|
|
64
70
|
* invoiceId: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
65
71
|
* })
|
|
66
72
|
*/
|
|
@@ -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
|
},
|
|
@@ -166,7 +166,7 @@ class V1 {
|
|
|
166
166
|
Authorization: yield this._getAuthorizationHeader(),
|
|
167
167
|
"X-Fern-Language": "JavaScript",
|
|
168
168
|
"X-Fern-SDK-Name": "candidhealth",
|
|
169
|
-
"X-Fern-SDK-Version": "0.
|
|
169
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
170
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
172
172
|
},
|
|
@@ -218,7 +218,13 @@ class V1 {
|
|
|
218
218
|
* paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
219
219
|
* paymentNote: "string",
|
|
220
220
|
* checkNumber: "string",
|
|
221
|
-
* allocations: [{
|
|
221
|
+
* allocations: [{
|
|
222
|
+
* amountCents: 1,
|
|
223
|
+
* target: {
|
|
224
|
+
* type: "service_line_by_id",
|
|
225
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
226
|
+
* }
|
|
227
|
+
* }],
|
|
222
228
|
* invoiceId: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
223
229
|
* })
|
|
224
230
|
*/
|
|
@@ -233,7 +239,7 @@ class V1 {
|
|
|
233
239
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
240
|
"X-Fern-Language": "JavaScript",
|
|
235
241
|
"X-Fern-SDK-Name": "candidhealth",
|
|
236
|
-
"X-Fern-SDK-Version": "0.
|
|
242
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
237
243
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
244
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
245
|
},
|
|
@@ -307,7 +313,7 @@ class V1 {
|
|
|
307
313
|
Authorization: yield this._getAuthorizationHeader(),
|
|
308
314
|
"X-Fern-Language": "JavaScript",
|
|
309
315
|
"X-Fern-SDK-Name": "candidhealth",
|
|
310
|
-
"X-Fern-SDK-Version": "0.
|
|
316
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
311
317
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
312
318
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
313
319
|
},
|
|
@@ -372,7 +378,7 @@ class V1 {
|
|
|
372
378
|
Authorization: yield this._getAuthorizationHeader(),
|
|
373
379
|
"X-Fern-Language": "JavaScript",
|
|
374
380
|
"X-Fern-SDK-Name": "candidhealth",
|
|
375
|
-
"X-Fern-SDK-Version": "0.
|
|
381
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
376
382
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
377
383
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
378
384
|
},
|
|
@@ -64,7 +64,13 @@ export declare class V1 {
|
|
|
64
64
|
* amountCents: 1,
|
|
65
65
|
* refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
66
66
|
* refundNote: "string",
|
|
67
|
-
* allocations: [{
|
|
67
|
+
* allocations: [{
|
|
68
|
+
* amountCents: 1,
|
|
69
|
+
* target: {
|
|
70
|
+
* type: "service_line_by_id",
|
|
71
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
72
|
+
* }
|
|
73
|
+
* }],
|
|
68
74
|
* refundReason: CandidApi.RefundReason.Overcharged
|
|
69
75
|
* })
|
|
70
76
|
*/
|
|
@@ -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
|
},
|
|
@@ -166,7 +166,7 @@ class V1 {
|
|
|
166
166
|
Authorization: yield this._getAuthorizationHeader(),
|
|
167
167
|
"X-Fern-Language": "JavaScript",
|
|
168
168
|
"X-Fern-SDK-Name": "candidhealth",
|
|
169
|
-
"X-Fern-SDK-Version": "0.
|
|
169
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
170
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
172
172
|
},
|
|
@@ -222,7 +222,13 @@ class V1 {
|
|
|
222
222
|
* amountCents: 1,
|
|
223
223
|
* refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
224
224
|
* refundNote: "string",
|
|
225
|
-
* allocations: [{
|
|
225
|
+
* allocations: [{
|
|
226
|
+
* amountCents: 1,
|
|
227
|
+
* target: {
|
|
228
|
+
* type: "service_line_by_id",
|
|
229
|
+
* value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
230
|
+
* }
|
|
231
|
+
* }],
|
|
226
232
|
* refundReason: CandidApi.RefundReason.Overcharged
|
|
227
233
|
* })
|
|
228
234
|
*/
|
|
@@ -237,7 +243,7 @@ class V1 {
|
|
|
237
243
|
Authorization: yield this._getAuthorizationHeader(),
|
|
238
244
|
"X-Fern-Language": "JavaScript",
|
|
239
245
|
"X-Fern-SDK-Name": "candidhealth",
|
|
240
|
-
"X-Fern-SDK-Version": "0.
|
|
246
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
241
247
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
242
248
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
243
249
|
},
|
|
@@ -318,7 +324,7 @@ class V1 {
|
|
|
318
324
|
Authorization: yield this._getAuthorizationHeader(),
|
|
319
325
|
"X-Fern-Language": "JavaScript",
|
|
320
326
|
"X-Fern-SDK-Name": "candidhealth",
|
|
321
|
-
"X-Fern-SDK-Version": "0.
|
|
327
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
322
328
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
323
329
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
324
330
|
},
|
|
@@ -383,7 +389,7 @@ class V1 {
|
|
|
383
389
|
Authorization: yield this._getAuthorizationHeader(),
|
|
384
390
|
"X-Fern-Language": "JavaScript",
|
|
385
391
|
"X-Fern-SDK-Name": "candidhealth",
|
|
386
|
-
"X-Fern-SDK-Version": "0.
|
|
392
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
387
393
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
388
394
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
389
395
|
},
|
|
@@ -70,7 +70,7 @@ class V1 {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "candidhealth",
|
|
73
|
-
"X-Fern-SDK-Version": "0.
|
|
73
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -136,7 +136,7 @@ class V1 {
|
|
|
136
136
|
Authorization: yield this._getAuthorizationHeader(),
|
|
137
137
|
"X-Fern-Language": "JavaScript",
|
|
138
138
|
"X-Fern-SDK-Name": "candidhealth",
|
|
139
|
-
"X-Fern-SDK-Version": "0.
|
|
139
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
140
140
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
141
141
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
142
142
|
},
|
|
@@ -229,7 +229,7 @@ class V1 {
|
|
|
229
229
|
Authorization: yield this._getAuthorizationHeader(),
|
|
230
230
|
"X-Fern-Language": "JavaScript",
|
|
231
231
|
"X-Fern-SDK-Name": "candidhealth",
|
|
232
|
-
"X-Fern-SDK-Version": "0.
|
|
232
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
233
233
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
234
234
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
235
235
|
},
|
|
@@ -289,7 +289,7 @@ class V1 {
|
|
|
289
289
|
Authorization: yield this._getAuthorizationHeader(),
|
|
290
290
|
"X-Fern-Language": "JavaScript",
|
|
291
291
|
"X-Fern-SDK-Name": "candidhealth",
|
|
292
|
-
"X-Fern-SDK-Version": "0.
|
|
292
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
293
293
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
294
294
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
295
295
|
},
|
|
@@ -357,7 +357,7 @@ class V1 {
|
|
|
357
357
|
Authorization: yield this._getAuthorizationHeader(),
|
|
358
358
|
"X-Fern-Language": "JavaScript",
|
|
359
359
|
"X-Fern-SDK-Name": "candidhealth",
|
|
360
|
-
"X-Fern-SDK-Version": "0.
|
|
360
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
361
361
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
362
362
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
363
363
|
},
|
|
@@ -420,7 +420,7 @@ class V1 {
|
|
|
420
420
|
Authorization: yield this._getAuthorizationHeader(),
|
|
421
421
|
"X-Fern-Language": "JavaScript",
|
|
422
422
|
"X-Fern-SDK-Name": "candidhealth",
|
|
423
|
-
"X-Fern-SDK-Version": "0.
|
|
423
|
+
"X-Fern-SDK-Version": "0.32.0",
|
|
424
424
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
425
425
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
426
426
|
},
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("EB7623AB-D5BC-4B25-B257-2B8FCEC578DE"),
|
|
9
|
+
* name: "Sunrise Foundation",
|
|
10
|
+
* category: "Foundation",
|
|
11
|
+
* description: "Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.",
|
|
12
|
+
* enabled: true
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
5
15
|
export interface NonInsurancePayer {
|
|
6
16
|
nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId;
|
|
7
17
|
name: string;
|