candidhealth 0.35.1 → 0.35.2
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/resources/v2/client/Client.js +1 -1
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.d.ts +1 -0
- package/api/resources/credentialing/resources/v2/client/Client.js +11 -6
- package/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
- package/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
- package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.js +3 -3
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.js +5 -5
- 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/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.js +1 -1
- 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/appointments/resources/v1/client/create.d.ts +3 -3
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
- package/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
- package/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
- package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -2
- package/api/resources/preEncounter/resources/common/types/index.js +1 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -13
- package/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
- package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +6 -12
- package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +4 -15
- package/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
- package/api/resources/x12/resources/v1/types/Rarc.js +1 -0
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +1 -0
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +11 -6
- package/dist/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
- package/dist/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
- package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.js +3 -3
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
- 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/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.js +1 -1
- 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/appointments/resources/v1/client/create.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
- package/dist/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
- package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -2
- package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -13
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +6 -12
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +4 -15
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- 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/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
- package/dist/api/resources/x12/resources/v1/types/Rarc.js +1 -0
- package/dist/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
- package/dist/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
- package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
- package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
- package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
- package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -2
- package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +5 -10
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +5 -11
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
- package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
- package/package.json +1 -1
- package/reference.md +2 -1
- package/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
- package/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
- package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
- package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
- package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
- package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
- package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -2
- package/serialization/resources/preEncounter/resources/common/types/index.js +1 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
- package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +5 -10
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +5 -11
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
- package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
- package/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -5
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -5
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -5
- package/dist/api/resources/preEncounter/resources/common/types/ErrorBase.js +0 -5
- package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
- package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +0 -5
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -7
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -5
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -5
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -5
- package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
- package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +0 -36
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -13
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -36
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -35
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
- package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
- package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +0 -36
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -13
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -36
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -35
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
- /package/api/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +0 -0
- /package/{api/resources/preEncounter/resources/common/types/NotFoundErrorBody.js → dist/api/resources/preEncounter/resources/common/types/ErrorBase4Xx.js} +0 -0
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.appointments.v1.get.Error.Not
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface _Unknown extends _Utils {
|
|
13
13
|
errorName: void;
|
|
@@ -17,12 +17,12 @@ export declare namespace Error {
|
|
|
17
17
|
_visit: <_Result>(visitor: CandidApi.preEncounter.appointments.v1.get.Error._Visitor<_Result>) => _Result;
|
|
18
18
|
}
|
|
19
19
|
interface _Visitor<_Result> {
|
|
20
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
20
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
21
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export declare const Error: {
|
|
25
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
25
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.appointments.v1.get.Error.NotFoundError;
|
|
26
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.appointments.v1.get.Error._Unknown;
|
|
27
27
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.appointments.v1.get.Error, visitor: CandidApi.preEncounter.appointments.v1.get.Error._Visitor<_Result>) => _Result;
|
|
28
28
|
};
|
package/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.appointments.v1.getHistory.Er
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface _Unknown extends _Utils {
|
|
13
13
|
errorName: void;
|
|
@@ -17,12 +17,12 @@ export declare namespace Error {
|
|
|
17
17
|
_visit: <_Result>(visitor: CandidApi.preEncounter.appointments.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
|
18
18
|
}
|
|
19
19
|
interface _Visitor<_Result> {
|
|
20
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
20
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
21
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export declare const Error: {
|
|
25
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
25
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.appointments.v1.getHistory.Error.NotFoundError;
|
|
26
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.appointments.v1.getHistory.Error._Unknown;
|
|
27
27
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.appointments.v1.getHistory.Error, visitor: CandidApi.preEncounter.appointments.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
|
28
28
|
};
|
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.appointments.v1.update.Error.
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface VersionConflictError extends _Utils {
|
|
13
13
|
errorName: "VersionConflictError";
|
|
@@ -21,13 +21,13 @@ export declare namespace Error {
|
|
|
21
21
|
_visit: <_Result>(visitor: CandidApi.preEncounter.appointments.v1.update.Error._Visitor<_Result>) => _Result;
|
|
22
22
|
}
|
|
23
23
|
interface _Visitor<_Result> {
|
|
24
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
24
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
25
25
|
versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
|
|
26
26
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare const Error: {
|
|
30
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
30
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.appointments.v1.update.Error.NotFoundError;
|
|
31
31
|
readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.appointments.v1.update.Error.VersionConflictError;
|
|
32
32
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.appointments.v1.update.Error._Unknown;
|
|
33
33
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.appointments.v1.update.Error, visitor: CandidApi.preEncounter.appointments.v1.update.Error._Visitor<_Result>) => _Result;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../index";
|
|
5
|
-
export interface VersionConflictErrorBody extends CandidApi.preEncounter.
|
|
6
|
-
|
|
7
|
-
latestVersion: number;
|
|
5
|
+
export interface VersionConflictErrorBody extends CandidApi.preEncounter.ErrorBase4Xx {
|
|
6
|
+
latestVersion?: number;
|
|
8
7
|
}
|
|
@@ -23,8 +23,7 @@ export * from "./ContactPointUse";
|
|
|
23
23
|
export * from "./ContactPoint";
|
|
24
24
|
export * from "./PageToken";
|
|
25
25
|
export * from "./ResourcePage";
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./NotFoundErrorBody";
|
|
26
|
+
export * from "./ErrorBase4Xx";
|
|
28
27
|
export * from "./VersionConflictErrorBody";
|
|
29
28
|
export * from "./AdditionalPayerInformation";
|
|
30
29
|
export * from "./ExternalProviderType";
|
|
@@ -39,8 +39,7 @@ __exportStar(require("./ContactPointUse"), exports);
|
|
|
39
39
|
__exportStar(require("./ContactPoint"), exports);
|
|
40
40
|
__exportStar(require("./PageToken"), exports);
|
|
41
41
|
__exportStar(require("./ResourcePage"), exports);
|
|
42
|
-
__exportStar(require("./
|
|
43
|
-
__exportStar(require("./NotFoundErrorBody"), exports);
|
|
42
|
+
__exportStar(require("./ErrorBase4Xx"), exports);
|
|
44
43
|
__exportStar(require("./VersionConflictErrorBody"), exports);
|
|
45
44
|
__exportStar(require("./AdditionalPayerInformation"), exports);
|
|
46
45
|
__exportStar(require("./ExternalProviderType"), exports);
|
|
@@ -122,7 +122,7 @@ class V1 {
|
|
|
122
122
|
Authorization: yield this._getAuthorizationHeader(),
|
|
123
123
|
"X-Fern-Language": "JavaScript",
|
|
124
124
|
"X-Fern-SDK-Name": "candidhealth",
|
|
125
|
-
"X-Fern-SDK-Version": "0.35.
|
|
125
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
126
126
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
127
127
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
128
128
|
},
|
|
@@ -228,7 +228,7 @@ class V1 {
|
|
|
228
228
|
Authorization: yield this._getAuthorizationHeader(),
|
|
229
229
|
"X-Fern-Language": "JavaScript",
|
|
230
230
|
"X-Fern-SDK-Name": "candidhealth",
|
|
231
|
-
"X-Fern-SDK-Version": "0.35.
|
|
231
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
232
232
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
233
233
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
234
234
|
},
|
|
@@ -293,7 +293,7 @@ class V1 {
|
|
|
293
293
|
Authorization: yield this._getAuthorizationHeader(),
|
|
294
294
|
"X-Fern-Language": "JavaScript",
|
|
295
295
|
"X-Fern-SDK-Name": "candidhealth",
|
|
296
|
-
"X-Fern-SDK-Version": "0.35.
|
|
296
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
297
297
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
298
298
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
299
299
|
},
|
|
@@ -340,7 +340,7 @@ class V1 {
|
|
|
340
340
|
Authorization: yield this._getAuthorizationHeader(),
|
|
341
341
|
"X-Fern-Language": "JavaScript",
|
|
342
342
|
"X-Fern-SDK-Name": "candidhealth",
|
|
343
|
-
"X-Fern-SDK-Version": "0.35.
|
|
343
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
344
344
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
345
345
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
346
346
|
},
|
|
@@ -408,7 +408,7 @@ class V1 {
|
|
|
408
408
|
Authorization: yield this._getAuthorizationHeader(),
|
|
409
409
|
"X-Fern-Language": "JavaScript",
|
|
410
410
|
"X-Fern-SDK-Name": "candidhealth",
|
|
411
|
-
"X-Fern-SDK-Version": "0.35.
|
|
411
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
412
412
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
413
413
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
414
414
|
},
|
|
@@ -461,7 +461,7 @@ class V1 {
|
|
|
461
461
|
Authorization: yield this._getAuthorizationHeader(),
|
|
462
462
|
"X-Fern-Language": "JavaScript",
|
|
463
463
|
"X-Fern-SDK-Name": "candidhealth",
|
|
464
|
-
"X-Fern-SDK-Version": "0.35.
|
|
464
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
465
465
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
466
466
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
467
467
|
},
|
|
@@ -514,7 +514,7 @@ class V1 {
|
|
|
514
514
|
Authorization: yield this._getAuthorizationHeader(),
|
|
515
515
|
"X-Fern-Language": "JavaScript",
|
|
516
516
|
"X-Fern-SDK-Name": "candidhealth",
|
|
517
|
-
"X-Fern-SDK-Version": "0.35.
|
|
517
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
518
518
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
519
519
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
520
520
|
},
|
|
@@ -565,7 +565,7 @@ class V1 {
|
|
|
565
565
|
Authorization: yield this._getAuthorizationHeader(),
|
|
566
566
|
"X-Fern-Language": "JavaScript",
|
|
567
567
|
"X-Fern-SDK-Name": "candidhealth",
|
|
568
|
-
"X-Fern-SDK-Version": "0.35.
|
|
568
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
569
569
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
570
570
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
571
571
|
},
|
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.coverages.v1.getHistory.Error
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface _Unknown extends _Utils {
|
|
13
13
|
errorName: void;
|
|
@@ -17,12 +17,12 @@ export declare namespace Error {
|
|
|
17
17
|
_visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
|
18
18
|
}
|
|
19
19
|
interface _Visitor<_Result> {
|
|
20
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
20
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
21
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export declare const Error: {
|
|
25
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
25
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError;
|
|
26
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
|
|
27
27
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.getHistory.Error, visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
|
28
28
|
};
|
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.coverages.v1.update.Error.Not
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface VersionConflictError extends _Utils {
|
|
13
13
|
errorName: "VersionConflictError";
|
|
@@ -21,13 +21,13 @@ export declare namespace Error {
|
|
|
21
21
|
_visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.update.Error._Visitor<_Result>) => _Result;
|
|
22
22
|
}
|
|
23
23
|
interface _Visitor<_Result> {
|
|
24
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
24
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
25
25
|
versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
|
|
26
26
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare const Error: {
|
|
30
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
30
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.update.Error.NotFoundError;
|
|
31
31
|
readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.coverages.v1.update.Error.VersionConflictError;
|
|
32
32
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.update.Error._Unknown;
|
|
33
33
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.update.Error, visitor: CandidApi.preEncounter.coverages.v1.update.Error._Visitor<_Result>) => _Result;
|
|
@@ -91,7 +91,7 @@ class V1 {
|
|
|
91
91
|
Authorization: yield this._getAuthorizationHeader(),
|
|
92
92
|
"X-Fern-Language": "JavaScript",
|
|
93
93
|
"X-Fern-SDK-Name": "candidhealth",
|
|
94
|
-
"X-Fern-SDK-Version": "0.35.
|
|
94
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
95
95
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
96
96
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
97
97
|
},
|
|
@@ -176,7 +176,7 @@ class V1 {
|
|
|
176
176
|
Authorization: yield this._getAuthorizationHeader(),
|
|
177
177
|
"X-Fern-Language": "JavaScript",
|
|
178
178
|
"X-Fern-SDK-Name": "candidhealth",
|
|
179
|
-
"X-Fern-SDK-Version": "0.35.
|
|
179
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
180
180
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
181
181
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
182
182
|
},
|
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.lists.v1.getPatientList.Error
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface BadRequestError extends _Utils {
|
|
9
9
|
errorName: "BadRequestError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface _Unknown extends _Utils {
|
|
13
13
|
errorName: void;
|
|
@@ -17,12 +17,12 @@ export declare namespace Error {
|
|
|
17
17
|
_visit: <_Result>(visitor: CandidApi.preEncounter.lists.v1.getPatientList.Error._Visitor<_Result>) => _Result;
|
|
18
18
|
}
|
|
19
19
|
interface _Visitor<_Result> {
|
|
20
|
-
badRequestError: (value: CandidApi.preEncounter.
|
|
20
|
+
badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
21
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export declare const Error: {
|
|
25
|
-
readonly badRequestError: (value: CandidApi.preEncounter.
|
|
25
|
+
readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.lists.v1.getPatientList.Error.BadRequestError;
|
|
26
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.lists.v1.getPatientList.Error._Unknown;
|
|
27
27
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.lists.v1.getPatientList.Error, visitor: CandidApi.preEncounter.lists.v1.getPatientList.Error._Visitor<_Result>) => _Result;
|
|
28
28
|
};
|
|
@@ -194,7 +194,7 @@ export declare class V1 {
|
|
|
194
194
|
*/
|
|
195
195
|
create(request: CandidApi.preEncounter.patients.v1.CreatePatientRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient, CandidApi.preEncounter.patients.v1.create.Error>>;
|
|
196
196
|
/**
|
|
197
|
-
* Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable.
|
|
197
|
+
* Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. BadRequestError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
|
|
198
198
|
*
|
|
199
199
|
* @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
|
|
200
200
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -235,7 +235,7 @@ class V1 {
|
|
|
235
235
|
Authorization: yield this._getAuthorizationHeader(),
|
|
236
236
|
"X-Fern-Language": "JavaScript",
|
|
237
237
|
"X-Fern-SDK-Name": "candidhealth",
|
|
238
|
-
"X-Fern-SDK-Version": "0.35.
|
|
238
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
239
239
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
240
240
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
241
241
|
},
|
|
@@ -263,7 +263,6 @@ class V1 {
|
|
|
263
263
|
if (_response.error.reason === "status-code") {
|
|
264
264
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
265
265
|
case "VersionConflictError":
|
|
266
|
-
case "PotentialDuplicatePatients":
|
|
267
266
|
return {
|
|
268
267
|
ok: false,
|
|
269
268
|
error: serializers.preEncounter.patients.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
@@ -282,7 +281,7 @@ class V1 {
|
|
|
282
281
|
});
|
|
283
282
|
}
|
|
284
283
|
/**
|
|
285
|
-
* Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable.
|
|
284
|
+
* Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. BadRequestError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
|
|
286
285
|
*
|
|
287
286
|
* @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
|
|
288
287
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -469,7 +468,7 @@ class V1 {
|
|
|
469
468
|
Authorization: yield this._getAuthorizationHeader(),
|
|
470
469
|
"X-Fern-Language": "JavaScript",
|
|
471
470
|
"X-Fern-SDK-Name": "candidhealth",
|
|
472
|
-
"X-Fern-SDK-Version": "0.35.
|
|
471
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
473
472
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
474
473
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
475
474
|
},
|
|
@@ -497,8 +496,7 @@ class V1 {
|
|
|
497
496
|
if (_response.error.reason === "status-code") {
|
|
498
497
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
499
498
|
case "VersionConflictError":
|
|
500
|
-
case "
|
|
501
|
-
case "InvalidMRNError":
|
|
499
|
+
case "BadRequestError":
|
|
502
500
|
return {
|
|
503
501
|
ok: false,
|
|
504
502
|
error: serializers.preEncounter.patients.v1.createWithMrn.Error.parseOrThrow(_response.error.body, {
|
|
@@ -559,7 +557,7 @@ class V1 {
|
|
|
559
557
|
Authorization: yield this._getAuthorizationHeader(),
|
|
560
558
|
"X-Fern-Language": "JavaScript",
|
|
561
559
|
"X-Fern-SDK-Name": "candidhealth",
|
|
562
|
-
"X-Fern-SDK-Version": "0.35.
|
|
560
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
563
561
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
564
562
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
565
563
|
},
|
|
@@ -607,7 +605,7 @@ class V1 {
|
|
|
607
605
|
Authorization: yield this._getAuthorizationHeader(),
|
|
608
606
|
"X-Fern-Language": "JavaScript",
|
|
609
607
|
"X-Fern-SDK-Name": "candidhealth",
|
|
610
|
-
"X-Fern-SDK-Version": "0.35.
|
|
608
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
611
609
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
612
610
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
613
611
|
},
|
|
@@ -668,7 +666,7 @@ class V1 {
|
|
|
668
666
|
Authorization: yield this._getAuthorizationHeader(),
|
|
669
667
|
"X-Fern-Language": "JavaScript",
|
|
670
668
|
"X-Fern-SDK-Name": "candidhealth",
|
|
671
|
-
"X-Fern-SDK-Version": "0.35.
|
|
669
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
672
670
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
673
671
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
674
672
|
},
|
|
@@ -890,7 +888,7 @@ class V1 {
|
|
|
890
888
|
Authorization: yield this._getAuthorizationHeader(),
|
|
891
889
|
"X-Fern-Language": "JavaScript",
|
|
892
890
|
"X-Fern-SDK-Name": "candidhealth",
|
|
893
|
-
"X-Fern-SDK-Version": "0.35.
|
|
891
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
894
892
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
895
893
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
896
894
|
},
|
|
@@ -956,7 +954,7 @@ class V1 {
|
|
|
956
954
|
Authorization: yield this._getAuthorizationHeader(),
|
|
957
955
|
"X-Fern-Language": "JavaScript",
|
|
958
956
|
"X-Fern-SDK-Name": "candidhealth",
|
|
959
|
-
"X-Fern-SDK-Version": "0.35.
|
|
957
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
960
958
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
961
959
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
962
960
|
},
|
|
@@ -1024,7 +1022,7 @@ class V1 {
|
|
|
1024
1022
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1025
1023
|
"X-Fern-Language": "JavaScript",
|
|
1026
1024
|
"X-Fern-SDK-Name": "candidhealth",
|
|
1027
|
-
"X-Fern-SDK-Version": "0.35.
|
|
1025
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
1028
1026
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1029
1027
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1030
1028
|
},
|
|
@@ -1077,7 +1075,7 @@ class V1 {
|
|
|
1077
1075
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1078
1076
|
"X-Fern-Language": "JavaScript",
|
|
1079
1077
|
"X-Fern-SDK-Name": "candidhealth",
|
|
1080
|
-
"X-Fern-SDK-Version": "0.35.
|
|
1078
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
1081
1079
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1082
1080
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1083
1081
|
},
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.create.Error.
|
|
6
|
+
export declare type Error = CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface VersionConflictError extends _Utils {
|
|
9
9
|
errorName: "VersionConflictError";
|
|
10
10
|
content: CandidApi.preEncounter.VersionConflictErrorBody;
|
|
11
11
|
}
|
|
12
|
-
interface PotentialDuplicatePatients extends _Utils {
|
|
13
|
-
errorName: "PotentialDuplicatePatients";
|
|
14
|
-
content: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody;
|
|
15
|
-
}
|
|
16
12
|
interface _Unknown extends _Utils {
|
|
17
13
|
errorName: void;
|
|
18
14
|
content: core.Fetcher.Error;
|
|
@@ -22,13 +18,11 @@ export declare namespace Error {
|
|
|
22
18
|
}
|
|
23
19
|
interface _Visitor<_Result> {
|
|
24
20
|
versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
|
|
25
|
-
potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => _Result;
|
|
26
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
24
|
export declare const Error: {
|
|
30
25
|
readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError;
|
|
31
|
-
readonly potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => CandidApi.preEncounter.patients.v1.create.Error.PotentialDuplicatePatients;
|
|
32
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.create.Error._Unknown;
|
|
33
27
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.create.Error, visitor: CandidApi.preEncounter.patients.v1.create.Error._Visitor<_Result>) => _Result;
|
|
34
28
|
};
|
|
@@ -38,15 +38,6 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
potentialDuplicatePatients: (value) => {
|
|
42
|
-
return {
|
|
43
|
-
content: value,
|
|
44
|
-
errorName: "PotentialDuplicatePatients",
|
|
45
|
-
_visit: function (visitor) {
|
|
46
|
-
return CandidApi.preEncounter.patients.v1.create.Error._visit(this, visitor);
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
41
|
_unknown: (fetcherError) => {
|
|
51
42
|
return {
|
|
52
43
|
errorName: undefined,
|
|
@@ -60,8 +51,6 @@ exports.Error = {
|
|
|
60
51
|
switch (value.errorName) {
|
|
61
52
|
case "VersionConflictError":
|
|
62
53
|
return visitor.versionConflictError(value.content);
|
|
63
|
-
case "PotentialDuplicatePatients":
|
|
64
|
-
return visitor.potentialDuplicatePatients(value.content);
|
|
65
54
|
default:
|
|
66
55
|
return visitor._other(value);
|
|
67
56
|
}
|
package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts
CHANGED
|
@@ -3,19 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../../../index";
|
|
5
5
|
import * as core from "../../../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.createWithMrn.Error.
|
|
6
|
+
export declare type Error = CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.createWithMrn.Error.BadRequestError | CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface VersionConflictError extends _Utils {
|
|
9
9
|
errorName: "VersionConflictError";
|
|
10
10
|
content: CandidApi.preEncounter.VersionConflictErrorBody;
|
|
11
11
|
}
|
|
12
|
-
interface
|
|
13
|
-
errorName: "
|
|
14
|
-
content: CandidApi.preEncounter.
|
|
15
|
-
}
|
|
16
|
-
interface InvalidMrnError extends _Utils {
|
|
17
|
-
errorName: "InvalidMRNError";
|
|
18
|
-
content: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody;
|
|
12
|
+
interface BadRequestError extends _Utils {
|
|
13
|
+
errorName: "BadRequestError";
|
|
14
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
19
15
|
}
|
|
20
16
|
interface _Unknown extends _Utils {
|
|
21
17
|
errorName: void;
|
|
@@ -26,15 +22,13 @@ export declare namespace Error {
|
|
|
26
22
|
}
|
|
27
23
|
interface _Visitor<_Result> {
|
|
28
24
|
versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
|
|
29
|
-
|
|
30
|
-
invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => _Result;
|
|
25
|
+
badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
31
26
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
32
27
|
}
|
|
33
28
|
}
|
|
34
29
|
export declare const Error: {
|
|
35
30
|
readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError;
|
|
36
|
-
readonly
|
|
37
|
-
readonly invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError;
|
|
31
|
+
readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.BadRequestError;
|
|
38
32
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
|
|
39
33
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.createWithMrn.Error, visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
|
|
40
34
|
};
|
|
@@ -38,19 +38,10 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
badRequestError: (value) => {
|
|
42
42
|
return {
|
|
43
43
|
content: value,
|
|
44
|
-
errorName: "
|
|
45
|
-
_visit: function (visitor) {
|
|
46
|
-
return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
invalidMrnError: (value) => {
|
|
51
|
-
return {
|
|
52
|
-
content: value,
|
|
53
|
-
errorName: "InvalidMRNError",
|
|
44
|
+
errorName: "BadRequestError",
|
|
54
45
|
_visit: function (visitor) {
|
|
55
46
|
return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
|
|
56
47
|
},
|
|
@@ -69,10 +60,8 @@ exports.Error = {
|
|
|
69
60
|
switch (value.errorName) {
|
|
70
61
|
case "VersionConflictError":
|
|
71
62
|
return visitor.versionConflictError(value.content);
|
|
72
|
-
case "
|
|
73
|
-
return visitor.
|
|
74
|
-
case "InvalidMRNError":
|
|
75
|
-
return visitor.invalidMrnError(value.content);
|
|
63
|
+
case "BadRequestError":
|
|
64
|
+
return visitor.badRequestError(value.content);
|
|
76
65
|
default:
|
|
77
66
|
return visitor._other(value);
|
|
78
67
|
}
|
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.patients.v1.deactivate.Error.
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface VersionConflictError extends _Utils {
|
|
13
13
|
errorName: "VersionConflictError";
|
|
@@ -21,13 +21,13 @@ export declare namespace Error {
|
|
|
21
21
|
_visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.deactivate.Error._Visitor<_Result>) => _Result;
|
|
22
22
|
}
|
|
23
23
|
interface _Visitor<_Result> {
|
|
24
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
24
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
25
25
|
versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
|
|
26
26
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare const Error: {
|
|
30
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
30
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.deactivate.Error.NotFoundError;
|
|
31
31
|
readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.deactivate.Error.VersionConflictError;
|
|
32
32
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.deactivate.Error._Unknown;
|
|
33
33
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.deactivate.Error, visitor: CandidApi.preEncounter.patients.v1.deactivate.Error._Visitor<_Result>) => _Result;
|
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.patients.v1.get.Error.NotFoun
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface _Unknown extends _Utils {
|
|
13
13
|
errorName: void;
|
|
@@ -17,12 +17,12 @@ export declare namespace Error {
|
|
|
17
17
|
_visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.get.Error._Visitor<_Result>) => _Result;
|
|
18
18
|
}
|
|
19
19
|
interface _Visitor<_Result> {
|
|
20
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
20
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
21
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export declare const Error: {
|
|
25
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
25
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.get.Error.NotFoundError;
|
|
26
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.get.Error._Unknown;
|
|
27
27
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.get.Error, visitor: CandidApi.preEncounter.patients.v1.get.Error._Visitor<_Result>) => _Result;
|
|
28
28
|
};
|
|
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.patients.v1.getHistory.Error.
|
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface NotFoundError extends _Utils {
|
|
9
9
|
errorName: "NotFoundError";
|
|
10
|
-
content: CandidApi.preEncounter.
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
11
|
}
|
|
12
12
|
interface _Unknown extends _Utils {
|
|
13
13
|
errorName: void;
|
|
@@ -17,12 +17,12 @@ export declare namespace Error {
|
|
|
17
17
|
_visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
|
18
18
|
}
|
|
19
19
|
interface _Visitor<_Result> {
|
|
20
|
-
notFoundError: (value: CandidApi.preEncounter.
|
|
20
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
21
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
export declare const Error: {
|
|
25
|
-
readonly notFoundError: (value: CandidApi.preEncounter.
|
|
25
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.getHistory.Error.NotFoundError;
|
|
26
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.getHistory.Error._Unknown;
|
|
27
27
|
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.getHistory.Error, visitor: CandidApi.preEncounter.patients.v1.getHistory.Error._Visitor<_Result>) => _Result;
|
|
28
28
|
};
|