candidhealth 0.34.4 → 0.34.6
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 +7 -2
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/claims/types/Claim.d.ts +4 -4
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.d.ts +65 -0
- package/api/resources/diagnoses/client/Client.js +237 -0
- package/api/resources/diagnoses/client/create.d.ts +22 -0
- package/api/resources/diagnoses/client/create.js +47 -0
- package/api/resources/diagnoses/client/delete.d.ts +28 -0
- package/api/resources/diagnoses/client/delete.js +58 -0
- package/api/resources/diagnoses/client/index.d.ts +4 -0
- package/api/resources/diagnoses/client/index.js +33 -0
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
- package/api/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/api/resources/diagnoses/client/requests/index.js +2 -0
- package/api/resources/diagnoses/client/update.d.ts +28 -0
- package/api/resources/diagnoses/client/update.js +58 -0
- package/api/resources/diagnoses/index.d.ts +1 -0
- package/api/resources/diagnoses/index.js +1 -0
- package/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
- package/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
- package/api/resources/diagnoses/types/index.d.ts +1 -0
- package/api/resources/diagnoses/types/index.js +1 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -19
- package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +7 -2
- package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.js +11 -0
- package/api/resources/encounterProviders/resources/v2/client/createOrderingProvider.d.ts +6 -9
- package/api/resources/encounterProviders/resources/v2/client/createOrderingProvider.js +4 -4
- package/api/resources/encounterProviders/resources/v2/client/createReferringProvider.d.ts +6 -9
- package/api/resources/encounterProviders/resources/v2/client/createReferringProvider.js +4 -4
- package/api/resources/encounterProviders/resources/v2/client/createSupervisingProvider.d.ts +6 -9
- package/api/resources/encounterProviders/resources/v2/client/createSupervisingProvider.js +4 -4
- package/api/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.d.ts +6 -9
- package/api/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.js +4 -4
- package/api/resources/encounterProviders/resources/v2/client/updateOrderingProvider.d.ts +6 -9
- package/api/resources/encounterProviders/resources/v2/client/updateOrderingProvider.js +4 -4
- package/api/resources/encounterProviders/resources/v2/client/updateReferringProvider.d.ts +6 -9
- package/api/resources/encounterProviders/resources/v2/client/updateReferringProvider.js +4 -4
- package/api/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.d.ts +6 -9
- package/api/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.js +4 -4
- package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +21 -0
- package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +5 -0
- package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
- package/api/resources/encounters/resources/v4/client/Client.d.ts +28 -10
- package/api/resources/encounters/resources/v4/client/Client.js +33 -15
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -5
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -5
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +21 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -4
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +2 -1
- package/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -5
- package/api/resources/serviceLines/resources/v2/client/Client.js +9 -8
- package/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
- package/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
- package/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +7 -2
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/claims/types/Claim.d.ts +4 -4
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.d.ts +65 -0
- package/dist/api/resources/diagnoses/client/Client.js +237 -0
- package/dist/api/resources/diagnoses/client/create.d.ts +22 -0
- package/dist/api/resources/diagnoses/client/create.js +47 -0
- package/dist/api/resources/diagnoses/client/delete.d.ts +28 -0
- package/dist/api/resources/diagnoses/client/delete.js +58 -0
- package/dist/api/resources/diagnoses/client/index.d.ts +4 -0
- package/dist/api/resources/diagnoses/client/index.js +33 -0
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
- package/dist/api/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/client/requests/index.js +2 -0
- package/dist/api/resources/diagnoses/client/update.d.ts +28 -0
- package/dist/api/resources/diagnoses/client/update.js +58 -0
- package/dist/api/resources/diagnoses/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/index.js +1 -0
- package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
- package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
- package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/types/index.js +1 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -19
- package/dist/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +7 -2
- package/dist/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.js +11 -0
- package/dist/api/resources/encounterProviders/resources/v2/client/createOrderingProvider.d.ts +6 -9
- package/dist/api/resources/encounterProviders/resources/v2/client/createOrderingProvider.js +4 -4
- package/dist/api/resources/encounterProviders/resources/v2/client/createReferringProvider.d.ts +6 -9
- package/dist/api/resources/encounterProviders/resources/v2/client/createReferringProvider.js +4 -4
- package/dist/api/resources/encounterProviders/resources/v2/client/createSupervisingProvider.d.ts +6 -9
- package/dist/api/resources/encounterProviders/resources/v2/client/createSupervisingProvider.js +4 -4
- package/dist/api/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.d.ts +6 -9
- package/dist/api/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.js +4 -4
- package/dist/api/resources/encounterProviders/resources/v2/client/updateOrderingProvider.d.ts +6 -9
- package/dist/api/resources/encounterProviders/resources/v2/client/updateOrderingProvider.js +4 -4
- package/dist/api/resources/encounterProviders/resources/v2/client/updateReferringProvider.d.ts +6 -9
- package/dist/api/resources/encounterProviders/resources/v2/client/updateReferringProvider.js +4 -4
- package/dist/api/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.d.ts +6 -9
- package/dist/api/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.js +4 -4
- package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +21 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +28 -10
- package/dist/api/resources/encounters/resources/v4/client/Client.js +33 -15
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -5
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -5
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +21 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -4
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +2 -1
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -5
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +9 -8
- package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
- package/dist/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/diagnoses/client/delete.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/delete.js +61 -0
- package/dist/serialization/resources/diagnoses/client/index.d.ts +3 -0
- package/dist/serialization/resources/diagnoses/client/index.js +32 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
- package/dist/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/client/requests/index.js +5 -0
- package/dist/serialization/resources/diagnoses/client/update.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/update.js +61 -0
- package/dist/serialization/resources/diagnoses/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/index.js +1 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
- package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/types/index.js +1 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +6 -1
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.js +6 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createOrderingProvider.d.ts +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createOrderingProvider.js +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createReferringProvider.d.ts +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createReferringProvider.js +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createSupervisingProvider.d.ts +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/createSupervisingProvider.js +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.d.ts +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.js +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateOrderingProvider.d.ts +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateOrderingProvider.js +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateReferringProvider.d.ts +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateReferringProvider.js +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.d.ts +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.js +5 -5
- package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +17 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +40 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -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/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +31 -5260
- package/serialization/resources/diagnoses/client/delete.d.ts +15 -0
- package/serialization/resources/diagnoses/client/delete.js +61 -0
- package/serialization/resources/diagnoses/client/index.d.ts +3 -0
- package/serialization/resources/diagnoses/client/index.js +32 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
- package/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/serialization/resources/diagnoses/client/requests/index.js +5 -0
- package/serialization/resources/diagnoses/client/update.d.ts +15 -0
- package/serialization/resources/diagnoses/client/update.js +61 -0
- package/serialization/resources/diagnoses/index.d.ts +1 -0
- package/serialization/resources/diagnoses/index.js +1 -0
- package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
- package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
- package/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/serialization/resources/diagnoses/types/index.js +1 -0
- package/serialization/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +6 -1
- package/serialization/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.js +6 -0
- package/serialization/resources/encounterProviders/resources/v2/client/createOrderingProvider.d.ts +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/createOrderingProvider.js +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/createReferringProvider.d.ts +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/createReferringProvider.js +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/createSupervisingProvider.d.ts +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/createSupervisingProvider.js +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.d.ts +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateInitialReferringProvider.js +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateOrderingProvider.d.ts +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateOrderingProvider.js +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateReferringProvider.d.ts +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateReferringProvider.js +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.d.ts +5 -5
- package/serialization/resources/encounterProviders/resources/v2/client/updateSupervisingProvider.js +5 -5
- package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +17 -0
- package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +40 -0
- package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -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/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
- package/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
- package/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
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.delete = exports.update = exports.create = void 0;
|
|
30
|
+
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.create = __importStar(require("./create"));
|
|
32
|
+
exports.update = __importStar(require("./update"));
|
|
33
|
+
exports.delete = __importStar(require("./delete"));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* name: "string",
|
|
9
|
+
* codeType: CandidApi.DiagnosisTypeCode.Abf,
|
|
10
|
+
* code: "string"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface DiagnosisUpdate {
|
|
14
|
+
/** Empty string not allowed. */
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Typically, providers submitting claims to Candid are using ICD-10 diagnosis codes. If you are using ICD-10 codes, the primary diagnosis code listed on the claim should use the ABK code_type. If more than one diagnosis is being submitted on a claim, please use ABF for the rest of the listed diagnoses. If you are using ICD-9 diagnosis codes, use BK and BF for the principal and following diagnosis code(s) respectively.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
codeType?: CandidApi.DiagnosisTypeCode;
|
|
21
|
+
/**
|
|
22
|
+
* Empty string not allowed.
|
|
23
|
+
* Should be of the appropriate format for the provided `code_type`.
|
|
24
|
+
* Must obey the ICD-10 format if an ICD-10 code_type is provided, specifically:
|
|
25
|
+
* - Letter
|
|
26
|
+
* - Digit
|
|
27
|
+
* - Digit or the letter `A` or `B`
|
|
28
|
+
* - (Optional) Period `.`
|
|
29
|
+
* - Up to 4 (or as few as 0) letters and digits
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
code?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type DiagnosisUpdate } from "./DiagnosisUpdate";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.diagnoses.update.Error.DiagnosisNotFoundHttpError | CandidApi.diagnoses.update.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface DiagnosisNotFoundHttpError extends _Utils {
|
|
9
|
+
errorName: "DiagnosisNotFoundHTTPError";
|
|
10
|
+
content: CandidApi.DiagnosisNotFoundError;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.diagnoses.update.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
diagnosisNotFoundHttpError: (value: CandidApi.DiagnosisNotFoundError) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly diagnosisNotFoundHttpError: (value: CandidApi.DiagnosisNotFoundError) => CandidApi.diagnoses.update.Error.DiagnosisNotFoundHttpError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.diagnoses.update.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.diagnoses.update.Error, visitor: CandidApi.diagnoses.update.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../index"));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
diagnosisNotFoundHttpError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "DiagnosisNotFoundHTTPError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.diagnoses.update.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_unknown: (fetcherError) => {
|
|
42
|
+
return {
|
|
43
|
+
errorName: undefined,
|
|
44
|
+
content: fetcherError,
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.diagnoses.update.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_visit: (value, visitor) => {
|
|
51
|
+
switch (value.errorName) {
|
|
52
|
+
case "DiagnosisNotFoundHTTPError":
|
|
53
|
+
return visitor.diagnosisNotFoundHttpError(value.content);
|
|
54
|
+
default:
|
|
55
|
+
return visitor._other(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./DiagnosisCreate"), exports);
|
|
|
19
19
|
__exportStar(require("./StandaloneDiagnosisCreate"), exports);
|
|
20
20
|
__exportStar(require("./DiagnosisTypeCode"), exports);
|
|
21
21
|
__exportStar(require("./Diagnosis"), exports);
|
|
22
|
+
__exportStar(require("./DiagnosisNotFoundError"), exports);
|
|
@@ -83,7 +83,7 @@ class V2 {
|
|
|
83
83
|
Authorization: yield this._getAuthorizationHeader(),
|
|
84
84
|
"X-Fern-Language": "JavaScript",
|
|
85
85
|
"X-Fern-SDK-Name": "candidhealth",
|
|
86
|
-
"X-Fern-SDK-Version": "0.34.
|
|
86
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
87
87
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
88
88
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
89
89
|
},
|
|
@@ -156,7 +156,7 @@ class V2 {
|
|
|
156
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "candidhealth",
|
|
159
|
-
"X-Fern-SDK-Version": "0.34.
|
|
159
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
160
160
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
161
161
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
162
162
|
},
|
|
@@ -227,7 +227,7 @@ class V2 {
|
|
|
227
227
|
Authorization: yield this._getAuthorizationHeader(),
|
|
228
228
|
"X-Fern-Language": "JavaScript",
|
|
229
229
|
"X-Fern-SDK-Name": "candidhealth",
|
|
230
|
-
"X-Fern-SDK-Version": "0.34.
|
|
230
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
231
231
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
232
232
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
233
233
|
},
|
|
@@ -81,7 +81,7 @@ class V2 {
|
|
|
81
81
|
Authorization: yield this._getAuthorizationHeader(),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "candidhealth",
|
|
84
|
-
"X-Fern-SDK-Version": "0.34.
|
|
84
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
85
85
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
86
86
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
87
87
|
},
|
|
@@ -107,7 +107,7 @@ class V2 {
|
|
|
107
107
|
}
|
|
108
108
|
if (_response.error.reason === "status-code") {
|
|
109
109
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
110
|
-
case "
|
|
110
|
+
case "HttpRequestValidationsError":
|
|
111
111
|
case "EntityNotFoundError":
|
|
112
112
|
return {
|
|
113
113
|
ok: false,
|
|
@@ -160,7 +160,7 @@ class V2 {
|
|
|
160
160
|
Authorization: yield this._getAuthorizationHeader(),
|
|
161
161
|
"X-Fern-Language": "JavaScript",
|
|
162
162
|
"X-Fern-SDK-Name": "candidhealth",
|
|
163
|
-
"X-Fern-SDK-Version": "0.34.
|
|
163
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
164
164
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
165
165
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
166
166
|
},
|
|
@@ -186,7 +186,7 @@ class V2 {
|
|
|
186
186
|
}
|
|
187
187
|
if (_response.error.reason === "status-code") {
|
|
188
188
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
189
|
-
case "
|
|
189
|
+
case "HttpRequestValidationsError":
|
|
190
190
|
case "EntityNotFoundError":
|
|
191
191
|
return {
|
|
192
192
|
ok: false,
|
|
@@ -239,7 +239,7 @@ class V2 {
|
|
|
239
239
|
Authorization: yield this._getAuthorizationHeader(),
|
|
240
240
|
"X-Fern-Language": "JavaScript",
|
|
241
241
|
"X-Fern-SDK-Name": "candidhealth",
|
|
242
|
-
"X-Fern-SDK-Version": "0.34.
|
|
242
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
243
243
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
244
244
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
245
245
|
},
|
|
@@ -265,7 +265,7 @@ class V2 {
|
|
|
265
265
|
}
|
|
266
266
|
if (_response.error.reason === "status-code") {
|
|
267
267
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
268
|
-
case "
|
|
268
|
+
case "HttpRequestValidationsError":
|
|
269
269
|
case "EntityNotFoundError":
|
|
270
270
|
return {
|
|
271
271
|
ok: false,
|
|
@@ -318,7 +318,7 @@ class V2 {
|
|
|
318
318
|
Authorization: yield this._getAuthorizationHeader(),
|
|
319
319
|
"X-Fern-Language": "JavaScript",
|
|
320
320
|
"X-Fern-SDK-Name": "candidhealth",
|
|
321
|
-
"X-Fern-SDK-Version": "0.34.
|
|
321
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
322
322
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
323
323
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
324
324
|
},
|
|
@@ -344,7 +344,7 @@ class V2 {
|
|
|
344
344
|
}
|
|
345
345
|
if (_response.error.reason === "status-code") {
|
|
346
346
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
347
|
-
case "
|
|
347
|
+
case "HttpRequestValidationsError":
|
|
348
348
|
case "EntityNotFoundError":
|
|
349
349
|
return {
|
|
350
350
|
ok: false,
|
|
@@ -396,7 +396,7 @@ class V2 {
|
|
|
396
396
|
Authorization: yield this._getAuthorizationHeader(),
|
|
397
397
|
"X-Fern-Language": "JavaScript",
|
|
398
398
|
"X-Fern-SDK-Name": "candidhealth",
|
|
399
|
-
"X-Fern-SDK-Version": "0.34.
|
|
399
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
400
400
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
401
401
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
402
402
|
},
|
|
@@ -423,7 +423,7 @@ class V2 {
|
|
|
423
423
|
if (_response.error.reason === "status-code") {
|
|
424
424
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
425
425
|
case "EntityConflictError":
|
|
426
|
-
case "
|
|
426
|
+
case "HttpRequestValidationsError":
|
|
427
427
|
case "EntityNotFoundError":
|
|
428
428
|
return {
|
|
429
429
|
ok: false,
|
|
@@ -476,7 +476,7 @@ class V2 {
|
|
|
476
476
|
Authorization: yield this._getAuthorizationHeader(),
|
|
477
477
|
"X-Fern-Language": "JavaScript",
|
|
478
478
|
"X-Fern-SDK-Name": "candidhealth",
|
|
479
|
-
"X-Fern-SDK-Version": "0.34.
|
|
479
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
480
480
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
481
481
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
482
482
|
},
|
|
@@ -504,6 +504,7 @@ class V2 {
|
|
|
504
504
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
505
505
|
case "EntityConflictError":
|
|
506
506
|
case "UnprocessableEntityError":
|
|
507
|
+
case "HttpRequestValidationsError":
|
|
507
508
|
case "EntityNotFoundError":
|
|
508
509
|
return {
|
|
509
510
|
ok: false,
|
|
@@ -556,7 +557,7 @@ class V2 {
|
|
|
556
557
|
Authorization: yield this._getAuthorizationHeader(),
|
|
557
558
|
"X-Fern-Language": "JavaScript",
|
|
558
559
|
"X-Fern-SDK-Name": "candidhealth",
|
|
559
|
-
"X-Fern-SDK-Version": "0.34.
|
|
560
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
560
561
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
561
562
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
562
563
|
},
|
|
@@ -583,7 +584,7 @@ class V2 {
|
|
|
583
584
|
if (_response.error.reason === "status-code") {
|
|
584
585
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
585
586
|
case "EntityConflictError":
|
|
586
|
-
case "
|
|
587
|
+
case "HttpRequestValidationsError":
|
|
587
588
|
case "EntityNotFoundError":
|
|
588
589
|
return {
|
|
589
590
|
ok: false,
|
|
@@ -636,7 +637,7 @@ class V2 {
|
|
|
636
637
|
Authorization: yield this._getAuthorizationHeader(),
|
|
637
638
|
"X-Fern-Language": "JavaScript",
|
|
638
639
|
"X-Fern-SDK-Name": "candidhealth",
|
|
639
|
-
"X-Fern-SDK-Version": "0.34.
|
|
640
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
640
641
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
641
642
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
642
643
|
},
|
|
@@ -663,7 +664,7 @@ class V2 {
|
|
|
663
664
|
if (_response.error.reason === "status-code") {
|
|
664
665
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
665
666
|
case "EntityConflictError":
|
|
666
|
-
case "
|
|
667
|
+
case "HttpRequestValidationsError":
|
|
667
668
|
case "EntityNotFoundError":
|
|
668
669
|
return {
|
|
669
670
|
ok: false,
|
|
@@ -700,7 +701,7 @@ class V2 {
|
|
|
700
701
|
Authorization: yield this._getAuthorizationHeader(),
|
|
701
702
|
"X-Fern-Language": "JavaScript",
|
|
702
703
|
"X-Fern-SDK-Name": "candidhealth",
|
|
703
|
-
"X-Fern-SDK-Version": "0.34.
|
|
704
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
704
705
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
705
706
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
706
707
|
},
|
|
@@ -755,7 +756,7 @@ class V2 {
|
|
|
755
756
|
Authorization: yield this._getAuthorizationHeader(),
|
|
756
757
|
"X-Fern-Language": "JavaScript",
|
|
757
758
|
"X-Fern-SDK-Name": "candidhealth",
|
|
758
|
-
"X-Fern-SDK-Version": "0.34.
|
|
759
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
759
760
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
760
761
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
761
762
|
},
|
|
@@ -810,7 +811,7 @@ class V2 {
|
|
|
810
811
|
Authorization: yield this._getAuthorizationHeader(),
|
|
811
812
|
"X-Fern-Language": "JavaScript",
|
|
812
813
|
"X-Fern-SDK-Name": "candidhealth",
|
|
813
|
-
"X-Fern-SDK-Version": "0.34.
|
|
814
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
814
815
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
815
816
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
816
817
|
},
|
|
@@ -865,7 +866,7 @@ class V2 {
|
|
|
865
866
|
Authorization: yield this._getAuthorizationHeader(),
|
|
866
867
|
"X-Fern-Language": "JavaScript",
|
|
867
868
|
"X-Fern-SDK-Name": "candidhealth",
|
|
868
|
-
"X-Fern-SDK-Version": "0.34.
|
|
869
|
+
"X-Fern-SDK-Version": "0.34.6",
|
|
869
870
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
870
871
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
871
872
|
},
|
package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts
CHANGED
|
@@ -8,10 +8,9 @@ export declare type Error =
|
|
|
8
8
|
* The encounter already has an initial referring provider. */
|
|
9
9
|
CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.EntityConflictError
|
|
10
10
|
/**
|
|
11
|
-
* Cannot set first/last name without also unsetting organization_name.
|
|
12
11
|
* Cannot set Initial Referring Provider without an existing Referring Provider.
|
|
13
12
|
* */
|
|
14
|
-
| CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.UnprocessableEntityError
|
|
13
|
+
| CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.UnprocessableEntityError | CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.HttpRequestValidationsError
|
|
15
14
|
/**
|
|
16
15
|
* The encounter could not be found. */
|
|
17
16
|
| CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.EntityNotFoundError | CandidApi.encounterProviders.v2.createInitialReferringProvider.Error._Unknown;
|
|
@@ -24,6 +23,10 @@ export declare namespace Error {
|
|
|
24
23
|
errorName: "UnprocessableEntityError";
|
|
25
24
|
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
26
25
|
}
|
|
26
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
27
|
+
errorName: "HttpRequestValidationsError";
|
|
28
|
+
content: CandidApi.RequestValidationError[];
|
|
29
|
+
}
|
|
27
30
|
interface EntityNotFoundError extends _Utils {
|
|
28
31
|
errorName: "EntityNotFoundError";
|
|
29
32
|
content: CandidApi.EntityNotFoundErrorMessage;
|
|
@@ -38,6 +41,7 @@ export declare namespace Error {
|
|
|
38
41
|
interface _Visitor<_Result> {
|
|
39
42
|
entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => _Result;
|
|
40
43
|
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
44
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
41
45
|
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
42
46
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
43
47
|
}
|
|
@@ -45,6 +49,7 @@ export declare namespace Error {
|
|
|
45
49
|
export declare const Error: {
|
|
46
50
|
readonly entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.EntityConflictError;
|
|
47
51
|
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.UnprocessableEntityError;
|
|
52
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.HttpRequestValidationsError;
|
|
48
53
|
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounterProviders.v2.createInitialReferringProvider.Error.EntityNotFoundError;
|
|
49
54
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterProviders.v2.createInitialReferringProvider.Error._Unknown;
|
|
50
55
|
readonly _visit: <_Result>(value: CandidApi.encounterProviders.v2.createInitialReferringProvider.Error, visitor: CandidApi.encounterProviders.v2.createInitialReferringProvider.Error._Visitor<_Result>) => _Result;
|
package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.js
CHANGED
|
@@ -47,6 +47,15 @@ exports.Error = {
|
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
49
|
},
|
|
50
|
+
httpRequestValidationsError: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
content: value,
|
|
53
|
+
errorName: "HttpRequestValidationsError",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.encounterProviders.v2.createInitialReferringProvider.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
50
59
|
entityNotFoundError: (value) => {
|
|
51
60
|
return {
|
|
52
61
|
content: value,
|
|
@@ -71,6 +80,8 @@ exports.Error = {
|
|
|
71
80
|
return visitor.entityConflictError(value.content);
|
|
72
81
|
case "UnprocessableEntityError":
|
|
73
82
|
return visitor.unprocessableEntityError(value.content);
|
|
83
|
+
case "HttpRequestValidationsError":
|
|
84
|
+
return visitor.httpRequestValidationsError(value.content);
|
|
74
85
|
case "EntityNotFoundError":
|
|
75
86
|
return visitor.entityNotFoundError(value.content);
|
|
76
87
|
default:
|
|
@@ -6,10 +6,7 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
export declare type Error =
|
|
7
7
|
/**
|
|
8
8
|
* The service line already has an ordering provider. */
|
|
9
|
-
CandidApi.encounterProviders.v2.createOrderingProvider.Error.EntityConflictError
|
|
10
|
-
/**
|
|
11
|
-
* Cannot set first/last name without also unsetting organization_name. */
|
|
12
|
-
| CandidApi.encounterProviders.v2.createOrderingProvider.Error.UnprocessableEntityError
|
|
9
|
+
CandidApi.encounterProviders.v2.createOrderingProvider.Error.EntityConflictError | CandidApi.encounterProviders.v2.createOrderingProvider.Error.HttpRequestValidationsError
|
|
13
10
|
/**
|
|
14
11
|
* The service line could not be found. */
|
|
15
12
|
| CandidApi.encounterProviders.v2.createOrderingProvider.Error.EntityNotFoundError | CandidApi.encounterProviders.v2.createOrderingProvider.Error._Unknown;
|
|
@@ -18,9 +15,9 @@ export declare namespace Error {
|
|
|
18
15
|
errorName: "EntityConflictError";
|
|
19
16
|
content: CandidApi.EntityConflictErrorMessage;
|
|
20
17
|
}
|
|
21
|
-
interface
|
|
22
|
-
errorName: "
|
|
23
|
-
content: CandidApi.
|
|
18
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
19
|
+
errorName: "HttpRequestValidationsError";
|
|
20
|
+
content: CandidApi.RequestValidationError[];
|
|
24
21
|
}
|
|
25
22
|
interface EntityNotFoundError extends _Utils {
|
|
26
23
|
errorName: "EntityNotFoundError";
|
|
@@ -35,14 +32,14 @@ export declare namespace Error {
|
|
|
35
32
|
}
|
|
36
33
|
interface _Visitor<_Result> {
|
|
37
34
|
entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => _Result;
|
|
38
|
-
|
|
35
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
39
36
|
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
40
37
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
41
38
|
}
|
|
42
39
|
}
|
|
43
40
|
export declare const Error: {
|
|
44
41
|
readonly entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => CandidApi.encounterProviders.v2.createOrderingProvider.Error.EntityConflictError;
|
|
45
|
-
readonly
|
|
42
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounterProviders.v2.createOrderingProvider.Error.HttpRequestValidationsError;
|
|
46
43
|
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounterProviders.v2.createOrderingProvider.Error.EntityNotFoundError;
|
|
47
44
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterProviders.v2.createOrderingProvider.Error._Unknown;
|
|
48
45
|
readonly _visit: <_Result>(value: CandidApi.encounterProviders.v2.createOrderingProvider.Error, visitor: CandidApi.encounterProviders.v2.createOrderingProvider.Error._Visitor<_Result>) => _Result;
|
|
@@ -38,10 +38,10 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
httpRequestValidationsError: (value) => {
|
|
42
42
|
return {
|
|
43
43
|
content: value,
|
|
44
|
-
errorName: "
|
|
44
|
+
errorName: "HttpRequestValidationsError",
|
|
45
45
|
_visit: function (visitor) {
|
|
46
46
|
return CandidApi.encounterProviders.v2.createOrderingProvider.Error._visit(this, visitor);
|
|
47
47
|
},
|
|
@@ -69,8 +69,8 @@ exports.Error = {
|
|
|
69
69
|
switch (value.errorName) {
|
|
70
70
|
case "EntityConflictError":
|
|
71
71
|
return visitor.entityConflictError(value.content);
|
|
72
|
-
case "
|
|
73
|
-
return visitor.
|
|
72
|
+
case "HttpRequestValidationsError":
|
|
73
|
+
return visitor.httpRequestValidationsError(value.content);
|
|
74
74
|
case "EntityNotFoundError":
|
|
75
75
|
return visitor.entityNotFoundError(value.content);
|
|
76
76
|
default:
|
|
@@ -6,10 +6,7 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
export declare type Error =
|
|
7
7
|
/**
|
|
8
8
|
* The encounter already has a referring provider. */
|
|
9
|
-
CandidApi.encounterProviders.v2.createReferringProvider.Error.EntityConflictError
|
|
10
|
-
/**
|
|
11
|
-
* Cannot set first/last name without also unsetting organization_name. */
|
|
12
|
-
| CandidApi.encounterProviders.v2.createReferringProvider.Error.UnprocessableEntityError
|
|
9
|
+
CandidApi.encounterProviders.v2.createReferringProvider.Error.EntityConflictError | CandidApi.encounterProviders.v2.createReferringProvider.Error.HttpRequestValidationsError
|
|
13
10
|
/**
|
|
14
11
|
* The encounter could not be found. */
|
|
15
12
|
| CandidApi.encounterProviders.v2.createReferringProvider.Error.EntityNotFoundError | CandidApi.encounterProviders.v2.createReferringProvider.Error._Unknown;
|
|
@@ -18,9 +15,9 @@ export declare namespace Error {
|
|
|
18
15
|
errorName: "EntityConflictError";
|
|
19
16
|
content: CandidApi.EntityConflictErrorMessage;
|
|
20
17
|
}
|
|
21
|
-
interface
|
|
22
|
-
errorName: "
|
|
23
|
-
content: CandidApi.
|
|
18
|
+
interface HttpRequestValidationsError extends _Utils {
|
|
19
|
+
errorName: "HttpRequestValidationsError";
|
|
20
|
+
content: CandidApi.RequestValidationError[];
|
|
24
21
|
}
|
|
25
22
|
interface EntityNotFoundError extends _Utils {
|
|
26
23
|
errorName: "EntityNotFoundError";
|
|
@@ -35,14 +32,14 @@ export declare namespace Error {
|
|
|
35
32
|
}
|
|
36
33
|
interface _Visitor<_Result> {
|
|
37
34
|
entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => _Result;
|
|
38
|
-
|
|
35
|
+
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
39
36
|
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
40
37
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
41
38
|
}
|
|
42
39
|
}
|
|
43
40
|
export declare const Error: {
|
|
44
41
|
readonly entityConflictError: (value: CandidApi.EntityConflictErrorMessage) => CandidApi.encounterProviders.v2.createReferringProvider.Error.EntityConflictError;
|
|
45
|
-
readonly
|
|
42
|
+
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounterProviders.v2.createReferringProvider.Error.HttpRequestValidationsError;
|
|
46
43
|
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounterProviders.v2.createReferringProvider.Error.EntityNotFoundError;
|
|
47
44
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterProviders.v2.createReferringProvider.Error._Unknown;
|
|
48
45
|
readonly _visit: <_Result>(value: CandidApi.encounterProviders.v2.createReferringProvider.Error, visitor: CandidApi.encounterProviders.v2.createReferringProvider.Error._Visitor<_Result>) => _Result;
|
|
@@ -38,10 +38,10 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
httpRequestValidationsError: (value) => {
|
|
42
42
|
return {
|
|
43
43
|
content: value,
|
|
44
|
-
errorName: "
|
|
44
|
+
errorName: "HttpRequestValidationsError",
|
|
45
45
|
_visit: function (visitor) {
|
|
46
46
|
return CandidApi.encounterProviders.v2.createReferringProvider.Error._visit(this, visitor);
|
|
47
47
|
},
|
|
@@ -69,8 +69,8 @@ exports.Error = {
|
|
|
69
69
|
switch (value.errorName) {
|
|
70
70
|
case "EntityConflictError":
|
|
71
71
|
return visitor.entityConflictError(value.content);
|
|
72
|
-
case "
|
|
73
|
-
return visitor.
|
|
72
|
+
case "HttpRequestValidationsError":
|
|
73
|
+
return visitor.httpRequestValidationsError(value.content);
|
|
74
74
|
case "EntityNotFoundError":
|
|
75
75
|
return visitor.entityNotFoundError(value.content);
|
|
76
76
|
default:
|