candidhealth 0.35.0 → 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.d.ts +3 -2
- package/api/resources/exports/resources/v3/client/Client.js +4 -3
- 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/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -4
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
- 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/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
- package/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
- package/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
- package/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
- 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/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
- package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
- package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
- package/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +177 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +246 -11
- 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 +34 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +69 -0
- 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/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +10 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
- package/api/resources/remitDrafts/index.d.ts +1 -0
- package/api/resources/remitDrafts/index.js +17 -0
- package/api/resources/remitDrafts/resources/index.d.ts +1 -0
- package/api/resources/remitDrafts/resources/index.js +27 -0
- package/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
- package/api/resources/remitDrafts/resources/v1/index.js +17 -0
- package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
- package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
- package/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
- package/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
- 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 +8 -1
- package/api/resources/x12/resources/v1/types/Rarc.js +7 -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.d.ts +3 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +4 -3
- 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/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
- 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 +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +5 -4
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
- 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/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -0
- package/dist/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
- package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +1 -0
- 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/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +5 -2
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +11 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +10 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +177 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +246 -11
- 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 +34 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +69 -0
- 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/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +175 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
- 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/DoNotInvoiceReason.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +12 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
- package/dist/api/resources/remitDrafts/index.d.ts +1 -0
- package/dist/api/resources/remitDrafts/index.js +17 -0
- package/dist/api/resources/remitDrafts/resources/index.d.ts +1 -0
- package/dist/api/resources/remitDrafts/resources/index.js +27 -0
- package/dist/api/resources/remitDrafts/resources/v1/index.d.ts +1 -0
- package/dist/api/resources/remitDrafts/resources/v1/index.js +17 -0
- package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +8 -0
- package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +10 -0
- package/dist/api/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/remitDrafts/resources/v1/types/index.js +17 -0
- 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 +8 -1
- package/dist/api/resources/x12/resources/v1/types/Rarc.js +7 -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/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -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/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
- 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/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
- 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/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
- 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 +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +67 -0
- 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/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- 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/DoNotInvoiceReason.d.ts +10 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
- package/dist/serialization/resources/remitDrafts/index.d.ts +1 -0
- package/dist/serialization/resources/remitDrafts/index.js +17 -0
- package/dist/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
- package/dist/serialization/resources/remitDrafts/resources/index.js +27 -0
- package/dist/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
- package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
- package/dist/serialization/resources/{preEncounter/resources/common/types/NotFoundErrorBody.js → remitDrafts/resources/v1/types/RemitDraftId.js} +6 -7
- package/dist/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
- package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +7 -0
- package/package.json +1 -1
- package/reference.md +259 -4
- 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/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -1
- package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -1
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -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/appointments/resources/v1/types/AppointmentWorkQueue.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
- 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/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +1 -0
- 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/lists/resources/v1/types/AppointmentListItem.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/AppointmentListItem.js +2 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.js +35 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/lists/resources/v1/types/index.js +1 -0
- 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 +20 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +67 -0
- 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/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- 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/DoNotInvoiceReason.d.ts +10 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +31 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatientWithMrn.js +36 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -2
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -2
- package/serialization/resources/remitDrafts/index.d.ts +1 -0
- package/serialization/resources/remitDrafts/index.js +17 -0
- package/serialization/resources/remitDrafts/resources/index.d.ts +1 -0
- package/serialization/resources/remitDrafts/resources/index.js +27 -0
- package/serialization/resources/remitDrafts/resources/v1/index.d.ts +1 -0
- package/serialization/resources/remitDrafts/resources/v1/index.js +17 -0
- package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +10 -0
- package/serialization/resources/{preEncounter/resources/common/types/NotFoundErrorBody.js → remitDrafts/resources/v1/types/RemitDraftId.js} +6 -7
- package/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/remitDrafts/resources/v1/types/index.js +17 -0
- package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/Rarc.js +7 -0
- package/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
- package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
- 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/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/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 → patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js} +0 -0
- /package/api/resources/preEncounter/resources/patients/resources/v1/types/{PotentialDuplicatePatient.js → MutablePatientWithMrn.js} +0 -0
- /package/{api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js → dist/api/resources/preEncounter/resources/common/types/ErrorBase4Xx.js} +0 -0
- /package/dist/api/resources/preEncounter/resources/{common/types/ErrorBase.js → patients/resources/v1/client/requests/CreatePatientWithMrnRequest.js} +0 -0
- /package/dist/api/resources/preEncounter/resources/{common/types/NotFoundErrorBody.js → patients/resources/v1/types/MutablePatientWithMrn.js} +0 -0
|
@@ -187,11 +187,185 @@ export declare class V1 {
|
|
|
187
187
|
* },
|
|
188
188
|
* referralNumber: "string"
|
|
189
189
|
* }],
|
|
190
|
-
* primaryServiceFacilityId: "string"
|
|
190
|
+
* primaryServiceFacilityId: "string",
|
|
191
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
191
192
|
* }
|
|
192
193
|
* })
|
|
193
194
|
*/
|
|
194
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
|
+
/**
|
|
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
|
+
*
|
|
199
|
+
* @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
|
|
200
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* await client.preEncounter.patients.v1.createWithMrn({
|
|
204
|
+
* skipDuplicateCheck: true,
|
|
205
|
+
* body: {
|
|
206
|
+
* mrn: "string",
|
|
207
|
+
* name: {
|
|
208
|
+
* family: "string",
|
|
209
|
+
* given: ["string"],
|
|
210
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
211
|
+
* period: {}
|
|
212
|
+
* },
|
|
213
|
+
* otherNames: [{
|
|
214
|
+
* family: "string",
|
|
215
|
+
* given: ["string"],
|
|
216
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
217
|
+
* period: {}
|
|
218
|
+
* }],
|
|
219
|
+
* gender: CandidApi.preEncounter.Gender.Man,
|
|
220
|
+
* birthDate: "2023-01-15",
|
|
221
|
+
* socialSecurityNumber: "string",
|
|
222
|
+
* biologicalSex: CandidApi.preEncounter.Sex.Female,
|
|
223
|
+
* sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
|
|
224
|
+
* race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
|
|
225
|
+
* ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
|
|
226
|
+
* disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
|
|
227
|
+
* maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
|
|
228
|
+
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
229
|
+
* multipleBirth: 1,
|
|
230
|
+
* primaryAddress: {
|
|
231
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
232
|
+
* line: ["string"],
|
|
233
|
+
* city: "string",
|
|
234
|
+
* state: "string",
|
|
235
|
+
* postalCode: "string",
|
|
236
|
+
* country: "string",
|
|
237
|
+
* period: {}
|
|
238
|
+
* },
|
|
239
|
+
* otherAddresses: [{
|
|
240
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
241
|
+
* line: ["string"],
|
|
242
|
+
* city: "string",
|
|
243
|
+
* state: "string",
|
|
244
|
+
* postalCode: "string",
|
|
245
|
+
* country: "string",
|
|
246
|
+
* period: {}
|
|
247
|
+
* }],
|
|
248
|
+
* primaryTelecom: {
|
|
249
|
+
* value: "string",
|
|
250
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
251
|
+
* },
|
|
252
|
+
* otherTelecoms: [{
|
|
253
|
+
* value: "string",
|
|
254
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
255
|
+
* }],
|
|
256
|
+
* email: "string",
|
|
257
|
+
* electronicCommunicationOptIn: true,
|
|
258
|
+
* photo: "string",
|
|
259
|
+
* language: "string",
|
|
260
|
+
* externalProvenance: {
|
|
261
|
+
* externalId: "string",
|
|
262
|
+
* systemName: "string"
|
|
263
|
+
* },
|
|
264
|
+
* contacts: [{
|
|
265
|
+
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
266
|
+
* name: {
|
|
267
|
+
* family: "string",
|
|
268
|
+
* given: ["string"],
|
|
269
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
270
|
+
* period: {}
|
|
271
|
+
* },
|
|
272
|
+
* telecoms: [{
|
|
273
|
+
* value: "string",
|
|
274
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
275
|
+
* }],
|
|
276
|
+
* addresses: [{
|
|
277
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
278
|
+
* line: ["string"],
|
|
279
|
+
* city: "string",
|
|
280
|
+
* state: "string",
|
|
281
|
+
* postalCode: "string",
|
|
282
|
+
* country: "string",
|
|
283
|
+
* period: {}
|
|
284
|
+
* }],
|
|
285
|
+
* period: {},
|
|
286
|
+
* hipaaAuthorization: true
|
|
287
|
+
* }],
|
|
288
|
+
* generalPractitioners: [{
|
|
289
|
+
* name: {
|
|
290
|
+
* family: "string",
|
|
291
|
+
* given: ["string"],
|
|
292
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
293
|
+
* period: {}
|
|
294
|
+
* },
|
|
295
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
296
|
+
* npi: "string",
|
|
297
|
+
* telecoms: [{
|
|
298
|
+
* value: "string",
|
|
299
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
300
|
+
* }],
|
|
301
|
+
* addresses: [],
|
|
302
|
+
* period: {},
|
|
303
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
304
|
+
* }],
|
|
305
|
+
* filingOrder: {
|
|
306
|
+
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
307
|
+
* },
|
|
308
|
+
* nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
|
|
309
|
+
* nonInsurancePayerAssociations: [{
|
|
310
|
+
* id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
|
|
311
|
+
* }],
|
|
312
|
+
* guarantor: {
|
|
313
|
+
* name: {
|
|
314
|
+
* family: "string",
|
|
315
|
+
* given: ["string"],
|
|
316
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
317
|
+
* period: {}
|
|
318
|
+
* },
|
|
319
|
+
* telecom: {
|
|
320
|
+
* value: "string",
|
|
321
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
322
|
+
* },
|
|
323
|
+
* email: "string",
|
|
324
|
+
* birthDate: "2023-01-15",
|
|
325
|
+
* address: {
|
|
326
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
327
|
+
* line: ["string"],
|
|
328
|
+
* city: "string",
|
|
329
|
+
* state: "string",
|
|
330
|
+
* postalCode: "string",
|
|
331
|
+
* country: "string",
|
|
332
|
+
* period: {}
|
|
333
|
+
* }
|
|
334
|
+
* },
|
|
335
|
+
* selfPay: true,
|
|
336
|
+
* authorizations: [{
|
|
337
|
+
* payerId: CandidApi.preEncounter.PayerId("string"),
|
|
338
|
+
* payerName: "string",
|
|
339
|
+
* authorizationNumber: "string",
|
|
340
|
+
* cptCode: "string",
|
|
341
|
+
* units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
|
|
342
|
+
* }],
|
|
343
|
+
* referrals: [{
|
|
344
|
+
* provider: {
|
|
345
|
+
* name: {
|
|
346
|
+
* family: "string",
|
|
347
|
+
* given: ["string"],
|
|
348
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
349
|
+
* period: {}
|
|
350
|
+
* },
|
|
351
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
352
|
+
* npi: "string",
|
|
353
|
+
* telecoms: [{
|
|
354
|
+
* value: "string",
|
|
355
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
356
|
+
* }],
|
|
357
|
+
* addresses: [],
|
|
358
|
+
* period: {},
|
|
359
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
360
|
+
* },
|
|
361
|
+
* referralNumber: "string"
|
|
362
|
+
* }],
|
|
363
|
+
* primaryServiceFacilityId: "string",
|
|
364
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
365
|
+
* }
|
|
366
|
+
* })
|
|
367
|
+
*/
|
|
368
|
+
createWithMrn(request: CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient, CandidApi.preEncounter.patients.v1.createWithMrn.Error>>;
|
|
195
369
|
/**
|
|
196
370
|
* Searches for patients that match the query parameters.
|
|
197
371
|
*
|
|
@@ -394,7 +568,8 @@ export declare class V1 {
|
|
|
394
568
|
* },
|
|
395
569
|
* referralNumber: "string"
|
|
396
570
|
* }],
|
|
397
|
-
* primaryServiceFacilityId: "string"
|
|
571
|
+
* primaryServiceFacilityId: "string",
|
|
572
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
398
573
|
* })
|
|
399
574
|
*/
|
|
400
575
|
update(id: CandidApi.preEncounter.PatientId, version: string, request: CandidApi.preEncounter.patients.v1.MutablePatient, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient, CandidApi.preEncounter.patients.v1.update.Error>>;
|
|
@@ -214,7 +214,8 @@ class V1 {
|
|
|
214
214
|
* },
|
|
215
215
|
* referralNumber: "string"
|
|
216
216
|
* }],
|
|
217
|
-
* primaryServiceFacilityId: "string"
|
|
217
|
+
* primaryServiceFacilityId: "string",
|
|
218
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
218
219
|
* }
|
|
219
220
|
* })
|
|
220
221
|
*/
|
|
@@ -234,7 +235,7 @@ class V1 {
|
|
|
234
235
|
Authorization: yield this._getAuthorizationHeader(),
|
|
235
236
|
"X-Fern-Language": "JavaScript",
|
|
236
237
|
"X-Fern-SDK-Name": "candidhealth",
|
|
237
|
-
"X-Fern-SDK-Version": "0.35.
|
|
238
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
238
239
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
239
240
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
240
241
|
},
|
|
@@ -262,7 +263,6 @@ class V1 {
|
|
|
262
263
|
if (_response.error.reason === "status-code") {
|
|
263
264
|
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
264
265
|
case "VersionConflictError":
|
|
265
|
-
case "PotentialDuplicatePatients":
|
|
266
266
|
return {
|
|
267
267
|
ok: false,
|
|
268
268
|
error: serializers.preEncounter.patients.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
@@ -280,6 +280,240 @@ class V1 {
|
|
|
280
280
|
};
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
+
/**
|
|
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.
|
|
285
|
+
*
|
|
286
|
+
* @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
|
|
287
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* await client.preEncounter.patients.v1.createWithMrn({
|
|
291
|
+
* skipDuplicateCheck: true,
|
|
292
|
+
* body: {
|
|
293
|
+
* mrn: "string",
|
|
294
|
+
* name: {
|
|
295
|
+
* family: "string",
|
|
296
|
+
* given: ["string"],
|
|
297
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
298
|
+
* period: {}
|
|
299
|
+
* },
|
|
300
|
+
* otherNames: [{
|
|
301
|
+
* family: "string",
|
|
302
|
+
* given: ["string"],
|
|
303
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
304
|
+
* period: {}
|
|
305
|
+
* }],
|
|
306
|
+
* gender: CandidApi.preEncounter.Gender.Man,
|
|
307
|
+
* birthDate: "2023-01-15",
|
|
308
|
+
* socialSecurityNumber: "string",
|
|
309
|
+
* biologicalSex: CandidApi.preEncounter.Sex.Female,
|
|
310
|
+
* sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
|
|
311
|
+
* race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
|
|
312
|
+
* ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
|
|
313
|
+
* disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
|
|
314
|
+
* maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
|
|
315
|
+
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
316
|
+
* multipleBirth: 1,
|
|
317
|
+
* primaryAddress: {
|
|
318
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
319
|
+
* line: ["string"],
|
|
320
|
+
* city: "string",
|
|
321
|
+
* state: "string",
|
|
322
|
+
* postalCode: "string",
|
|
323
|
+
* country: "string",
|
|
324
|
+
* period: {}
|
|
325
|
+
* },
|
|
326
|
+
* otherAddresses: [{
|
|
327
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
328
|
+
* line: ["string"],
|
|
329
|
+
* city: "string",
|
|
330
|
+
* state: "string",
|
|
331
|
+
* postalCode: "string",
|
|
332
|
+
* country: "string",
|
|
333
|
+
* period: {}
|
|
334
|
+
* }],
|
|
335
|
+
* primaryTelecom: {
|
|
336
|
+
* value: "string",
|
|
337
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
338
|
+
* },
|
|
339
|
+
* otherTelecoms: [{
|
|
340
|
+
* value: "string",
|
|
341
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
342
|
+
* }],
|
|
343
|
+
* email: "string",
|
|
344
|
+
* electronicCommunicationOptIn: true,
|
|
345
|
+
* photo: "string",
|
|
346
|
+
* language: "string",
|
|
347
|
+
* externalProvenance: {
|
|
348
|
+
* externalId: "string",
|
|
349
|
+
* systemName: "string"
|
|
350
|
+
* },
|
|
351
|
+
* contacts: [{
|
|
352
|
+
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
353
|
+
* name: {
|
|
354
|
+
* family: "string",
|
|
355
|
+
* given: ["string"],
|
|
356
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
357
|
+
* period: {}
|
|
358
|
+
* },
|
|
359
|
+
* telecoms: [{
|
|
360
|
+
* value: "string",
|
|
361
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
362
|
+
* }],
|
|
363
|
+
* addresses: [{
|
|
364
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
365
|
+
* line: ["string"],
|
|
366
|
+
* city: "string",
|
|
367
|
+
* state: "string",
|
|
368
|
+
* postalCode: "string",
|
|
369
|
+
* country: "string",
|
|
370
|
+
* period: {}
|
|
371
|
+
* }],
|
|
372
|
+
* period: {},
|
|
373
|
+
* hipaaAuthorization: true
|
|
374
|
+
* }],
|
|
375
|
+
* generalPractitioners: [{
|
|
376
|
+
* name: {
|
|
377
|
+
* family: "string",
|
|
378
|
+
* given: ["string"],
|
|
379
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
380
|
+
* period: {}
|
|
381
|
+
* },
|
|
382
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
383
|
+
* npi: "string",
|
|
384
|
+
* telecoms: [{
|
|
385
|
+
* value: "string",
|
|
386
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
387
|
+
* }],
|
|
388
|
+
* addresses: [],
|
|
389
|
+
* period: {},
|
|
390
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
391
|
+
* }],
|
|
392
|
+
* filingOrder: {
|
|
393
|
+
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
394
|
+
* },
|
|
395
|
+
* nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
|
|
396
|
+
* nonInsurancePayerAssociations: [{
|
|
397
|
+
* id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
|
|
398
|
+
* }],
|
|
399
|
+
* guarantor: {
|
|
400
|
+
* name: {
|
|
401
|
+
* family: "string",
|
|
402
|
+
* given: ["string"],
|
|
403
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
404
|
+
* period: {}
|
|
405
|
+
* },
|
|
406
|
+
* telecom: {
|
|
407
|
+
* value: "string",
|
|
408
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
409
|
+
* },
|
|
410
|
+
* email: "string",
|
|
411
|
+
* birthDate: "2023-01-15",
|
|
412
|
+
* address: {
|
|
413
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
414
|
+
* line: ["string"],
|
|
415
|
+
* city: "string",
|
|
416
|
+
* state: "string",
|
|
417
|
+
* postalCode: "string",
|
|
418
|
+
* country: "string",
|
|
419
|
+
* period: {}
|
|
420
|
+
* }
|
|
421
|
+
* },
|
|
422
|
+
* selfPay: true,
|
|
423
|
+
* authorizations: [{
|
|
424
|
+
* payerId: CandidApi.preEncounter.PayerId("string"),
|
|
425
|
+
* payerName: "string",
|
|
426
|
+
* authorizationNumber: "string",
|
|
427
|
+
* cptCode: "string",
|
|
428
|
+
* units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
|
|
429
|
+
* }],
|
|
430
|
+
* referrals: [{
|
|
431
|
+
* provider: {
|
|
432
|
+
* name: {
|
|
433
|
+
* family: "string",
|
|
434
|
+
* given: ["string"],
|
|
435
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
436
|
+
* period: {}
|
|
437
|
+
* },
|
|
438
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
439
|
+
* npi: "string",
|
|
440
|
+
* telecoms: [{
|
|
441
|
+
* value: "string",
|
|
442
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
443
|
+
* }],
|
|
444
|
+
* addresses: [],
|
|
445
|
+
* period: {},
|
|
446
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
447
|
+
* },
|
|
448
|
+
* referralNumber: "string"
|
|
449
|
+
* }],
|
|
450
|
+
* primaryServiceFacilityId: "string",
|
|
451
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
452
|
+
* }
|
|
453
|
+
* })
|
|
454
|
+
*/
|
|
455
|
+
createWithMrn(request, requestOptions) {
|
|
456
|
+
var _a, _b;
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
+
const { skipDuplicateCheck, body: _body } = request;
|
|
459
|
+
const _queryParams = {};
|
|
460
|
+
if (skipDuplicateCheck != null) {
|
|
461
|
+
_queryParams["skip_duplicate_check"] = skipDuplicateCheck.toString();
|
|
462
|
+
}
|
|
463
|
+
const _response = yield core.fetcher({
|
|
464
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
465
|
+
.preEncounter, "/patients/v1/with_mrn"),
|
|
466
|
+
method: "POST",
|
|
467
|
+
headers: {
|
|
468
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
469
|
+
"X-Fern-Language": "JavaScript",
|
|
470
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
471
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
472
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
473
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
474
|
+
},
|
|
475
|
+
contentType: "application/json",
|
|
476
|
+
queryParameters: _queryParams,
|
|
477
|
+
requestType: "json",
|
|
478
|
+
body: serializers.preEncounter.patients.v1.MutablePatientWithMrn.jsonOrThrow(_body, {
|
|
479
|
+
unrecognizedObjectKeys: "strip",
|
|
480
|
+
}),
|
|
481
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
482
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
483
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
484
|
+
});
|
|
485
|
+
if (_response.ok) {
|
|
486
|
+
return {
|
|
487
|
+
ok: true,
|
|
488
|
+
body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
|
|
489
|
+
unrecognizedObjectKeys: "passthrough",
|
|
490
|
+
allowUnrecognizedUnionMembers: true,
|
|
491
|
+
allowUnrecognizedEnumValues: true,
|
|
492
|
+
breadcrumbsPrefix: ["response"],
|
|
493
|
+
}),
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
if (_response.error.reason === "status-code") {
|
|
497
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
498
|
+
case "VersionConflictError":
|
|
499
|
+
case "BadRequestError":
|
|
500
|
+
return {
|
|
501
|
+
ok: false,
|
|
502
|
+
error: serializers.preEncounter.patients.v1.createWithMrn.Error.parseOrThrow(_response.error.body, {
|
|
503
|
+
unrecognizedObjectKeys: "passthrough",
|
|
504
|
+
allowUnrecognizedUnionMembers: true,
|
|
505
|
+
allowUnrecognizedEnumValues: true,
|
|
506
|
+
breadcrumbsPrefix: ["response"],
|
|
507
|
+
}),
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
return {
|
|
512
|
+
ok: false,
|
|
513
|
+
error: CandidApi.preEncounter.patients.v1.createWithMrn.Error._unknown(_response.error),
|
|
514
|
+
};
|
|
515
|
+
});
|
|
516
|
+
}
|
|
283
517
|
/**
|
|
284
518
|
* Searches for patients that match the query parameters.
|
|
285
519
|
*
|
|
@@ -323,7 +557,7 @@ class V1 {
|
|
|
323
557
|
Authorization: yield this._getAuthorizationHeader(),
|
|
324
558
|
"X-Fern-Language": "JavaScript",
|
|
325
559
|
"X-Fern-SDK-Name": "candidhealth",
|
|
326
|
-
"X-Fern-SDK-Version": "0.35.
|
|
560
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
327
561
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
328
562
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
329
563
|
},
|
|
@@ -371,7 +605,7 @@ class V1 {
|
|
|
371
605
|
Authorization: yield this._getAuthorizationHeader(),
|
|
372
606
|
"X-Fern-Language": "JavaScript",
|
|
373
607
|
"X-Fern-SDK-Name": "candidhealth",
|
|
374
|
-
"X-Fern-SDK-Version": "0.35.
|
|
608
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
375
609
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
376
610
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
377
611
|
},
|
|
@@ -432,7 +666,7 @@ class V1 {
|
|
|
432
666
|
Authorization: yield this._getAuthorizationHeader(),
|
|
433
667
|
"X-Fern-Language": "JavaScript",
|
|
434
668
|
"X-Fern-SDK-Name": "candidhealth",
|
|
435
|
-
"X-Fern-SDK-Version": "0.35.
|
|
669
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
436
670
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
437
671
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
438
672
|
},
|
|
@@ -639,7 +873,8 @@ class V1 {
|
|
|
639
873
|
* },
|
|
640
874
|
* referralNumber: "string"
|
|
641
875
|
* }],
|
|
642
|
-
* primaryServiceFacilityId: "string"
|
|
876
|
+
* primaryServiceFacilityId: "string",
|
|
877
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
643
878
|
* })
|
|
644
879
|
*/
|
|
645
880
|
update(id, version, request, requestOptions) {
|
|
@@ -653,7 +888,7 @@ class V1 {
|
|
|
653
888
|
Authorization: yield this._getAuthorizationHeader(),
|
|
654
889
|
"X-Fern-Language": "JavaScript",
|
|
655
890
|
"X-Fern-SDK-Name": "candidhealth",
|
|
656
|
-
"X-Fern-SDK-Version": "0.35.
|
|
891
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
657
892
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
658
893
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
659
894
|
},
|
|
@@ -719,7 +954,7 @@ class V1 {
|
|
|
719
954
|
Authorization: yield this._getAuthorizationHeader(),
|
|
720
955
|
"X-Fern-Language": "JavaScript",
|
|
721
956
|
"X-Fern-SDK-Name": "candidhealth",
|
|
722
|
-
"X-Fern-SDK-Version": "0.35.
|
|
957
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
723
958
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
724
959
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
725
960
|
},
|
|
@@ -787,7 +1022,7 @@ class V1 {
|
|
|
787
1022
|
Authorization: yield this._getAuthorizationHeader(),
|
|
788
1023
|
"X-Fern-Language": "JavaScript",
|
|
789
1024
|
"X-Fern-SDK-Name": "candidhealth",
|
|
790
|
-
"X-Fern-SDK-Version": "0.35.
|
|
1025
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
791
1026
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
792
1027
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
793
1028
|
},
|
|
@@ -840,7 +1075,7 @@ class V1 {
|
|
|
840
1075
|
Authorization: yield this._getAuthorizationHeader(),
|
|
841
1076
|
"X-Fern-Language": "JavaScript",
|
|
842
1077
|
"X-Fern-SDK-Name": "candidhealth",
|
|
843
|
-
"X-Fern-SDK-Version": "0.35.
|
|
1078
|
+
"X-Fern-SDK-Version": "0.35.2",
|
|
844
1079
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
845
1080
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
846
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
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.createWithMrn.Error.BadRequestError | CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface VersionConflictError extends _Utils {
|
|
9
|
+
errorName: "VersionConflictError";
|
|
10
|
+
content: CandidApi.preEncounter.VersionConflictErrorBody;
|
|
11
|
+
}
|
|
12
|
+
interface BadRequestError extends _Utils {
|
|
13
|
+
errorName: "BadRequestError";
|
|
14
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
15
|
+
}
|
|
16
|
+
interface _Unknown extends _Utils {
|
|
17
|
+
errorName: void;
|
|
18
|
+
content: core.Fetcher.Error;
|
|
19
|
+
}
|
|
20
|
+
interface _Utils {
|
|
21
|
+
_visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
}
|
|
23
|
+
interface _Visitor<_Result> {
|
|
24
|
+
versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
|
|
25
|
+
badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
26
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare const Error: {
|
|
30
|
+
readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError;
|
|
31
|
+
readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.BadRequestError;
|
|
32
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
|
|
33
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.createWithMrn.Error, visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
|
|
34
|
+
};
|