candidhealth 0.5.0 → 0.6.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/Client.d.ts +6 -6
- package/Client.js +20 -20
- package/api/resources/auth/resources/v2/client/Client.d.ts +14 -0
- package/api/resources/auth/resources/v2/client/Client.js +15 -1
- package/api/resources/billingNotes/client/Client.d.ts +3 -3
- package/api/resources/billingNotes/client/Client.js +4 -69
- package/api/resources/billingNotes/client/index.d.ts +1 -2
- package/api/resources/billingNotes/client/index.js +0 -29
- package/api/resources/billingNotes/index.d.ts +1 -1
- package/api/resources/billingNotes/index.js +1 -1
- package/api/resources/billingNotes/resources/index.d.ts +1 -0
- package/api/resources/billingNotes/resources/index.js +27 -0
- package/api/resources/billingNotes/resources/v2/client/Client.d.ts +18 -0
- package/{dist/api/resources/tasks/resources/v3 → api/resources/billingNotes/resources/v2}/client/Client.js +12 -9
- package/{dist/api/resources/payers/client/get.d.ts → api/resources/billingNotes/resources/v2/client/create.d.ts} +6 -6
- package/{dist/api/resources/billingNotes → api/resources/billingNotes/resources/v2}/client/create.js +2 -2
- package/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
- package/api/resources/billingNotes/resources/v2/client/index.js +31 -0
- package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +7 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.d.ts +3 -3
- package/{dist/api/resources/billingNotes → api/resources/billingNotes/resources/v2}/types/BillingNoteId.d.ts +3 -3
- package/api/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +6 -0
- package/api/resources/commons/types/index.d.ts +1 -1
- package/api/resources/commons/types/index.js +1 -1
- package/api/resources/{tasks → eligibility}/client/Client.d.ts +7 -7
- package/{dist/api/resources/tasks → api/resources/eligibility}/client/Client.js +7 -7
- package/api/resources/eligibility/resources/index.d.ts +1 -0
- package/api/resources/eligibility/resources/index.js +27 -0
- package/api/resources/eligibility/resources/v2/client/Client.d.ts +35 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +107 -0
- package/api/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/api/resources/{tasks/resources/v3 → eligibility/resources/v2}/client/index.js +2 -2
- package/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +28 -0
- package/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +58 -0
- package/api/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/api/resources/eligibility/resources/v2/index.js +17 -0
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/exports/resources/v3/client/Client.d.ts +15 -0
- package/api/resources/exports/resources/v3/client/Client.js +16 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +3 -7
- package/api/resources/index.js +4 -8
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/payers/client/Client.d.ts +3 -4
- package/api/resources/payers/client/Client.js +4 -108
- package/api/resources/payers/client/index.d.ts +1 -3
- package/api/resources/payers/client/index.js +0 -30
- package/api/resources/payers/index.d.ts +1 -1
- package/api/resources/payers/index.js +1 -1
- package/api/resources/{tasks → payers}/resources/v3/client/Client.d.ts +2 -1
- package/api/resources/payers/resources/v3/client/Client.js +122 -0
- package/api/resources/{tasks/resources/v3/client/getActions.d.ts → payers/resources/v3/client/get.d.ts} +4 -4
- package/api/resources/{tasks/resources/v3/client/getActions.js → payers/resources/v3/client/get.js} +1 -1
- package/{dist/api/resources/tasks/resources/v3/client/getActions.d.ts → api/resources/payers/resources/v3/client/getAll.d.ts} +4 -4
- package/{dist/api/resources/tasks/resources/v3/client/getActions.js → api/resources/payers/resources/v3/client/getAll.js} +1 -1
- package/api/resources/payers/resources/v3/client/index.d.ts +3 -0
- package/api/resources/payers/resources/v3/client/index.js +32 -0
- package/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.d.ts +1 -1
- package/api/resources/payers/{types → resources/v3/types}/Payer.d.ts +2 -2
- package/api/resources/payers/{types → resources/v3/types}/PayerPage.d.ts +2 -2
- package/api/resources/payers/resources/v3/types/PayerUuid.d.ts +8 -0
- package/dist/Client.d.ts +6 -6
- package/dist/Client.js +20 -20
- package/dist/api/resources/auth/resources/v2/client/Client.d.ts +14 -0
- package/dist/api/resources/auth/resources/v2/client/Client.js +15 -1
- package/dist/api/resources/billingNotes/client/Client.d.ts +3 -3
- package/dist/api/resources/billingNotes/client/Client.js +4 -69
- package/dist/api/resources/billingNotes/client/index.d.ts +1 -2
- package/dist/api/resources/billingNotes/client/index.js +0 -29
- package/dist/api/resources/billingNotes/index.d.ts +1 -1
- package/dist/api/resources/billingNotes/index.js +1 -1
- package/dist/api/resources/billingNotes/resources/index.d.ts +1 -0
- package/dist/api/resources/billingNotes/resources/index.js +27 -0
- package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +18 -0
- package/{api/resources/tasks/resources/v3 → dist/api/resources/billingNotes/resources/v2}/client/Client.js +12 -9
- package/{api/resources/payers/client/get.d.ts → dist/api/resources/billingNotes/resources/v2/client/create.d.ts} +6 -6
- package/{api/resources/billingNotes → dist/api/resources/billingNotes/resources/v2}/client/create.js +2 -2
- package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
- package/dist/api/resources/billingNotes/resources/v2/client/index.js +31 -0
- package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +7 -0
- package/dist/api/resources/billingNotes/resources/v2/index.d.ts +2 -0
- package/dist/api/resources/billingNotes/resources/v2/index.js +18 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.d.ts +3 -3
- package/{api/resources/billingNotes → dist/api/resources/billingNotes/resources/v2}/types/BillingNoteId.d.ts +3 -3
- package/dist/api/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +6 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -1
- package/dist/api/resources/commons/types/index.js +1 -1
- package/dist/api/resources/{tasks → eligibility}/client/Client.d.ts +7 -7
- package/{api/resources/tasks → dist/api/resources/eligibility}/client/Client.js +7 -7
- package/dist/api/resources/eligibility/resources/index.d.ts +1 -0
- package/dist/api/resources/eligibility/resources/index.js +27 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +35 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +107 -0
- package/dist/api/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/dist/api/resources/{tasks/resources/v3 → eligibility/resources/v2}/client/index.js +2 -2
- package/dist/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +28 -0
- package/dist/api/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +58 -0
- package/dist/api/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/dist/api/resources/eligibility/resources/v2/index.js +17 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/exports/resources/v3/client/Client.d.ts +15 -0
- package/dist/api/resources/exports/resources/v3/client/Client.js +16 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +3 -7
- package/dist/api/resources/index.js +4 -8
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/payers/client/Client.d.ts +3 -4
- package/dist/api/resources/payers/client/Client.js +4 -108
- package/dist/api/resources/payers/client/index.d.ts +1 -3
- package/dist/api/resources/payers/client/index.js +0 -30
- package/dist/api/resources/payers/index.d.ts +1 -1
- package/dist/api/resources/payers/index.js +1 -1
- package/dist/api/resources/{tasks → payers}/resources/v3/client/Client.d.ts +2 -1
- package/dist/api/resources/payers/resources/v3/client/Client.js +122 -0
- package/dist/api/resources/payers/{client/getAll.d.ts → resources/v3/client/get.d.ts} +6 -6
- package/{api/resources/payers/client/getAll.js → dist/api/resources/payers/resources/v3/client/get.js} +2 -2
- package/dist/api/resources/payers/resources/v3/client/getAll.d.ts +22 -0
- package/dist/api/resources/payers/{client → resources/v3/client}/getAll.js +2 -2
- package/dist/api/resources/payers/resources/v3/client/index.d.ts +3 -0
- package/dist/api/resources/payers/resources/v3/client/index.js +32 -0
- package/dist/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.d.ts +1 -1
- package/dist/api/resources/payers/resources/v3/index.d.ts +2 -0
- package/dist/api/resources/payers/resources/v3/index.js +18 -0
- package/dist/api/resources/payers/{types → resources/v3/types}/Payer.d.ts +2 -2
- package/dist/api/resources/payers/{types → resources/v3/types}/PayerPage.d.ts +2 -2
- package/dist/api/resources/payers/resources/v3/types/PayerUuid.d.ts +8 -0
- package/dist/serialization/resources/billingNotes/index.d.ts +1 -2
- package/dist/serialization/resources/billingNotes/index.js +1 -2
- package/dist/serialization/resources/billingNotes/resources/index.d.ts +1 -0
- package/dist/serialization/resources/billingNotes/resources/index.js +27 -0
- package/dist/serialization/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +12 -0
- package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +3 -3
- package/dist/serialization/resources/billingNotes/resources/v2/index.d.ts +2 -0
- package/dist/serialization/resources/billingNotes/resources/v2/index.js +18 -0
- package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
- package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +4 -4
- package/{serialization/resources/tasks/resources/v3/types/TaskActions.d.ts → dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBase.d.ts} +3 -3
- package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +1 -1
- package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteId.d.ts +10 -0
- package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +3 -3
- package/dist/serialization/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +12 -0
- package/dist/serialization/resources/commons/types/{TaskId.js → HttpServiceUnavailableErrorMessage.js} +3 -7
- package/dist/serialization/resources/commons/types/index.d.ts +1 -1
- package/dist/serialization/resources/commons/types/index.js +1 -1
- package/dist/serialization/resources/eligibility/resources/index.d.ts +1 -0
- package/dist/serialization/resources/eligibility/resources/index.js +27 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/index.js +27 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +14 -0
- package/dist/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +46 -0
- package/dist/serialization/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/eligibility/resources/v2/index.js +17 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -6
- package/dist/serialization/resources/index.js +4 -7
- package/dist/serialization/resources/payers/index.d.ts +1 -1
- package/dist/serialization/resources/payers/index.js +1 -1
- package/dist/serialization/resources/payers/resources/v3/types/Payer.d.ts +14 -0
- package/{serialization/resources/payers → dist/serialization/resources/payers/resources/v3}/types/Payer.js +2 -2
- package/dist/serialization/resources/payers/resources/v3/types/PayerPage.d.ts +12 -0
- package/dist/serialization/resources/payers/{types → resources/v3/types}/PayerPage.js +3 -3
- package/dist/serialization/resources/payers/resources/v3/types/PayerUuid.d.ts +10 -0
- package/dist/serialization/resources/{tasks/resources/v3/types/TaskActionExecutionMethod.js → payers/resources/v3/types/PayerUuid.js} +4 -7
- package/package.json +1 -1
- package/serialization/resources/billingNotes/index.d.ts +1 -2
- package/serialization/resources/billingNotes/index.js +1 -2
- package/serialization/resources/billingNotes/resources/index.d.ts +1 -0
- package/serialization/resources/billingNotes/resources/index.js +27 -0
- package/serialization/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +12 -0
- package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +3 -3
- package/serialization/resources/billingNotes/resources/v2/index.d.ts +2 -0
- package/serialization/resources/billingNotes/resources/v2/index.js +18 -0
- package/serialization/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
- package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +4 -4
- package/{dist/serialization/resources/tasks/resources/v3/types/TaskActions.d.ts → serialization/resources/billingNotes/resources/v2/types/BillingNoteBase.d.ts} +3 -3
- package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +1 -1
- package/serialization/resources/billingNotes/resources/v2/types/BillingNoteId.d.ts +10 -0
- package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +3 -3
- package/serialization/resources/commons/types/HttpServiceUnavailableErrorMessage.d.ts +12 -0
- package/serialization/resources/commons/types/{TaskId.js → HttpServiceUnavailableErrorMessage.js} +3 -7
- package/serialization/resources/commons/types/index.d.ts +1 -1
- package/serialization/resources/commons/types/index.js +1 -1
- package/serialization/resources/eligibility/resources/index.d.ts +1 -0
- package/serialization/resources/eligibility/resources/index.js +27 -0
- package/serialization/resources/eligibility/resources/v2/client/index.d.ts +1 -0
- package/serialization/resources/eligibility/resources/v2/client/index.js +27 -0
- package/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.d.ts +14 -0
- package/serialization/resources/eligibility/resources/v2/client/submitEligibilityCheck.js +46 -0
- package/serialization/resources/eligibility/resources/v2/index.d.ts +1 -0
- package/serialization/resources/eligibility/resources/v2/index.js +17 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
- package/serialization/resources/index.d.ts +3 -6
- package/serialization/resources/index.js +4 -7
- package/serialization/resources/payers/index.d.ts +1 -1
- package/serialization/resources/payers/index.js +1 -1
- package/serialization/resources/payers/resources/v3/types/Payer.d.ts +14 -0
- package/{dist/serialization/resources/payers → serialization/resources/payers/resources/v3}/types/Payer.js +2 -2
- package/serialization/resources/payers/resources/v3/types/PayerPage.d.ts +12 -0
- package/serialization/resources/payers/{types → resources/v3/types}/PayerPage.js +3 -3
- package/serialization/resources/payers/resources/v3/types/PayerUuid.d.ts +10 -0
- package/serialization/resources/{tasks/resources/v3/types/TaskActionExecutionMethod.js → payers/resources/v3/types/PayerUuid.js} +4 -7
- package/api/resources/billingNotes/client/create.d.ts +0 -22
- package/api/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -7
- package/api/resources/commons/types/TaskId.d.ts +0 -8
- package/api/resources/commons/types/TaskId.js +0 -10
- package/api/resources/payers/client/get.js +0 -47
- package/api/resources/payers/client/getAll.d.ts +0 -22
- package/api/resources/payers/types/PayerUuid.d.ts +0 -8
- package/api/resources/tasks/resources/v3/client/index.d.ts +0 -1
- package/api/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -8
- package/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -10
- package/api/resources/tasks/resources/v3/types/TaskActions.d.ts +0 -7
- package/api/resources/tasks/resources/v3/types/TaskActions.js +0 -5
- package/api/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/api/resources/tasks/resources/v3/types/index.js +0 -19
- package/dist/api/resources/billingNotes/client/create.d.ts +0 -22
- package/dist/api/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -7
- package/dist/api/resources/commons/types/TaskId.d.ts +0 -8
- package/dist/api/resources/commons/types/TaskId.js +0 -10
- package/dist/api/resources/payers/client/get.js +0 -47
- package/dist/api/resources/payers/types/PayerUuid.d.ts +0 -8
- package/dist/api/resources/tasks/resources/v3/client/index.d.ts +0 -1
- package/dist/api/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -8
- package/dist/api/resources/tasks/resources/v3/types/TaskAction.js +0 -5
- package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -10
- package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +0 -5
- package/dist/api/resources/tasks/resources/v3/types/TaskActions.d.ts +0 -7
- package/dist/api/resources/tasks/resources/v3/types/TaskActions.js +0 -5
- package/dist/api/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/dist/api/resources/tasks/resources/v3/types/index.js +0 -19
- package/dist/serialization/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -12
- package/dist/serialization/resources/billingNotes/types/BillingNote.d.ts +0 -16
- package/dist/serialization/resources/billingNotes/types/BillingNoteBase.d.ts +0 -12
- package/dist/serialization/resources/billingNotes/types/BillingNoteId.d.ts +0 -10
- package/dist/serialization/resources/commons/types/TaskId.d.ts +0 -10
- package/dist/serialization/resources/payers/types/Payer.d.ts +0 -14
- package/dist/serialization/resources/payers/types/PayerPage.d.ts +0 -12
- package/dist/serialization/resources/payers/types/PayerUuid.d.ts +0 -10
- package/dist/serialization/resources/payers/types/PayerUuid.js +0 -37
- package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -13
- package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.js +0 -34
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -13
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActions.js +0 -33
- package/dist/serialization/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/dist/serialization/resources/tasks/resources/v3/types/index.js +0 -19
- package/serialization/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -12
- package/serialization/resources/billingNotes/types/BillingNote.d.ts +0 -16
- package/serialization/resources/billingNotes/types/BillingNoteBase.d.ts +0 -12
- package/serialization/resources/billingNotes/types/BillingNoteId.d.ts +0 -10
- package/serialization/resources/commons/types/TaskId.d.ts +0 -10
- package/serialization/resources/payers/types/Payer.d.ts +0 -14
- package/serialization/resources/payers/types/PayerPage.d.ts +0 -12
- package/serialization/resources/payers/types/PayerUuid.d.ts +0 -10
- package/serialization/resources/payers/types/PayerUuid.js +0 -37
- package/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -13
- package/serialization/resources/tasks/resources/v3/types/TaskAction.js +0 -34
- package/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -13
- package/serialization/resources/tasks/resources/v3/types/TaskActions.js +0 -33
- package/serialization/resources/tasks/resources/v3/types/index.d.ts +0 -3
- package/serialization/resources/tasks/resources/v3/types/index.js +0 -19
- package/api/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +0 -0
- package/api/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- package/api/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- package/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/index.d.ts +0 -0
- package/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/index.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.d.ts +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- package/api/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- package/api/resources/{payers/client/requests/GetAllPayersRequest.js → commons/types/HttpServiceUnavailableErrorMessage.js} +0 -0
- package/api/resources/{tasks → eligibility}/client/index.d.ts +0 -0
- package/api/resources/{payers/client/requests → eligibility/client}/index.js +0 -0
- package/api/resources/{tasks → eligibility}/index.d.ts +1 -1
- package/{dist/api/resources/tasks → api/resources/eligibility}/index.js +1 -1
- package/api/resources/{tasks → payers}/resources/index.d.ts +0 -0
- package/api/resources/{tasks → payers}/resources/index.js +0 -0
- package/{dist/api/resources/payers → api/resources/payers/resources/v3}/client/requests/GetAllPayersRequest.js +0 -0
- package/api/resources/payers/{client → resources/v3/client}/requests/index.d.ts +0 -0
- package/api/resources/{tasks/client → payers/resources/v3/client/requests}/index.js +0 -0
- package/{dist/api/resources/tasks → api/resources/payers}/resources/v3/index.d.ts +0 -0
- package/{dist/api/resources/tasks → api/resources/payers}/resources/v3/index.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/Payer.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/PayerPage.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/PayerUuid.js +0 -0
- package/api/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- package/api/resources/payers/{types → resources/v3/types}/index.js +0 -0
- package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +0 -0
- package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.d.ts +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- package/dist/api/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- package/{api/resources/tasks/resources/v3/types/TaskAction.js → dist/api/resources/commons/types/HttpServiceUnavailableErrorMessage.js} +0 -0
- package/dist/api/resources/{tasks → eligibility}/client/index.d.ts +0 -0
- package/dist/api/resources/{payers/client/requests → eligibility/client}/index.js +0 -0
- package/dist/api/resources/{tasks → eligibility}/index.d.ts +1 -1
- package/{api/resources/tasks → dist/api/resources/eligibility}/index.js +1 -1
- /package/dist/api/resources/{tasks → payers}/resources/index.d.ts +0 -0
- /package/dist/api/resources/{tasks → payers}/resources/index.js +0 -0
- /package/{api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js → dist/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.js} +0 -0
- /package/dist/api/resources/payers/{client → resources/v3/client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/{tasks/client → payers/resources/v3/client/requests}/index.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/Payer.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/PayerPage.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/PayerUuid.js +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- /package/dist/api/resources/payers/{types → resources/v3/types}/index.js +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/index.d.ts +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/index.js +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- /package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- /package/dist/serialization/resources/{tasks → eligibility}/index.d.ts +0 -0
- /package/dist/serialization/resources/{tasks → eligibility}/index.js +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/index.d.ts +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/index.js +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/v3/index.d.ts +0 -0
- /package/dist/serialization/resources/{tasks → payers}/resources/v3/index.js +0 -0
- /package/dist/serialization/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/payers/{types → resources/v3/types}/index.js +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/index.d.ts +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/index.js +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
- /package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
- /package/serialization/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
- /package/serialization/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
- /package/serialization/resources/{tasks → eligibility}/index.d.ts +0 -0
- /package/serialization/resources/{tasks → eligibility}/index.js +0 -0
- /package/serialization/resources/{tasks → payers}/resources/index.d.ts +0 -0
- /package/serialization/resources/{tasks → payers}/resources/index.js +0 -0
- /package/serialization/resources/{tasks → payers}/resources/v3/index.d.ts +0 -0
- /package/serialization/resources/{tasks → payers}/resources/v3/index.js +0 -0
- /package/serialization/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
- /package/serialization/resources/payers/{types → resources/v3/types}/index.js +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.v2 = void 0;
|
|
27
|
+
exports.v2 = __importStar(require("./v2"));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as CandidApi from "../../../../..";
|
|
7
|
+
export declare namespace V2 {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class V2 {
|
|
14
|
+
protected readonly options: V2.Options;
|
|
15
|
+
constructor(options: V2.Options);
|
|
16
|
+
/**
|
|
17
|
+
* This API is a wrapper around Change Healthcare's eligibility API. Below are some helpful documentation links:
|
|
18
|
+
*
|
|
19
|
+
* - [Change Healthcare - Guides: Contents of the Eligibility Request Body](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-request-body)
|
|
20
|
+
* - [Change Healthcare - Guides: Use "Bare Minimum" Eligibility Requests](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-bare-minimum-eligibility-requests)
|
|
21
|
+
* - [Change Healthcare - Guides: Contents of the Eligibility Response](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-response)
|
|
22
|
+
* - [Change Healthcare - Guides: Eligibility JSON-to-EDI API Contents](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-json-to-edi-api-contents)
|
|
23
|
+
* - [Change Healthcare - Guides: Eligibility Error Messages](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-error-messages)
|
|
24
|
+
* - [Change Healthcare - Guides: FAQ](https://developers.changehealthcare.com/eligibilityandclaims/docs/frequently-asked-questions)
|
|
25
|
+
* - [Change Healthcare - Guides: Eligibility FAQs](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-api-requests)
|
|
26
|
+
* - [Change Healthcare - Guides: Sandbox API Values and Test Responses](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-sandbox-api-values-and-test-responses)
|
|
27
|
+
* - [Change Healthcare - Guides: Sandbox Predefined Fields and Values](https://developers.changehealthcare.com/eligibilityandclaims/docs/sandbox-predefined-fields-and-values)
|
|
28
|
+
* - [Change Healthcare - Guides: Using Test Payers in the Sandbox](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-the-test-payers-in-the-sandbox-api)
|
|
29
|
+
*
|
|
30
|
+
* A schema of the response object can be found here: [Change Healthcare Docs](https://developers.changehealthcare.com/eligibilityandclaims/reference/medicaleligibility)
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
submitEligibilityCheck(request?: unknown): Promise<core.APIResponse<unknown, CandidApi.eligibility.v2.submitEligibilityCheck.Error>>;
|
|
34
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.V2 = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../../../core"));
|
|
35
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
37
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
38
|
+
class V2 {
|
|
39
|
+
options;
|
|
40
|
+
constructor(options) {
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* This API is a wrapper around Change Healthcare's eligibility API. Below are some helpful documentation links:
|
|
45
|
+
*
|
|
46
|
+
* - [Change Healthcare - Guides: Contents of the Eligibility Request Body](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-request-body)
|
|
47
|
+
* - [Change Healthcare - Guides: Use "Bare Minimum" Eligibility Requests](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-bare-minimum-eligibility-requests)
|
|
48
|
+
* - [Change Healthcare - Guides: Contents of the Eligibility Response](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-response)
|
|
49
|
+
* - [Change Healthcare - Guides: Eligibility JSON-to-EDI API Contents](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-json-to-edi-api-contents)
|
|
50
|
+
* - [Change Healthcare - Guides: Eligibility Error Messages](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-error-messages)
|
|
51
|
+
* - [Change Healthcare - Guides: FAQ](https://developers.changehealthcare.com/eligibilityandclaims/docs/frequently-asked-questions)
|
|
52
|
+
* - [Change Healthcare - Guides: Eligibility FAQs](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-api-requests)
|
|
53
|
+
* - [Change Healthcare - Guides: Sandbox API Values and Test Responses](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-sandbox-api-values-and-test-responses)
|
|
54
|
+
* - [Change Healthcare - Guides: Sandbox Predefined Fields and Values](https://developers.changehealthcare.com/eligibilityandclaims/docs/sandbox-predefined-fields-and-values)
|
|
55
|
+
* - [Change Healthcare - Guides: Using Test Payers in the Sandbox](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-the-test-payers-in-the-sandbox-api)
|
|
56
|
+
*
|
|
57
|
+
* A schema of the response object can be found here: [Change Healthcare Docs](https://developers.changehealthcare.com/eligibilityandclaims/reference/medicaleligibility)
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
async submitEligibilityCheck(request) {
|
|
61
|
+
const _response = await core.fetcher({
|
|
62
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/eligibility/v2"),
|
|
63
|
+
method: "POST",
|
|
64
|
+
headers: {
|
|
65
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
66
|
+
"X-Fern-Language": "JavaScript",
|
|
67
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
68
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
69
|
+
},
|
|
70
|
+
contentType: "application/json",
|
|
71
|
+
body: request,
|
|
72
|
+
timeoutMs: 60000,
|
|
73
|
+
});
|
|
74
|
+
if (_response.ok) {
|
|
75
|
+
return {
|
|
76
|
+
ok: true,
|
|
77
|
+
body: _response.body,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
if (_response.error.reason === "status-code") {
|
|
81
|
+
switch (_response.error.body?.errorName) {
|
|
82
|
+
case "HttpServiceUnavailableError":
|
|
83
|
+
return {
|
|
84
|
+
ok: false,
|
|
85
|
+
error: await serializers.eligibility.v2.submitEligibilityCheck.Error.parseOrThrow(_response.error.body, {
|
|
86
|
+
unrecognizedObjectKeys: "passthrough",
|
|
87
|
+
allowUnrecognizedUnionMembers: true,
|
|
88
|
+
allowUnrecognizedEnumValues: true,
|
|
89
|
+
breadcrumbsPrefix: ["response"],
|
|
90
|
+
}),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
ok: false,
|
|
96
|
+
error: CandidApi.eligibility.v2.submitEligibilityCheck.Error._unknown(_response.error),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
async _getAuthorizationHeader() {
|
|
100
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
101
|
+
if (bearer != null) {
|
|
102
|
+
return `Bearer ${bearer}`;
|
|
103
|
+
}
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.V2 = V2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as submitEligibilityCheck from "./submitEligibilityCheck";
|
|
@@ -23,5 +23,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
26
|
+
exports.submitEligibilityCheck = void 0;
|
|
27
|
+
exports.submitEligibilityCheck = __importStar(require("./submitEligibilityCheck"));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.eligibility.v2.submitEligibilityCheck.Error.HttpServiceUnavailableError | CandidApi.eligibility.v2.submitEligibilityCheck.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface HttpServiceUnavailableError extends _Utils {
|
|
9
|
+
errorName: "HttpServiceUnavailableError";
|
|
10
|
+
content: CandidApi.HttpServiceUnavailableErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.eligibility.v2.submitEligibilityCheck.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
httpServiceUnavailableError: (value: CandidApi.HttpServiceUnavailableErrorMessage) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly httpServiceUnavailableError: (value: CandidApi.HttpServiceUnavailableErrorMessage) => CandidApi.eligibility.v2.submitEligibilityCheck.Error.HttpServiceUnavailableError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.eligibility.v2.submitEligibilityCheck.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.eligibility.v2.submitEligibilityCheck.Error, visitor: CandidApi.eligibility.v2.submitEligibilityCheck.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
httpServiceUnavailableError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "HttpServiceUnavailableError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.eligibility.v2.submitEligibilityCheck.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_unknown: (fetcherError) => {
|
|
42
|
+
return {
|
|
43
|
+
errorName: undefined,
|
|
44
|
+
content: fetcherError,
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.eligibility.v2.submitEligibilityCheck.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_visit: (value, visitor) => {
|
|
51
|
+
switch (value.errorName) {
|
|
52
|
+
case "HttpServiceUnavailableError":
|
|
53
|
+
return visitor.httpServiceUnavailableError(value.content);
|
|
54
|
+
default:
|
|
55
|
+
return visitor._other(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -103,7 +103,7 @@ class V4 {
|
|
|
103
103
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V4 {
|
|
|
133
133
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
134
|
"X-Fern-Language": "JavaScript",
|
|
135
135
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.
|
|
136
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
timeoutMs: 60000,
|
|
@@ -162,7 +162,7 @@ class V4 {
|
|
|
162
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
163
|
"X-Fern-Language": "JavaScript",
|
|
164
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
166
166
|
},
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -212,7 +212,7 @@ class V4 {
|
|
|
212
212
|
Authorization: await this._getAuthorizationHeader(),
|
|
213
213
|
"X-Fern-Language": "JavaScript",
|
|
214
214
|
"X-Fern-SDK-Name": "candidhealth",
|
|
215
|
-
"X-Fern-SDK-Version": "0.
|
|
215
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
216
216
|
},
|
|
217
217
|
contentType: "application/json",
|
|
218
218
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -42,7 +42,7 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
|
42
42
|
* in the billing process.
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
|
-
billingNotes?: CandidApi.BillingNoteBase[];
|
|
45
|
+
billingNotes?: CandidApi.billingNotes.v2.BillingNoteBase[];
|
|
46
46
|
placeOfServiceCode: CandidApi.FacilityTypeCode;
|
|
47
47
|
patientHistories?: CandidApi.encounters.v4.PatientHistoryCategory[];
|
|
48
48
|
/**
|
|
@@ -22,7 +22,7 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
|
22
22
|
* used in the billing process.
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
-
billingNotes?: CandidApi.BillingNote[];
|
|
25
|
+
billingNotes?: CandidApi.billingNotes.v2.BillingNote[];
|
|
26
26
|
placeOfServiceCode?: CandidApi.FacilityTypeCode;
|
|
27
27
|
placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
|
|
28
28
|
patientHistories: CandidApi.encounters.v4.PatientHistoryCategory[];
|
|
@@ -48,7 +48,7 @@ class V1 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -13,6 +13,21 @@ export declare namespace V3 {
|
|
|
13
13
|
export declare class V3 {
|
|
14
14
|
protected readonly options: V3.Options;
|
|
15
15
|
constructor(options: V3.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve CSV-formatted reports on claim submissions and outcomes. This endpoint returns Export objects that contain an
|
|
18
|
+
* authenticated URL to a customer's reports with a 2min TTL. The schema for the CSV export can be found [here](https://app.joincandidhealth.com/files/exports_schema.csv).
|
|
19
|
+
*
|
|
20
|
+
* **Schema changes:** Changing column order, removing columns, or changing the name of a column is considered a
|
|
21
|
+
* [Breaking Change](../../../api-principles/breaking-changes). Adding new columns to the end of the Exports file is not considered a
|
|
22
|
+
* Breaking Change and happens periodically. For this reason, it is important that any downstream automation or processes built on top
|
|
23
|
+
* of Candid Health's export files be resilient to the addition of new columns at the end of the file.
|
|
24
|
+
*
|
|
25
|
+
* **SLA guarantees:** Files for a given date are guaranteed to be available after 3 business days. For example, Friday's file will be
|
|
26
|
+
* available by Wednesday at the latest. If file generation is still in progress upon request before 3 business days have passed, the
|
|
27
|
+
* caller will receive a 422 response. If the file has already been generated, it will be served. Please email
|
|
28
|
+
* support@joincandidhealth.com with any data requests outside of these stated guarantees.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
16
31
|
getExports(request: CandidApi.exports.v3.GetExportsRequest): Promise<core.APIResponse<CandidApi.exports.v3.GetExportsResponse, CandidApi.exports.v3.getExports.Error>>;
|
|
17
32
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
18
33
|
}
|
|
@@ -41,6 +41,21 @@ class V3 {
|
|
|
41
41
|
constructor(options) {
|
|
42
42
|
this.options = options;
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve CSV-formatted reports on claim submissions and outcomes. This endpoint returns Export objects that contain an
|
|
46
|
+
* authenticated URL to a customer's reports with a 2min TTL. The schema for the CSV export can be found [here](https://app.joincandidhealth.com/files/exports_schema.csv).
|
|
47
|
+
*
|
|
48
|
+
* **Schema changes:** Changing column order, removing columns, or changing the name of a column is considered a
|
|
49
|
+
* [Breaking Change](../../../api-principles/breaking-changes). Adding new columns to the end of the Exports file is not considered a
|
|
50
|
+
* Breaking Change and happens periodically. For this reason, it is important that any downstream automation or processes built on top
|
|
51
|
+
* of Candid Health's export files be resilient to the addition of new columns at the end of the file.
|
|
52
|
+
*
|
|
53
|
+
* **SLA guarantees:** Files for a given date are guaranteed to be available after 3 business days. For example, Friday's file will be
|
|
54
|
+
* available by Wednesday at the latest. If file generation is still in progress upon request before 3 business days have passed, the
|
|
55
|
+
* caller will receive a 422 response. If the file has already been generated, it will be served. Please email
|
|
56
|
+
* support@joincandidhealth.com with any data requests outside of these stated guarantees.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
44
59
|
async getExports(request) {
|
|
45
60
|
const { startDate, endDate } = request;
|
|
46
61
|
const _queryParams = new url_search_params_1.default();
|
|
@@ -53,7 +68,7 @@ class V3 {
|
|
|
53
68
|
Authorization: await this._getAuthorizationHeader(),
|
|
54
69
|
"X-Fern-Language": "JavaScript",
|
|
55
70
|
"X-Fern-SDK-Name": "candidhealth",
|
|
56
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
57
72
|
},
|
|
58
73
|
contentType: "application/json",
|
|
59
74
|
queryParameters: _queryParams,
|
|
@@ -48,7 +48,7 @@ class V1 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -94,7 +94,7 @@ class V1 {
|
|
|
94
94
|
Authorization: await this._getAuthorizationHeader(),
|
|
95
95
|
"X-Fern-Language": "JavaScript",
|
|
96
96
|
"X-Fern-SDK-Name": "candidhealth",
|
|
97
|
-
"X-Fern-SDK-Version": "0.
|
|
97
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
98
98
|
},
|
|
99
99
|
contentType: "application/json",
|
|
100
100
|
timeoutMs: 60000,
|
|
@@ -123,7 +123,7 @@ class V1 {
|
|
|
123
123
|
Authorization: await this._getAuthorizationHeader(),
|
|
124
124
|
"X-Fern-Language": "JavaScript",
|
|
125
125
|
"X-Fern-SDK-Name": "candidhealth",
|
|
126
|
-
"X-Fern-SDK-Version": "0.
|
|
126
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
127
127
|
},
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as auth from "./auth";
|
|
2
|
+
export * as billingNotes from "./billingNotes";
|
|
2
3
|
export * as encounterProviders from "./encounterProviders";
|
|
3
4
|
export * as encounters from "./encounters";
|
|
4
5
|
export * as expectedNetworkStatus from "./expectedNetworkStatus";
|
|
@@ -6,10 +7,8 @@ export * as exports from "./exports";
|
|
|
6
7
|
export * as guarantor from "./guarantor";
|
|
7
8
|
export * as organizationProviders from "./organizationProviders";
|
|
8
9
|
export * as patientPayments from "./patientPayments";
|
|
10
|
+
export * as payers from "./payers";
|
|
9
11
|
export * as serviceLines from "./serviceLines";
|
|
10
|
-
export * as tasks from "./tasks";
|
|
11
|
-
export * as billingNotes from "./billingNotes";
|
|
12
|
-
export * from "./billingNotes/types";
|
|
13
12
|
export * as claims from "./claims";
|
|
14
13
|
export * from "./claims/types";
|
|
15
14
|
export * as commons from "./commons";
|
|
@@ -28,11 +27,8 @@ export * as insuranceCard from "./insuranceCard";
|
|
|
28
27
|
export * from "./insuranceCard/types";
|
|
29
28
|
export * as invoices from "./invoices";
|
|
30
29
|
export * from "./invoices/types";
|
|
31
|
-
export * as payers from "./payers";
|
|
32
|
-
export * from "./payers/types";
|
|
33
30
|
export * as serviceFacility from "./serviceFacility";
|
|
34
31
|
export * from "./serviceFacility/types";
|
|
35
32
|
export * as tags from "./tags";
|
|
36
33
|
export * from "./tags/types";
|
|
37
|
-
export * from "./
|
|
38
|
-
export * from "./payers/client/requests";
|
|
34
|
+
export * as eligibility from "./eligibility";
|
package/api/resources/index.js
CHANGED
|
@@ -26,8 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.insuranceCard = exports.individual = exports.identifiers = exports.era = exports.diagnoses = exports.contracts = exports.commons = exports.claims = exports.serviceLines = exports.payers = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.billingNotes = exports.auth = void 0;
|
|
30
30
|
exports.auth = __importStar(require("./auth"));
|
|
31
|
+
exports.billingNotes = __importStar(require("./billingNotes"));
|
|
31
32
|
exports.encounterProviders = __importStar(require("./encounterProviders"));
|
|
32
33
|
exports.encounters = __importStar(require("./encounters"));
|
|
33
34
|
exports.expectedNetworkStatus = __importStar(require("./expectedNetworkStatus"));
|
|
@@ -35,10 +36,8 @@ exports.exports = __importStar(require("./exports"));
|
|
|
35
36
|
exports.guarantor = __importStar(require("./guarantor"));
|
|
36
37
|
exports.organizationProviders = __importStar(require("./organizationProviders"));
|
|
37
38
|
exports.patientPayments = __importStar(require("./patientPayments"));
|
|
39
|
+
exports.payers = __importStar(require("./payers"));
|
|
38
40
|
exports.serviceLines = __importStar(require("./serviceLines"));
|
|
39
|
-
exports.tasks = __importStar(require("./tasks"));
|
|
40
|
-
exports.billingNotes = __importStar(require("./billingNotes"));
|
|
41
|
-
__exportStar(require("./billingNotes/types"), exports);
|
|
42
41
|
exports.claims = __importStar(require("./claims"));
|
|
43
42
|
__exportStar(require("./claims/types"), exports);
|
|
44
43
|
exports.commons = __importStar(require("./commons"));
|
|
@@ -57,11 +56,8 @@ exports.insuranceCard = __importStar(require("./insuranceCard"));
|
|
|
57
56
|
__exportStar(require("./insuranceCard/types"), exports);
|
|
58
57
|
exports.invoices = __importStar(require("./invoices"));
|
|
59
58
|
__exportStar(require("./invoices/types"), exports);
|
|
60
|
-
exports.payers = __importStar(require("./payers"));
|
|
61
|
-
__exportStar(require("./payers/types"), exports);
|
|
62
59
|
exports.serviceFacility = __importStar(require("./serviceFacility"));
|
|
63
60
|
__exportStar(require("./serviceFacility/types"), exports);
|
|
64
61
|
exports.tags = __importStar(require("./tags"));
|
|
65
62
|
__exportStar(require("./tags/types"), exports);
|
|
66
|
-
|
|
67
|
-
__exportStar(require("./payers/client/requests"), exports);
|
|
63
|
+
exports.eligibility = __importStar(require("./eligibility"));
|
|
@@ -49,7 +49,7 @@ class V3 {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -115,7 +115,7 @@ class V3 {
|
|
|
115
115
|
Authorization: await this._getAuthorizationHeader(),
|
|
116
116
|
"X-Fern-Language": "JavaScript",
|
|
117
117
|
"X-Fern-SDK-Name": "candidhealth",
|
|
118
|
-
"X-Fern-SDK-Version": "0.
|
|
118
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
119
119
|
},
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
queryParameters: _queryParams,
|
|
@@ -145,7 +145,7 @@ class V3 {
|
|
|
145
145
|
Authorization: await this._getAuthorizationHeader(),
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "candidhealth",
|
|
148
|
-
"X-Fern-SDK-Version": "0.
|
|
148
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
149
149
|
},
|
|
150
150
|
contentType: "application/json",
|
|
151
151
|
body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
|
|
@@ -191,7 +191,7 @@ class V3 {
|
|
|
191
191
|
Authorization: await this._getAuthorizationHeader(),
|
|
192
192
|
"X-Fern-Language": "JavaScript",
|
|
193
193
|
"X-Fern-SDK-Name": "candidhealth",
|
|
194
|
-
"X-Fern-SDK-Version": "0.
|
|
194
|
+
"X-Fern-SDK-Version": "0.6.1",
|
|
195
195
|
},
|
|
196
196
|
contentType: "application/json",
|
|
197
197
|
body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import
|
|
6
|
+
import { V3 } from "../resources/v3/client/Client";
|
|
7
7
|
export declare namespace Payers {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: environments.CandidApiEnvironment | string;
|
|
@@ -13,7 +13,6 @@ export declare namespace Payers {
|
|
|
13
13
|
export declare class Payers {
|
|
14
14
|
protected readonly options: Payers.Options;
|
|
15
15
|
constructor(options: Payers.Options);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
16
|
+
protected _v3: V3 | undefined;
|
|
17
|
+
get v3(): V3;
|
|
19
18
|
}
|