candidhealth 0.3.0 → 0.4.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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/client/Client.js +1 -1
- package/api/resources/commons/types/DateRangeOptionalEnd.d.ts +8 -0
- package/api/resources/commons/types/Decimal.d.ts +11 -0
- package/api/resources/commons/types/Decimal.js +10 -0
- package/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
- package/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
- package/api/resources/commons/types/UserId.d.ts +8 -0
- package/api/resources/commons/types/index.d.ts +4 -1
- package/api/resources/commons/types/index.js +4 -1
- package/api/resources/encounters/resources/v4/client/Client.js +16 -12
- 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 +0 -1
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -7
- package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
- package/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
- package/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
- package/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
- package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
- package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
- package/api/resources/encounters/resources/v4/types/index.js +3 -0
- package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
- package/api/resources/guarantor/resources/v1/client/Client.js +20 -6
- package/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
- package/api/resources/guarantor/resources/v1/client/create.js +11 -0
- package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
- package/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
- package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
- package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
- package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/api/resources/guarantor/resources/v1/types/index.js +1 -0
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +1 -2
- package/api/resources/individual/types/Patient.d.ts +4 -0
- package/api/resources/individual/types/PatientBase.d.ts +0 -1
- package/api/resources/individual/types/PatientCreate.d.ts +6 -0
- package/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
- package/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +13 -1
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
- package/api/resources/payers/client/Client.js +2 -2
- package/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
- package/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
- package/api/resources/tasks/resources/v3/client/Client.js +1 -1
- package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- 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/DateRangeOptionalEnd.d.ts +8 -0
- package/dist/api/resources/commons/types/Decimal.d.ts +11 -0
- package/dist/api/resources/commons/types/Decimal.js +10 -0
- package/dist/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
- package/dist/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
- package/dist/api/resources/commons/types/UserId.d.ts +8 -0
- package/dist/api/resources/commons/types/index.d.ts +4 -1
- package/dist/api/resources/commons/types/index.js +4 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +16 -12
- 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 +0 -1
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -7
- package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
- package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
- package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
- package/dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
- package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +3 -0
- package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +20 -6
- package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
- package/dist/api/resources/guarantor/resources/v1/client/create.js +11 -0
- package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
- package/dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
- package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +1 -2
- package/dist/api/resources/individual/types/Patient.d.ts +4 -0
- package/dist/api/resources/individual/types/PatientBase.d.ts +0 -1
- package/dist/api/resources/individual/types/PatientCreate.d.ts +6 -0
- package/dist/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
- package/dist/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +13 -1
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
- package/dist/api/resources/payers/client/Client.js +2 -2
- package/dist/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
- package/dist/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
- package/dist/serialization/resources/commons/types/DateRangeOptionalEnd.js +34 -0
- package/dist/serialization/resources/commons/types/Decimal.d.ts +10 -0
- package/dist/serialization/resources/commons/types/Decimal.js +37 -0
- package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
- package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
- package/dist/serialization/resources/commons/types/UserId.d.ts +10 -0
- package/dist/serialization/resources/{users/resources/v2 → commons}/types/UserId.js +6 -4
- package/dist/serialization/resources/commons/types/index.d.ts +4 -1
- package/dist/serialization/resources/commons/types/index.js +4 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -2
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +6 -2
- package/dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
- package/{serialization/resources/users/resources/v2/types/MachineUserMetadata.js → dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.js} +2 -4
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
- package/dist/serialization/resources/{users/resources/v2/types/GoogleAppsMetadata.js → encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +3 -3
- package/dist/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
- package/dist/serialization/resources/{users/resources/v2/types/MachineUserMetadata.js → encounters/resources/v4/types/ResponsiblePartyType.js} +2 -4
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +3 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
- package/dist/serialization/resources/{users/resources/v2/types/UserMetadata.js → guarantor/resources/v1/client/create.js} +14 -7
- package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
- package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
- package/dist/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
- package/{serialization/resources/users/resources/v2/types/AuthZeroMetadata.js → dist/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +3 -3
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
- package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +1 -2
- package/dist/serialization/resources/individual/types/Patient.d.ts +4 -0
- package/dist/serialization/resources/individual/types/Patient.js +4 -0
- package/dist/serialization/resources/individual/types/PatientBase.d.ts +0 -1
- package/dist/serialization/resources/individual/types/PatientBase.js +0 -1
- package/dist/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
- package/dist/serialization/resources/individual/types/PatientCreate.js +8 -1
- package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
- package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
- package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
- package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
- package/dist/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
- package/dist/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
- package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
- package/examples/acmeHealth.ts +4 -2
- package/package.json +1 -1
- package/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
- package/serialization/resources/commons/types/DateRangeOptionalEnd.js +34 -0
- package/serialization/resources/commons/types/Decimal.d.ts +10 -0
- package/serialization/resources/commons/types/Decimal.js +37 -0
- package/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
- package/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
- package/serialization/resources/commons/types/UserId.d.ts +10 -0
- package/serialization/resources/{users/resources/v2 → commons}/types/UserId.js +6 -4
- package/serialization/resources/commons/types/index.d.ts +4 -1
- package/serialization/resources/commons/types/index.js +4 -1
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -2
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +6 -2
- package/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
- package/serialization/resources/encounters/resources/v4/types/BillableStatusType.js +31 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
- package/{dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js → serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +3 -4
- package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
- package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.js +31 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +3 -0
- package/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
- package/serialization/resources/{users/resources/v2/types/IdpUserMetadata.js → guarantor/resources/v1/client/create.js} +14 -8
- package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
- package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
- package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
- package/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
- package/{dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js → serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +3 -3
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
- package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
- package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +1 -2
- package/serialization/resources/individual/types/Patient.d.ts +4 -0
- package/serialization/resources/individual/types/Patient.js +4 -0
- package/serialization/resources/individual/types/PatientBase.d.ts +0 -1
- package/serialization/resources/individual/types/PatientBase.js +0 -1
- package/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
- package/serialization/resources/individual/types/PatientCreate.js +8 -1
- package/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
- package/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
- package/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
- package/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
- package/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
- package/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
- package/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
- package/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
- package/api/resources/commons/types/ContactInfo.d.ts +0 -10
- package/api/resources/users/index.d.ts +0 -1
- package/api/resources/users/index.js +0 -17
- package/api/resources/users/resources/index.d.ts +0 -1
- package/api/resources/users/resources/index.js +0 -27
- package/api/resources/users/resources/v2/index.d.ts +0 -1
- package/api/resources/users/resources/v2/index.js +0 -17
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -6
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
- package/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -7
- package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -16
- package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -5
- package/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
- package/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -13
- package/api/resources/users/resources/v2/types/UserMetadata.js +0 -5
- package/api/resources/users/resources/v2/types/UserV2.d.ts +0 -11
- package/api/resources/users/resources/v2/types/UserV2.js +0 -5
- package/api/resources/users/resources/v2/types/index.d.ts +0 -9
- package/api/resources/users/resources/v2/types/index.js +0 -25
- package/dist/api/resources/commons/types/ContactInfo.d.ts +0 -10
- package/dist/api/resources/commons/types/ContactInfo.js +0 -5
- package/dist/api/resources/users/index.d.ts +0 -1
- package/dist/api/resources/users/index.js +0 -17
- package/dist/api/resources/users/resources/index.d.ts +0 -1
- package/dist/api/resources/users/resources/index.js +0 -27
- package/dist/api/resources/users/resources/v2/index.d.ts +0 -1
- package/dist/api/resources/users/resources/v2/index.js +0 -17
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -6
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -7
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -16
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
- package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -13
- package/dist/api/resources/users/resources/v2/types/UserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +0 -11
- package/dist/api/resources/users/resources/v2/types/UserV2.js +0 -5
- package/dist/api/resources/users/resources/v2/types/index.d.ts +0 -9
- package/dist/api/resources/users/resources/v2/types/index.js +0 -25
- package/dist/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
- package/dist/serialization/resources/commons/types/ContactInfo.js +0 -36
- package/dist/serialization/resources/users/index.d.ts +0 -1
- package/dist/serialization/resources/users/index.js +0 -17
- package/dist/serialization/resources/users/resources/index.d.ts +0 -1
- package/dist/serialization/resources/users/resources/index.js +0 -27
- package/dist/serialization/resources/users/resources/v2/index.d.ts +0 -1
- package/dist/serialization/resources/users/resources/v2/index.js +0 -17
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +0 -40
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
- package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
- package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
- package/dist/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
- package/dist/serialization/resources/users/resources/v2/types/index.d.ts +0 -9
- package/dist/serialization/resources/users/resources/v2/types/index.js +0 -25
- package/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
- package/serialization/resources/commons/types/ContactInfo.js +0 -36
- package/serialization/resources/users/index.d.ts +0 -1
- package/serialization/resources/users/index.js +0 -17
- package/serialization/resources/users/resources/index.d.ts +0 -1
- package/serialization/resources/users/resources/index.js +0 -27
- package/serialization/resources/users/resources/v2/index.d.ts +0 -1
- package/serialization/resources/users/resources/v2/index.js +0 -17
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -33
- package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
- package/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +0 -34
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
- package/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
- package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
- package/serialization/resources/users/resources/v2/types/UserMetadata.js +0 -39
- package/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
- package/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
- package/serialization/resources/users/resources/v2/types/index.d.ts +0 -9
- package/serialization/resources/users/resources/v2/types/index.js +0 -25
- /package/api/resources/commons/types/{ContactInfo.js → DateRangeOptionalEnd.js} +0 -0
- /package/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
- /package/api/resources/{users/resources/v2/types/AuthZeroMetadata.js → encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +0 -0
- /package/api/resources/{users/resources/v2/types/GoogleAppsMetadata.js → guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +0 -0
- /package/{api/resources/users/resources/v2/types/HumanUserMetadata.js → dist/api/resources/commons/types/DateRangeOptionalEnd.js} +0 -0
- /package/dist/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
- /package/{api/resources/users/resources/v2/types/IdpUserMetadata.js → dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +0 -0
- /package/{api/resources/users/resources/v2/types/MachineUserMetadata.js → dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ResponsiblePartyType = "INSURANCE_PAY" | "SELF_PAY" | "UNKNOWN";
|
|
5
|
+
export declare const ResponsiblePartyType: {
|
|
6
|
+
readonly InsurancePay: "INSURANCE_PAY";
|
|
7
|
+
readonly SelfPay: "SELF_PAY";
|
|
8
|
+
readonly Unknown: "UNKNOWN";
|
|
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.ResponsiblePartyType = void 0;
|
|
7
|
+
exports.ResponsiblePartyType = {
|
|
8
|
+
InsurancePay: "INSURANCE_PAY",
|
|
9
|
+
SelfPay: "SELF_PAY",
|
|
10
|
+
Unknown: "UNKNOWN",
|
|
11
|
+
};
|
|
@@ -16,6 +16,8 @@ export * from "./ClinicalNoteCategoryCreate";
|
|
|
16
16
|
export * from "./ClinicalNoteCategory";
|
|
17
17
|
export * from "./NoteCategory";
|
|
18
18
|
export * from "./ClinicalNote";
|
|
19
|
+
export * from "./ResponsiblePartyType";
|
|
20
|
+
export * from "./BillableStatusType";
|
|
19
21
|
export * from "./SynchronicityType";
|
|
20
22
|
export * from "./CodingAttributionType";
|
|
21
23
|
export * from "./AttachmentId";
|
|
@@ -37,3 +39,4 @@ export * from "./RxCui";
|
|
|
37
39
|
export * from "./IntakeQuestionId";
|
|
38
40
|
export * from "./IntakeFollowUpId";
|
|
39
41
|
export * from "./EncounterExternalIdUniquenessErrorType";
|
|
42
|
+
export * from "./EncounterGuarantorMissingContactInfoErrorType";
|
|
@@ -32,6 +32,8 @@ __exportStar(require("./ClinicalNoteCategoryCreate"), exports);
|
|
|
32
32
|
__exportStar(require("./ClinicalNoteCategory"), exports);
|
|
33
33
|
__exportStar(require("./NoteCategory"), exports);
|
|
34
34
|
__exportStar(require("./ClinicalNote"), exports);
|
|
35
|
+
__exportStar(require("./ResponsiblePartyType"), exports);
|
|
36
|
+
__exportStar(require("./BillableStatusType"), exports);
|
|
35
37
|
__exportStar(require("./SynchronicityType"), exports);
|
|
36
38
|
__exportStar(require("./CodingAttributionType"), exports);
|
|
37
39
|
__exportStar(require("./AttachmentId"), exports);
|
|
@@ -53,3 +55,4 @@ __exportStar(require("./RxCui"), exports);
|
|
|
53
55
|
__exportStar(require("./IntakeQuestionId"), exports);
|
|
54
56
|
__exportStar(require("./IntakeFollowUpId"), exports);
|
|
55
57
|
__exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
|
|
58
|
+
__exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), 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.4.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -13,8 +13,8 @@ export declare namespace V1 {
|
|
|
13
13
|
export declare class V1 {
|
|
14
14
|
protected readonly options: V1.Options;
|
|
15
15
|
constructor(options: V1.Options);
|
|
16
|
-
create(request: CandidApi.guarantor.v1.GuarantorCreate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.create.Error>>;
|
|
16
|
+
create(encounterId: CandidApi.EncounterId, request: CandidApi.guarantor.v1.GuarantorCreate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.create.Error>>;
|
|
17
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
|
|
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
19
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
20
20
|
}
|
|
@@ -40,15 +40,15 @@ class V1 {
|
|
|
40
40
|
constructor(options) {
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
|
-
async create(request) {
|
|
43
|
+
async create(encounterId, request) {
|
|
44
44
|
const _response = await core.fetcher({
|
|
45
|
-
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production,
|
|
45
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.EncounterId.jsonOrThrow(encounterId)}`),
|
|
46
46
|
method: "POST",
|
|
47
47
|
headers: {
|
|
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.4.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -67,6 +67,20 @@ class V1 {
|
|
|
67
67
|
}),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
+
if (_response.error.reason === "status-code") {
|
|
71
|
+
switch (_response.error.body?.errorName) {
|
|
72
|
+
case "EncounterHasExistingGuarantorError":
|
|
73
|
+
return {
|
|
74
|
+
ok: false,
|
|
75
|
+
error: await serializers.guarantor.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
76
|
+
unrecognizedObjectKeys: "passthrough",
|
|
77
|
+
allowUnrecognizedUnionMembers: true,
|
|
78
|
+
allowUnrecognizedEnumValues: true,
|
|
79
|
+
breadcrumbsPrefix: ["response"],
|
|
80
|
+
}),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
70
84
|
return {
|
|
71
85
|
ok: false,
|
|
72
86
|
error: CandidApi.guarantor.v1.create.Error._unknown(_response.error),
|
|
@@ -80,7 +94,7 @@ class V1 {
|
|
|
80
94
|
Authorization: await this._getAuthorizationHeader(),
|
|
81
95
|
"X-Fern-Language": "JavaScript",
|
|
82
96
|
"X-Fern-SDK-Name": "candidhealth",
|
|
83
|
-
"X-Fern-SDK-Version": "0.
|
|
97
|
+
"X-Fern-SDK-Version": "0.4.0",
|
|
84
98
|
},
|
|
85
99
|
contentType: "application/json",
|
|
86
100
|
timeoutMs: 60000,
|
|
@@ -101,7 +115,7 @@ class V1 {
|
|
|
101
115
|
error: CandidApi.guarantor.v1.get.Error._unknown(_response.error),
|
|
102
116
|
};
|
|
103
117
|
}
|
|
104
|
-
async update(guarantorId, request) {
|
|
118
|
+
async update(guarantorId, request = {}) {
|
|
105
119
|
const _response = await core.fetcher({
|
|
106
120
|
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId)}`),
|
|
107
121
|
method: "PATCH",
|
|
@@ -109,7 +123,7 @@ class V1 {
|
|
|
109
123
|
Authorization: await this._getAuthorizationHeader(),
|
|
110
124
|
"X-Fern-Language": "JavaScript",
|
|
111
125
|
"X-Fern-SDK-Name": "candidhealth",
|
|
112
|
-
"X-Fern-SDK-Version": "0.
|
|
126
|
+
"X-Fern-SDK-Version": "0.4.0",
|
|
113
127
|
},
|
|
114
128
|
contentType: "application/json",
|
|
115
129
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
@@ -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.guarantor.v1.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.guarantor.v1.create.Error.EncounterHasExistingGuarantorError | CandidApi.guarantor.v1.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EncounterHasExistingGuarantorError extends _Utils {
|
|
9
|
+
errorName: "EncounterHasExistingGuarantorError";
|
|
10
|
+
content: CandidApi.guarantor.v1.EncounterHasExistingGuarantorErrorType;
|
|
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.guarantor.v1.create.Error._Visitor<_Result>) => _Result;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
encounterHasExistingGuarantorError: (value: CandidApi.guarantor.v1.EncounterHasExistingGuarantorErrorType) => _Result;
|
|
16
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
export declare const Error: {
|
|
25
|
+
readonly encounterHasExistingGuarantorError: (value: CandidApi.guarantor.v1.EncounterHasExistingGuarantorErrorType) => CandidApi.guarantor.v1.create.Error.EncounterHasExistingGuarantorError;
|
|
20
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.guarantor.v1.create.Error._Unknown;
|
|
21
27
|
readonly _visit: <_Result>(value: CandidApi.guarantor.v1.create.Error, visitor: CandidApi.guarantor.v1.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
|
+
encounterHasExistingGuarantorError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EncounterHasExistingGuarantorError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.guarantor.v1.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 "EncounterHasExistingGuarantorError":
|
|
53
|
+
return visitor.encounterHasExistingGuarantorError(value.content);
|
|
43
54
|
default:
|
|
44
55
|
return visitor._other(value);
|
|
45
56
|
}
|
|
@@ -6,7 +6,10 @@ export interface GuarantorUpdate {
|
|
|
6
6
|
firstName?: string;
|
|
7
7
|
lastName?: string;
|
|
8
8
|
externalId?: string;
|
|
9
|
-
dateOfBirth
|
|
10
|
-
address?: CandidApi.
|
|
11
|
-
|
|
9
|
+
dateOfBirth?: string;
|
|
10
|
+
address?: CandidApi.StreetAddressShortZip;
|
|
11
|
+
phoneNumbers?: CandidApi.PhoneNumber[];
|
|
12
|
+
phoneConsent?: boolean;
|
|
13
|
+
email?: CandidApi.Email;
|
|
14
|
+
emailConsent?: boolean;
|
|
12
15
|
}
|
|
@@ -4,4 +4,8 @@
|
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface Guarantor extends CandidApi.guarantor.v1.GuarantorBase {
|
|
6
6
|
guarantorId: CandidApi.guarantor.v1.GuarantorId;
|
|
7
|
+
phoneNumbers: CandidApi.PhoneNumber[];
|
|
8
|
+
phoneConsent: boolean;
|
|
9
|
+
email?: CandidApi.Email;
|
|
10
|
+
emailConsent: boolean;
|
|
7
11
|
}
|
|
@@ -3,4 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface GuarantorCreate extends CandidApi.guarantor.v1.GuarantorBase {
|
|
6
|
+
phoneNumbers?: CandidApi.PhoneNumber[];
|
|
7
|
+
/** Defaults to false */
|
|
8
|
+
phoneConsent?: boolean;
|
|
9
|
+
email?: CandidApi.Email;
|
|
10
|
+
/** Defaults to false */
|
|
11
|
+
emailConsent?: boolean;
|
|
6
12
|
}
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./GuarantorId"), exports);
|
|
|
18
18
|
__exportStar(require("./GuarantorBase"), exports);
|
|
19
19
|
__exportStar(require("./Guarantor"), exports);
|
|
20
20
|
__exportStar(require("./GuarantorCreate"), exports);
|
|
21
|
+
__exportStar(require("./EncounterHasExistingGuarantorErrorType"), exports);
|
|
@@ -5,7 +5,6 @@ export * as guarantor from "./guarantor";
|
|
|
5
5
|
export * as organizationProviders from "./organizationProviders";
|
|
6
6
|
export * as patientPayments from "./patientPayments";
|
|
7
7
|
export * as tasks from "./tasks";
|
|
8
|
-
export * as users from "./users";
|
|
9
8
|
export * as workQueues from "./workQueues";
|
|
10
9
|
export * as billingNotes from "./billingNotes";
|
|
11
10
|
export * from "./billingNotes/types";
|
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.
|
|
29
|
+
exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
|
|
30
30
|
exports.auth = __importStar(require("./auth"));
|
|
31
31
|
exports.encounterProviders = __importStar(require("./encounterProviders"));
|
|
32
32
|
exports.encounters = __importStar(require("./encounters"));
|
|
@@ -34,7 +34,6 @@ exports.guarantor = __importStar(require("./guarantor"));
|
|
|
34
34
|
exports.organizationProviders = __importStar(require("./organizationProviders"));
|
|
35
35
|
exports.patientPayments = __importStar(require("./patientPayments"));
|
|
36
36
|
exports.tasks = __importStar(require("./tasks"));
|
|
37
|
-
exports.users = __importStar(require("./users"));
|
|
38
37
|
exports.workQueues = __importStar(require("./workQueues"));
|
|
39
38
|
exports.billingNotes = __importStar(require("./billingNotes"));
|
|
40
39
|
__exportStar(require("./billingNotes/types"), exports);
|
|
@@ -3,4 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
5
|
export interface PatientCreate extends CandidApi.PatientBase {
|
|
6
|
+
phoneNumbers?: CandidApi.PhoneNumber[];
|
|
7
|
+
/** Defaults to false */
|
|
8
|
+
phoneConsent?: boolean;
|
|
9
|
+
email?: CandidApi.Email;
|
|
10
|
+
/** Defaults to false */
|
|
11
|
+
emailConsent?: boolean;
|
|
6
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN";
|
|
4
|
+
export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC";
|
|
5
5
|
export declare const LicenseType: {
|
|
6
6
|
readonly Md: "MD";
|
|
7
7
|
readonly Np: "NP";
|
|
@@ -24,4 +24,16 @@ export declare const LicenseType: {
|
|
|
24
24
|
readonly OtherMasters: "OTHER_MASTERS";
|
|
25
25
|
readonly Bcba: "BCBA";
|
|
26
26
|
readonly Unknown: "UNKNOWN";
|
|
27
|
+
readonly Rph: "RPH";
|
|
28
|
+
readonly Pht: "PHT";
|
|
29
|
+
readonly Lac: "LAC";
|
|
30
|
+
readonly Lmt: "LMT";
|
|
31
|
+
readonly Dc: "DC";
|
|
32
|
+
readonly Nd: "ND";
|
|
33
|
+
readonly Ma: "MA";
|
|
34
|
+
readonly Pt: "PT";
|
|
35
|
+
readonly Ibclc: "IBCLC";
|
|
36
|
+
readonly Rn: "RN";
|
|
37
|
+
readonly Dpt: "DPT";
|
|
38
|
+
readonly Lcmhc: "LCMHC";
|
|
27
39
|
};
|
|
@@ -26,4 +26,16 @@ exports.LicenseType = {
|
|
|
26
26
|
OtherMasters: "OTHER_MASTERS",
|
|
27
27
|
Bcba: "BCBA",
|
|
28
28
|
Unknown: "UNKNOWN",
|
|
29
|
+
Rph: "RPH",
|
|
30
|
+
Pht: "PHT",
|
|
31
|
+
Lac: "LAC",
|
|
32
|
+
Lmt: "LMT",
|
|
33
|
+
Dc: "DC",
|
|
34
|
+
Nd: "ND",
|
|
35
|
+
Ma: "MA",
|
|
36
|
+
Pt: "PT",
|
|
37
|
+
Ibclc: "IBCLC",
|
|
38
|
+
Rn: "RN",
|
|
39
|
+
Dpt: "DPT",
|
|
40
|
+
Lcmhc: "LCMHC",
|
|
29
41
|
};
|
|
@@ -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.4.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.4.0",
|
|
93
93
|
},
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
@@ -5,7 +5,19 @@ import * as CandidApi from "../../..";
|
|
|
5
5
|
export interface ServiceLine extends CandidApi.ServiceLineBaseWithOptionals {
|
|
6
6
|
serviceLineId: CandidApi.ServiceLineId;
|
|
7
7
|
procedureCode: string;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* String representation of a Decimal that can be parsed by most libraries.
|
|
10
|
+
* A ServiceLine quantity cannot contain more than one digit of precision.
|
|
11
|
+
* Example: 1.1 is valid, 1.11 is not.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
quantity: CandidApi.Decimal;
|
|
9
15
|
units: CandidApi.ServiceLineUnits;
|
|
10
16
|
claimId: CandidApi.ClaimId;
|
|
17
|
+
/**
|
|
18
|
+
* A range of dates of service for this service line. If the service line is for a single date, the end date
|
|
19
|
+
* will be empty.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
dateOfServiceRange: CandidApi.DateRangeOptionalEnd;
|
|
11
23
|
}
|
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
5
|
export interface ServiceLineCreate extends CandidApi.ServiceLineBase {
|
|
6
6
|
procedureCode: string;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* String representation of a Decimal that can be parsed by most libraries.
|
|
9
|
+
* A ServiceLine quantity cannot contain more than one digit of precision.
|
|
10
|
+
* Example: 1.1 is valid, 1.11 is not.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
quantity: CandidApi.Decimal;
|
|
8
14
|
units: CandidApi.ServiceLineUnits;
|
|
9
15
|
/**
|
|
10
16
|
* The total amount charged for this service line taking quantity into account. For example, if a single unit
|
|
@@ -48,7 +48,7 @@ class V3 {
|
|
|
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.4.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
timeoutMs: 60000,
|
|
@@ -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 DateRangeOptionalEnd: core.serialization.ObjectSchema<serializers.DateRangeOptionalEnd.Raw, CandidApi.DateRangeOptionalEnd>;
|
|
8
|
+
export declare namespace DateRangeOptionalEnd {
|
|
9
|
+
interface Raw {
|
|
10
|
+
start_date: serializers.Date_.Raw;
|
|
11
|
+
end_date?: serializers.Date_.Raw | null;
|
|
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.DateRangeOptionalEnd = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.DateRangeOptionalEnd = core.serialization.object({
|
|
32
|
+
startDate: core.serialization.property("start_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Date_)),
|
|
33
|
+
endDate: core.serialization.property("end_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Date_).optional()),
|
|
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 Decimal: core.serialization.Schema<serializers.Decimal.Raw, CandidApi.Decimal>;
|
|
8
|
+
export declare namespace Decimal {
|
|
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.Decimal = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../core"));
|
|
32
|
+
exports.Decimal = core.serialization
|
|
33
|
+
.string()
|
|
34
|
+
.transform({
|
|
35
|
+
transform: CandidApi.Decimal,
|
|
36
|
+
untransform: (value) => value,
|
|
37
|
+
});
|
|
@@ -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 EmrPayerCrosswalk: core.serialization.Schema<serializers.EmrPayerCrosswalk.Raw, CandidApi.EmrPayerCrosswalk>;
|
|
8
|
+
export declare namespace EmrPayerCrosswalk {
|
|
9
|
+
type Raw = "HEALTHIE" | "CANVAS";
|
|
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.EmrPayerCrosswalk = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.EmrPayerCrosswalk = core.serialization.enum_(["HEALTHIE", "CANVAS"]);
|
|
@@ -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 UserId: core.serialization.Schema<serializers.UserId.Raw, CandidApi.UserId>;
|
|
8
|
+
export declare namespace UserId {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -27,9 +27,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UserId = void 0;
|
|
30
|
-
const CandidApi = __importStar(require("
|
|
31
|
-
const core = __importStar(require("
|
|
32
|
-
exports.UserId = core.serialization
|
|
33
|
-
|
|
30
|
+
const CandidApi = __importStar(require("../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../core"));
|
|
32
|
+
exports.UserId = core.serialization
|
|
33
|
+
.string()
|
|
34
|
+
.transform({
|
|
35
|
+
transform: CandidApi.UserId,
|
|
34
36
|
untransform: (value) => value,
|
|
35
37
|
});
|