candidhealth 0.45.0 → 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/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 +1 -1
- 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/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/encounters/resources/v4/client/Client.d.ts +49 -674
- package/api/resources/encounters/resources/v4/client/Client.js +54 -679
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
- package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +7 -7
- 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/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/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/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 +1 -1
- 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/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/encounters/resources/v4/client/Client.d.ts +49 -674
- package/dist/api/resources/encounters/resources/v4/client/Client.js +54 -679
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -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 +7 -7
- 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/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/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/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/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/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 -2366
- 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/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/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../../../index";
|
|
5
5
|
/**
|
|
6
|
-
* The field to order by.
|
|
6
|
+
* The field to order by. Valid values are either keys on the patient object or a special ordering "similar_name:<search_string>" (Ex: similar_name:John). Similar name ordering uses trigrams to fuzzy match patient names to the search criteria.
|
|
7
7
|
*/
|
|
8
8
|
export type PatientSortField = string & {
|
|
9
9
|
preEncounter_patients_v1_PatientSortField: void;
|
|
@@ -32,7 +32,7 @@ export declare class V1 {
|
|
|
32
32
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
|
-
* await client.preEncounter.tags.v1.get(CandidApi.preEncounter.TagId("
|
|
35
|
+
* await client.preEncounter.tags.v1.get(CandidApi.preEncounter.TagId("id"))
|
|
36
36
|
*/
|
|
37
37
|
get(id: CandidApi.preEncounter.TagId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.tags.v1.Tag, CandidApi.preEncounter.tags.v1.get.Error>>;
|
|
38
38
|
/**
|
|
@@ -42,10 +42,7 @@ export declare class V1 {
|
|
|
42
42
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.preEncounter.tags.v1.getAll(
|
|
46
|
-
* limit: 1,
|
|
47
|
-
* pageToken: CandidApi.preEncounter.PageToken("string")
|
|
48
|
-
* })
|
|
45
|
+
* await client.preEncounter.tags.v1.getAll()
|
|
49
46
|
*/
|
|
50
47
|
getAll(request?: CandidApi.preEncounter.tags.v1.GetAllTagsRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.tags.v1.TagPage, CandidApi.preEncounter.tags.v1.getAll.Error>>;
|
|
51
48
|
/**
|
|
@@ -56,7 +53,7 @@ export declare class V1 {
|
|
|
56
53
|
*
|
|
57
54
|
* @example
|
|
58
55
|
* await client.preEncounter.tags.v1.create({
|
|
59
|
-
* value: "
|
|
56
|
+
* value: "value"
|
|
60
57
|
* })
|
|
61
58
|
*/
|
|
62
59
|
create(request: CandidApi.preEncounter.tags.v1.MutableTag, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.tags.v1.Tag, CandidApi.preEncounter.tags.v1.create.Error>>;
|
|
@@ -69,20 +66,20 @@ export declare class V1 {
|
|
|
69
66
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
67
|
*
|
|
71
68
|
* @example
|
|
72
|
-
* await client.preEncounter.tags.v1.update(CandidApi.preEncounter.TagId("
|
|
73
|
-
* value: "
|
|
69
|
+
* await client.preEncounter.tags.v1.update(CandidApi.preEncounter.TagId("id"), "version", {
|
|
70
|
+
* value: "value"
|
|
74
71
|
* })
|
|
75
72
|
*/
|
|
76
73
|
update(id: CandidApi.preEncounter.TagId, version: string, request: CandidApi.preEncounter.tags.v1.MutableTag, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.tags.v1.Tag, CandidApi.preEncounter.tags.v1.update.Error>>;
|
|
77
74
|
/**
|
|
78
|
-
* Sets a tag as deactivated.
|
|
75
|
+
* Sets a tag as deactivated. The path must contain the most recent version to prevent races.
|
|
79
76
|
*
|
|
80
77
|
* @param {CandidApi.preEncounter.TagId} id
|
|
81
78
|
* @param {string} version
|
|
82
79
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
80
|
*
|
|
84
81
|
* @example
|
|
85
|
-
* await client.preEncounter.tags.v1.deactivate(CandidApi.preEncounter.TagId("
|
|
82
|
+
* await client.preEncounter.tags.v1.deactivate(CandidApi.preEncounter.TagId("id"), "version")
|
|
86
83
|
*/
|
|
87
84
|
deactivate(id: CandidApi.preEncounter.TagId, version: string, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.preEncounter.tags.v1.deactivate.Error>>;
|
|
88
85
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
@@ -65,7 +65,7 @@ class V1 {
|
|
|
65
65
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.preEncounter.tags.v1.get(CandidApi.preEncounter.TagId("
|
|
68
|
+
* await client.preEncounter.tags.v1.get(CandidApi.preEncounter.TagId("id"))
|
|
69
69
|
*/
|
|
70
70
|
get(id, requestOptions) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -73,7 +73,7 @@ class V1 {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
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, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}`),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
76
|
+
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),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -104,10 +104,7 @@ class V1 {
|
|
|
104
104
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.preEncounter.tags.v1.getAll(
|
|
108
|
-
* limit: 1,
|
|
109
|
-
* pageToken: CandidApi.preEncounter.PageToken("string")
|
|
110
|
-
* })
|
|
107
|
+
* await client.preEncounter.tags.v1.getAll()
|
|
111
108
|
*/
|
|
112
109
|
getAll() {
|
|
113
110
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
@@ -123,7 +120,7 @@ class V1 {
|
|
|
123
120
|
const _response = yield core.fetcher({
|
|
124
121
|
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, "/tags/v1"),
|
|
125
122
|
method: "GET",
|
|
126
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
123
|
+
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),
|
|
127
124
|
contentType: "application/json",
|
|
128
125
|
queryParameters: _queryParams,
|
|
129
126
|
requestType: "json",
|
|
@@ -156,7 +153,7 @@ class V1 {
|
|
|
156
153
|
*
|
|
157
154
|
* @example
|
|
158
155
|
* await client.preEncounter.tags.v1.create({
|
|
159
|
-
* value: "
|
|
156
|
+
* value: "value"
|
|
160
157
|
* })
|
|
161
158
|
*/
|
|
162
159
|
create(request, requestOptions) {
|
|
@@ -165,7 +162,7 @@ class V1 {
|
|
|
165
162
|
const _response = yield core.fetcher({
|
|
166
163
|
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, "/tags/v1"),
|
|
167
164
|
method: "POST",
|
|
168
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
165
|
+
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),
|
|
169
166
|
contentType: "application/json",
|
|
170
167
|
requestType: "json",
|
|
171
168
|
body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -199,8 +196,8 @@ class V1 {
|
|
|
199
196
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
200
197
|
*
|
|
201
198
|
* @example
|
|
202
|
-
* await client.preEncounter.tags.v1.update(CandidApi.preEncounter.TagId("
|
|
203
|
-
* value: "
|
|
199
|
+
* await client.preEncounter.tags.v1.update(CandidApi.preEncounter.TagId("id"), "version", {
|
|
200
|
+
* value: "value"
|
|
204
201
|
* })
|
|
205
202
|
*/
|
|
206
203
|
update(id, version, request, requestOptions) {
|
|
@@ -209,7 +206,7 @@ class V1 {
|
|
|
209
206
|
const _response = yield core.fetcher({
|
|
210
207
|
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, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
211
208
|
method: "PUT",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
209
|
+
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),
|
|
213
210
|
contentType: "application/json",
|
|
214
211
|
requestType: "json",
|
|
215
212
|
body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -235,14 +232,14 @@ class V1 {
|
|
|
235
232
|
});
|
|
236
233
|
}
|
|
237
234
|
/**
|
|
238
|
-
* Sets a tag as deactivated.
|
|
235
|
+
* Sets a tag as deactivated. The path must contain the most recent version to prevent races.
|
|
239
236
|
*
|
|
240
237
|
* @param {CandidApi.preEncounter.TagId} id
|
|
241
238
|
* @param {string} version
|
|
242
239
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
243
240
|
*
|
|
244
241
|
* @example
|
|
245
|
-
* await client.preEncounter.tags.v1.deactivate(CandidApi.preEncounter.TagId("
|
|
242
|
+
* await client.preEncounter.tags.v1.deactivate(CandidApi.preEncounter.TagId("id"), "version")
|
|
246
243
|
*/
|
|
247
244
|
deactivate(id, version, requestOptions) {
|
|
248
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -250,7 +247,7 @@ class V1 {
|
|
|
250
247
|
const _response = yield core.fetcher({
|
|
251
248
|
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, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
252
249
|
method: "DELETE",
|
|
253
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
250
|
+
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),
|
|
254
251
|
contentType: "application/json",
|
|
255
252
|
requestType: "json",
|
|
256
253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -31,17 +31,7 @@ export declare class ServiceFacility {
|
|
|
31
31
|
* @param {ServiceFacility.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* await client.serviceFacility.update(CandidApi.ServiceFacilityId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
35
|
-
* organizationName: "Test Organization",
|
|
36
|
-
* address: {
|
|
37
|
-
* address1: "123 Main St",
|
|
38
|
-
* address2: "Apt 1",
|
|
39
|
-
* city: "New York",
|
|
40
|
-
* state: "NY",
|
|
41
|
-
* zipCode: "10001",
|
|
42
|
-
* zipPlusFourCode: "1234"
|
|
43
|
-
* }
|
|
44
|
-
* })
|
|
34
|
+
* await client.serviceFacility.update(CandidApi.ServiceFacilityId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
45
35
|
*/
|
|
46
36
|
update(serviceFacilityId: CandidApi.ServiceFacilityId, request: CandidApi.EncounterServiceFacilityUpdate, requestOptions?: ServiceFacility.RequestOptions): Promise<core.APIResponse<CandidApi.EncounterServiceFacility, CandidApi.serviceFacility.update.Error>>;
|
|
47
37
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
@@ -64,17 +64,7 @@ class ServiceFacility {
|
|
|
64
64
|
* @param {ServiceFacility.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.serviceFacility.update(CandidApi.ServiceFacilityId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
68
|
-
* organizationName: "Test Organization",
|
|
69
|
-
* address: {
|
|
70
|
-
* address1: "123 Main St",
|
|
71
|
-
* address2: "Apt 1",
|
|
72
|
-
* city: "New York",
|
|
73
|
-
* state: "NY",
|
|
74
|
-
* zipCode: "10001",
|
|
75
|
-
* zipPlusFourCode: "1234"
|
|
76
|
-
* }
|
|
77
|
-
* })
|
|
67
|
+
* await client.serviceFacility.update(CandidApi.ServiceFacilityId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
78
68
|
*/
|
|
79
69
|
update(serviceFacilityId, request, requestOptions) {
|
|
80
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -82,7 +72,7 @@ class ServiceFacility {
|
|
|
82
72
|
const _response = yield core.fetcher({
|
|
83
73
|
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).candidApi, `/api/service_facility/v2/${encodeURIComponent(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
|
|
84
74
|
method: "PATCH",
|
|
85
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
75
|
+
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),
|
|
86
76
|
contentType: "application/json",
|
|
87
77
|
requestType: "json",
|
|
88
78
|
body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -31,54 +31,10 @@ export declare class V2 {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* await client.serviceLines.v2.create({
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
37
|
-
* diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
38
|
-
* diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
39
|
-
* diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
40
|
-
* denialReason: {
|
|
41
|
-
* reason: "Authorization Required"
|
|
42
|
-
* },
|
|
43
|
-
* placeOfServiceCode: "01",
|
|
44
|
-
* procedureCode: "string",
|
|
45
|
-
* quantity: CandidApi.Decimal("string"),
|
|
34
|
+
* procedureCode: "procedure_code",
|
|
35
|
+
* quantity: CandidApi.Decimal("quantity"),
|
|
46
36
|
* units: "MJ",
|
|
47
|
-
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
48
|
-
* description: "string",
|
|
49
|
-
* dateOfService: "2023-01-15",
|
|
50
|
-
* endDateOfService: "2023-01-15",
|
|
51
|
-
* drugIdentification: {
|
|
52
|
-
* serviceIdQualifier: "EN",
|
|
53
|
-
* nationalDrugCode: "string",
|
|
54
|
-
* nationalDrugUnitCount: "string",
|
|
55
|
-
* measurementUnitCode: "ML",
|
|
56
|
-
* linkSequenceNumber: "string",
|
|
57
|
-
* pharmacyPrescriptionNumber: "string",
|
|
58
|
-
* conversionFormula: "string",
|
|
59
|
-
* drugDescription: "string"
|
|
60
|
-
* },
|
|
61
|
-
* orderingProvider: {
|
|
62
|
-
* npi: "string",
|
|
63
|
-
* taxonomyCode: "string",
|
|
64
|
-
* address: {
|
|
65
|
-
* address1: "123 Main St",
|
|
66
|
-
* address2: "Apt 1",
|
|
67
|
-
* city: "New York",
|
|
68
|
-
* state: "NY",
|
|
69
|
-
* zipCode: "10001",
|
|
70
|
-
* zipPlusFourCode: "1234"
|
|
71
|
-
* },
|
|
72
|
-
* firstName: "string",
|
|
73
|
-
* lastName: "string",
|
|
74
|
-
* organizationName: "string"
|
|
75
|
-
* },
|
|
76
|
-
* testResults: [{
|
|
77
|
-
* value: 1.1,
|
|
78
|
-
* resultType: "HEMATOCRIT"
|
|
79
|
-
* }],
|
|
80
|
-
* hasEpsdtIndicator: true,
|
|
81
|
-
* hasFamilyPlanningIndicator: true
|
|
37
|
+
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
82
38
|
* })
|
|
83
39
|
*/
|
|
84
40
|
create(request: CandidApi.serviceLines.v2.ServiceLineCreateStandalone, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.create.Error>>;
|
|
@@ -88,41 +44,7 @@ export declare class V2 {
|
|
|
88
44
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
45
|
*
|
|
90
46
|
* @example
|
|
91
|
-
* await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
92
|
-
* editReason: "string",
|
|
93
|
-
* modifiers: ["AV"],
|
|
94
|
-
* chargeAmountCents: 1,
|
|
95
|
-
* diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
96
|
-
* diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
97
|
-
* diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
98
|
-
* diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
99
|
-
* drugIdentification: {
|
|
100
|
-
* serviceIdQualifier: "EN",
|
|
101
|
-
* nationalDrugCode: "string",
|
|
102
|
-
* nationalDrugUnitCount: "string",
|
|
103
|
-
* measurementUnitCode: "ML",
|
|
104
|
-
* linkSequenceNumber: "string",
|
|
105
|
-
* pharmacyPrescriptionNumber: "string",
|
|
106
|
-
* conversionFormula: "string",
|
|
107
|
-
* drugDescription: "string"
|
|
108
|
-
* },
|
|
109
|
-
* denialReason: {
|
|
110
|
-
* reason: "Authorization Required"
|
|
111
|
-
* },
|
|
112
|
-
* placeOfServiceCode: "01",
|
|
113
|
-
* units: "MJ",
|
|
114
|
-
* procedureCode: "string",
|
|
115
|
-
* quantity: CandidApi.Decimal("string"),
|
|
116
|
-
* description: "string",
|
|
117
|
-
* dateOfService: "2023-01-15",
|
|
118
|
-
* endDateOfService: "2023-01-15",
|
|
119
|
-
* testResults: [{
|
|
120
|
-
* value: 1.1,
|
|
121
|
-
* resultType: "HEMATOCRIT"
|
|
122
|
-
* }],
|
|
123
|
-
* hasEpsdtIndicator: true,
|
|
124
|
-
* hasFamilyPlanningIndicator: true
|
|
125
|
-
* })
|
|
47
|
+
* await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
126
48
|
*/
|
|
127
49
|
update(serviceLineId: CandidApi.ServiceLineId, request: CandidApi.serviceLines.v2.ServiceLineUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.update.Error>>;
|
|
128
50
|
/**
|
|
@@ -64,54 +64,10 @@ class V2 {
|
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* await client.serviceLines.v2.create({
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
70
|
-
* diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
71
|
-
* diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
72
|
-
* diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
73
|
-
* denialReason: {
|
|
74
|
-
* reason: "Authorization Required"
|
|
75
|
-
* },
|
|
76
|
-
* placeOfServiceCode: "01",
|
|
77
|
-
* procedureCode: "string",
|
|
78
|
-
* quantity: CandidApi.Decimal("string"),
|
|
67
|
+
* procedureCode: "procedure_code",
|
|
68
|
+
* quantity: CandidApi.Decimal("quantity"),
|
|
79
69
|
* units: "MJ",
|
|
80
|
-
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
81
|
-
* description: "string",
|
|
82
|
-
* dateOfService: "2023-01-15",
|
|
83
|
-
* endDateOfService: "2023-01-15",
|
|
84
|
-
* drugIdentification: {
|
|
85
|
-
* serviceIdQualifier: "EN",
|
|
86
|
-
* nationalDrugCode: "string",
|
|
87
|
-
* nationalDrugUnitCount: "string",
|
|
88
|
-
* measurementUnitCode: "ML",
|
|
89
|
-
* linkSequenceNumber: "string",
|
|
90
|
-
* pharmacyPrescriptionNumber: "string",
|
|
91
|
-
* conversionFormula: "string",
|
|
92
|
-
* drugDescription: "string"
|
|
93
|
-
* },
|
|
94
|
-
* orderingProvider: {
|
|
95
|
-
* npi: "string",
|
|
96
|
-
* taxonomyCode: "string",
|
|
97
|
-
* address: {
|
|
98
|
-
* address1: "123 Main St",
|
|
99
|
-
* address2: "Apt 1",
|
|
100
|
-
* city: "New York",
|
|
101
|
-
* state: "NY",
|
|
102
|
-
* zipCode: "10001",
|
|
103
|
-
* zipPlusFourCode: "1234"
|
|
104
|
-
* },
|
|
105
|
-
* firstName: "string",
|
|
106
|
-
* lastName: "string",
|
|
107
|
-
* organizationName: "string"
|
|
108
|
-
* },
|
|
109
|
-
* testResults: [{
|
|
110
|
-
* value: 1.1,
|
|
111
|
-
* resultType: "HEMATOCRIT"
|
|
112
|
-
* }],
|
|
113
|
-
* hasEpsdtIndicator: true,
|
|
114
|
-
* hasFamilyPlanningIndicator: true
|
|
70
|
+
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
115
71
|
* })
|
|
116
72
|
*/
|
|
117
73
|
create(request, requestOptions) {
|
|
@@ -120,7 +76,7 @@ class V2 {
|
|
|
120
76
|
const _response = yield core.fetcher({
|
|
121
77
|
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).candidApi, "/api/service-lines/v2"),
|
|
122
78
|
method: "POST",
|
|
123
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
79
|
+
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),
|
|
124
80
|
contentType: "application/json",
|
|
125
81
|
requestType: "json",
|
|
126
82
|
body: serializers.serviceLines.v2.ServiceLineCreateStandalone.jsonOrThrow(request, {
|
|
@@ -167,41 +123,7 @@ class V2 {
|
|
|
167
123
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
124
|
*
|
|
169
125
|
* @example
|
|
170
|
-
* await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
171
|
-
* editReason: "string",
|
|
172
|
-
* modifiers: ["AV"],
|
|
173
|
-
* chargeAmountCents: 1,
|
|
174
|
-
* diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
175
|
-
* diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
176
|
-
* diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
177
|
-
* diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
178
|
-
* drugIdentification: {
|
|
179
|
-
* serviceIdQualifier: "EN",
|
|
180
|
-
* nationalDrugCode: "string",
|
|
181
|
-
* nationalDrugUnitCount: "string",
|
|
182
|
-
* measurementUnitCode: "ML",
|
|
183
|
-
* linkSequenceNumber: "string",
|
|
184
|
-
* pharmacyPrescriptionNumber: "string",
|
|
185
|
-
* conversionFormula: "string",
|
|
186
|
-
* drugDescription: "string"
|
|
187
|
-
* },
|
|
188
|
-
* denialReason: {
|
|
189
|
-
* reason: "Authorization Required"
|
|
190
|
-
* },
|
|
191
|
-
* placeOfServiceCode: "01",
|
|
192
|
-
* units: "MJ",
|
|
193
|
-
* procedureCode: "string",
|
|
194
|
-
* quantity: CandidApi.Decimal("string"),
|
|
195
|
-
* description: "string",
|
|
196
|
-
* dateOfService: "2023-01-15",
|
|
197
|
-
* endDateOfService: "2023-01-15",
|
|
198
|
-
* testResults: [{
|
|
199
|
-
* value: 1.1,
|
|
200
|
-
* resultType: "HEMATOCRIT"
|
|
201
|
-
* }],
|
|
202
|
-
* hasEpsdtIndicator: true,
|
|
203
|
-
* hasFamilyPlanningIndicator: true
|
|
204
|
-
* })
|
|
126
|
+
* await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
205
127
|
*/
|
|
206
128
|
update(serviceLineId, request, requestOptions) {
|
|
207
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -209,7 +131,7 @@ class V2 {
|
|
|
209
131
|
const _response = yield core.fetcher({
|
|
210
132
|
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).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
|
|
211
133
|
method: "PATCH",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
134
|
+
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),
|
|
213
135
|
contentType: "application/json",
|
|
214
136
|
requestType: "json",
|
|
215
137
|
body: serializers.serviceLines.v2.ServiceLineUpdate.jsonOrThrow(request, {
|
|
@@ -265,7 +187,7 @@ class V2 {
|
|
|
265
187
|
const _response = yield core.fetcher({
|
|
266
188
|
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).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
|
|
267
189
|
method: "DELETE",
|
|
268
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
190
|
+
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),
|
|
269
191
|
contentType: "application/json",
|
|
270
192
|
requestType: "json",
|
|
271
193
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -31,17 +31,9 @@ export declare class V1 {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* await client.superbills.v1.createSuperbill({
|
|
34
|
-
* patientExternalId: CandidApi.PatientExternalId("
|
|
34
|
+
* patientExternalId: CandidApi.PatientExternalId("patient_external_id"),
|
|
35
35
|
* dateRangeMin: "2023-01-15",
|
|
36
|
-
* dateRangeMax: "2023-01-15"
|
|
37
|
-
* payToAddress: {
|
|
38
|
-
* address1: "123 Main St",
|
|
39
|
-
* address2: "Apt 1",
|
|
40
|
-
* city: "New York",
|
|
41
|
-
* state: "NY",
|
|
42
|
-
* zipCode: "10001",
|
|
43
|
-
* zipPlusFourCode: "1234"
|
|
44
|
-
* }
|
|
36
|
+
* dateRangeMax: "2023-01-15"
|
|
45
37
|
* })
|
|
46
38
|
*/
|
|
47
39
|
createSuperbill(request: CandidApi.superbills.v1.CreateSuperbillRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.superbills.v1.SuperbillResponse, CandidApi.superbills.v1.createSuperbill.Error>>;
|
|
@@ -64,17 +64,9 @@ class V1 {
|
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* await client.superbills.v1.createSuperbill({
|
|
67
|
-
* patientExternalId: CandidApi.PatientExternalId("
|
|
67
|
+
* patientExternalId: CandidApi.PatientExternalId("patient_external_id"),
|
|
68
68
|
* dateRangeMin: "2023-01-15",
|
|
69
|
-
* dateRangeMax: "2023-01-15"
|
|
70
|
-
* payToAddress: {
|
|
71
|
-
* address1: "123 Main St",
|
|
72
|
-
* address2: "Apt 1",
|
|
73
|
-
* city: "New York",
|
|
74
|
-
* state: "NY",
|
|
75
|
-
* zipCode: "10001",
|
|
76
|
-
* zipPlusFourCode: "1234"
|
|
77
|
-
* }
|
|
69
|
+
* dateRangeMax: "2023-01-15"
|
|
78
70
|
* })
|
|
79
71
|
*/
|
|
80
72
|
createSuperbill(request, requestOptions) {
|
|
@@ -83,7 +75,7 @@ class V1 {
|
|
|
83
75
|
const _response = yield core.fetcher({
|
|
84
76
|
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).candidApi, "/api/superbill/v1"),
|
|
85
77
|
method: "POST",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
78
|
+
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),
|
|
87
79
|
contentType: "application/json",
|
|
88
80
|
requestType: "json",
|
|
89
81
|
body: serializers.superbills.v1.CreateSuperbillRequest.jsonOrThrow(request, {
|
package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts
CHANGED
|
@@ -5,17 +5,9 @@ import * as CandidApi from "../../../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* patientExternalId: CandidApi.PatientExternalId("
|
|
8
|
+
* patientExternalId: CandidApi.PatientExternalId("patient_external_id"),
|
|
9
9
|
* dateRangeMin: "2023-01-15",
|
|
10
|
-
* dateRangeMax: "2023-01-15"
|
|
11
|
-
* payToAddress: {
|
|
12
|
-
* address1: "123 Main St",
|
|
13
|
-
* address2: "Apt 1",
|
|
14
|
-
* city: "New York",
|
|
15
|
-
* state: "NY",
|
|
16
|
-
* zipCode: "10001",
|
|
17
|
-
* zipPlusFourCode: "1234"
|
|
18
|
-
* }
|
|
10
|
+
* dateRangeMax: "2023-01-15"
|
|
19
11
|
* }
|
|
20
12
|
*/
|
|
21
13
|
export interface CreateSuperbillRequest {
|
|
@@ -25,9 +17,6 @@ export interface CreateSuperbillRequest {
|
|
|
25
17
|
dateRangeMin: string;
|
|
26
18
|
/** Maximum (inclusive) date selected for the superbill */
|
|
27
19
|
dateRangeMax: string;
|
|
28
|
-
/**
|
|
29
|
-
* Address that will be displayed on the superbill as the 'Pay to' Address. If not provided this value will be set from available encounter data.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
20
|
+
/** Address that will be displayed on the superbill as the 'Pay to' Address. If not provided this value will be set from available encounter data. */
|
|
32
21
|
payToAddress?: CandidApi.StreetAddressShortZip;
|
|
33
22
|
}
|
|
@@ -38,21 +38,7 @@ export declare class V3 {
|
|
|
38
38
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
|
-
* await client.tasks.v3.getMulti(
|
|
42
|
-
* limit: 1,
|
|
43
|
-
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
44
|
-
* status: "finished",
|
|
45
|
-
* taskType: "CUSTOMER_DATA_REQUEST",
|
|
46
|
-
* categories: "string",
|
|
47
|
-
* updatedSince: "2024-01-15T09:30:00Z",
|
|
48
|
-
* encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
49
|
-
* searchTerm: "string",
|
|
50
|
-
* assignedToId: CandidApi.UserId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
51
|
-
* dateOfServiceMin: "2023-01-15",
|
|
52
|
-
* dateOfServiceMax: "2023-01-15",
|
|
53
|
-
* billingProviderNpi: "string",
|
|
54
|
-
* sort: "updated_at:asc"
|
|
55
|
-
* })
|
|
41
|
+
* await client.tasks.v3.getMulti()
|
|
56
42
|
*/
|
|
57
43
|
getMulti(request?: CandidApi.tasks.v3.GetAllTasksRequest, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.tasks.v3.TaskPage, CandidApi.tasks.v3.getMulti.Error>>;
|
|
58
44
|
/**
|
|
@@ -71,11 +57,8 @@ export declare class V3 {
|
|
|
71
57
|
* await client.tasks.v3.create({
|
|
72
58
|
* encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
73
59
|
* taskType: "CUSTOMER_DATA_REQUEST",
|
|
74
|
-
* description: "
|
|
75
|
-
*
|
|
76
|
-
* assigneeUserId: CandidApi.UserId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
77
|
-
* category: "other",
|
|
78
|
-
* workQueueId: CandidApi.WorkQueueId("string")
|
|
60
|
+
* description: "description",
|
|
61
|
+
* workQueueId: CandidApi.WorkQueueId("work_queue_id")
|
|
79
62
|
* })
|
|
80
63
|
*/
|
|
81
64
|
create(request: CandidApi.tasks.v3.TaskCreateV3, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.tasks.v3.Task, CandidApi.tasks.v3.create.Error>>;
|
|
@@ -85,11 +68,7 @@ export declare class V3 {
|
|
|
85
68
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
69
|
*
|
|
87
70
|
* @example
|
|
88
|
-
* await client.tasks.v3.update(CandidApi.TaskId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
89
|
-
* status: "finished",
|
|
90
|
-
* assigneeUserId: CandidApi.UserId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
91
|
-
* blocksClaimSubmission: true
|
|
92
|
-
* })
|
|
71
|
+
* await client.tasks.v3.update(CandidApi.TaskId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
93
72
|
*/
|
|
94
73
|
update(taskId: CandidApi.TaskId, request: CandidApi.tasks.v3.TaskUpdateV3, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.tasks.v3.Task, CandidApi.tasks.v3.update.Error>>;
|
|
95
74
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|