candidhealth 0.43.1 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -18
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
- package/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
- package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
- package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
- package/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
- package/api/resources/billingNotes/resources/v2/types/index.js +0 -1
- package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
- package/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
- package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
- package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
- package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
- package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
- package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +28 -2
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
- package/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
- package/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
- package/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
- package/api/resources/contracts/resources/v2/client/Client.js +19 -73
- package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
- package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
- package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
- package/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
- package/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
- package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/api/resources/contracts/resources/v2/types/index.js +1 -0
- package/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
- package/api/resources/credentialing/resources/v2/client/Client.js +9 -31
- package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
- package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
- package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.d.ts +3 -8
- package/api/resources/diagnoses/client/Client.js +6 -11
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
- package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
- package/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
- package/api/resources/eligibility/resources/v2/client/Client.js +5 -9
- package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
- package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
- package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
- package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
- package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
- package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
- package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
- package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
- package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
- package/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
- package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
- package/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
- package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
- package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
- package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
- package/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
- package/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
- package/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
- package/api/resources/encounters/resources/v4/client/Client.d.ts +49 -546
- package/api/resources/encounters/resources/v4/client/Client.js +54 -551
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +36 -405
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -7
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
- package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +9 -33
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
- package/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
- package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
- package/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
- package/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
- package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
- package/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
- package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
- package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
- package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
- package/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
- package/api/resources/guarantor/resources/v1/client/Client.js +11 -41
- package/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
- package/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
- package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
- package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
- package/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
- package/api/resources/individual/types/index.d.ts +1 -0
- package/api/resources/individual/types/index.js +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
- package/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
- package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
- package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
- package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
- package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
- package/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
- package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
- package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
- package/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
- package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
- package/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
- package/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
- package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
- package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
- package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
- package/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
- package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
- package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
- package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
- package/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
- package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
- package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
- package/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
- package/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
- package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
- package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
- package/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
- package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
- package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
- package/api/resources/serviceFacility/client/Client.d.ts +1 -11
- package/api/resources/serviceFacility/client/Client.js +2 -12
- package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
- package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
- package/api/resources/serviceFacility/types/index.d.ts +1 -0
- package/api/resources/serviceFacility/types/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
- package/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
- package/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
- package/api/resources/superbills/resources/v1/client/Client.js +3 -11
- package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
- package/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
- package/api/resources/tasks/resources/v3/client/Client.js +9 -30
- package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
- package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
- package/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
- package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
- package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
- package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
- package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
- package/dist/api/resources/billingNotes/resources/v2/types/index.js +0 -1
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
- package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +28 -2
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
- package/dist/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
- package/dist/api/resources/commons/types/StreetAddressOptionalBase.d.ts +12 -0
- package/dist/api/resources/commons/types/StreetAddressOptionalBase.js +5 -0
- package/dist/api/resources/commons/types/StreetAddressShortZipOptional.d.ts +19 -0
- package/dist/api/resources/commons/types/StreetAddressShortZipOptional.js +5 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
- package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -73
- package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
- package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
- package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
- package/dist/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
- package/dist/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
- package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
- package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +9 -31
- package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
- package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
- package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.d.ts +3 -8
- package/dist/api/resources/diagnoses/client/Client.js +6 -11
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
- package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
- package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +5 -9
- package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
- package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
- package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
- package/dist/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
- package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +27 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +14 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +13 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +13 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +13 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/index.js +5 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +49 -546
- package/dist/api/resources/encounters/resources/v4/client/Client.js +54 -551
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +36 -405
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -7
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
- package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +9 -33
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
- package/dist/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +11 -41
- package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
- package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
- package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +23 -0
- package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.js +5 -0
- package/dist/api/resources/individual/types/index.d.ts +1 -0
- package/dist/api/resources/individual/types/index.js +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
- package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
- package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
- package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
- package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
- package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
- package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
- package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
- package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
- package/dist/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
- package/dist/api/resources/serviceFacility/client/Client.d.ts +1 -11
- package/dist/api/resources/serviceFacility/client/Client.js +2 -12
- package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +20 -0
- package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +5 -0
- package/dist/api/resources/serviceFacility/types/index.d.ts +1 -0
- package/dist/api/resources/serviceFacility/types/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
- package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
- package/dist/api/resources/superbills/resources/v1/client/Client.js +3 -11
- package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
- package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
- package/dist/api/resources/tasks/resources/v3/client/Client.js +9 -30
- package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
- package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
- package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
- package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
- package/dist/environments.d.ts +5 -1
- package/dist/environments.js +4 -0
- package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
- package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
- package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
- package/dist/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
- package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
- package/dist/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
- package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
- package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
- package/dist/serialization/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js} +10 -11
- package/dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
- package/{serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → dist/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js} +8 -11
- package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
- package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
- package/dist/serialization/resources/individual/types/index.d.ts +1 -0
- package/dist/serialization/resources/individual/types/index.js +1 -0
- package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
- package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
- package/dist/serialization/resources/serviceFacility/types/index.d.ts +1 -0
- package/dist/serialization/resources/serviceFacility/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +5 -1
- package/environments.js +4 -0
- package/package.json +1 -1
- package/reference.md +772 -2232
- package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +0 -1
- package/serialization/resources/billingNotes/resources/v2/types/index.js +0 -1
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +18 -2
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +18 -2
- package/serialization/resources/commons/types/StreetAddressOptionalBase.d.ts +17 -0
- package/serialization/resources/commons/types/StreetAddressOptionalBase.js +48 -0
- package/serialization/resources/commons/types/StreetAddressShortZipOptional.d.ts +13 -0
- package/serialization/resources/commons/types/StreetAddressShortZipOptional.js +46 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
- package/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
- package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
- package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +19 -0
- package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +52 -0
- package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.d.ts +18 -0
- package/serialization/resources/encounterProviders/resources/v2/types/InitialReferringProviderUpdateWithOptionalAddress.js +51 -0
- package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.d.ts +16 -0
- package/serialization/resources/encounterProviders/resources/v2/types/ReferringProviderUpdateWithOptionalAddress.js +49 -0
- package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +16 -0
- package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +49 -0
- package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.d.ts +16 -0
- package/serialization/resources/encounterProviders/resources/v2/types/SupervisingProviderUpdateWithOptionalAddress.js +49 -0
- package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +5 -0
- package/serialization/resources/encounterProviders/resources/v2/types/index.js +5 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -16
- package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -16
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
- package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +29 -0
- package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +60 -0
- package/serialization/resources/individual/types/index.d.ts +1 -0
- package/serialization/resources/individual/types/index.js +1 -0
- package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.d.ts +16 -0
- package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdateWithOptionalAddress.js +47 -0
- package/serialization/resources/serviceFacility/types/index.d.ts +1 -0
- package/serialization/resources/serviceFacility/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
- package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -15
- package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
- package/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +0 -19
- /package/api/resources/{billingNotes/resources/v2/types/BillingNoteOptional.js → commons/types/StreetAddressOptionalBase.js} +0 -0
- /package/{dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.js → api/resources/commons/types/StreetAddressShortZipOptional.js} +0 -0
|
@@ -59,193 +59,153 @@ class V1 {
|
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* Adds a patient.
|
|
62
|
+
* Adds a patient. VersionConflictError is returned when the patient's external ID is already in use.
|
|
63
63
|
*
|
|
64
64
|
* @param {CandidApi.preEncounter.patients.v1.CreatePatientRequest} request
|
|
65
65
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* await client.preEncounter.patients.v1.create({
|
|
69
|
-
* skipDuplicateCheck: true,
|
|
70
69
|
* body: {
|
|
71
70
|
* name: {
|
|
72
|
-
* family: "
|
|
73
|
-
* given: ["
|
|
74
|
-
* use: "USUAL"
|
|
75
|
-
* period: {},
|
|
76
|
-
* suffix: "string"
|
|
71
|
+
* family: "family",
|
|
72
|
+
* given: ["given", "given"],
|
|
73
|
+
* use: "USUAL"
|
|
77
74
|
* },
|
|
78
75
|
* otherNames: [{
|
|
79
|
-
* family: "
|
|
80
|
-
* given: ["
|
|
81
|
-
* use: "USUAL"
|
|
82
|
-
*
|
|
83
|
-
*
|
|
76
|
+
* family: "family",
|
|
77
|
+
* given: ["given", "given"],
|
|
78
|
+
* use: "USUAL"
|
|
79
|
+
* }, {
|
|
80
|
+
* family: "family",
|
|
81
|
+
* given: ["given", "given"],
|
|
82
|
+
* use: "USUAL"
|
|
84
83
|
* }],
|
|
85
|
-
* otherIdentifiers: [{
|
|
86
|
-
* value: "string",
|
|
87
|
-
* system: "string"
|
|
88
|
-
* }],
|
|
89
|
-
* gender: "MAN",
|
|
90
84
|
* birthDate: "2023-01-15",
|
|
91
|
-
* socialSecurityNumber: "string",
|
|
92
85
|
* biologicalSex: "FEMALE",
|
|
93
|
-
* sexualOrientation: "HETEROSEXUAL",
|
|
94
|
-
* pronouns: ["string"],
|
|
95
|
-
* race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
|
|
96
|
-
* ethnicity: "HISPANIC_OR_LATINO",
|
|
97
|
-
* disabilityStatus: "DISABLED",
|
|
98
|
-
* maritalStatus: "ANNULLED",
|
|
99
|
-
* deceased: "2024-01-15T09:30:00Z",
|
|
100
|
-
* multipleBirth: 1,
|
|
101
86
|
* primaryAddress: {
|
|
102
87
|
* use: "HOME",
|
|
103
|
-
* line: ["
|
|
104
|
-
* city: "
|
|
105
|
-
* state: "
|
|
106
|
-
* postalCode: "
|
|
107
|
-
* country: "
|
|
108
|
-
* period: {}
|
|
88
|
+
* line: ["line", "line"],
|
|
89
|
+
* city: "city",
|
|
90
|
+
* state: "state",
|
|
91
|
+
* postalCode: "postal_code",
|
|
92
|
+
* country: "country"
|
|
109
93
|
* },
|
|
110
94
|
* otherAddresses: [{
|
|
111
95
|
* use: "HOME",
|
|
112
|
-
* line: ["
|
|
113
|
-
* city: "
|
|
114
|
-
* state: "
|
|
115
|
-
* postalCode: "
|
|
116
|
-
* country: "
|
|
117
|
-
*
|
|
96
|
+
* line: ["line", "line"],
|
|
97
|
+
* city: "city",
|
|
98
|
+
* state: "state",
|
|
99
|
+
* postalCode: "postal_code",
|
|
100
|
+
* country: "country"
|
|
101
|
+
* }, {
|
|
102
|
+
* use: "HOME",
|
|
103
|
+
* line: ["line", "line"],
|
|
104
|
+
* city: "city",
|
|
105
|
+
* state: "state",
|
|
106
|
+
* postalCode: "postal_code",
|
|
107
|
+
* country: "country"
|
|
118
108
|
* }],
|
|
119
109
|
* primaryTelecom: {
|
|
120
|
-
* value: "
|
|
110
|
+
* value: "value",
|
|
121
111
|
* use: "HOME"
|
|
122
112
|
* },
|
|
123
113
|
* otherTelecoms: [{
|
|
124
|
-
* value: "
|
|
114
|
+
* value: "value",
|
|
115
|
+
* use: "HOME"
|
|
116
|
+
* }, {
|
|
117
|
+
* value: "value",
|
|
125
118
|
* use: "HOME"
|
|
126
119
|
* }],
|
|
127
|
-
* email: "string",
|
|
128
|
-
* electronicCommunicationOptIn: true,
|
|
129
|
-
* photo: "string",
|
|
130
|
-
* language: "string",
|
|
131
|
-
* externalProvenance: {
|
|
132
|
-
* externalId: "string",
|
|
133
|
-
* systemName: "string"
|
|
134
|
-
* },
|
|
135
120
|
* contacts: [{
|
|
136
|
-
* relationship: ["SELF"],
|
|
121
|
+
* relationship: ["SELF", "SELF"],
|
|
137
122
|
* name: {
|
|
138
|
-
* family: "
|
|
139
|
-
* given: ["
|
|
140
|
-
* use: "USUAL"
|
|
141
|
-
* period: {},
|
|
142
|
-
* suffix: "string"
|
|
123
|
+
* family: "family",
|
|
124
|
+
* given: ["given", "given"],
|
|
125
|
+
* use: "USUAL"
|
|
143
126
|
* },
|
|
144
127
|
* telecoms: [{
|
|
145
|
-
* value: "
|
|
128
|
+
* value: "value",
|
|
129
|
+
* use: "HOME"
|
|
130
|
+
* }, {
|
|
131
|
+
* value: "value",
|
|
146
132
|
* use: "HOME"
|
|
147
133
|
* }],
|
|
148
134
|
* addresses: [{
|
|
149
135
|
* use: "HOME",
|
|
150
|
-
* line: ["
|
|
151
|
-
* city: "
|
|
152
|
-
* state: "
|
|
153
|
-
* postalCode: "
|
|
154
|
-
* country: "
|
|
155
|
-
*
|
|
136
|
+
* line: ["line", "line"],
|
|
137
|
+
* city: "city",
|
|
138
|
+
* state: "state",
|
|
139
|
+
* postalCode: "postal_code",
|
|
140
|
+
* country: "country"
|
|
141
|
+
* }, {
|
|
142
|
+
* use: "HOME",
|
|
143
|
+
* line: ["line", "line"],
|
|
144
|
+
* city: "city",
|
|
145
|
+
* state: "state",
|
|
146
|
+
* postalCode: "postal_code",
|
|
147
|
+
* country: "country"
|
|
148
|
+
* }]
|
|
149
|
+
* }, {
|
|
150
|
+
* relationship: ["SELF", "SELF"],
|
|
151
|
+
* name: {
|
|
152
|
+
* family: "family",
|
|
153
|
+
* given: ["given", "given"],
|
|
154
|
+
* use: "USUAL"
|
|
155
|
+
* },
|
|
156
|
+
* telecoms: [{
|
|
157
|
+
* value: "value",
|
|
158
|
+
* use: "HOME"
|
|
159
|
+
* }, {
|
|
160
|
+
* value: "value",
|
|
161
|
+
* use: "HOME"
|
|
156
162
|
* }],
|
|
157
|
-
*
|
|
158
|
-
*
|
|
163
|
+
* addresses: [{
|
|
164
|
+
* use: "HOME",
|
|
165
|
+
* line: ["line", "line"],
|
|
166
|
+
* city: "city",
|
|
167
|
+
* state: "state",
|
|
168
|
+
* postalCode: "postal_code",
|
|
169
|
+
* country: "country"
|
|
170
|
+
* }, {
|
|
171
|
+
* use: "HOME",
|
|
172
|
+
* line: ["line", "line"],
|
|
173
|
+
* city: "city",
|
|
174
|
+
* state: "state",
|
|
175
|
+
* postalCode: "postal_code",
|
|
176
|
+
* country: "country"
|
|
177
|
+
* }]
|
|
159
178
|
* }],
|
|
160
179
|
* generalPractitioners: [{
|
|
161
180
|
* name: {
|
|
162
|
-
* family: "
|
|
163
|
-
* given: ["
|
|
164
|
-
* use: "USUAL"
|
|
165
|
-
* period: {},
|
|
166
|
-
* suffix: "string"
|
|
181
|
+
* family: "family",
|
|
182
|
+
* given: ["given", "given"],
|
|
183
|
+
* use: "USUAL"
|
|
167
184
|
* },
|
|
168
|
-
* type: "PRIMARY",
|
|
169
|
-
* npi: "string",
|
|
170
185
|
* telecoms: [{
|
|
171
|
-
* value: "
|
|
186
|
+
* value: "value",
|
|
172
187
|
* use: "HOME"
|
|
173
|
-
* }
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
|
|
183
|
-
* nonInsurancePayerAssociations: [{
|
|
184
|
-
* id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
|
|
185
|
-
* }],
|
|
186
|
-
* guarantor: {
|
|
187
|
-
* name: {
|
|
188
|
-
* family: "string",
|
|
189
|
-
* given: ["string"],
|
|
190
|
-
* use: "USUAL",
|
|
191
|
-
* period: {},
|
|
192
|
-
* suffix: "string"
|
|
193
|
-
* },
|
|
194
|
-
* telecom: {
|
|
195
|
-
* value: "string",
|
|
196
|
-
* use: "HOME"
|
|
197
|
-
* },
|
|
198
|
-
* email: "string",
|
|
199
|
-
* birthDate: "2023-01-15",
|
|
200
|
-
* address: {
|
|
201
|
-
* use: "HOME",
|
|
202
|
-
* line: ["string"],
|
|
203
|
-
* city: "string",
|
|
204
|
-
* state: "string",
|
|
205
|
-
* postalCode: "string",
|
|
206
|
-
* country: "string",
|
|
207
|
-
* period: {}
|
|
208
|
-
* }
|
|
209
|
-
* },
|
|
210
|
-
* selfPay: true,
|
|
211
|
-
* authorizations: [{
|
|
212
|
-
* payerId: CandidApi.preEncounter.PayerId("string"),
|
|
213
|
-
* payerName: "string",
|
|
214
|
-
* additionalPayerInformation: {},
|
|
215
|
-
* authorizationNumber: "string",
|
|
216
|
-
* cptCode: "string",
|
|
217
|
-
* applyForAllCptCodes: true,
|
|
218
|
-
* units: "VISIT",
|
|
219
|
-
* quantity: 1,
|
|
220
|
-
* period: {},
|
|
221
|
-
* notes: "string"
|
|
222
|
-
* }],
|
|
223
|
-
* referrals: [{
|
|
224
|
-
* provider: {
|
|
225
|
-
* name: {
|
|
226
|
-
* family: "string",
|
|
227
|
-
* given: ["string"],
|
|
228
|
-
* use: "USUAL",
|
|
229
|
-
* period: {},
|
|
230
|
-
* suffix: "string"
|
|
231
|
-
* },
|
|
232
|
-
* type: "PRIMARY",
|
|
233
|
-
* npi: "string",
|
|
234
|
-
* telecoms: [{
|
|
235
|
-
* value: "string",
|
|
236
|
-
* use: "HOME"
|
|
237
|
-
* }],
|
|
238
|
-
* addresses: [],
|
|
239
|
-
* period: {},
|
|
240
|
-
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
|
|
241
|
-
* fax: "string"
|
|
188
|
+
* }, {
|
|
189
|
+
* value: "value",
|
|
190
|
+
* use: "HOME"
|
|
191
|
+
* }]
|
|
192
|
+
* }, {
|
|
193
|
+
* name: {
|
|
194
|
+
* family: "family",
|
|
195
|
+
* given: ["given", "given"],
|
|
196
|
+
* use: "USUAL"
|
|
242
197
|
* },
|
|
243
|
-
*
|
|
198
|
+
* telecoms: [{
|
|
199
|
+
* value: "value",
|
|
200
|
+
* use: "HOME"
|
|
201
|
+
* }, {
|
|
202
|
+
* value: "value",
|
|
203
|
+
* use: "HOME"
|
|
204
|
+
* }]
|
|
244
205
|
* }],
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
* tagIds: [CandidApi.preEncounter.TagId("string")]
|
|
206
|
+
* filingOrder: {
|
|
207
|
+
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
208
|
+
* }
|
|
249
209
|
* }
|
|
250
210
|
* })
|
|
251
211
|
*/
|
|
@@ -260,7 +220,7 @@ class V1 {
|
|
|
260
220
|
const _response = yield core.fetcher({
|
|
261
221
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
|
|
262
222
|
method: "POST",
|
|
263
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
223
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
264
224
|
contentType: "application/json",
|
|
265
225
|
queryParameters: _queryParams,
|
|
266
226
|
requestType: "json",
|
|
@@ -303,194 +263,154 @@ class V1 {
|
|
|
303
263
|
});
|
|
304
264
|
}
|
|
305
265
|
/**
|
|
306
|
-
* Adds a patient and hydrates their MRN with a pre-existing MRN.
|
|
266
|
+
* 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.
|
|
307
267
|
*
|
|
308
268
|
* @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
|
|
309
269
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
310
270
|
*
|
|
311
271
|
* @example
|
|
312
272
|
* await client.preEncounter.patients.v1.createWithMrn({
|
|
313
|
-
* skipDuplicateCheck: true,
|
|
314
273
|
* body: {
|
|
315
|
-
* mrn: "string",
|
|
316
274
|
* name: {
|
|
317
|
-
* family: "
|
|
318
|
-
* given: ["
|
|
319
|
-
* use: "USUAL"
|
|
320
|
-
* period: {},
|
|
321
|
-
* suffix: "string"
|
|
275
|
+
* family: "family",
|
|
276
|
+
* given: ["given", "given"],
|
|
277
|
+
* use: "USUAL"
|
|
322
278
|
* },
|
|
323
279
|
* otherNames: [{
|
|
324
|
-
* family: "
|
|
325
|
-
* given: ["
|
|
326
|
-
* use: "USUAL"
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
* value: "string",
|
|
332
|
-
* system: "string"
|
|
280
|
+
* family: "family",
|
|
281
|
+
* given: ["given", "given"],
|
|
282
|
+
* use: "USUAL"
|
|
283
|
+
* }, {
|
|
284
|
+
* family: "family",
|
|
285
|
+
* given: ["given", "given"],
|
|
286
|
+
* use: "USUAL"
|
|
333
287
|
* }],
|
|
334
|
-
* gender: "MAN",
|
|
335
288
|
* birthDate: "2023-01-15",
|
|
336
|
-
* socialSecurityNumber: "string",
|
|
337
289
|
* biologicalSex: "FEMALE",
|
|
338
|
-
* sexualOrientation: "HETEROSEXUAL",
|
|
339
|
-
* pronouns: ["string"],
|
|
340
|
-
* race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
|
|
341
|
-
* ethnicity: "HISPANIC_OR_LATINO",
|
|
342
|
-
* disabilityStatus: "DISABLED",
|
|
343
|
-
* maritalStatus: "ANNULLED",
|
|
344
|
-
* deceased: "2024-01-15T09:30:00Z",
|
|
345
|
-
* multipleBirth: 1,
|
|
346
290
|
* primaryAddress: {
|
|
347
291
|
* use: "HOME",
|
|
348
|
-
* line: ["
|
|
349
|
-
* city: "
|
|
350
|
-
* state: "
|
|
351
|
-
* postalCode: "
|
|
352
|
-
* country: "
|
|
353
|
-
* period: {}
|
|
292
|
+
* line: ["line", "line"],
|
|
293
|
+
* city: "city",
|
|
294
|
+
* state: "state",
|
|
295
|
+
* postalCode: "postal_code",
|
|
296
|
+
* country: "country"
|
|
354
297
|
* },
|
|
355
298
|
* otherAddresses: [{
|
|
356
299
|
* use: "HOME",
|
|
357
|
-
* line: ["
|
|
358
|
-
* city: "
|
|
359
|
-
* state: "
|
|
360
|
-
* postalCode: "
|
|
361
|
-
* country: "
|
|
362
|
-
*
|
|
300
|
+
* line: ["line", "line"],
|
|
301
|
+
* city: "city",
|
|
302
|
+
* state: "state",
|
|
303
|
+
* postalCode: "postal_code",
|
|
304
|
+
* country: "country"
|
|
305
|
+
* }, {
|
|
306
|
+
* use: "HOME",
|
|
307
|
+
* line: ["line", "line"],
|
|
308
|
+
* city: "city",
|
|
309
|
+
* state: "state",
|
|
310
|
+
* postalCode: "postal_code",
|
|
311
|
+
* country: "country"
|
|
363
312
|
* }],
|
|
364
313
|
* primaryTelecom: {
|
|
365
|
-
* value: "
|
|
314
|
+
* value: "value",
|
|
366
315
|
* use: "HOME"
|
|
367
316
|
* },
|
|
368
317
|
* otherTelecoms: [{
|
|
369
|
-
* value: "
|
|
318
|
+
* value: "value",
|
|
319
|
+
* use: "HOME"
|
|
320
|
+
* }, {
|
|
321
|
+
* value: "value",
|
|
370
322
|
* use: "HOME"
|
|
371
323
|
* }],
|
|
372
|
-
* email: "string",
|
|
373
|
-
* electronicCommunicationOptIn: true,
|
|
374
|
-
* photo: "string",
|
|
375
|
-
* language: "string",
|
|
376
|
-
* externalProvenance: {
|
|
377
|
-
* externalId: "string",
|
|
378
|
-
* systemName: "string"
|
|
379
|
-
* },
|
|
380
324
|
* contacts: [{
|
|
381
|
-
* relationship: ["SELF"],
|
|
325
|
+
* relationship: ["SELF", "SELF"],
|
|
382
326
|
* name: {
|
|
383
|
-
* family: "
|
|
384
|
-
* given: ["
|
|
385
|
-
* use: "USUAL"
|
|
386
|
-
* period: {},
|
|
387
|
-
* suffix: "string"
|
|
327
|
+
* family: "family",
|
|
328
|
+
* given: ["given", "given"],
|
|
329
|
+
* use: "USUAL"
|
|
388
330
|
* },
|
|
389
331
|
* telecoms: [{
|
|
390
|
-
* value: "
|
|
332
|
+
* value: "value",
|
|
333
|
+
* use: "HOME"
|
|
334
|
+
* }, {
|
|
335
|
+
* value: "value",
|
|
391
336
|
* use: "HOME"
|
|
392
337
|
* }],
|
|
393
338
|
* addresses: [{
|
|
394
339
|
* use: "HOME",
|
|
395
|
-
* line: ["
|
|
396
|
-
* city: "
|
|
397
|
-
* state: "
|
|
398
|
-
* postalCode: "
|
|
399
|
-
* country: "
|
|
400
|
-
*
|
|
340
|
+
* line: ["line", "line"],
|
|
341
|
+
* city: "city",
|
|
342
|
+
* state: "state",
|
|
343
|
+
* postalCode: "postal_code",
|
|
344
|
+
* country: "country"
|
|
345
|
+
* }, {
|
|
346
|
+
* use: "HOME",
|
|
347
|
+
* line: ["line", "line"],
|
|
348
|
+
* city: "city",
|
|
349
|
+
* state: "state",
|
|
350
|
+
* postalCode: "postal_code",
|
|
351
|
+
* country: "country"
|
|
352
|
+
* }]
|
|
353
|
+
* }, {
|
|
354
|
+
* relationship: ["SELF", "SELF"],
|
|
355
|
+
* name: {
|
|
356
|
+
* family: "family",
|
|
357
|
+
* given: ["given", "given"],
|
|
358
|
+
* use: "USUAL"
|
|
359
|
+
* },
|
|
360
|
+
* telecoms: [{
|
|
361
|
+
* value: "value",
|
|
362
|
+
* use: "HOME"
|
|
363
|
+
* }, {
|
|
364
|
+
* value: "value",
|
|
365
|
+
* use: "HOME"
|
|
401
366
|
* }],
|
|
402
|
-
*
|
|
403
|
-
*
|
|
367
|
+
* addresses: [{
|
|
368
|
+
* use: "HOME",
|
|
369
|
+
* line: ["line", "line"],
|
|
370
|
+
* city: "city",
|
|
371
|
+
* state: "state",
|
|
372
|
+
* postalCode: "postal_code",
|
|
373
|
+
* country: "country"
|
|
374
|
+
* }, {
|
|
375
|
+
* use: "HOME",
|
|
376
|
+
* line: ["line", "line"],
|
|
377
|
+
* city: "city",
|
|
378
|
+
* state: "state",
|
|
379
|
+
* postalCode: "postal_code",
|
|
380
|
+
* country: "country"
|
|
381
|
+
* }]
|
|
404
382
|
* }],
|
|
405
383
|
* generalPractitioners: [{
|
|
406
384
|
* name: {
|
|
407
|
-
* family: "
|
|
408
|
-
* given: ["
|
|
409
|
-
* use: "USUAL"
|
|
410
|
-
* period: {},
|
|
411
|
-
* suffix: "string"
|
|
385
|
+
* family: "family",
|
|
386
|
+
* given: ["given", "given"],
|
|
387
|
+
* use: "USUAL"
|
|
412
388
|
* },
|
|
413
|
-
* type: "PRIMARY",
|
|
414
|
-
* npi: "string",
|
|
415
389
|
* telecoms: [{
|
|
416
|
-
* value: "
|
|
390
|
+
* value: "value",
|
|
417
391
|
* use: "HOME"
|
|
418
|
-
* }
|
|
419
|
-
*
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
392
|
+
* }, {
|
|
393
|
+
* value: "value",
|
|
394
|
+
* use: "HOME"
|
|
395
|
+
* }]
|
|
396
|
+
* }, {
|
|
397
|
+
* name: {
|
|
398
|
+
* family: "family",
|
|
399
|
+
* given: ["given", "given"],
|
|
400
|
+
* use: "USUAL"
|
|
401
|
+
* },
|
|
402
|
+
* telecoms: [{
|
|
403
|
+
* value: "value",
|
|
404
|
+
* use: "HOME"
|
|
405
|
+
* }, {
|
|
406
|
+
* value: "value",
|
|
407
|
+
* use: "HOME"
|
|
408
|
+
* }]
|
|
423
409
|
* }],
|
|
424
410
|
* filingOrder: {
|
|
425
|
-
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
426
|
-
* },
|
|
427
|
-
* nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
|
|
428
|
-
* nonInsurancePayerAssociations: [{
|
|
429
|
-
* id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
|
|
430
|
-
* }],
|
|
431
|
-
* guarantor: {
|
|
432
|
-
* name: {
|
|
433
|
-
* family: "string",
|
|
434
|
-
* given: ["string"],
|
|
435
|
-
* use: "USUAL",
|
|
436
|
-
* period: {},
|
|
437
|
-
* suffix: "string"
|
|
438
|
-
* },
|
|
439
|
-
* telecom: {
|
|
440
|
-
* value: "string",
|
|
441
|
-
* use: "HOME"
|
|
442
|
-
* },
|
|
443
|
-
* email: "string",
|
|
444
|
-
* birthDate: "2023-01-15",
|
|
445
|
-
* address: {
|
|
446
|
-
* use: "HOME",
|
|
447
|
-
* line: ["string"],
|
|
448
|
-
* city: "string",
|
|
449
|
-
* state: "string",
|
|
450
|
-
* postalCode: "string",
|
|
451
|
-
* country: "string",
|
|
452
|
-
* period: {}
|
|
453
|
-
* }
|
|
411
|
+
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
454
412
|
* },
|
|
455
|
-
*
|
|
456
|
-
* authorizations: [{
|
|
457
|
-
* payerId: CandidApi.preEncounter.PayerId("string"),
|
|
458
|
-
* payerName: "string",
|
|
459
|
-
* additionalPayerInformation: {},
|
|
460
|
-
* authorizationNumber: "string",
|
|
461
|
-
* cptCode: "string",
|
|
462
|
-
* applyForAllCptCodes: true,
|
|
463
|
-
* units: "VISIT",
|
|
464
|
-
* quantity: 1,
|
|
465
|
-
* period: {},
|
|
466
|
-
* notes: "string"
|
|
467
|
-
* }],
|
|
468
|
-
* referrals: [{
|
|
469
|
-
* provider: {
|
|
470
|
-
* name: {
|
|
471
|
-
* family: "string",
|
|
472
|
-
* given: ["string"],
|
|
473
|
-
* use: "USUAL",
|
|
474
|
-
* period: {},
|
|
475
|
-
* suffix: "string"
|
|
476
|
-
* },
|
|
477
|
-
* type: "PRIMARY",
|
|
478
|
-
* npi: "string",
|
|
479
|
-
* telecoms: [{
|
|
480
|
-
* value: "string",
|
|
481
|
-
* use: "HOME"
|
|
482
|
-
* }],
|
|
483
|
-
* addresses: [],
|
|
484
|
-
* period: {},
|
|
485
|
-
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
|
|
486
|
-
* fax: "string"
|
|
487
|
-
* },
|
|
488
|
-
* referralNumber: "string"
|
|
489
|
-
* }],
|
|
490
|
-
* primaryServiceFacilityId: "string",
|
|
491
|
-
* doNotInvoiceReason: "BANKRUPTCY",
|
|
492
|
-
* noteIds: [CandidApi.preEncounter.NoteId("string")],
|
|
493
|
-
* tagIds: [CandidApi.preEncounter.TagId("string")]
|
|
413
|
+
* mrn: "mrn"
|
|
494
414
|
* }
|
|
495
415
|
* })
|
|
496
416
|
*/
|
|
@@ -505,7 +425,7 @@ class V1 {
|
|
|
505
425
|
const _response = yield core.fetcher({
|
|
506
426
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/with_mrn"),
|
|
507
427
|
method: "POST",
|
|
508
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
428
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
509
429
|
contentType: "application/json",
|
|
510
430
|
queryParameters: _queryParams,
|
|
511
431
|
requestType: "json",
|
|
@@ -555,13 +475,7 @@ class V1 {
|
|
|
555
475
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
556
476
|
*
|
|
557
477
|
* @example
|
|
558
|
-
* await client.preEncounter.patients.v1.getMulti(
|
|
559
|
-
* limit: 1,
|
|
560
|
-
* mrn: "string",
|
|
561
|
-
* pageToken: CandidApi.preEncounter.PageToken("string"),
|
|
562
|
-
* sortField: CandidApi.preEncounter.patients.v1.PatientSortField("string"),
|
|
563
|
-
* sortDirection: "asc"
|
|
564
|
-
* })
|
|
478
|
+
* await client.preEncounter.patients.v1.getMulti()
|
|
565
479
|
*/
|
|
566
480
|
getMulti() {
|
|
567
481
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
@@ -588,7 +502,7 @@ class V1 {
|
|
|
588
502
|
const _response = yield core.fetcher({
|
|
589
503
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/get_multi"),
|
|
590
504
|
method: "GET",
|
|
591
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
505
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
592
506
|
contentType: "application/json",
|
|
593
507
|
queryParameters: _queryParams,
|
|
594
508
|
requestType: "json",
|
|
@@ -614,14 +528,14 @@ class V1 {
|
|
|
614
528
|
});
|
|
615
529
|
}
|
|
616
530
|
/**
|
|
617
|
-
* Searches for referring providers that match the query parameters.
|
|
531
|
+
* Searches for referring providers that match the query parameters. The search is case-insensitive, supports fuzzy matching, and matches against provider name and NPI. The search criteria must be an alphanumeric string, and the search is limited to the first 20 results.
|
|
618
532
|
*
|
|
619
533
|
* @param {CandidApi.preEncounter.patients.v1.SearchProvidersRequest} request
|
|
620
534
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
621
535
|
*
|
|
622
536
|
* @example
|
|
623
537
|
* await client.preEncounter.patients.v1.searchProviders({
|
|
624
|
-
* searchCriteria: "
|
|
538
|
+
* searchCriteria: "search_criteria"
|
|
625
539
|
* })
|
|
626
540
|
*/
|
|
627
541
|
searchProviders(request, requestOptions) {
|
|
@@ -633,7 +547,7 @@ class V1 {
|
|
|
633
547
|
const _response = yield core.fetcher({
|
|
634
548
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/search_providers"),
|
|
635
549
|
method: "GET",
|
|
636
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
550
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
637
551
|
contentType: "application/json",
|
|
638
552
|
queryParameters: _queryParams,
|
|
639
553
|
requestType: "json",
|
|
@@ -665,7 +579,7 @@ class V1 {
|
|
|
665
579
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
666
580
|
*
|
|
667
581
|
* @example
|
|
668
|
-
* await client.preEncounter.patients.v1.get(CandidApi.preEncounter.PatientId("
|
|
582
|
+
* await client.preEncounter.patients.v1.get(CandidApi.preEncounter.PatientId("id"))
|
|
669
583
|
*/
|
|
670
584
|
get(id, requestOptions) {
|
|
671
585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -673,7 +587,7 @@ class V1 {
|
|
|
673
587
|
const _response = yield core.fetcher({
|
|
674
588
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}`),
|
|
675
589
|
method: "GET",
|
|
676
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
590
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
677
591
|
contentType: "application/json",
|
|
678
592
|
requestType: "json",
|
|
679
593
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -712,13 +626,13 @@ class V1 {
|
|
|
712
626
|
});
|
|
713
627
|
}
|
|
714
628
|
/**
|
|
715
|
-
* Gets a patient along with it's full history.
|
|
629
|
+
* Gets a patient along with it's full history. The return list is ordered by version ascending.
|
|
716
630
|
*
|
|
717
631
|
* @param {CandidApi.preEncounter.PatientId} id
|
|
718
632
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
719
633
|
*
|
|
720
634
|
* @example
|
|
721
|
-
* await client.preEncounter.patients.v1.getHistory(CandidApi.preEncounter.PatientId("
|
|
635
|
+
* await client.preEncounter.patients.v1.getHistory(CandidApi.preEncounter.PatientId("id"))
|
|
722
636
|
*/
|
|
723
637
|
getHistory(id, requestOptions) {
|
|
724
638
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -726,7 +640,7 @@ class V1 {
|
|
|
726
640
|
const _response = yield core.fetcher({
|
|
727
641
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/history`),
|
|
728
642
|
method: "GET",
|
|
729
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
643
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
730
644
|
contentType: "application/json",
|
|
731
645
|
requestType: "json",
|
|
732
646
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -765,7 +679,7 @@ class V1 {
|
|
|
765
679
|
});
|
|
766
680
|
}
|
|
767
681
|
/**
|
|
768
|
-
* Updates a patient.
|
|
682
|
+
* Updates a patient. The path must contain the most recent version to prevent race conditions. Updating historic versions is not supported.
|
|
769
683
|
*
|
|
770
684
|
* @param {CandidApi.preEncounter.PatientId} id
|
|
771
685
|
* @param {string} version
|
|
@@ -773,185 +687,146 @@ class V1 {
|
|
|
773
687
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
774
688
|
*
|
|
775
689
|
* @example
|
|
776
|
-
* await client.preEncounter.patients.v1.update(CandidApi.preEncounter.PatientId("
|
|
690
|
+
* await client.preEncounter.patients.v1.update(CandidApi.preEncounter.PatientId("id"), "version", {
|
|
777
691
|
* name: {
|
|
778
|
-
* family: "
|
|
779
|
-
* given: ["
|
|
780
|
-
* use: "USUAL"
|
|
781
|
-
* period: {},
|
|
782
|
-
* suffix: "string"
|
|
692
|
+
* family: "family",
|
|
693
|
+
* given: ["given", "given"],
|
|
694
|
+
* use: "USUAL"
|
|
783
695
|
* },
|
|
784
696
|
* otherNames: [{
|
|
785
|
-
* family: "
|
|
786
|
-
* given: ["
|
|
787
|
-
* use: "USUAL"
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
792
|
-
* value: "string",
|
|
793
|
-
* system: "string"
|
|
697
|
+
* family: "family",
|
|
698
|
+
* given: ["given", "given"],
|
|
699
|
+
* use: "USUAL"
|
|
700
|
+
* }, {
|
|
701
|
+
* family: "family",
|
|
702
|
+
* given: ["given", "given"],
|
|
703
|
+
* use: "USUAL"
|
|
794
704
|
* }],
|
|
795
|
-
* gender: "MAN",
|
|
796
705
|
* birthDate: "2023-01-15",
|
|
797
|
-
* socialSecurityNumber: "string",
|
|
798
706
|
* biologicalSex: "FEMALE",
|
|
799
|
-
* sexualOrientation: "HETEROSEXUAL",
|
|
800
|
-
* pronouns: ["string"],
|
|
801
|
-
* race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
|
|
802
|
-
* ethnicity: "HISPANIC_OR_LATINO",
|
|
803
|
-
* disabilityStatus: "DISABLED",
|
|
804
|
-
* maritalStatus: "ANNULLED",
|
|
805
|
-
* deceased: "2024-01-15T09:30:00Z",
|
|
806
|
-
* multipleBirth: 1,
|
|
807
707
|
* primaryAddress: {
|
|
808
708
|
* use: "HOME",
|
|
809
|
-
* line: ["
|
|
810
|
-
* city: "
|
|
811
|
-
* state: "
|
|
812
|
-
* postalCode: "
|
|
813
|
-
* country: "
|
|
814
|
-
* period: {}
|
|
709
|
+
* line: ["line", "line"],
|
|
710
|
+
* city: "city",
|
|
711
|
+
* state: "state",
|
|
712
|
+
* postalCode: "postal_code",
|
|
713
|
+
* country: "country"
|
|
815
714
|
* },
|
|
816
715
|
* otherAddresses: [{
|
|
817
716
|
* use: "HOME",
|
|
818
|
-
* line: ["
|
|
819
|
-
* city: "
|
|
820
|
-
* state: "
|
|
821
|
-
* postalCode: "
|
|
822
|
-
* country: "
|
|
823
|
-
*
|
|
717
|
+
* line: ["line", "line"],
|
|
718
|
+
* city: "city",
|
|
719
|
+
* state: "state",
|
|
720
|
+
* postalCode: "postal_code",
|
|
721
|
+
* country: "country"
|
|
722
|
+
* }, {
|
|
723
|
+
* use: "HOME",
|
|
724
|
+
* line: ["line", "line"],
|
|
725
|
+
* city: "city",
|
|
726
|
+
* state: "state",
|
|
727
|
+
* postalCode: "postal_code",
|
|
728
|
+
* country: "country"
|
|
824
729
|
* }],
|
|
825
730
|
* primaryTelecom: {
|
|
826
|
-
* value: "
|
|
731
|
+
* value: "value",
|
|
827
732
|
* use: "HOME"
|
|
828
733
|
* },
|
|
829
734
|
* otherTelecoms: [{
|
|
830
|
-
* value: "
|
|
735
|
+
* value: "value",
|
|
736
|
+
* use: "HOME"
|
|
737
|
+
* }, {
|
|
738
|
+
* value: "value",
|
|
831
739
|
* use: "HOME"
|
|
832
740
|
* }],
|
|
833
|
-
* email: "string",
|
|
834
|
-
* electronicCommunicationOptIn: true,
|
|
835
|
-
* photo: "string",
|
|
836
|
-
* language: "string",
|
|
837
|
-
* externalProvenance: {
|
|
838
|
-
* externalId: "string",
|
|
839
|
-
* systemName: "string"
|
|
840
|
-
* },
|
|
841
741
|
* contacts: [{
|
|
842
|
-
* relationship: ["SELF"],
|
|
742
|
+
* relationship: ["SELF", "SELF"],
|
|
843
743
|
* name: {
|
|
844
|
-
* family: "
|
|
845
|
-
* given: ["
|
|
846
|
-
* use: "USUAL"
|
|
847
|
-
* period: {},
|
|
848
|
-
* suffix: "string"
|
|
744
|
+
* family: "family",
|
|
745
|
+
* given: ["given", "given"],
|
|
746
|
+
* use: "USUAL"
|
|
849
747
|
* },
|
|
850
748
|
* telecoms: [{
|
|
851
|
-
* value: "
|
|
749
|
+
* value: "value",
|
|
750
|
+
* use: "HOME"
|
|
751
|
+
* }, {
|
|
752
|
+
* value: "value",
|
|
852
753
|
* use: "HOME"
|
|
853
754
|
* }],
|
|
854
755
|
* addresses: [{
|
|
855
756
|
* use: "HOME",
|
|
856
|
-
* line: ["
|
|
857
|
-
* city: "
|
|
858
|
-
* state: "
|
|
859
|
-
* postalCode: "
|
|
860
|
-
* country: "
|
|
861
|
-
*
|
|
757
|
+
* line: ["line", "line"],
|
|
758
|
+
* city: "city",
|
|
759
|
+
* state: "state",
|
|
760
|
+
* postalCode: "postal_code",
|
|
761
|
+
* country: "country"
|
|
762
|
+
* }, {
|
|
763
|
+
* use: "HOME",
|
|
764
|
+
* line: ["line", "line"],
|
|
765
|
+
* city: "city",
|
|
766
|
+
* state: "state",
|
|
767
|
+
* postalCode: "postal_code",
|
|
768
|
+
* country: "country"
|
|
769
|
+
* }]
|
|
770
|
+
* }, {
|
|
771
|
+
* relationship: ["SELF", "SELF"],
|
|
772
|
+
* name: {
|
|
773
|
+
* family: "family",
|
|
774
|
+
* given: ["given", "given"],
|
|
775
|
+
* use: "USUAL"
|
|
776
|
+
* },
|
|
777
|
+
* telecoms: [{
|
|
778
|
+
* value: "value",
|
|
779
|
+
* use: "HOME"
|
|
780
|
+
* }, {
|
|
781
|
+
* value: "value",
|
|
782
|
+
* use: "HOME"
|
|
862
783
|
* }],
|
|
863
|
-
*
|
|
864
|
-
*
|
|
784
|
+
* addresses: [{
|
|
785
|
+
* use: "HOME",
|
|
786
|
+
* line: ["line", "line"],
|
|
787
|
+
* city: "city",
|
|
788
|
+
* state: "state",
|
|
789
|
+
* postalCode: "postal_code",
|
|
790
|
+
* country: "country"
|
|
791
|
+
* }, {
|
|
792
|
+
* use: "HOME",
|
|
793
|
+
* line: ["line", "line"],
|
|
794
|
+
* city: "city",
|
|
795
|
+
* state: "state",
|
|
796
|
+
* postalCode: "postal_code",
|
|
797
|
+
* country: "country"
|
|
798
|
+
* }]
|
|
865
799
|
* }],
|
|
866
800
|
* generalPractitioners: [{
|
|
867
801
|
* name: {
|
|
868
|
-
* family: "
|
|
869
|
-
* given: ["
|
|
870
|
-
* use: "USUAL"
|
|
871
|
-
* period: {},
|
|
872
|
-
* suffix: "string"
|
|
802
|
+
* family: "family",
|
|
803
|
+
* given: ["given", "given"],
|
|
804
|
+
* use: "USUAL"
|
|
873
805
|
* },
|
|
874
|
-
* type: "PRIMARY",
|
|
875
|
-
* npi: "string",
|
|
876
806
|
* telecoms: [{
|
|
877
|
-
* value: "
|
|
807
|
+
* value: "value",
|
|
878
808
|
* use: "HOME"
|
|
879
|
-
* }
|
|
880
|
-
*
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
* nonInsurancePayers: [CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")],
|
|
889
|
-
* nonInsurancePayerAssociations: [{
|
|
890
|
-
* id: CandidApi.preEncounter.CanonicalNonInsurancePayerId("string")
|
|
891
|
-
* }],
|
|
892
|
-
* guarantor: {
|
|
893
|
-
* name: {
|
|
894
|
-
* family: "string",
|
|
895
|
-
* given: ["string"],
|
|
896
|
-
* use: "USUAL",
|
|
897
|
-
* period: {},
|
|
898
|
-
* suffix: "string"
|
|
899
|
-
* },
|
|
900
|
-
* telecom: {
|
|
901
|
-
* value: "string",
|
|
902
|
-
* use: "HOME"
|
|
903
|
-
* },
|
|
904
|
-
* email: "string",
|
|
905
|
-
* birthDate: "2023-01-15",
|
|
906
|
-
* address: {
|
|
907
|
-
* use: "HOME",
|
|
908
|
-
* line: ["string"],
|
|
909
|
-
* city: "string",
|
|
910
|
-
* state: "string",
|
|
911
|
-
* postalCode: "string",
|
|
912
|
-
* country: "string",
|
|
913
|
-
* period: {}
|
|
914
|
-
* }
|
|
915
|
-
* },
|
|
916
|
-
* selfPay: true,
|
|
917
|
-
* authorizations: [{
|
|
918
|
-
* payerId: CandidApi.preEncounter.PayerId("string"),
|
|
919
|
-
* payerName: "string",
|
|
920
|
-
* additionalPayerInformation: {},
|
|
921
|
-
* authorizationNumber: "string",
|
|
922
|
-
* cptCode: "string",
|
|
923
|
-
* applyForAllCptCodes: true,
|
|
924
|
-
* units: "VISIT",
|
|
925
|
-
* quantity: 1,
|
|
926
|
-
* period: {},
|
|
927
|
-
* notes: "string"
|
|
928
|
-
* }],
|
|
929
|
-
* referrals: [{
|
|
930
|
-
* provider: {
|
|
931
|
-
* name: {
|
|
932
|
-
* family: "string",
|
|
933
|
-
* given: ["string"],
|
|
934
|
-
* use: "USUAL",
|
|
935
|
-
* period: {},
|
|
936
|
-
* suffix: "string"
|
|
937
|
-
* },
|
|
938
|
-
* type: "PRIMARY",
|
|
939
|
-
* npi: "string",
|
|
940
|
-
* telecoms: [{
|
|
941
|
-
* value: "string",
|
|
942
|
-
* use: "HOME"
|
|
943
|
-
* }],
|
|
944
|
-
* addresses: [],
|
|
945
|
-
* period: {},
|
|
946
|
-
* canonicalId: CandidApi.preEncounter.CanonicalProviderId("string"),
|
|
947
|
-
* fax: "string"
|
|
809
|
+
* }, {
|
|
810
|
+
* value: "value",
|
|
811
|
+
* use: "HOME"
|
|
812
|
+
* }]
|
|
813
|
+
* }, {
|
|
814
|
+
* name: {
|
|
815
|
+
* family: "family",
|
|
816
|
+
* given: ["given", "given"],
|
|
817
|
+
* use: "USUAL"
|
|
948
818
|
* },
|
|
949
|
-
*
|
|
819
|
+
* telecoms: [{
|
|
820
|
+
* value: "value",
|
|
821
|
+
* use: "HOME"
|
|
822
|
+
* }, {
|
|
823
|
+
* value: "value",
|
|
824
|
+
* use: "HOME"
|
|
825
|
+
* }]
|
|
950
826
|
* }],
|
|
951
|
-
*
|
|
952
|
-
*
|
|
953
|
-
*
|
|
954
|
-
* tagIds: [CandidApi.preEncounter.TagId("string")]
|
|
827
|
+
* filingOrder: {
|
|
828
|
+
* coverages: [CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]
|
|
829
|
+
* }
|
|
955
830
|
* })
|
|
956
831
|
*/
|
|
957
832
|
update(id, version, request, requestOptions) {
|
|
@@ -960,7 +835,7 @@ class V1 {
|
|
|
960
835
|
const _response = yield core.fetcher({
|
|
961
836
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
962
837
|
method: "PUT",
|
|
963
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
838
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
964
839
|
contentType: "application/json",
|
|
965
840
|
requestType: "json",
|
|
966
841
|
body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
|
|
@@ -1003,14 +878,14 @@ class V1 {
|
|
|
1003
878
|
});
|
|
1004
879
|
}
|
|
1005
880
|
/**
|
|
1006
|
-
* Sets a patient as deactivated.
|
|
881
|
+
* Sets a patient as deactivated. The path must contain the most recent version plus 1 to prevent race conditions. Deactivating historic versions is not supported.
|
|
1007
882
|
*
|
|
1008
883
|
* @param {CandidApi.preEncounter.PatientId} id
|
|
1009
884
|
* @param {string} version
|
|
1010
885
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
1011
886
|
*
|
|
1012
887
|
* @example
|
|
1013
|
-
* await client.preEncounter.patients.v1.deactivate(CandidApi.preEncounter.PatientId("
|
|
888
|
+
* await client.preEncounter.patients.v1.deactivate(CandidApi.preEncounter.PatientId("id"), "version")
|
|
1014
889
|
*/
|
|
1015
890
|
deactivate(id, version, requestOptions) {
|
|
1016
891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1018,7 +893,7 @@ class V1 {
|
|
|
1018
893
|
const _response = yield core.fetcher({
|
|
1019
894
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
1020
895
|
method: "DELETE",
|
|
1021
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
896
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1022
897
|
contentType: "application/json",
|
|
1023
898
|
requestType: "json",
|
|
1024
899
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1053,14 +928,14 @@ class V1 {
|
|
|
1053
928
|
});
|
|
1054
929
|
}
|
|
1055
930
|
/**
|
|
1056
|
-
* Removes the deactivated flag for a patient.
|
|
931
|
+
* Removes the deactivated flag for a patient. The path must contain the most recent version plus 1 to prevent race conditions. Reactivating historic versions is not supported.
|
|
1057
932
|
*
|
|
1058
933
|
* @param {CandidApi.preEncounter.PatientId} id
|
|
1059
934
|
* @param {string} version
|
|
1060
935
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
1061
936
|
*
|
|
1062
937
|
* @example
|
|
1063
|
-
* await client.preEncounter.patients.v1.reactivate(CandidApi.preEncounter.PatientId("
|
|
938
|
+
* await client.preEncounter.patients.v1.reactivate(CandidApi.preEncounter.PatientId("id"), "version")
|
|
1064
939
|
*/
|
|
1065
940
|
reactivate(id, version, requestOptions) {
|
|
1066
941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1068,7 +943,7 @@ class V1 {
|
|
|
1068
943
|
const _response = yield core.fetcher({
|
|
1069
944
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
1070
945
|
method: "PATCH",
|
|
1071
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
946
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1072
947
|
contentType: "application/json",
|
|
1073
948
|
requestType: "json",
|
|
1074
949
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1109,10 +984,7 @@ class V1 {
|
|
|
1109
984
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
1110
985
|
*
|
|
1111
986
|
* @example
|
|
1112
|
-
* await client.preEncounter.patients.v1.search(
|
|
1113
|
-
* mrn: "string",
|
|
1114
|
-
* similarNameOrdering: "string"
|
|
1115
|
-
* })
|
|
987
|
+
* await client.preEncounter.patients.v1.search()
|
|
1116
988
|
*/
|
|
1117
989
|
search() {
|
|
1118
990
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
@@ -1128,7 +1000,7 @@ class V1 {
|
|
|
1128
1000
|
const _response = yield core.fetcher({
|
|
1129
1001
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
|
|
1130
1002
|
method: "GET",
|
|
1131
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
1003
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1132
1004
|
contentType: "application/json",
|
|
1133
1005
|
queryParameters: _queryParams,
|
|
1134
1006
|
requestType: "json",
|
|
@@ -1154,7 +1026,7 @@ class V1 {
|
|
|
1154
1026
|
});
|
|
1155
1027
|
}
|
|
1156
1028
|
/**
|
|
1157
|
-
* Scans up to 100 patient updates.
|
|
1029
|
+
* Scans up to 100 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
|
|
1158
1030
|
*
|
|
1159
1031
|
* @param {CandidApi.preEncounter.patients.v1.PatientScanRequest} request
|
|
1160
1032
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1173,7 +1045,7 @@ class V1 {
|
|
|
1173
1045
|
const _response = yield core.fetcher({
|
|
1174
1046
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/updates/scan"),
|
|
1175
1047
|
method: "GET",
|
|
1176
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
1048
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1177
1049
|
contentType: "application/json",
|
|
1178
1050
|
queryParameters: _queryParams,
|
|
1179
1051
|
requestType: "json",
|