candidhealth 0.1.1 → 0.2.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 +11 -6
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/client/Client.js +1 -1
- package/api/resources/commons/types/ContactInfo.d.ts +10 -0
- package/api/resources/commons/types/Email.d.ts +8 -0
- package/api/resources/commons/types/Email.js +10 -0
- package/api/resources/commons/types/PhoneNumber.d.ts +8 -0
- package/api/resources/commons/types/PhoneNumberType.d.ts +9 -0
- package/api/resources/commons/types/PhoneNumberType.js +11 -0
- package/api/resources/commons/types/index.d.ts +4 -0
- package/api/resources/commons/types/index.js +4 -0
- package/api/resources/encounterProviders/resources/v2/types/EncounterProviderBase.d.ts +3 -3
- package/api/resources/encounters/resources/v4/client/Client.js +36 -8
- package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +7 -0
- package/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/update.js +11 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
- package/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.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/client/Client.js +1 -1
- package/api/resources/guarantor/client/Client.d.ts +18 -0
- package/api/resources/guarantor/client/Client.js +18 -0
- package/api/resources/guarantor/client/index.d.ts +1 -0
- package/api/resources/guarantor/client/index.js +2 -0
- package/api/resources/guarantor/index.d.ts +2 -0
- package/api/resources/guarantor/index.js +18 -0
- package/api/resources/guarantor/resources/index.d.ts +1 -0
- package/api/resources/guarantor/resources/index.js +27 -0
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +20 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +144 -0
- package/api/resources/guarantor/resources/v1/client/create.d.ts +22 -0
- package/api/resources/guarantor/resources/v1/client/create.js +47 -0
- package/api/resources/guarantor/resources/v1/client/get.d.ts +22 -0
- package/api/resources/guarantor/resources/v1/client/get.js +47 -0
- package/api/resources/guarantor/resources/v1/client/index.d.ts +4 -0
- package/api/resources/guarantor/resources/v1/client/index.js +33 -0
- package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +12 -0
- package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +5 -0
- package/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
- package/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
- package/api/resources/guarantor/resources/v1/client/update.js +47 -0
- package/api/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/api/resources/guarantor/resources/v1/index.js +18 -0
- package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
- package/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
- package/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/api/resources/guarantor/resources/v1/types/index.js +20 -0
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/individual/types/Patient.d.ts +1 -1
- package/api/resources/individual/types/PatientBase.d.ts +17 -0
- package/api/resources/individual/types/PatientBase.js +5 -0
- package/api/resources/individual/types/PatientCreate.d.ts +1 -11
- package/api/resources/individual/types/index.d.ts +1 -0
- package/api/resources/individual/types/index.js +1 -0
- package/api/resources/patientPayments/resources/index.d.ts +1 -1
- package/api/resources/patientPayments/resources/index.js +2 -2
- package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
- package/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
- package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
- package/api/resources/payers/client/Client.js +2 -2
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/client/Client.js +1 -1
- package/dist/api/resources/commons/types/ContactInfo.d.ts +10 -0
- package/dist/api/resources/commons/types/ContactInfo.js +5 -0
- package/dist/api/resources/commons/types/Email.d.ts +8 -0
- package/dist/api/resources/commons/types/Email.js +10 -0
- package/dist/api/resources/commons/types/PhoneNumber.d.ts +8 -0
- package/dist/api/resources/commons/types/PhoneNumber.js +5 -0
- package/dist/api/resources/commons/types/PhoneNumberType.d.ts +9 -0
- package/dist/api/resources/commons/types/PhoneNumberType.js +11 -0
- package/dist/api/resources/commons/types/index.d.ts +4 -0
- package/dist/api/resources/commons/types/index.js +4 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProviderBase.d.ts +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.js +36 -8
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/update.js +11 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.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/client/Client.js +1 -1
- package/dist/api/resources/guarantor/client/Client.d.ts +18 -0
- package/dist/api/resources/guarantor/client/Client.js +18 -0
- package/dist/api/resources/guarantor/client/index.d.ts +1 -0
- package/dist/api/resources/guarantor/client/index.js +2 -0
- package/dist/api/resources/guarantor/index.d.ts +2 -0
- package/dist/api/resources/guarantor/index.js +18 -0
- package/dist/api/resources/guarantor/resources/index.d.ts +1 -0
- package/dist/api/resources/guarantor/resources/index.js +27 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +20 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +144 -0
- package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +22 -0
- package/dist/api/resources/guarantor/resources/v1/client/create.js +47 -0
- package/dist/api/resources/guarantor/resources/v1/client/get.d.ts +22 -0
- package/dist/api/resources/guarantor/resources/v1/client/get.js +47 -0
- package/dist/api/resources/guarantor/resources/v1/client/index.d.ts +4 -0
- package/dist/api/resources/guarantor/resources/v1/client/index.js +33 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +12 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
- package/dist/api/resources/guarantor/resources/v1/client/update.js +47 -0
- package/dist/api/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/guarantor/resources/v1/index.js +18 -0
- package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
- package/dist/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.js +20 -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 +1 -1
- package/dist/api/resources/individual/types/PatientBase.d.ts +17 -0
- package/dist/api/resources/individual/types/PatientBase.js +5 -0
- package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -11
- package/dist/api/resources/individual/types/index.d.ts +1 -0
- package/dist/api/resources/individual/types/index.js +1 -0
- package/dist/api/resources/patientPayments/resources/index.d.ts +1 -1
- package/dist/api/resources/patientPayments/resources/index.js +2 -2
- package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
- package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
- package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
- package/dist/api/resources/payers/client/Client.js +2 -2
- package/dist/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
- package/dist/serialization/resources/commons/types/ContactInfo.js +36 -0
- package/dist/serialization/resources/commons/types/Email.d.ts +10 -0
- package/dist/serialization/resources/commons/types/Email.js +37 -0
- package/dist/serialization/resources/commons/types/PhoneNumber.d.ts +13 -0
- package/dist/serialization/resources/commons/types/PhoneNumber.js +34 -0
- package/dist/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/PhoneNumberType.js +31 -0
- package/dist/serialization/resources/commons/types/index.d.ts +4 -0
- package/dist/serialization/resources/commons/types/index.js +4 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.js +3 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
- 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/client/update.d.ts +14 -0
- package/dist/serialization/resources/encounters/resources/v4/client/update.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -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/guarantor/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/index.js +17 -0
- package/dist/serialization/resources/guarantor/resources/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/index.js +27 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/index.js +17 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
- package/dist/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/guarantor/resources/v1/index.js +18 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
- 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 +1 -1
- package/dist/serialization/resources/individual/types/Patient.js +1 -1
- package/dist/serialization/resources/individual/types/PatientBase.d.ts +15 -0
- package/dist/serialization/resources/individual/types/PatientBase.js +38 -0
- package/dist/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
- package/dist/serialization/resources/individual/types/PatientCreate.js +2 -6
- package/dist/serialization/resources/individual/types/index.d.ts +1 -0
- package/dist/serialization/resources/individual/types/index.js +1 -0
- package/dist/serialization/resources/patientPayments/resources/index.d.ts +1 -1
- package/dist/serialization/resources/patientPayments/resources/index.js +2 -2
- package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +5 -5
- package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.js +4 -4
- package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +1 -1
- package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +1 -1
- package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
- package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentStatus.d.ts +1 -1
- package/package.json +1 -1
- package/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
- package/serialization/resources/commons/types/ContactInfo.js +36 -0
- package/serialization/resources/commons/types/Email.d.ts +10 -0
- package/serialization/resources/commons/types/Email.js +37 -0
- package/serialization/resources/commons/types/PhoneNumber.d.ts +13 -0
- package/serialization/resources/commons/types/PhoneNumber.js +34 -0
- package/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
- package/serialization/resources/commons/types/PhoneNumberType.js +31 -0
- package/serialization/resources/commons/types/index.d.ts +4 -0
- package/serialization/resources/commons/types/index.js +4 -0
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
- package/serialization/resources/encounters/resources/v4/client/create.js +46 -0
- package/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/index.js +3 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
- 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/client/update.d.ts +14 -0
- package/serialization/resources/encounters/resources/v4/client/update.js +46 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
- package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -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/guarantor/index.d.ts +1 -0
- package/serialization/resources/guarantor/index.js +17 -0
- package/serialization/resources/guarantor/resources/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/index.js +27 -0
- package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/client/index.js +17 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
- package/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
- package/serialization/resources/guarantor/resources/v1/index.js +18 -0
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
- package/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
- package/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/individual/types/Patient.d.ts +1 -1
- package/serialization/resources/individual/types/Patient.js +1 -1
- package/serialization/resources/individual/types/PatientBase.d.ts +15 -0
- package/serialization/resources/individual/types/PatientBase.js +38 -0
- package/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
- package/serialization/resources/individual/types/PatientCreate.js +2 -6
- package/serialization/resources/individual/types/index.d.ts +1 -0
- package/serialization/resources/individual/types/index.js +1 -0
- package/serialization/resources/patientPayments/resources/index.d.ts +1 -1
- package/serialization/resources/patientPayments/resources/index.js +2 -2
- package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +5 -5
- package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.js +4 -4
- package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +1 -1
- package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +1 -1
- package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
- package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentStatus.d.ts +1 -1
- /package/api/resources/{patientPayments/resources/v2/types/PatientPayment.js → commons/types/ContactInfo.js} +0 -0
- /package/{dist/api/resources/patientPayments/resources/v2/types/PatientPayment.js → api/resources/commons/types/PhoneNumber.js} +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
- /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as environments from "./environments";
|
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { Auth } from "./api/resources/auth/client/Client";
|
|
7
7
|
import { Encounters } from "./api/resources/encounters/client/Client";
|
|
8
|
+
import { Guarantor } from "./api/resources/guarantor/client/Client";
|
|
8
9
|
import { BillingNotes } from "./api/resources/billingNotes/client/Client";
|
|
9
10
|
import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/client/Client";
|
|
10
11
|
import { Payers } from "./api/resources/payers/client/Client";
|
|
@@ -21,6 +22,8 @@ export declare class CandidApiClient {
|
|
|
21
22
|
get auth(): Auth;
|
|
22
23
|
protected _encounters: Encounters | undefined;
|
|
23
24
|
get encounters(): Encounters;
|
|
25
|
+
protected _guarantor: Guarantor | undefined;
|
|
26
|
+
get guarantor(): Guarantor;
|
|
24
27
|
protected _billingNotes: BillingNotes | undefined;
|
|
25
28
|
get billingNotes(): BillingNotes;
|
|
26
29
|
protected _expectedNetworkStatus: ExpectedNetworkStatus | undefined;
|
package/Client.js
CHANGED
|
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CandidApiClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/auth/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/encounters/client/Client");
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
9
|
+
const Client_3 = require("./api/resources/guarantor/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/billingNotes/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/expectedNetworkStatus/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/payers/client/Client");
|
|
12
13
|
class CandidApiClient {
|
|
13
14
|
options;
|
|
14
15
|
constructor(options) {
|
|
@@ -22,17 +23,21 @@ class CandidApiClient {
|
|
|
22
23
|
get encounters() {
|
|
23
24
|
return (this._encounters ??= new Client_2.Encounters(this.options));
|
|
24
25
|
}
|
|
26
|
+
_guarantor;
|
|
27
|
+
get guarantor() {
|
|
28
|
+
return (this._guarantor ??= new Client_3.Guarantor(this.options));
|
|
29
|
+
}
|
|
25
30
|
_billingNotes;
|
|
26
31
|
get billingNotes() {
|
|
27
|
-
return (this._billingNotes ??= new
|
|
32
|
+
return (this._billingNotes ??= new Client_4.BillingNotes(this.options));
|
|
28
33
|
}
|
|
29
34
|
_expectedNetworkStatus;
|
|
30
35
|
get expectedNetworkStatus() {
|
|
31
|
-
return (this._expectedNetworkStatus ??= new
|
|
36
|
+
return (this._expectedNetworkStatus ??= new Client_5.ExpectedNetworkStatus(this.options));
|
|
32
37
|
}
|
|
33
38
|
_payers;
|
|
34
39
|
get payers() {
|
|
35
|
-
return (this._payers ??= new
|
|
40
|
+
return (this._payers ??= new Client_6.Payers(this.options));
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
exports.CandidApiClient = CandidApiClient;
|
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class BillingNotes {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../..";
|
|
5
|
+
export interface ContactInfo {
|
|
6
|
+
phoneNumbers: CandidApi.PhoneNumber[];
|
|
7
|
+
phoneConsent: boolean;
|
|
8
|
+
email: CandidApi.Email;
|
|
9
|
+
emailConsent: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type PhoneNumberType = "Home" | "Mobile" | "Work";
|
|
5
|
+
export declare const PhoneNumberType: {
|
|
6
|
+
readonly Home: "Home";
|
|
7
|
+
readonly Mobile: "Mobile";
|
|
8
|
+
readonly Work: "Work";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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.PhoneNumberType = void 0;
|
|
7
|
+
exports.PhoneNumberType = {
|
|
8
|
+
Home: "Home",
|
|
9
|
+
Mobile: "Mobile",
|
|
10
|
+
Work: "Work",
|
|
11
|
+
};
|
|
@@ -25,3 +25,7 @@ export * from "./PatientRelationshipToInsuredCodeAll";
|
|
|
25
25
|
export * from "./ProcedureModifier";
|
|
26
26
|
export * from "./ServiceLineUnits";
|
|
27
27
|
export * from "./InsuranceTypeCode";
|
|
28
|
+
export * from "./PhoneNumber";
|
|
29
|
+
export * from "./PhoneNumberType";
|
|
30
|
+
export * from "./Email";
|
|
31
|
+
export * from "./ContactInfo";
|
|
@@ -41,3 +41,7 @@ __exportStar(require("./PatientRelationshipToInsuredCodeAll"), exports);
|
|
|
41
41
|
__exportStar(require("./ProcedureModifier"), exports);
|
|
42
42
|
__exportStar(require("./ServiceLineUnits"), exports);
|
|
43
43
|
__exportStar(require("./InsuranceTypeCode"), exports);
|
|
44
|
+
__exportStar(require("./PhoneNumber"), exports);
|
|
45
|
+
__exportStar(require("./PhoneNumberType"), exports);
|
|
46
|
+
__exportStar(require("./Email"), exports);
|
|
47
|
+
__exportStar(require("./ContactInfo"), exports);
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface EncounterProviderBase {
|
|
5
5
|
/**
|
|
6
|
-
* If the
|
|
6
|
+
* If the provider is an individual, this should be set instead of organization name
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
firstName?: string;
|
|
10
10
|
/**
|
|
11
|
-
* If the
|
|
11
|
+
* If the provider is an individual, this should be set instead of organization name
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
lastName?: string;
|
|
15
15
|
/**
|
|
16
|
-
* If the
|
|
16
|
+
* If the provider is an organization, this should be set instead of first + last name
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
organizationName?: string;
|
|
@@ -97,7 +97,7 @@ class V4 {
|
|
|
97
97
|
Authorization: await this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "candidhealth",
|
|
100
|
-
"X-Fern-SDK-Version": "0.
|
|
100
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
queryParameters: _queryParams,
|
|
@@ -127,7 +127,7 @@ class V4 {
|
|
|
127
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
128
128
|
"X-Fern-Language": "JavaScript",
|
|
129
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
130
|
-
"X-Fern-SDK-Version": "0.
|
|
130
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
131
131
|
},
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: 60000,
|
|
@@ -156,7 +156,7 @@ class V4 {
|
|
|
156
156
|
Authorization: await this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "candidhealth",
|
|
159
|
-
"X-Fern-SDK-Version": "0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
160
160
|
},
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -175,6 +175,20 @@ class V4 {
|
|
|
175
175
|
}),
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
+
if (_response.error.reason === "status-code") {
|
|
179
|
+
switch (_response.error.body?.errorName) {
|
|
180
|
+
case "EncounterExternalIdUniquenessError":
|
|
181
|
+
return {
|
|
182
|
+
ok: false,
|
|
183
|
+
error: await serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
|
|
184
|
+
unrecognizedObjectKeys: "passthrough",
|
|
185
|
+
allowUnrecognizedUnionMembers: true,
|
|
186
|
+
allowUnrecognizedEnumValues: true,
|
|
187
|
+
breadcrumbsPrefix: ["response"],
|
|
188
|
+
}),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}
|
|
178
192
|
return {
|
|
179
193
|
ok: false,
|
|
180
194
|
error: CandidApi.encounters.v4.create.Error._unknown(_response.error),
|
|
@@ -188,7 +202,7 @@ class V4 {
|
|
|
188
202
|
Authorization: await this._getAuthorizationHeader(),
|
|
189
203
|
"X-Fern-Language": "JavaScript",
|
|
190
204
|
"X-Fern-SDK-Name": "candidhealth",
|
|
191
|
-
"X-Fern-SDK-Version": "0.
|
|
205
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
192
206
|
},
|
|
193
207
|
contentType: "application/json",
|
|
194
208
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -207,6 +221,20 @@ class V4 {
|
|
|
207
221
|
}),
|
|
208
222
|
};
|
|
209
223
|
}
|
|
224
|
+
if (_response.error.reason === "status-code") {
|
|
225
|
+
switch (_response.error.body?.errorName) {
|
|
226
|
+
case "EncounterExternalIdUniquenessError":
|
|
227
|
+
return {
|
|
228
|
+
ok: false,
|
|
229
|
+
error: await serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
|
|
230
|
+
unrecognizedObjectKeys: "passthrough",
|
|
231
|
+
allowUnrecognizedUnionMembers: true,
|
|
232
|
+
allowUnrecognizedEnumValues: true,
|
|
233
|
+
breadcrumbsPrefix: ["response"],
|
|
234
|
+
}),
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
}
|
|
210
238
|
return {
|
|
211
239
|
ok: false,
|
|
212
240
|
error: CandidApi.encounters.v4.update.Error._unknown(_response.error),
|
|
@@ -220,7 +248,7 @@ class V4 {
|
|
|
220
248
|
Authorization: await this._getAuthorizationHeader(),
|
|
221
249
|
"X-Fern-Language": "JavaScript",
|
|
222
250
|
"X-Fern-SDK-Name": "candidhealth",
|
|
223
|
-
"X-Fern-SDK-Version": "0.
|
|
251
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
224
252
|
},
|
|
225
253
|
contentType: "application/json",
|
|
226
254
|
timeoutMs: 60000,
|
|
@@ -249,7 +277,7 @@ class V4 {
|
|
|
249
277
|
Authorization: await this._getAuthorizationHeader(),
|
|
250
278
|
"X-Fern-Language": "JavaScript",
|
|
251
279
|
"X-Fern-SDK-Name": "candidhealth",
|
|
252
|
-
"X-Fern-SDK-Version": "0.
|
|
280
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
253
281
|
},
|
|
254
282
|
contentType: "application/json",
|
|
255
283
|
timeoutMs: 60000,
|
|
@@ -281,7 +309,7 @@ class V4 {
|
|
|
281
309
|
Authorization: await this._getAuthorizationHeader(),
|
|
282
310
|
"X-Fern-Language": "JavaScript",
|
|
283
311
|
"X-Fern-SDK-Name": "candidhealth",
|
|
284
|
-
"X-Fern-SDK-Version": "0.
|
|
312
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
285
313
|
},
|
|
286
314
|
contentType: "application/json",
|
|
287
315
|
timeoutMs: 60000,
|
|
@@ -310,7 +338,7 @@ class V4 {
|
|
|
310
338
|
Authorization: await this._getAuthorizationHeader(),
|
|
311
339
|
"X-Fern-Language": "JavaScript",
|
|
312
340
|
"X-Fern-SDK-Name": "candidhealth",
|
|
313
|
-
"X-Fern-SDK-Version": "0.
|
|
341
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
314
342
|
},
|
|
315
343
|
contentType: "application/json",
|
|
316
344
|
timeoutMs: 60000,
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
10
|
+
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
|
+
}
|
|
8
12
|
interface _Unknown extends _Utils {
|
|
9
13
|
errorName: void;
|
|
10
14
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +17,12 @@ export declare namespace Error {
|
|
|
13
17
|
_visit: <_Result>(visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
16
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
export declare const Error: {
|
|
25
|
+
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
|
|
20
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
|
|
21
27
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
|
|
22
28
|
};
|
|
@@ -29,6 +29,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
encounterExternalIdUniquenessError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EncounterExternalIdUniquenessError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
32
41
|
_unknown: (fetcherError) => {
|
|
33
42
|
return {
|
|
34
43
|
errorName: undefined,
|
|
@@ -40,6 +49,8 @@ exports.Error = {
|
|
|
40
49
|
},
|
|
41
50
|
_visit: (value, visitor) => {
|
|
42
51
|
switch (value.errorName) {
|
|
52
|
+
case "EncounterExternalIdUniquenessError":
|
|
53
|
+
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
43
54
|
default:
|
|
44
55
|
return visitor._other(value);
|
|
45
56
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as CandidApi from "../../../../../..";
|
|
5
5
|
export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
6
6
|
patient: CandidApi.PatientCreate;
|
|
7
|
+
patientIsSelfGuarantor?: boolean;
|
|
7
8
|
billingProvider: CandidApi.encounterProviders.v2.BillingProvider;
|
|
8
9
|
renderingProvider: CandidApi.encounterProviders.v2.RenderingProvider;
|
|
9
10
|
/**
|
|
@@ -51,4 +52,9 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
|
51
52
|
*
|
|
52
53
|
*/
|
|
53
54
|
serviceLines?: CandidApi.ServiceLineCreate[];
|
|
55
|
+
/**
|
|
56
|
+
* Personal and contact info for the guarantor of the patient responsibility.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
guarantor?: CandidApi.guarantor.v1.GuarantorCreate;
|
|
54
60
|
}
|
|
@@ -30,4 +30,11 @@ export interface EncounterUpdate {
|
|
|
30
30
|
tagIds?: CandidApi.TagId[];
|
|
31
31
|
clinicalNotes?: CandidApi.encounters.v4.ClinicalNoteCategoryCreate[];
|
|
32
32
|
payToAddress?: CandidApi.StreetAddressLongZip;
|
|
33
|
+
patientIsSelfGuarantor?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* If a patient is no longer a self-guarantor, a newly-created guarantor object can be passed
|
|
36
|
+
* via this field. Note that patient_is_self_guarantor should be toggled to False
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
guarantorId?: CandidApi.guarantor.v1.GuarantorId;
|
|
33
40
|
}
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.update.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
10
|
+
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
|
+
}
|
|
8
12
|
interface _Unknown extends _Utils {
|
|
9
13
|
errorName: void;
|
|
10
14
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +17,12 @@ export declare namespace Error {
|
|
|
13
17
|
_visit: <_Result>(visitor: CandidApi.encounters.v4.update.Error._Visitor<_Result>) => _Result;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
16
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
export declare const Error: {
|
|
25
|
+
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError;
|
|
20
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.update.Error._Unknown;
|
|
21
27
|
readonly _visit: <_Result>(value: CandidApi.encounters.v4.update.Error, visitor: CandidApi.encounters.v4.update.Error._Visitor<_Result>) => _Result;
|
|
22
28
|
};
|
|
@@ -29,6 +29,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
encounterExternalIdUniquenessError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EncounterExternalIdUniquenessError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.encounters.v4.update.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
32
41
|
_unknown: (fetcherError) => {
|
|
33
42
|
return {
|
|
34
43
|
errorName: undefined,
|
|
@@ -40,6 +49,8 @@ exports.Error = {
|
|
|
40
49
|
},
|
|
41
50
|
_visit: (value, visitor) => {
|
|
42
51
|
switch (value.errorName) {
|
|
52
|
+
case "EncounterExternalIdUniquenessError":
|
|
53
|
+
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
43
54
|
default:
|
|
44
55
|
return visitor._other(value);
|
|
45
56
|
}
|
|
@@ -25,7 +25,7 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
|
25
25
|
placeOfServiceCode?: CandidApi.FacilityTypeCode;
|
|
26
26
|
placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
|
|
27
27
|
patientHistories: CandidApi.encounters.v4.PatientHistoryCategory[];
|
|
28
|
-
patientPayments: CandidApi.patientPayments.
|
|
28
|
+
patientPayments: CandidApi.patientPayments.v3.PatientPayment[];
|
|
29
29
|
tags: CandidApi.Tag[];
|
|
30
30
|
codingAttribution?: CandidApi.encounters.v4.CodingAttributionType;
|
|
31
31
|
workQueue?: CandidApi.workQueues.v1.WorkQueue;
|
|
@@ -52,3 +52,4 @@ __exportStar(require("./PriorAuthorizationNumber"), exports);
|
|
|
52
52
|
__exportStar(require("./RxCui"), exports);
|
|
53
53
|
__exportStar(require("./IntakeQuestionId"), exports);
|
|
54
54
|
__exportStar(require("./IntakeFollowUpId"), exports);
|
|
55
|
+
__exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
|
|
@@ -48,7 +48,7 @@ class ExpectedNetworkStatus {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,18 @@
|
|
|
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 Guarantor {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class Guarantor {
|
|
14
|
+
protected readonly options: Guarantor.Options;
|
|
15
|
+
constructor(options: Guarantor.Options);
|
|
16
|
+
protected _v1: V1 | undefined;
|
|
17
|
+
get v1(): V1;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.Guarantor = void 0;
|
|
7
|
+
const Client_1 = require("../resources/v1/client/Client");
|
|
8
|
+
class Guarantor {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_v1;
|
|
14
|
+
get v1() {
|
|
15
|
+
return (this._v1 ??= new Client_1.V1(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Guarantor = Guarantor;
|
|
@@ -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,20 @@
|
|
|
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 "../../../../..";
|
|
7
|
+
export declare namespace V1 {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class V1 {
|
|
14
|
+
protected readonly options: V1.Options;
|
|
15
|
+
constructor(options: V1.Options);
|
|
16
|
+
create(request: CandidApi.guarantor.v1.GuarantorCreate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.create.Error>>;
|
|
17
|
+
get(guarantorId: CandidApi.guarantor.v1.GuarantorId): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.get.Error>>;
|
|
18
|
+
update(guarantorId: CandidApi.guarantor.v1.GuarantorId, request: CandidApi.guarantor.v1.GuarantorUpdate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.update.Error>>;
|
|
19
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
|
+
}
|