candidhealth 0.45.0 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- 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/pipelineCommons/index.d.ts +1 -0
- package/api/resources/pipelineCommons/index.js +17 -0
- package/api/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +8 -0
- package/api/resources/pipelineCommons/types/ConfigurableRuleId.js +9 -0
- package/api/resources/pipelineCommons/types/index.d.ts +1 -0
- package/api/resources/pipelineCommons/types/index.js +17 -0
- 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/serviceLines/resources/v2/types/DenialReasonContent.d.ts +2 -1
- package/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
- 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/tasks/resources/v3/types/Task.d.ts +1 -0
- 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/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
- package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- 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/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- 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/pipelineCommons/index.d.ts +1 -0
- package/dist/api/resources/pipelineCommons/index.js +17 -0
- package/dist/api/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +8 -0
- package/dist/api/resources/pipelineCommons/types/ConfigurableRuleId.js +9 -0
- package/dist/api/resources/pipelineCommons/types/index.d.ts +1 -0
- package/dist/api/resources/pipelineCommons/types/index.js +17 -0
- 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/serviceLines/resources/v2/types/DenialReasonContent.d.ts +2 -1
- package/dist/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
- 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/tasks/resources/v3/types/Task.d.ts +1 -0
- 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/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
- package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- 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/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/pipelineCommons/index.d.ts +1 -0
- package/dist/serialization/resources/pipelineCommons/index.js +17 -0
- package/dist/serialization/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +10 -0
- package/dist/serialization/resources/pipelineCommons/types/ConfigurableRuleId.js +45 -0
- package/dist/serialization/resources/pipelineCommons/types/index.d.ts +1 -0
- package/dist/serialization/resources/pipelineCommons/types/index.js +17 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
- package/dist/serialization/resources/tasks/resources/v3/types/Task.d.ts +2 -0
- package/dist/serialization/resources/tasks/resources/v3/types/Task.js +2 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.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/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/pipelineCommons/index.d.ts +1 -0
- package/serialization/resources/pipelineCommons/index.js +17 -0
- package/serialization/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +10 -0
- package/serialization/resources/pipelineCommons/types/ConfigurableRuleId.js +45 -0
- package/serialization/resources/pipelineCommons/types/index.d.ts +1 -0
- package/serialization/resources/pipelineCommons/types/index.js +17 -0
- package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
- package/serialization/resources/tasks/resources/v3/types/Task.d.ts +2 -0
- package/serialization/resources/tasks/resources/v3/types/Task.js +2 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -143,7 +143,7 @@ class V4 {
|
|
|
143
143
|
const _response = yield core.fetcher({
|
|
144
144
|
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/encounters/v4"),
|
|
145
145
|
method: "GET",
|
|
146
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
146
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
queryParameters: _queryParams,
|
|
149
149
|
requestType: "json",
|
|
@@ -181,7 +181,7 @@ class V4 {
|
|
|
181
181
|
const _response = yield core.fetcher({
|
|
182
182
|
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/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
183
183
|
method: "GET",
|
|
184
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
184
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
requestType: "json",
|
|
187
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -212,368 +212,41 @@ class V4 {
|
|
|
212
212
|
* @example
|
|
213
213
|
* await client.encounters.v4.create({
|
|
214
214
|
* patient: {
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* phoneConsent: true,
|
|
220
|
-
* email: CandidApi.Email("johndoe@joincandidhealth.com"),
|
|
221
|
-
* nonInsurancePayers: [CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
222
|
-
* nonInsurancePayersInfo: [{
|
|
223
|
-
* nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
224
|
-
* memberId: "string",
|
|
225
|
-
* clinicalTrialInfo: [{
|
|
226
|
-
* clinicalTrialId: CandidApi.ClinicalTrialId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
227
|
-
* }]
|
|
228
|
-
* }],
|
|
229
|
-
* emailConsent: true,
|
|
230
|
-
* externalId: "string",
|
|
215
|
+
* firstName: "first_name",
|
|
216
|
+
* lastName: "last_name",
|
|
217
|
+
* gender: "male",
|
|
218
|
+
* externalId: "external_id",
|
|
231
219
|
* dateOfBirth: "2023-01-15",
|
|
232
220
|
* address: {
|
|
233
|
-
* address1: "
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* zipPlusFourCode: "1234"
|
|
239
|
-
* },
|
|
240
|
-
* firstName: "string",
|
|
241
|
-
* lastName: "string",
|
|
242
|
-
* gender: "male"
|
|
221
|
+
* address1: "address1",
|
|
222
|
+
* city: "city",
|
|
223
|
+
* state: "AA",
|
|
224
|
+
* zipCode: "zip_code"
|
|
225
|
+
* }
|
|
243
226
|
* },
|
|
244
227
|
* billingProvider: {
|
|
245
228
|
* address: {
|
|
246
|
-
* address1: "
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* zipPlusFourCode: "1234"
|
|
229
|
+
* address1: "address1",
|
|
230
|
+
* city: "city",
|
|
231
|
+
* state: "AA",
|
|
232
|
+
* zipCode: "zip_code",
|
|
233
|
+
* zipPlusFourCode: "zip_plus_four_code"
|
|
252
234
|
* },
|
|
253
|
-
* taxId: "
|
|
254
|
-
* npi: "
|
|
255
|
-
* taxonomyCode: "string",
|
|
256
|
-
* providerCommercialLicenseType: "0",
|
|
257
|
-
* firstName: "string",
|
|
258
|
-
* lastName: "string",
|
|
259
|
-
* organizationName: "string"
|
|
235
|
+
* taxId: "tax_id",
|
|
236
|
+
* npi: "npi"
|
|
260
237
|
* },
|
|
261
238
|
* renderingProvider: {
|
|
262
|
-
* npi: "
|
|
263
|
-
* taxonomyCode: "string",
|
|
264
|
-
* address: {
|
|
265
|
-
* address1: "123 Main St",
|
|
266
|
-
* address2: "Apt 1",
|
|
267
|
-
* city: "New York",
|
|
268
|
-
* state: "NY",
|
|
269
|
-
* zipCode: "10001",
|
|
270
|
-
* zipPlusFourCode: "1234"
|
|
271
|
-
* },
|
|
272
|
-
* firstName: "string",
|
|
273
|
-
* lastName: "string",
|
|
274
|
-
* organizationName: "string"
|
|
275
|
-
* },
|
|
276
|
-
* referringProvider: {
|
|
277
|
-
* npi: "string",
|
|
278
|
-
* taxonomyCode: "string",
|
|
279
|
-
* address: {
|
|
280
|
-
* address1: "123 Main St",
|
|
281
|
-
* address2: "Apt 1",
|
|
282
|
-
* city: "New York",
|
|
283
|
-
* state: "NY",
|
|
284
|
-
* zipCode: "10001",
|
|
285
|
-
* zipPlusFourCode: "1234"
|
|
286
|
-
* },
|
|
287
|
-
* firstName: "string",
|
|
288
|
-
* lastName: "string",
|
|
289
|
-
* organizationName: "string"
|
|
290
|
-
* },
|
|
291
|
-
* initialReferringProvider: {
|
|
292
|
-
* npi: "string",
|
|
293
|
-
* taxonomyCode: "string",
|
|
294
|
-
* address: {
|
|
295
|
-
* address1: "123 Main St",
|
|
296
|
-
* address2: "Apt 1",
|
|
297
|
-
* city: "New York",
|
|
298
|
-
* state: "NY",
|
|
299
|
-
* zipCode: "10001",
|
|
300
|
-
* zipPlusFourCode: "1234"
|
|
301
|
-
* },
|
|
302
|
-
* qualifier: "DQ",
|
|
303
|
-
* firstName: "string",
|
|
304
|
-
* lastName: "string",
|
|
305
|
-
* organizationName: "string"
|
|
306
|
-
* },
|
|
307
|
-
* supervisingProvider: {
|
|
308
|
-
* npi: "string",
|
|
309
|
-
* taxonomyCode: "string",
|
|
310
|
-
* address: {
|
|
311
|
-
* address1: "123 Main St",
|
|
312
|
-
* address2: "Apt 1",
|
|
313
|
-
* city: "New York",
|
|
314
|
-
* state: "NY",
|
|
315
|
-
* zipCode: "10001",
|
|
316
|
-
* zipPlusFourCode: "1234"
|
|
317
|
-
* },
|
|
318
|
-
* firstName: "string",
|
|
319
|
-
* lastName: "string",
|
|
320
|
-
* organizationName: "string"
|
|
321
|
-
* },
|
|
322
|
-
* serviceFacility: {
|
|
323
|
-
* organizationName: "string",
|
|
324
|
-
* npi: "string",
|
|
325
|
-
* address: {
|
|
326
|
-
* address1: "123 Main St",
|
|
327
|
-
* address2: "Apt 1",
|
|
328
|
-
* city: "New York",
|
|
329
|
-
* state: "NY",
|
|
330
|
-
* zipCode: "10001",
|
|
331
|
-
* zipPlusFourCode: "1234"
|
|
332
|
-
* },
|
|
333
|
-
* secondaryIdentification: "string"
|
|
334
|
-
* },
|
|
335
|
-
* subscriberPrimary: {
|
|
336
|
-
* insuranceCard: {
|
|
337
|
-
* memberId: "string",
|
|
338
|
-
* payerName: "string",
|
|
339
|
-
* payerId: "string",
|
|
340
|
-
* rxBin: "string",
|
|
341
|
-
* rxPcn: "string",
|
|
342
|
-
* imageUrlFront: "string",
|
|
343
|
-
* imageUrlBack: "string",
|
|
344
|
-
* emrPayerCrosswalk: "HEALTHIE",
|
|
345
|
-
* groupNumber: "string",
|
|
346
|
-
* planName: "string",
|
|
347
|
-
* planType: "09",
|
|
348
|
-
* insuranceType: "01",
|
|
349
|
-
* payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
350
|
-
* },
|
|
351
|
-
* patientRelationshipToSubscriberCode: "01",
|
|
352
|
-
* dateOfBirth: "2023-01-15",
|
|
353
|
-
* address: {
|
|
354
|
-
* address1: "123 Main St",
|
|
355
|
-
* address2: "Apt 1",
|
|
356
|
-
* city: "New York",
|
|
357
|
-
* state: "NY",
|
|
358
|
-
* zipCode: "10001",
|
|
359
|
-
* zipPlusFourCode: "1234"
|
|
360
|
-
* },
|
|
361
|
-
* firstName: "string",
|
|
362
|
-
* lastName: "string",
|
|
363
|
-
* gender: "male"
|
|
364
|
-
* },
|
|
365
|
-
* subscriberSecondary: {
|
|
366
|
-
* insuranceCard: {
|
|
367
|
-
* memberId: "string",
|
|
368
|
-
* payerName: "string",
|
|
369
|
-
* payerId: "string",
|
|
370
|
-
* rxBin: "string",
|
|
371
|
-
* rxPcn: "string",
|
|
372
|
-
* imageUrlFront: "string",
|
|
373
|
-
* imageUrlBack: "string",
|
|
374
|
-
* emrPayerCrosswalk: "HEALTHIE",
|
|
375
|
-
* groupNumber: "string",
|
|
376
|
-
* planName: "string",
|
|
377
|
-
* planType: "09",
|
|
378
|
-
* insuranceType: "01",
|
|
379
|
-
* payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
380
|
-
* },
|
|
381
|
-
* patientRelationshipToSubscriberCode: "01",
|
|
382
|
-
* dateOfBirth: "2023-01-15",
|
|
383
|
-
* address: {
|
|
384
|
-
* address1: "123 Main St",
|
|
385
|
-
* address2: "Apt 1",
|
|
386
|
-
* city: "New York",
|
|
387
|
-
* state: "NY",
|
|
388
|
-
* zipCode: "10001",
|
|
389
|
-
* zipPlusFourCode: "1234"
|
|
390
|
-
* },
|
|
391
|
-
* firstName: "string",
|
|
392
|
-
* lastName: "string",
|
|
393
|
-
* gender: "male"
|
|
394
|
-
* },
|
|
395
|
-
* subscriberTertiary: {
|
|
396
|
-
* insuranceCard: {
|
|
397
|
-
* memberId: "string",
|
|
398
|
-
* payerName: "string",
|
|
399
|
-
* payerId: "string",
|
|
400
|
-
* rxBin: "string",
|
|
401
|
-
* rxPcn: "string",
|
|
402
|
-
* imageUrlFront: "string",
|
|
403
|
-
* imageUrlBack: "string",
|
|
404
|
-
* emrPayerCrosswalk: "HEALTHIE",
|
|
405
|
-
* groupNumber: "string",
|
|
406
|
-
* planName: "string",
|
|
407
|
-
* planType: "09",
|
|
408
|
-
* insuranceType: "01",
|
|
409
|
-
* payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
410
|
-
* },
|
|
411
|
-
* patientRelationshipToSubscriberCode: "01",
|
|
412
|
-
* dateOfBirth: "2023-01-15",
|
|
413
|
-
* address: {
|
|
414
|
-
* address1: "123 Main St",
|
|
415
|
-
* address2: "Apt 1",
|
|
416
|
-
* city: "New York",
|
|
417
|
-
* state: "NY",
|
|
418
|
-
* zipCode: "10001",
|
|
419
|
-
* zipPlusFourCode: "1234"
|
|
420
|
-
* },
|
|
421
|
-
* firstName: "string",
|
|
422
|
-
* lastName: "string",
|
|
423
|
-
* gender: "male"
|
|
239
|
+
* npi: "npi"
|
|
424
240
|
* },
|
|
425
|
-
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
426
241
|
* responsibleParty: "INSURANCE_PAY",
|
|
427
242
|
* diagnoses: [{
|
|
428
|
-
* name: "string",
|
|
429
243
|
* codeType: "ABF",
|
|
430
|
-
* code: "
|
|
431
|
-
* }
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
* notes: []
|
|
435
|
-
* }],
|
|
436
|
-
* billingNotes: [{
|
|
437
|
-
* text: "string"
|
|
438
|
-
* }],
|
|
439
|
-
* placeOfServiceCode: "01",
|
|
440
|
-
* patientHistories: [{
|
|
441
|
-
* category: "present_illness",
|
|
442
|
-
* questions: [{
|
|
443
|
-
* id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
|
|
444
|
-
* text: "Do you have any allergies?",
|
|
445
|
-
* responses: [{
|
|
446
|
-
* response: "No allergies",
|
|
447
|
-
* followUps: [{
|
|
448
|
-
* id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
|
|
449
|
-
* text: "Do you have any allergies?",
|
|
450
|
-
* response: "No allergies"
|
|
451
|
-
* }]
|
|
452
|
-
* }]
|
|
453
|
-
* }]
|
|
454
|
-
* }],
|
|
455
|
-
* serviceLines: [{
|
|
456
|
-
* procedureCode: "string",
|
|
457
|
-
* quantity: CandidApi.Decimal("string"),
|
|
458
|
-
* units: "MJ",
|
|
459
|
-
* diagnosisPointers: []
|
|
460
|
-
* }],
|
|
461
|
-
* guarantor: {
|
|
462
|
-
* phoneNumbers: [{
|
|
463
|
-
* number: "1234567890",
|
|
464
|
-
* type: "Home"
|
|
465
|
-
* }],
|
|
466
|
-
* phoneConsent: true,
|
|
467
|
-
* email: CandidApi.Email("johndoe@joincandidhealth.com"),
|
|
468
|
-
* emailConsent: true,
|
|
469
|
-
* firstName: "string",
|
|
470
|
-
* lastName: "string",
|
|
471
|
-
* externalId: "string",
|
|
472
|
-
* dateOfBirth: "2023-01-15",
|
|
473
|
-
* address: {
|
|
474
|
-
* address1: "123 Main St",
|
|
475
|
-
* address2: "Apt 1",
|
|
476
|
-
* city: "New York",
|
|
477
|
-
* state: "NY",
|
|
478
|
-
* zipCode: "10001",
|
|
479
|
-
* zipPlusFourCode: "1234"
|
|
480
|
-
* }
|
|
481
|
-
* },
|
|
482
|
-
* externalClaimSubmission: {
|
|
483
|
-
* claimCreatedAt: "2023-01-01T12:00:00.000000Z",
|
|
484
|
-
* patientControlNumber: "PATIENT_CONTROL_NUMBER",
|
|
485
|
-
* submissionRecords: [{
|
|
486
|
-
* submittedAt: "2023-01-01T13:00:00.000000Z",
|
|
487
|
-
* claimFrequencyCode: "1",
|
|
488
|
-
* payerResponsibility: "primary",
|
|
489
|
-
* intendedSubmissionMedium: "electronic"
|
|
490
|
-
* }, {
|
|
491
|
-
* submittedAt: "2023-01-04T12:00:00.000000Z",
|
|
492
|
-
* claimFrequencyCode: "7",
|
|
493
|
-
* payerResponsibility: "primary",
|
|
494
|
-
* intendedSubmissionMedium: "paper"
|
|
495
|
-
* }]
|
|
496
|
-
* },
|
|
497
|
-
* tagIds: [CandidApi.TagId("string")],
|
|
498
|
-
* schemaInstances: [{
|
|
499
|
-
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
500
|
-
* content: {
|
|
501
|
-
* "provider_category": "internist",
|
|
502
|
-
* "is_urgent_care": true,
|
|
503
|
-
* "bmi": 24.2,
|
|
504
|
-
* "age": 38
|
|
505
|
-
* }
|
|
506
|
-
* }],
|
|
507
|
-
* referralNumber: "string",
|
|
508
|
-
* epsdtReferral: {
|
|
509
|
-
* conditionIndicator1: "AV",
|
|
510
|
-
* conditionIndicator2: "AV",
|
|
511
|
-
* conditionIndicator3: "AV"
|
|
512
|
-
* },
|
|
513
|
-
* claimSupplementalInformation: [{
|
|
514
|
-
* attachmentReportTypeCode: "03",
|
|
515
|
-
* attachmentTransmissionCode: "BM"
|
|
516
|
-
* }],
|
|
517
|
-
* secondaryPayerCarrierCode: "string",
|
|
518
|
-
* externalId: CandidApi.EncounterExternalId("string"),
|
|
519
|
-
* dateOfService: "2023-01-15",
|
|
520
|
-
* endDateOfService: "2023-01-15",
|
|
521
|
-
* patientAuthorizedRelease: true,
|
|
522
|
-
* benefitsAssignedToProvider: true,
|
|
523
|
-
* providerAcceptsAssignment: true,
|
|
524
|
-
* appointmentType: "string",
|
|
525
|
-
* existingMedications: [{
|
|
526
|
-
* name: "Lisinopril",
|
|
527
|
-
* rxCui: CandidApi.encounters.v4.RxCui("860975"),
|
|
528
|
-
* dosage: "10mg",
|
|
529
|
-
* dosageForm: "Tablet",
|
|
530
|
-
* frequency: "Once Daily",
|
|
531
|
-
* asNeeded: true
|
|
532
|
-
* }],
|
|
533
|
-
* vitals: {
|
|
534
|
-
* heightIn: 70,
|
|
535
|
-
* weightLbs: 165,
|
|
536
|
-
* bloodPressureSystolicMmhg: 115,
|
|
537
|
-
* bloodPressureDiastolicMmhg: 85,
|
|
538
|
-
* bodyTemperatureF: 98,
|
|
539
|
-
* hemoglobinGdl: 15.1,
|
|
540
|
-
* hematocritPct: 51.2
|
|
541
|
-
* },
|
|
542
|
-
* interventions: [{
|
|
543
|
-
* name: "Physical Therapy Session",
|
|
544
|
-
* category: "lifestyle",
|
|
545
|
-
* description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
|
|
546
|
-
* medication: {
|
|
547
|
-
* name: "Lisinopril",
|
|
548
|
-
* rxCui: CandidApi.encounters.v4.RxCui("860975"),
|
|
549
|
-
* dosage: "10mg",
|
|
550
|
-
* dosageForm: "Tablet",
|
|
551
|
-
* frequency: "Once Daily",
|
|
552
|
-
* asNeeded: true
|
|
553
|
-
* },
|
|
554
|
-
* labs: [{
|
|
555
|
-
* name: "Genetic Health Labs",
|
|
556
|
-
* code: "GH12345",
|
|
557
|
-
* codeType: "quest"
|
|
558
|
-
* }]
|
|
244
|
+
* code: "code"
|
|
245
|
+
* }, {
|
|
246
|
+
* codeType: "ABF",
|
|
247
|
+
* code: "code"
|
|
559
248
|
* }],
|
|
560
|
-
*
|
|
561
|
-
* address1: "123 Main St",
|
|
562
|
-
* address2: "Apt 1",
|
|
563
|
-
* city: "New York",
|
|
564
|
-
* state: "NY",
|
|
565
|
-
* zipCode: "10001",
|
|
566
|
-
* zipPlusFourCode: "1234"
|
|
567
|
-
* },
|
|
568
|
-
* synchronicity: "Synchronous",
|
|
569
|
-
* billableStatus: "BILLABLE",
|
|
570
|
-
* additionalInformation: "string",
|
|
571
|
-
* serviceAuthorizationExceptionCode: "1",
|
|
572
|
-
* admissionDate: "2023-01-15",
|
|
573
|
-
* dischargeDate: "2023-01-15",
|
|
574
|
-
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
|
|
575
|
-
* lastMenstrualPeriodDate: "2023-01-15",
|
|
576
|
-
* delayReasonCode: "1"
|
|
249
|
+
* placeOfServiceCode: "01"
|
|
577
250
|
* })
|
|
578
251
|
*/
|
|
579
252
|
create(request, requestOptions) {
|
|
@@ -582,7 +255,7 @@ class V4 {
|
|
|
582
255
|
const _response = yield core.fetcher({
|
|
583
256
|
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/encounters/v4"),
|
|
584
257
|
method: "POST",
|
|
585
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
258
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
586
259
|
contentType: "application/json",
|
|
587
260
|
requestType: "json",
|
|
588
261
|
body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -638,14 +311,13 @@ class V4 {
|
|
|
638
311
|
*
|
|
639
312
|
* The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
|
|
640
313
|
* where applicable. In particular, the following fields are populated from the patient and appointment objects:
|
|
641
|
-
*
|
|
642
|
-
*
|
|
643
|
-
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
* - Guarantor
|
|
314
|
+
* - Patient
|
|
315
|
+
* - Referring Provider
|
|
316
|
+
* - Subscriber Primary
|
|
317
|
+
* - Subscriber Secondary
|
|
318
|
+
* - Referral Number
|
|
319
|
+
* - Responsible Party
|
|
320
|
+
* - Guarantor
|
|
649
321
|
*
|
|
650
322
|
* Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
|
|
651
323
|
* encounter has not already been submitted or adjudicated.
|
|
@@ -655,202 +327,35 @@ class V4 {
|
|
|
655
327
|
*
|
|
656
328
|
* @example
|
|
657
329
|
* await client.encounters.v4.createFromPreEncounterPatient({
|
|
330
|
+
* externalId: CandidApi.EncounterExternalId("external_id"),
|
|
331
|
+
* patientAuthorizedRelease: true,
|
|
332
|
+
* benefitsAssignedToProvider: true,
|
|
333
|
+
* providerAcceptsAssignment: true,
|
|
334
|
+
* billableStatus: "BILLABLE",
|
|
658
335
|
* preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
659
|
-
* preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
336
|
+
* preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
660
337
|
* billingProvider: {
|
|
661
338
|
* address: {
|
|
662
|
-
* address1: "
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
667
|
-
* zipPlusFourCode: "1234"
|
|
339
|
+
* address1: "address1",
|
|
340
|
+
* city: "city",
|
|
341
|
+
* state: "AA",
|
|
342
|
+
* zipCode: "zip_code",
|
|
343
|
+
* zipPlusFourCode: "zip_plus_four_code"
|
|
668
344
|
* },
|
|
669
|
-
* taxId: "
|
|
670
|
-
* npi: "
|
|
671
|
-
* taxonomyCode: "string",
|
|
672
|
-
* providerCommercialLicenseType: "0",
|
|
673
|
-
* firstName: "string",
|
|
674
|
-
* lastName: "string",
|
|
675
|
-
* organizationName: "string"
|
|
345
|
+
* taxId: "tax_id",
|
|
346
|
+
* npi: "npi"
|
|
676
347
|
* },
|
|
677
348
|
* renderingProvider: {
|
|
678
|
-
* npi: "
|
|
679
|
-
* taxonomyCode: "string",
|
|
680
|
-
* address: {
|
|
681
|
-
* address1: "123 Main St",
|
|
682
|
-
* address2: "Apt 1",
|
|
683
|
-
* city: "New York",
|
|
684
|
-
* state: "NY",
|
|
685
|
-
* zipCode: "10001",
|
|
686
|
-
* zipPlusFourCode: "1234"
|
|
687
|
-
* },
|
|
688
|
-
* firstName: "string",
|
|
689
|
-
* lastName: "string",
|
|
690
|
-
* organizationName: "string"
|
|
691
|
-
* },
|
|
692
|
-
* initialReferringProvider: {
|
|
693
|
-
* npi: "string",
|
|
694
|
-
* taxonomyCode: "string",
|
|
695
|
-
* address: {
|
|
696
|
-
* address1: "123 Main St",
|
|
697
|
-
* address2: "Apt 1",
|
|
698
|
-
* city: "New York",
|
|
699
|
-
* state: "NY",
|
|
700
|
-
* zipCode: "10001",
|
|
701
|
-
* zipPlusFourCode: "1234"
|
|
702
|
-
* },
|
|
703
|
-
* qualifier: "DQ",
|
|
704
|
-
* firstName: "string",
|
|
705
|
-
* lastName: "string",
|
|
706
|
-
* organizationName: "string"
|
|
707
|
-
* },
|
|
708
|
-
* supervisingProvider: {
|
|
709
|
-
* npi: "string",
|
|
710
|
-
* taxonomyCode: "string",
|
|
711
|
-
* address: {
|
|
712
|
-
* address1: "123 Main St",
|
|
713
|
-
* address2: "Apt 1",
|
|
714
|
-
* city: "New York",
|
|
715
|
-
* state: "NY",
|
|
716
|
-
* zipCode: "10001",
|
|
717
|
-
* zipPlusFourCode: "1234"
|
|
718
|
-
* },
|
|
719
|
-
* firstName: "string",
|
|
720
|
-
* lastName: "string",
|
|
721
|
-
* organizationName: "string"
|
|
722
|
-
* },
|
|
723
|
-
* serviceFacility: {
|
|
724
|
-
* organizationName: "string",
|
|
725
|
-
* npi: "string",
|
|
726
|
-
* address: {
|
|
727
|
-
* address1: "123 Main St",
|
|
728
|
-
* address2: "Apt 1",
|
|
729
|
-
* city: "New York",
|
|
730
|
-
* state: "NY",
|
|
731
|
-
* zipCode: "10001",
|
|
732
|
-
* zipPlusFourCode: "1234"
|
|
733
|
-
* },
|
|
734
|
-
* secondaryIdentification: "string"
|
|
349
|
+
* npi: "npi"
|
|
735
350
|
* },
|
|
736
351
|
* diagnoses: [{
|
|
737
|
-
* name: "string",
|
|
738
352
|
* codeType: "ABF",
|
|
739
|
-
* code: "
|
|
740
|
-
* }
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
* notes: []
|
|
744
|
-
* }],
|
|
745
|
-
* billingNotes: [{
|
|
746
|
-
* text: "string"
|
|
747
|
-
* }],
|
|
748
|
-
* placeOfServiceCode: "01",
|
|
749
|
-
* patientHistories: [{
|
|
750
|
-
* category: "present_illness",
|
|
751
|
-
* questions: [{
|
|
752
|
-
* id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
|
|
753
|
-
* text: "Do you have any allergies?",
|
|
754
|
-
* responses: [{
|
|
755
|
-
* response: "No allergies",
|
|
756
|
-
* followUps: [{
|
|
757
|
-
* id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
|
|
758
|
-
* text: "Do you have any allergies?",
|
|
759
|
-
* response: "No allergies"
|
|
760
|
-
* }]
|
|
761
|
-
* }]
|
|
762
|
-
* }]
|
|
763
|
-
* }],
|
|
764
|
-
* serviceLines: [{
|
|
765
|
-
* procedureCode: "string",
|
|
766
|
-
* quantity: CandidApi.Decimal("string"),
|
|
767
|
-
* units: "MJ",
|
|
768
|
-
* diagnosisPointers: []
|
|
769
|
-
* }],
|
|
770
|
-
* externalClaimSubmission: {
|
|
771
|
-
* claimCreatedAt: "2023-01-01T12:00:00.000000Z",
|
|
772
|
-
* patientControlNumber: "PATIENT_CONTROL_NUMBER",
|
|
773
|
-
* submissionRecords: [{
|
|
774
|
-
* submittedAt: "2023-01-01T13:00:00.000000Z",
|
|
775
|
-
* claimFrequencyCode: "1",
|
|
776
|
-
* payerResponsibility: "primary",
|
|
777
|
-
* intendedSubmissionMedium: "electronic"
|
|
778
|
-
* }, {
|
|
779
|
-
* submittedAt: "2023-01-04T12:00:00.000000Z",
|
|
780
|
-
* claimFrequencyCode: "7",
|
|
781
|
-
* payerResponsibility: "primary",
|
|
782
|
-
* intendedSubmissionMedium: "paper"
|
|
783
|
-
* }]
|
|
784
|
-
* },
|
|
785
|
-
* tagIds: [CandidApi.TagId("string")],
|
|
786
|
-
* schemaInstances: [{
|
|
787
|
-
* schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
788
|
-
* content: {
|
|
789
|
-
* "provider_category": "internist",
|
|
790
|
-
* "is_urgent_care": true,
|
|
791
|
-
* "bmi": 24.2,
|
|
792
|
-
* "age": 38
|
|
793
|
-
* }
|
|
794
|
-
* }],
|
|
795
|
-
* externalId: CandidApi.EncounterExternalId("string"),
|
|
796
|
-
* dateOfService: "2023-01-15",
|
|
797
|
-
* endDateOfService: "2023-01-15",
|
|
798
|
-
* patientAuthorizedRelease: true,
|
|
799
|
-
* benefitsAssignedToProvider: true,
|
|
800
|
-
* providerAcceptsAssignment: true,
|
|
801
|
-
* appointmentType: "string",
|
|
802
|
-
* existingMedications: [{
|
|
803
|
-
* name: "Lisinopril",
|
|
804
|
-
* rxCui: CandidApi.encounters.v4.RxCui("860975"),
|
|
805
|
-
* dosage: "10mg",
|
|
806
|
-
* dosageForm: "Tablet",
|
|
807
|
-
* frequency: "Once Daily",
|
|
808
|
-
* asNeeded: true
|
|
809
|
-
* }],
|
|
810
|
-
* vitals: {
|
|
811
|
-
* heightIn: 70,
|
|
812
|
-
* weightLbs: 165,
|
|
813
|
-
* bloodPressureSystolicMmhg: 115,
|
|
814
|
-
* bloodPressureDiastolicMmhg: 85,
|
|
815
|
-
* bodyTemperatureF: 98,
|
|
816
|
-
* hemoglobinGdl: 15.1,
|
|
817
|
-
* hematocritPct: 51.2
|
|
818
|
-
* },
|
|
819
|
-
* interventions: [{
|
|
820
|
-
* name: "Physical Therapy Session",
|
|
821
|
-
* category: "lifestyle",
|
|
822
|
-
* description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
|
|
823
|
-
* medication: {
|
|
824
|
-
* name: "Lisinopril",
|
|
825
|
-
* rxCui: CandidApi.encounters.v4.RxCui("860975"),
|
|
826
|
-
* dosage: "10mg",
|
|
827
|
-
* dosageForm: "Tablet",
|
|
828
|
-
* frequency: "Once Daily",
|
|
829
|
-
* asNeeded: true
|
|
830
|
-
* },
|
|
831
|
-
* labs: [{
|
|
832
|
-
* name: "Genetic Health Labs",
|
|
833
|
-
* code: "GH12345",
|
|
834
|
-
* codeType: "quest"
|
|
835
|
-
* }]
|
|
353
|
+
* code: "code"
|
|
354
|
+
* }, {
|
|
355
|
+
* codeType: "ABF",
|
|
356
|
+
* code: "code"
|
|
836
357
|
* }],
|
|
837
|
-
*
|
|
838
|
-
* address1: "123 Main St",
|
|
839
|
-
* address2: "Apt 1",
|
|
840
|
-
* city: "New York",
|
|
841
|
-
* state: "NY",
|
|
842
|
-
* zipCode: "10001",
|
|
843
|
-
* zipPlusFourCode: "1234"
|
|
844
|
-
* },
|
|
845
|
-
* synchronicity: "Synchronous",
|
|
846
|
-
* billableStatus: "BILLABLE",
|
|
847
|
-
* additionalInformation: "string",
|
|
848
|
-
* serviceAuthorizationExceptionCode: "1",
|
|
849
|
-
* admissionDate: "2023-01-15",
|
|
850
|
-
* dischargeDate: "2023-01-15",
|
|
851
|
-
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
|
|
852
|
-
* lastMenstrualPeriodDate: "2023-01-15",
|
|
853
|
-
* delayReasonCode: "1"
|
|
358
|
+
* placeOfServiceCode: "01"
|
|
854
359
|
* })
|
|
855
360
|
*/
|
|
856
361
|
createFromPreEncounterPatient(request, requestOptions) {
|
|
@@ -859,7 +364,7 @@ class V4 {
|
|
|
859
364
|
const _response = yield core.fetcher({
|
|
860
365
|
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/encounters/v4/create-from-pre-encounter"),
|
|
861
366
|
method: "POST",
|
|
862
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
367
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
863
368
|
contentType: "application/json",
|
|
864
369
|
requestType: "json",
|
|
865
370
|
body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
|
|
@@ -913,137 +418,7 @@ class V4 {
|
|
|
913
418
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
914
419
|
*
|
|
915
420
|
* @example
|
|
916
|
-
* await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
917
|
-
* payToAddress: {
|
|
918
|
-
* address1: "123 Main St",
|
|
919
|
-
* address2: "Apt 1",
|
|
920
|
-
* city: "New York",
|
|
921
|
-
* state: "NY",
|
|
922
|
-
* zipCode: "10001",
|
|
923
|
-
* zipPlusFourCode: "1234"
|
|
924
|
-
* },
|
|
925
|
-
* diagnosisIds: [CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
926
|
-
* initialReferringProvider: {
|
|
927
|
-
* npi: "string",
|
|
928
|
-
* taxonomyCode: "string",
|
|
929
|
-
* address: {
|
|
930
|
-
* address1: "123 Main St",
|
|
931
|
-
* address2: "Apt 1",
|
|
932
|
-
* city: "New York",
|
|
933
|
-
* state: "NY",
|
|
934
|
-
* zipCode: "10001",
|
|
935
|
-
* zipPlusFourCode: "1234"
|
|
936
|
-
* },
|
|
937
|
-
* qualifier: "DQ",
|
|
938
|
-
* firstName: "string",
|
|
939
|
-
* lastName: "string",
|
|
940
|
-
* organizationName: "string"
|
|
941
|
-
* },
|
|
942
|
-
* referringProvider: {
|
|
943
|
-
* npi: "string",
|
|
944
|
-
* taxonomyCode: "string",
|
|
945
|
-
* address: {
|
|
946
|
-
* address1: "123 Main St",
|
|
947
|
-
* address2: "Apt 1",
|
|
948
|
-
* city: "New York",
|
|
949
|
-
* state: "NY",
|
|
950
|
-
* zipCode: "10001",
|
|
951
|
-
* zipPlusFourCode: "1234"
|
|
952
|
-
* },
|
|
953
|
-
* firstName: "string",
|
|
954
|
-
* lastName: "string",
|
|
955
|
-
* organizationName: "string"
|
|
956
|
-
* },
|
|
957
|
-
* patient: {
|
|
958
|
-
* firstName: "string",
|
|
959
|
-
* lastName: "string",
|
|
960
|
-
* gender: "male",
|
|
961
|
-
* externalId: "string",
|
|
962
|
-
* dateOfBirth: "2023-01-15",
|
|
963
|
-
* address: {
|
|
964
|
-
* address1: "123 Main St",
|
|
965
|
-
* address2: "Apt 1",
|
|
966
|
-
* city: "New York",
|
|
967
|
-
* state: "NY",
|
|
968
|
-
* zipCode: "10001",
|
|
969
|
-
* zipPlusFourCode: "1234"
|
|
970
|
-
* },
|
|
971
|
-
* phoneNumbers: [{
|
|
972
|
-
* number: "1234567890",
|
|
973
|
-
* type: "Home"
|
|
974
|
-
* }],
|
|
975
|
-
* phoneConsent: true,
|
|
976
|
-
* email: CandidApi.Email("johndoe@joincandidhealth.com"),
|
|
977
|
-
* emailConsent: true,
|
|
978
|
-
* nonInsurancePayers: [CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
979
|
-
* nonInsurancePayersInfo: [{
|
|
980
|
-
* nonInsurancePayerId: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
981
|
-
* memberId: "string",
|
|
982
|
-
* clinicalTrialInfo: [{
|
|
983
|
-
* clinicalTrialId: CandidApi.ClinicalTrialId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
984
|
-
* }]
|
|
985
|
-
* }]
|
|
986
|
-
* },
|
|
987
|
-
* renderingProvider: {
|
|
988
|
-
* npi: "string",
|
|
989
|
-
* taxonomyCode: "string",
|
|
990
|
-
* address: {
|
|
991
|
-
* address1: "123 Main St",
|
|
992
|
-
* address2: "Apt 1",
|
|
993
|
-
* city: "New York",
|
|
994
|
-
* state: "NY",
|
|
995
|
-
* zipCode: "10001",
|
|
996
|
-
* zipPlusFourCode: "1234"
|
|
997
|
-
* },
|
|
998
|
-
* firstName: "string",
|
|
999
|
-
* lastName: "string",
|
|
1000
|
-
* organizationName: "string"
|
|
1001
|
-
* },
|
|
1002
|
-
* serviceFacility: {
|
|
1003
|
-
* organizationName: "Test Organization",
|
|
1004
|
-
* address: {
|
|
1005
|
-
* address1: "123 Main St",
|
|
1006
|
-
* address2: "Apt 1",
|
|
1007
|
-
* city: "New York",
|
|
1008
|
-
* state: "NY",
|
|
1009
|
-
* zipCode: "10001",
|
|
1010
|
-
* zipPlusFourCode: "1234"
|
|
1011
|
-
* }
|
|
1012
|
-
* },
|
|
1013
|
-
* supervisingProvider: {
|
|
1014
|
-
* npi: "string",
|
|
1015
|
-
* taxonomyCode: "string",
|
|
1016
|
-
* address: {
|
|
1017
|
-
* address1: "123 Main St",
|
|
1018
|
-
* address2: "Apt 1",
|
|
1019
|
-
* city: "New York",
|
|
1020
|
-
* state: "NY",
|
|
1021
|
-
* zipCode: "10001",
|
|
1022
|
-
* zipPlusFourCode: "1234"
|
|
1023
|
-
* },
|
|
1024
|
-
* firstName: "string",
|
|
1025
|
-
* lastName: "string",
|
|
1026
|
-
* organizationName: "string"
|
|
1027
|
-
* },
|
|
1028
|
-
* billingProvider: {
|
|
1029
|
-
* address: {
|
|
1030
|
-
* address1: "123 Main St",
|
|
1031
|
-
* address2: "Apt 1",
|
|
1032
|
-
* city: "New York",
|
|
1033
|
-
* state: "NY",
|
|
1034
|
-
* zipCode: "10001",
|
|
1035
|
-
* zipPlusFourCode: "1234"
|
|
1036
|
-
* },
|
|
1037
|
-
* taxId: "string",
|
|
1038
|
-
* npi: "string",
|
|
1039
|
-
* taxonomyCode: "string",
|
|
1040
|
-
* providerCommercialLicenseType: "0",
|
|
1041
|
-
* firstName: "string",
|
|
1042
|
-
* lastName: "string",
|
|
1043
|
-
* organizationName: "string"
|
|
1044
|
-
* },
|
|
1045
|
-
* placeOfServiceCodeAsSubmitted: "01"
|
|
1046
|
-
* })
|
|
421
|
+
* await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
1047
422
|
*/
|
|
1048
423
|
update(encounterId_1) {
|
|
1049
424
|
return __awaiter(this, arguments, void 0, function* (encounterId, request = {}, requestOptions) {
|
|
@@ -1051,7 +426,7 @@ class V4 {
|
|
|
1051
426
|
const _response = yield core.fetcher({
|
|
1052
427
|
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/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
1053
428
|
method: "PATCH",
|
|
1054
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
|
429
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1055
430
|
contentType: "application/json",
|
|
1056
431
|
requestType: "json",
|
|
1057
432
|
body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|