candidhealth 0.35.0 → 0.35.1
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.js +5 -5
- 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/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/ExternalProvider.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- 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/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 +247 -10
- package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +40 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +80 -0
- 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/CreatePatientWithMrnRequest.js +5 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/index.d.ts +1 -0
- 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/InvalidMrnErrorBody.d.ts +7 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +5 -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/MutablePatientWithMrn.js +5 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
- 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 +7 -1
- package/api/resources/x12/resources/v1/types/Rarc.js +6 -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.js +5 -5
- 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/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/ExternalProvider.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- 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/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 +247 -10
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +40 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +80 -0
- 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/CreatePatientWithMrnRequest.js +5 -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/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/InvalidMrnErrorBody.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +5 -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/MutablePatientWithMrn.js +5 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
- 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 +7 -1
- package/dist/api/resources/x12/resources/v1/types/Rarc.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/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/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/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/createWithMrn.d.ts +25 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +73 -0
- 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/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/InvalidMrnErrorBody.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +36 -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 +3 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
- 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/remitDrafts/resources/v1/types/RemitDraftId.js +35 -0
- 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 +6 -0
- package/package.json +1 -1
- package/reference.md +258 -4
- 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/types/AppointmentWorkQueue.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/AppointmentWorkQueue.js +1 -1
- 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/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/createWithMrn.d.ts +25 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +73 -0
- 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/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/InvalidMrnErrorBody.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +36 -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 +3 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
- 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/remitDrafts/resources/v1/types/RemitDraftId.js +35 -0
- 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 +6 -0
|
@@ -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.1",
|
|
238
239
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
239
240
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
240
241
|
},
|
|
@@ -280,6 +281,241 @@ class V1 {
|
|
|
280
281
|
};
|
|
281
282
|
});
|
|
282
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. InvalidMRNError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
|
|
286
|
+
*
|
|
287
|
+
* @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
|
|
288
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* await client.preEncounter.patients.v1.createWithMrn({
|
|
292
|
+
* skipDuplicateCheck: true,
|
|
293
|
+
* body: {
|
|
294
|
+
* mrn: "string",
|
|
295
|
+
* name: {
|
|
296
|
+
* family: "string",
|
|
297
|
+
* given: ["string"],
|
|
298
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
299
|
+
* period: {}
|
|
300
|
+
* },
|
|
301
|
+
* otherNames: [{
|
|
302
|
+
* family: "string",
|
|
303
|
+
* given: ["string"],
|
|
304
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
305
|
+
* period: {}
|
|
306
|
+
* }],
|
|
307
|
+
* gender: CandidApi.preEncounter.Gender.Man,
|
|
308
|
+
* birthDate: "2023-01-15",
|
|
309
|
+
* socialSecurityNumber: "string",
|
|
310
|
+
* biologicalSex: CandidApi.preEncounter.Sex.Female,
|
|
311
|
+
* sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
|
|
312
|
+
* race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
|
|
313
|
+
* ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
|
|
314
|
+
* disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
|
|
315
|
+
* maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
|
|
316
|
+
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
317
|
+
* multipleBirth: 1,
|
|
318
|
+
* primaryAddress: {
|
|
319
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
320
|
+
* line: ["string"],
|
|
321
|
+
* city: "string",
|
|
322
|
+
* state: "string",
|
|
323
|
+
* postalCode: "string",
|
|
324
|
+
* country: "string",
|
|
325
|
+
* period: {}
|
|
326
|
+
* },
|
|
327
|
+
* otherAddresses: [{
|
|
328
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
329
|
+
* line: ["string"],
|
|
330
|
+
* city: "string",
|
|
331
|
+
* state: "string",
|
|
332
|
+
* postalCode: "string",
|
|
333
|
+
* country: "string",
|
|
334
|
+
* period: {}
|
|
335
|
+
* }],
|
|
336
|
+
* primaryTelecom: {
|
|
337
|
+
* value: "string",
|
|
338
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
339
|
+
* },
|
|
340
|
+
* otherTelecoms: [{
|
|
341
|
+
* value: "string",
|
|
342
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
343
|
+
* }],
|
|
344
|
+
* email: "string",
|
|
345
|
+
* electronicCommunicationOptIn: true,
|
|
346
|
+
* photo: "string",
|
|
347
|
+
* language: "string",
|
|
348
|
+
* externalProvenance: {
|
|
349
|
+
* externalId: "string",
|
|
350
|
+
* systemName: "string"
|
|
351
|
+
* },
|
|
352
|
+
* contacts: [{
|
|
353
|
+
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
354
|
+
* name: {
|
|
355
|
+
* family: "string",
|
|
356
|
+
* given: ["string"],
|
|
357
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
358
|
+
* period: {}
|
|
359
|
+
* },
|
|
360
|
+
* telecoms: [{
|
|
361
|
+
* value: "string",
|
|
362
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
363
|
+
* }],
|
|
364
|
+
* addresses: [{
|
|
365
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
366
|
+
* line: ["string"],
|
|
367
|
+
* city: "string",
|
|
368
|
+
* state: "string",
|
|
369
|
+
* postalCode: "string",
|
|
370
|
+
* country: "string",
|
|
371
|
+
* period: {}
|
|
372
|
+
* }],
|
|
373
|
+
* period: {},
|
|
374
|
+
* hipaaAuthorization: true
|
|
375
|
+
* }],
|
|
376
|
+
* generalPractitioners: [{
|
|
377
|
+
* name: {
|
|
378
|
+
* family: "string",
|
|
379
|
+
* given: ["string"],
|
|
380
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
381
|
+
* period: {}
|
|
382
|
+
* },
|
|
383
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
384
|
+
* npi: "string",
|
|
385
|
+
* telecoms: [{
|
|
386
|
+
* value: "string",
|
|
387
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
388
|
+
* }],
|
|
389
|
+
* addresses: [],
|
|
390
|
+
* period: {},
|
|
391
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
392
|
+
* }],
|
|
393
|
+
* filingOrder: {
|
|
394
|
+
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
395
|
+
* },
|
|
396
|
+
* nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
|
|
397
|
+
* nonInsurancePayerAssociations: [{
|
|
398
|
+
* id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
|
|
399
|
+
* }],
|
|
400
|
+
* guarantor: {
|
|
401
|
+
* name: {
|
|
402
|
+
* family: "string",
|
|
403
|
+
* given: ["string"],
|
|
404
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
405
|
+
* period: {}
|
|
406
|
+
* },
|
|
407
|
+
* telecom: {
|
|
408
|
+
* value: "string",
|
|
409
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
410
|
+
* },
|
|
411
|
+
* email: "string",
|
|
412
|
+
* birthDate: "2023-01-15",
|
|
413
|
+
* address: {
|
|
414
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
415
|
+
* line: ["string"],
|
|
416
|
+
* city: "string",
|
|
417
|
+
* state: "string",
|
|
418
|
+
* postalCode: "string",
|
|
419
|
+
* country: "string",
|
|
420
|
+
* period: {}
|
|
421
|
+
* }
|
|
422
|
+
* },
|
|
423
|
+
* selfPay: true,
|
|
424
|
+
* authorizations: [{
|
|
425
|
+
* payerId: CandidApi.preEncounter.PayerId("string"),
|
|
426
|
+
* payerName: "string",
|
|
427
|
+
* authorizationNumber: "string",
|
|
428
|
+
* cptCode: "string",
|
|
429
|
+
* units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
|
|
430
|
+
* }],
|
|
431
|
+
* referrals: [{
|
|
432
|
+
* provider: {
|
|
433
|
+
* name: {
|
|
434
|
+
* family: "string",
|
|
435
|
+
* given: ["string"],
|
|
436
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
437
|
+
* period: {}
|
|
438
|
+
* },
|
|
439
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
440
|
+
* npi: "string",
|
|
441
|
+
* telecoms: [{
|
|
442
|
+
* value: "string",
|
|
443
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
444
|
+
* }],
|
|
445
|
+
* addresses: [],
|
|
446
|
+
* period: {},
|
|
447
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
448
|
+
* },
|
|
449
|
+
* referralNumber: "string"
|
|
450
|
+
* }],
|
|
451
|
+
* primaryServiceFacilityId: "string",
|
|
452
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
453
|
+
* }
|
|
454
|
+
* })
|
|
455
|
+
*/
|
|
456
|
+
createWithMrn(request, requestOptions) {
|
|
457
|
+
var _a, _b;
|
|
458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
459
|
+
const { skipDuplicateCheck, body: _body } = request;
|
|
460
|
+
const _queryParams = {};
|
|
461
|
+
if (skipDuplicateCheck != null) {
|
|
462
|
+
_queryParams["skip_duplicate_check"] = skipDuplicateCheck.toString();
|
|
463
|
+
}
|
|
464
|
+
const _response = yield core.fetcher({
|
|
465
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
466
|
+
.preEncounter, "/patients/v1/with_mrn"),
|
|
467
|
+
method: "POST",
|
|
468
|
+
headers: {
|
|
469
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
470
|
+
"X-Fern-Language": "JavaScript",
|
|
471
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
472
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
473
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
474
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
475
|
+
},
|
|
476
|
+
contentType: "application/json",
|
|
477
|
+
queryParameters: _queryParams,
|
|
478
|
+
requestType: "json",
|
|
479
|
+
body: serializers.preEncounter.patients.v1.MutablePatientWithMrn.jsonOrThrow(_body, {
|
|
480
|
+
unrecognizedObjectKeys: "strip",
|
|
481
|
+
}),
|
|
482
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
483
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
484
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
485
|
+
});
|
|
486
|
+
if (_response.ok) {
|
|
487
|
+
return {
|
|
488
|
+
ok: true,
|
|
489
|
+
body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
|
|
490
|
+
unrecognizedObjectKeys: "passthrough",
|
|
491
|
+
allowUnrecognizedUnionMembers: true,
|
|
492
|
+
allowUnrecognizedEnumValues: true,
|
|
493
|
+
breadcrumbsPrefix: ["response"],
|
|
494
|
+
}),
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
if (_response.error.reason === "status-code") {
|
|
498
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
499
|
+
case "VersionConflictError":
|
|
500
|
+
case "PotentialDuplicatePatients":
|
|
501
|
+
case "InvalidMRNError":
|
|
502
|
+
return {
|
|
503
|
+
ok: false,
|
|
504
|
+
error: serializers.preEncounter.patients.v1.createWithMrn.Error.parseOrThrow(_response.error.body, {
|
|
505
|
+
unrecognizedObjectKeys: "passthrough",
|
|
506
|
+
allowUnrecognizedUnionMembers: true,
|
|
507
|
+
allowUnrecognizedEnumValues: true,
|
|
508
|
+
breadcrumbsPrefix: ["response"],
|
|
509
|
+
}),
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return {
|
|
514
|
+
ok: false,
|
|
515
|
+
error: CandidApi.preEncounter.patients.v1.createWithMrn.Error._unknown(_response.error),
|
|
516
|
+
};
|
|
517
|
+
});
|
|
518
|
+
}
|
|
283
519
|
/**
|
|
284
520
|
* Searches for patients that match the query parameters.
|
|
285
521
|
*
|
|
@@ -323,7 +559,7 @@ class V1 {
|
|
|
323
559
|
Authorization: yield this._getAuthorizationHeader(),
|
|
324
560
|
"X-Fern-Language": "JavaScript",
|
|
325
561
|
"X-Fern-SDK-Name": "candidhealth",
|
|
326
|
-
"X-Fern-SDK-Version": "0.35.
|
|
562
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
327
563
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
328
564
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
329
565
|
},
|
|
@@ -371,7 +607,7 @@ class V1 {
|
|
|
371
607
|
Authorization: yield this._getAuthorizationHeader(),
|
|
372
608
|
"X-Fern-Language": "JavaScript",
|
|
373
609
|
"X-Fern-SDK-Name": "candidhealth",
|
|
374
|
-
"X-Fern-SDK-Version": "0.35.
|
|
610
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
375
611
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
376
612
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
377
613
|
},
|
|
@@ -432,7 +668,7 @@ class V1 {
|
|
|
432
668
|
Authorization: yield this._getAuthorizationHeader(),
|
|
433
669
|
"X-Fern-Language": "JavaScript",
|
|
434
670
|
"X-Fern-SDK-Name": "candidhealth",
|
|
435
|
-
"X-Fern-SDK-Version": "0.35.
|
|
671
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
436
672
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
437
673
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
438
674
|
},
|
|
@@ -639,7 +875,8 @@ class V1 {
|
|
|
639
875
|
* },
|
|
640
876
|
* referralNumber: "string"
|
|
641
877
|
* }],
|
|
642
|
-
* primaryServiceFacilityId: "string"
|
|
878
|
+
* primaryServiceFacilityId: "string",
|
|
879
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
643
880
|
* })
|
|
644
881
|
*/
|
|
645
882
|
update(id, version, request, requestOptions) {
|
|
@@ -653,7 +890,7 @@ class V1 {
|
|
|
653
890
|
Authorization: yield this._getAuthorizationHeader(),
|
|
654
891
|
"X-Fern-Language": "JavaScript",
|
|
655
892
|
"X-Fern-SDK-Name": "candidhealth",
|
|
656
|
-
"X-Fern-SDK-Version": "0.35.
|
|
893
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
657
894
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
658
895
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
659
896
|
},
|
|
@@ -719,7 +956,7 @@ class V1 {
|
|
|
719
956
|
Authorization: yield this._getAuthorizationHeader(),
|
|
720
957
|
"X-Fern-Language": "JavaScript",
|
|
721
958
|
"X-Fern-SDK-Name": "candidhealth",
|
|
722
|
-
"X-Fern-SDK-Version": "0.35.
|
|
959
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
723
960
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
724
961
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
725
962
|
},
|
|
@@ -787,7 +1024,7 @@ class V1 {
|
|
|
787
1024
|
Authorization: yield this._getAuthorizationHeader(),
|
|
788
1025
|
"X-Fern-Language": "JavaScript",
|
|
789
1026
|
"X-Fern-SDK-Name": "candidhealth",
|
|
790
|
-
"X-Fern-SDK-Version": "0.35.
|
|
1027
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
791
1028
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
792
1029
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
793
1030
|
},
|
|
@@ -840,7 +1077,7 @@ class V1 {
|
|
|
840
1077
|
Authorization: yield this._getAuthorizationHeader(),
|
|
841
1078
|
"X-Fern-Language": "JavaScript",
|
|
842
1079
|
"X-Fern-SDK-Name": "candidhealth",
|
|
843
|
-
"X-Fern-SDK-Version": "0.35.
|
|
1080
|
+
"X-Fern-SDK-Version": "0.35.1",
|
|
844
1081
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
845
1082
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
846
1083
|
},
|
|
@@ -0,0 +1,40 @@
|
|
|
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.PotentialDuplicatePatients | CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError | 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 PotentialDuplicatePatients extends _Utils {
|
|
13
|
+
errorName: "PotentialDuplicatePatients";
|
|
14
|
+
content: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody;
|
|
15
|
+
}
|
|
16
|
+
interface InvalidMrnError extends _Utils {
|
|
17
|
+
errorName: "InvalidMRNError";
|
|
18
|
+
content: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody;
|
|
19
|
+
}
|
|
20
|
+
interface _Unknown extends _Utils {
|
|
21
|
+
errorName: void;
|
|
22
|
+
content: core.Fetcher.Error;
|
|
23
|
+
}
|
|
24
|
+
interface _Utils {
|
|
25
|
+
_visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
|
|
26
|
+
}
|
|
27
|
+
interface _Visitor<_Result> {
|
|
28
|
+
versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
|
|
29
|
+
potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => _Result;
|
|
30
|
+
invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => _Result;
|
|
31
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export declare const Error: {
|
|
35
|
+
readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError;
|
|
36
|
+
readonly potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.PotentialDuplicatePatients;
|
|
37
|
+
readonly invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError;
|
|
38
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
|
|
39
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.createWithMrn.Error, visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
|
|
40
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../../../../index"));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
versionConflictError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "VersionConflictError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
potentialDuplicatePatients: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "PotentialDuplicatePatients",
|
|
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",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
_unknown: (fetcherError) => {
|
|
60
|
+
return {
|
|
61
|
+
errorName: undefined,
|
|
62
|
+
content: fetcherError,
|
|
63
|
+
_visit: function (visitor) {
|
|
64
|
+
return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
_visit: (value, visitor) => {
|
|
69
|
+
switch (value.errorName) {
|
|
70
|
+
case "VersionConflictError":
|
|
71
|
+
return visitor.versionConflictError(value.content);
|
|
72
|
+
case "PotentialDuplicatePatients":
|
|
73
|
+
return visitor.potentialDuplicatePatients(value.content);
|
|
74
|
+
case "InvalidMRNError":
|
|
75
|
+
return visitor.invalidMrnError(value.content);
|
|
76
|
+
default:
|
|
77
|
+
return visitor._other(value);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
};
|
|
@@ -26,9 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.scan = exports.search = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.getMulti = exports.create = void 0;
|
|
29
|
+
exports.scan = exports.search = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.getMulti = exports.createWithMrn = exports.create = void 0;
|
|
30
30
|
__exportStar(require("./requests"), exports);
|
|
31
31
|
exports.create = __importStar(require("./create"));
|
|
32
|
+
exports.createWithMrn = __importStar(require("./createWithMrn"));
|
|
32
33
|
exports.getMulti = __importStar(require("./getMulti"));
|
|
33
34
|
exports.get = __importStar(require("./get"));
|
|
34
35
|
exports.getHistory = __importStar(require("./getHistory"));
|
|
@@ -163,7 +163,8 @@ import * as CandidApi from "../../../../../../../../index";
|
|
|
163
163
|
* },
|
|
164
164
|
* referralNumber: "string"
|
|
165
165
|
* }],
|
|
166
|
-
* primaryServiceFacilityId: "string"
|
|
166
|
+
* primaryServiceFacilityId: "string",
|
|
167
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
167
168
|
* }
|
|
168
169
|
* }
|
|
169
170
|
*/
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* skipDuplicateCheck: true,
|
|
9
|
+
* body: {
|
|
10
|
+
* mrn: "string",
|
|
11
|
+
* name: {
|
|
12
|
+
* family: "string",
|
|
13
|
+
* given: ["string"],
|
|
14
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
15
|
+
* period: {}
|
|
16
|
+
* },
|
|
17
|
+
* otherNames: [{
|
|
18
|
+
* family: "string",
|
|
19
|
+
* given: ["string"],
|
|
20
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
21
|
+
* period: {}
|
|
22
|
+
* }],
|
|
23
|
+
* gender: CandidApi.preEncounter.Gender.Man,
|
|
24
|
+
* birthDate: "2023-01-15",
|
|
25
|
+
* socialSecurityNumber: "string",
|
|
26
|
+
* biologicalSex: CandidApi.preEncounter.Sex.Female,
|
|
27
|
+
* sexualOrientation: CandidApi.preEncounter.SexualOrientation.Heterosexual,
|
|
28
|
+
* race: CandidApi.preEncounter.Race.AmericanIndianOrAlaskaNative,
|
|
29
|
+
* ethnicity: CandidApi.preEncounter.Ethnicity.HispanicOrLatino,
|
|
30
|
+
* disabilityStatus: CandidApi.preEncounter.DisabilityStatus.Disabled,
|
|
31
|
+
* maritalStatus: CandidApi.preEncounter.patients.v1.MaritalStatus.Annulled,
|
|
32
|
+
* deceased: new Date("2024-01-15T09:30:00.000Z"),
|
|
33
|
+
* multipleBirth: 1,
|
|
34
|
+
* primaryAddress: {
|
|
35
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
36
|
+
* line: ["string"],
|
|
37
|
+
* city: "string",
|
|
38
|
+
* state: "string",
|
|
39
|
+
* postalCode: "string",
|
|
40
|
+
* country: "string",
|
|
41
|
+
* period: {}
|
|
42
|
+
* },
|
|
43
|
+
* otherAddresses: [{
|
|
44
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
45
|
+
* line: ["string"],
|
|
46
|
+
* city: "string",
|
|
47
|
+
* state: "string",
|
|
48
|
+
* postalCode: "string",
|
|
49
|
+
* country: "string",
|
|
50
|
+
* period: {}
|
|
51
|
+
* }],
|
|
52
|
+
* primaryTelecom: {
|
|
53
|
+
* value: "string",
|
|
54
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
55
|
+
* },
|
|
56
|
+
* otherTelecoms: [{
|
|
57
|
+
* value: "string",
|
|
58
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
59
|
+
* }],
|
|
60
|
+
* email: "string",
|
|
61
|
+
* electronicCommunicationOptIn: true,
|
|
62
|
+
* photo: "string",
|
|
63
|
+
* language: "string",
|
|
64
|
+
* externalProvenance: {
|
|
65
|
+
* externalId: "string",
|
|
66
|
+
* systemName: "string"
|
|
67
|
+
* },
|
|
68
|
+
* contacts: [{
|
|
69
|
+
* relationship: [CandidApi.preEncounter.Relationship.Self],
|
|
70
|
+
* name: {
|
|
71
|
+
* family: "string",
|
|
72
|
+
* given: ["string"],
|
|
73
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
74
|
+
* period: {}
|
|
75
|
+
* },
|
|
76
|
+
* telecoms: [{
|
|
77
|
+
* value: "string",
|
|
78
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
79
|
+
* }],
|
|
80
|
+
* addresses: [{
|
|
81
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
82
|
+
* line: ["string"],
|
|
83
|
+
* city: "string",
|
|
84
|
+
* state: "string",
|
|
85
|
+
* postalCode: "string",
|
|
86
|
+
* country: "string",
|
|
87
|
+
* period: {}
|
|
88
|
+
* }],
|
|
89
|
+
* period: {},
|
|
90
|
+
* hipaaAuthorization: true
|
|
91
|
+
* }],
|
|
92
|
+
* generalPractitioners: [{
|
|
93
|
+
* name: {
|
|
94
|
+
* family: "string",
|
|
95
|
+
* given: ["string"],
|
|
96
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
97
|
+
* period: {}
|
|
98
|
+
* },
|
|
99
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
100
|
+
* npi: "string",
|
|
101
|
+
* telecoms: [{
|
|
102
|
+
* value: "string",
|
|
103
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
104
|
+
* }],
|
|
105
|
+
* addresses: [],
|
|
106
|
+
* period: {},
|
|
107
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
108
|
+
* }],
|
|
109
|
+
* filingOrder: {
|
|
110
|
+
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
111
|
+
* },
|
|
112
|
+
* nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
|
|
113
|
+
* nonInsurancePayerAssociations: [{
|
|
114
|
+
* id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
|
|
115
|
+
* }],
|
|
116
|
+
* guarantor: {
|
|
117
|
+
* name: {
|
|
118
|
+
* family: "string",
|
|
119
|
+
* given: ["string"],
|
|
120
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
121
|
+
* period: {}
|
|
122
|
+
* },
|
|
123
|
+
* telecom: {
|
|
124
|
+
* value: "string",
|
|
125
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
126
|
+
* },
|
|
127
|
+
* email: "string",
|
|
128
|
+
* birthDate: "2023-01-15",
|
|
129
|
+
* address: {
|
|
130
|
+
* use: CandidApi.preEncounter.AddressUse.Home,
|
|
131
|
+
* line: ["string"],
|
|
132
|
+
* city: "string",
|
|
133
|
+
* state: "string",
|
|
134
|
+
* postalCode: "string",
|
|
135
|
+
* country: "string",
|
|
136
|
+
* period: {}
|
|
137
|
+
* }
|
|
138
|
+
* },
|
|
139
|
+
* selfPay: true,
|
|
140
|
+
* authorizations: [{
|
|
141
|
+
* payerId: CandidApi.preEncounter.PayerId("string"),
|
|
142
|
+
* payerName: "string",
|
|
143
|
+
* authorizationNumber: "string",
|
|
144
|
+
* cptCode: "string",
|
|
145
|
+
* units: CandidApi.preEncounter.patients.v1.AuthorizationUnit.Visit
|
|
146
|
+
* }],
|
|
147
|
+
* referrals: [{
|
|
148
|
+
* provider: {
|
|
149
|
+
* name: {
|
|
150
|
+
* family: "string",
|
|
151
|
+
* given: ["string"],
|
|
152
|
+
* use: CandidApi.preEncounter.NameUse.Usual,
|
|
153
|
+
* period: {}
|
|
154
|
+
* },
|
|
155
|
+
* type: CandidApi.preEncounter.ExternalProviderType.Primary,
|
|
156
|
+
* npi: "string",
|
|
157
|
+
* telecoms: [{
|
|
158
|
+
* value: "string",
|
|
159
|
+
* use: CandidApi.preEncounter.ContactPointUse.Home
|
|
160
|
+
* }],
|
|
161
|
+
* addresses: [],
|
|
162
|
+
* period: {},
|
|
163
|
+
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string")
|
|
164
|
+
* },
|
|
165
|
+
* referralNumber: "string"
|
|
166
|
+
* }],
|
|
167
|
+
* primaryServiceFacilityId: "string",
|
|
168
|
+
* doNotInvoiceReason: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason.Bankruptcy
|
|
169
|
+
* }
|
|
170
|
+
* }
|
|
171
|
+
*/
|
|
172
|
+
export interface CreatePatientWithMrnRequest {
|
|
173
|
+
skipDuplicateCheck?: boolean;
|
|
174
|
+
body: CandidApi.preEncounter.patients.v1.MutablePatientWithMrn;
|
|
175
|
+
}
|