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
|
@@ -2,15 +2,5 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
-
export interface PatientCreate extends CandidApi.
|
|
6
|
-
/**
|
|
7
|
-
* Another ID you want to associate with this patient.
|
|
8
|
-
* For example, your internal patient ID or a Dr. Chrono patient ID. Box 1a on the CMS-1500 claim form
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
externalId: string;
|
|
12
|
-
/** Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01) */
|
|
13
|
-
dateOfBirth: CandidApi.Date_;
|
|
14
|
-
/** Box 5 on the CMS-1500 claim form. */
|
|
15
|
-
address: CandidApi.StreetAddressShortZip;
|
|
5
|
+
export interface PatientCreate extends CandidApi.PatientBase {
|
|
16
6
|
}
|
|
@@ -20,5 +20,6 @@ __exportStar(require("./SubscriberBase"), exports);
|
|
|
20
20
|
__exportStar(require("./SubscriberCreate"), exports);
|
|
21
21
|
__exportStar(require("./Subscriber"), exports);
|
|
22
22
|
__exportStar(require("./PatientCreate"), exports);
|
|
23
|
+
__exportStar(require("./PatientBase"), exports);
|
|
23
24
|
__exportStar(require("./Patient"), exports);
|
|
24
25
|
__exportStar(require("./Gender"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as v3 from "./v3";
|
|
@@ -23,5 +23,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
26
|
+
exports.v3 = void 0;
|
|
27
|
+
exports.v3 = __importStar(require("./v3"));
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface PatientPayment {
|
|
6
|
-
patientPaymentId: CandidApi.patientPayments.
|
|
6
|
+
patientPaymentId: CandidApi.patientPayments.v3.PatientPaymentId;
|
|
7
7
|
organizationId: CandidApi.OrganizationId;
|
|
8
8
|
sourceInternalId: string;
|
|
9
|
-
source: CandidApi.patientPayments.
|
|
9
|
+
source: CandidApi.patientPayments.v3.PatientPaymentSource;
|
|
10
10
|
amountCents: number;
|
|
11
11
|
paymentTimestamp?: Date;
|
|
12
|
-
status?: CandidApi.patientPayments.
|
|
12
|
+
status?: CandidApi.patientPayments.v3.PatientPaymentStatus;
|
|
13
13
|
paymentName?: string;
|
|
14
14
|
paymentNote?: string;
|
|
15
15
|
patientExternalId?: CandidApi.PatientExternalId;
|
|
16
|
-
|
|
16
|
+
encounterExternalId?: CandidApi.EncounterExternalId;
|
|
17
17
|
serviceLineId?: CandidApi.ServiceLineId;
|
|
18
18
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export declare type PatientPaymentId = string & {
|
|
6
|
-
|
|
6
|
+
patientPayments_v3_PatientPaymentId: void;
|
|
7
7
|
};
|
|
8
|
-
export declare function PatientPaymentId(value: string): CandidApi.patientPayments.
|
|
8
|
+
export declare function PatientPaymentId(value: string): CandidApi.patientPayments.v3.PatientPaymentId;
|
|
@@ -49,7 +49,7 @@ class Payers {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -89,7 +89,7 @@ class Payers {
|
|
|
89
89
|
Authorization: await this._getAuthorizationHeader(),
|
|
90
90
|
"X-Fern-Language": "JavaScript",
|
|
91
91
|
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.
|
|
92
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
93
93
|
},
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../..";
|
|
5
|
+
import * as CandidApi from "../../../../api";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ContactInfo: core.serialization.ObjectSchema<serializers.ContactInfo.Raw, CandidApi.ContactInfo>;
|
|
8
|
+
export declare namespace ContactInfo {
|
|
9
|
+
interface Raw {
|
|
10
|
+
phone_numbers: serializers.PhoneNumber.Raw[];
|
|
11
|
+
phone_consent: boolean;
|
|
12
|
+
email: serializers.Email.Raw;
|
|
13
|
+
email_consent: boolean;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.ContactInfo = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ContactInfo = core.serialization.object({
|
|
32
|
+
phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PhoneNumber))),
|
|
33
|
+
phoneConsent: core.serialization.property("phone_consent", core.serialization.boolean()),
|
|
34
|
+
email: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Email),
|
|
35
|
+
emailConsent: core.serialization.property("email_consent", core.serialization.boolean()),
|
|
36
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../..";
|
|
5
|
+
import * as CandidApi from "../../../../api";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Email: core.serialization.Schema<serializers.Email.Raw, CandidApi.Email>;
|
|
8
|
+
export declare namespace Email {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.Email = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../core"));
|
|
32
|
+
exports.Email = core.serialization
|
|
33
|
+
.string()
|
|
34
|
+
.transform({
|
|
35
|
+
transform: CandidApi.Email,
|
|
36
|
+
untransform: (value) => value,
|
|
37
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../..";
|
|
5
|
+
import * as CandidApi from "../../../../api";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const PhoneNumber: core.serialization.ObjectSchema<serializers.PhoneNumber.Raw, CandidApi.PhoneNumber>;
|
|
8
|
+
export declare namespace PhoneNumber {
|
|
9
|
+
interface Raw {
|
|
10
|
+
number: string;
|
|
11
|
+
type: serializers.PhoneNumberType.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PhoneNumber = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.PhoneNumber = core.serialization.object({
|
|
32
|
+
number: core.serialization.string(),
|
|
33
|
+
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PhoneNumberType),
|
|
34
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../..";
|
|
5
|
+
import * as CandidApi from "../../../../api";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const PhoneNumberType: core.serialization.Schema<serializers.PhoneNumberType.Raw, CandidApi.PhoneNumberType>;
|
|
8
|
+
export declare namespace PhoneNumberType {
|
|
9
|
+
type Raw = "Home" | "Mobile" | "Work";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PhoneNumberType = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.PhoneNumberType = core.serialization.enum_(["Home", "Mobile", "Work"]);
|
|
@@ -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);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.EncounterExternalIdUniquenessError;
|
|
10
|
+
interface EncounterExternalIdUniquenessError {
|
|
11
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
12
|
+
content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.Error = core.serialization
|
|
33
|
+
.union("errorName", {
|
|
34
|
+
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
35
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterExternalIdUniquenessErrorType),
|
|
36
|
+
}),
|
|
37
|
+
})
|
|
38
|
+
.transform({
|
|
39
|
+
transform: (value) => {
|
|
40
|
+
switch (value.errorName) {
|
|
41
|
+
case "EncounterExternalIdUniquenessError":
|
|
42
|
+
return CandidApi.encounters.v4.create.Error.encounterExternalIdUniquenessError(value.content);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
untransform: ({ _visit, ...value }) => value,
|
|
46
|
+
});
|
|
@@ -26,6 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.getAttachments = void 0;
|
|
29
|
+
exports.getAttachments = exports.update = exports.create = void 0;
|
|
30
|
+
exports.create = __importStar(require("./create"));
|
|
31
|
+
exports.update = __importStar(require("./update"));
|
|
30
32
|
exports.getAttachments = __importStar(require("./getAttachments"));
|
|
31
33
|
__exportStar(require("./requests"), exports);
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const EncounterCreate: core.serialization.Schema<serializers.enco
|
|
|
8
8
|
export declare namespace EncounterCreate {
|
|
9
9
|
interface Raw extends serializers.encounters.v4.EncounterBase.Raw {
|
|
10
10
|
patient: serializers.PatientCreate.Raw;
|
|
11
|
+
patient_is_self_guarantor?: boolean | null;
|
|
11
12
|
billing_provider: serializers.encounterProviders.v2.BillingProvider.Raw;
|
|
12
13
|
rendering_provider: serializers.encounterProviders.v2.RenderingProvider.Raw;
|
|
13
14
|
referring_provider?: serializers.encounterProviders.v2.ReferringProvider.Raw | null;
|
|
@@ -20,5 +21,6 @@ export declare namespace EncounterCreate {
|
|
|
20
21
|
place_of_service_code: serializers.FacilityTypeCode.Raw;
|
|
21
22
|
patient_histories?: serializers.encounters.v4.PatientHistoryCategory.Raw[] | null;
|
|
22
23
|
service_lines?: serializers.ServiceLineCreate.Raw[] | null;
|
|
24
|
+
guarantor?: serializers.guarantor.v1.GuarantorCreate.Raw | null;
|
|
23
25
|
}
|
|
24
26
|
}
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js
CHANGED
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../../../../core"));
|
|
|
31
31
|
exports.EncounterCreate = core.serialization
|
|
32
32
|
.object({
|
|
33
33
|
patient: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).PatientCreate),
|
|
34
|
+
patientIsSelfGuarantor: core.serialization.property("patient_is_self_guarantor", core.serialization.boolean().optional()),
|
|
34
35
|
billingProvider: core.serialization.property("billing_provider", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounterProviders.v2.BillingProvider)),
|
|
35
36
|
renderingProvider: core.serialization.property("rendering_provider", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounterProviders.v2.RenderingProvider)),
|
|
36
37
|
referringProvider: core.serialization.property("referring_provider", core.serialization
|
|
@@ -55,5 +56,8 @@ exports.EncounterCreate = core.serialization
|
|
|
55
56
|
serviceLines: core.serialization.property("service_lines", core.serialization
|
|
56
57
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).ServiceLineCreate))
|
|
57
58
|
.optional()),
|
|
59
|
+
guarantor: core.serialization
|
|
60
|
+
.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).guarantor.v1.GuarantorCreate)
|
|
61
|
+
.optional(),
|
|
58
62
|
})
|
|
59
63
|
.extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounters.v4.EncounterBase));
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts
CHANGED
|
@@ -14,5 +14,7 @@ export declare namespace EncounterUpdate {
|
|
|
14
14
|
tag_ids?: serializers.TagId.Raw[] | null;
|
|
15
15
|
clinical_notes?: serializers.encounters.v4.ClinicalNoteCategoryCreate.Raw[] | null;
|
|
16
16
|
pay_to_address?: serializers.StreetAddressLongZip.Raw | null;
|
|
17
|
+
patient_is_self_guarantor?: boolean | null;
|
|
18
|
+
guarantor_id?: serializers.guarantor.v1.GuarantorId.Raw | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js
CHANGED
|
@@ -44,4 +44,6 @@ exports.EncounterUpdate = core.serialization.object({
|
|
|
44
44
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).encounters.v4.ClinicalNoteCategoryCreate))
|
|
45
45
|
.optional()),
|
|
46
46
|
payToAddress: core.serialization.property("pay_to_address", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).StreetAddressLongZip).optional()),
|
|
47
|
+
patientIsSelfGuarantor: core.serialization.property("patient_is_self_guarantor", core.serialization.boolean().optional()),
|
|
48
|
+
guarantorId: core.serialization.property("guarantor_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).guarantor.v1.GuarantorId).optional()),
|
|
47
49
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.encounters.v4.update.Error.Raw, CandidApi.encounters.v4.update.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.EncounterExternalIdUniquenessError;
|
|
10
|
+
interface EncounterExternalIdUniquenessError {
|
|
11
|
+
errorName: "EncounterExternalIdUniquenessError";
|
|
12
|
+
content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.Error = core.serialization
|
|
33
|
+
.union("errorName", {
|
|
34
|
+
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
35
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterExternalIdUniquenessErrorType),
|
|
36
|
+
}),
|
|
37
|
+
})
|
|
38
|
+
.transform({
|
|
39
|
+
transform: (value) => {
|
|
40
|
+
switch (value.errorName) {
|
|
41
|
+
case "EncounterExternalIdUniquenessError":
|
|
42
|
+
return CandidApi.encounters.v4.update.Error.encounterExternalIdUniquenessError(value.content);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
untransform: ({ _visit, ...value }) => value,
|
|
46
|
+
});
|
|
@@ -23,7 +23,7 @@ export declare namespace Encounter {
|
|
|
23
23
|
place_of_service_code?: serializers.FacilityTypeCode.Raw | null;
|
|
24
24
|
place_of_service_code_as_submitted?: serializers.FacilityTypeCode.Raw | null;
|
|
25
25
|
patient_histories: serializers.encounters.v4.PatientHistoryCategory.Raw[];
|
|
26
|
-
patient_payments: serializers.patientPayments.
|
|
26
|
+
patient_payments: serializers.patientPayments.v3.PatientPayment.Raw[];
|
|
27
27
|
tags: serializers.Tag.Raw[];
|
|
28
28
|
coding_attribution?: serializers.encounters.v4.CodingAttributionType.Raw | null;
|
|
29
29
|
work_queue?: serializers.workQueues.v1.WorkQueue.Raw | null;
|
|
@@ -50,7 +50,7 @@ exports.Encounter = core.serialization
|
|
|
50
50
|
placeOfServiceCode: core.serialization.property("place_of_service_code", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).FacilityTypeCode).optional()),
|
|
51
51
|
placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).FacilityTypeCode).optional()),
|
|
52
52
|
patientHistories: core.serialization.property("patient_histories", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.PatientHistoryCategory))),
|
|
53
|
-
patientPayments: core.serialization.property("patient_payments", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.
|
|
53
|
+
patientPayments: core.serialization.property("patient_payments", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.v3.PatientPayment))),
|
|
54
54
|
tags: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).Tag)),
|
|
55
55
|
codingAttribution: core.serialization.property("coding_attribution", core.serialization
|
|
56
56
|
.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.CodingAttributionType)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const EncounterExternalIdUniquenessErrorType: core.serialization.ObjectSchema<serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw, CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType>;
|
|
8
|
+
export declare namespace EncounterExternalIdUniquenessErrorType {
|
|
9
|
+
interface Raw {
|
|
10
|
+
external_id?: serializers.EncounterExternalId.Raw | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.EncounterExternalIdUniquenessErrorType = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.EncounterExternalIdUniquenessErrorType = core.serialization.object({
|
|
32
|
+
externalId: core.serialization.property("external_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EncounterExternalId).optional()),
|
|
33
|
+
});
|
|
@@ -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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -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("./resources"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|