Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @doctorlink/traversal-redux

Index

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

BaseRootActions

ChatReducer

ChatTraversalAction

CloseModal

CloseModal: Action<typeof CLOSE_MODAL>

ConclusionReducer

ConclusionReducer: Reducer<ConclusionState, TraversalAction | ChatTraversalAction>

ConclusionsSelector

ConclusionsSelector: Selector<RootState, Conclusion[]>

HealthAssessmentReducer

HealthAssessmentReducer: Reducer<HealthAssessmentState, HraAction>

HraAction

ModalAction

ModalAction: PopulateModal | CloseModal

ModalReducer

ModalReducer: Reducer<ModalState, ModalAction>

SummaryReducer

TraversalAction

TraversalReducer

TraversalReducer: Reducer<TraversalState, TraversalAction>

Variables

Const ALGO_SEARCH_DATA_GET_REQUEST

ALGO_SEARCH_DATA_GET_REQUEST: "ALGO_SEARCH_DATA_GET_REQUEST" = "ALGO_SEARCH_DATA_GET_REQUEST"

Const ALGO_SEARCH_DATA_GET_RESPONSE

ALGO_SEARCH_DATA_GET_RESPONSE: "ALGO_SEARCH_DATA_GET_RESPONSE" = "ALGO_SEARCH_DATA_GET_RESPONSE"

Const CHATTRAVERSAL_CHECKBOX_TOGGLE

CHATTRAVERSAL_CHECKBOX_TOGGLE: "CHATTRAVERSAL_CHECKBOX_TOGGLE" = "CHATTRAVERSAL_CHECKBOX_TOGGLE"

Const CHATTRAVERSAL_CONCLUSIONS_GET_REQUEST

CHATTRAVERSAL_CONCLUSIONS_GET_REQUEST: "CHATTRAVERSAL_CONCLUSIONS_GET_REQUEST" = "CHATTRAVERSAL_CONCLUSIONS_GET_REQUEST"

Const CHATTRAVERSAL_CONCLUSIONS_GET_RESPONSE

CHATTRAVERSAL_CONCLUSIONS_GET_RESPONSE: "CHATTRAVERSAL_CONCLUSIONS_GET_RESPONSE" = "CHATTRAVERSAL_CONCLUSIONS_GET_RESPONSE"

Const CHATTRAVERSAL_CONCLUSION_REPORT_GET_REQUEST

CHATTRAVERSAL_CONCLUSION_REPORT_GET_REQUEST: "CHATTRAVERSAL_CONCLUSION_REPORT_GET_REQUEST" = "CHATTRAVERSAL_CONCLUSION_REPORT_GET_REQUEST"

Const CHATTRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE

CHATTRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE: "CHATTRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE" = "CHATTRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE"

Const CHATTRAVERSAL_GET_REQUEST

CHATTRAVERSAL_GET_REQUEST: "CHATTRAVERSAL_GET_REQUEST" = "CHATTRAVERSAL_GET_REQUEST"

Const CHATTRAVERSAL_GET_RESPONSE

CHATTRAVERSAL_GET_RESPONSE: "CHATTRAVERSAL_GET_RESPONSE" = "CHATTRAVERSAL_GET_RESPONSE"

Const CHATTRAVERSAL_POST_REQUEST

CHATTRAVERSAL_POST_REQUEST: "CHATTRAVERSAL_POST_REQUEST" = "CHATTRAVERSAL_POST_REQUEST"

Const CHATTRAVERSAL_POST_RESPONSE

CHATTRAVERSAL_POST_RESPONSE: "CHATTRAVERSAL_POST_RESPONSE" = "CHATTRAVERSAL_POST_RESPONSE"

Const CHATTRAVERSAL_PREVIOUS_POST_REQUEST

CHATTRAVERSAL_PREVIOUS_POST_REQUEST: "CHATTRAVERSAL_PREVIOUS_POST_REQUEST" = "CHATTRAVERSAL_PREVIOUS_POST_REQUEST"

Const CHATTRAVERSAL_PREVIOUS_POST_RESPONSE

CHATTRAVERSAL_PREVIOUS_POST_RESPONSE: "CHATTRAVERSAL_PREVIOUS_POST_RESPONSE" = "CHATTRAVERSAL_PREVIOUS_POST_RESPONSE"

Const CHATTRAVERSAL_RADIO_TOGGLE

CHATTRAVERSAL_RADIO_TOGGLE: "CHATTRAVERSAL_RADIO_TOGGLE" = "CHATTRAVERSAL_RADIO_TOGGLE"

Const CHATTRAVERSAL_RESPOND_POST_REQUEST

CHATTRAVERSAL_RESPOND_POST_REQUEST: "CHATTRAVERSAL_RESPOND_POST_REQUEST" = "CHATTRAVERSAL_RESPOND_POST_REQUEST"

Const CHATTRAVERSAL_RESPOND_POST_RESPONSE

CHATTRAVERSAL_RESPOND_POST_RESPONSE: "CHATTRAVERSAL_RESPOND_POST_RESPONSE" = "CHATTRAVERSAL_RESPOND_POST_RESPONSE"

Const CHATTRAVERSAL_REVISIT_POST_REQUEST

CHATTRAVERSAL_REVISIT_POST_REQUEST: "CHATTRAVERSAL_REVISIT_POST_REQUEST" = "CHATTRAVERSAL_REVISIT_POST_REQUEST"

Const CHATTRAVERSAL_REVISIT_POST_RESPONSE

CHATTRAVERSAL_REVISIT_POST_RESPONSE: "CHATTRAVERSAL_REVISIT_POST_RESPONSE" = "CHATTRAVERSAL_REVISIT_POST_RESPONSE"

Const CHATTRAVERSAL_SET_BASE_URL

CHATTRAVERSAL_SET_BASE_URL: "CHATTRAVERSAL_SET_BASE_URL" = "CHATTRAVERSAL_SET_BASE_URL"

Const CHATTRAVERSAL_SUMMARY_GET_REQUEST

CHATTRAVERSAL_SUMMARY_GET_REQUEST: "CHATTRAVERSAL_SUMMARY_GET_REQUEST" = "CHATTRAVERSAL_SUMMARY_GET_REQUEST"

Const CHATTRAVERSAL_SUMMARY_GET_RESPONSE

CHATTRAVERSAL_SUMMARY_GET_RESPONSE: "CHATTRAVERSAL_SUMMARY_GET_RESPONSE" = "CHATTRAVERSAL_SUMMARY_GET_RESPONSE"

Const CHATTRAVERSAL_VALUE_CHANGE

CHATTRAVERSAL_VALUE_CHANGE: "CHATTRAVERSAL_VALUE_CHANGE" = "CHATTRAVERSAL_VALUE_CHANGE"

Const CLOSE_MODAL

CLOSE_MODAL: "CLOSE_MODAL" = "CLOSE_MODAL"

Const HEALTH_AGE_GET_REQUEST

HEALTH_AGE_GET_REQUEST: "HEALTH_AGE_GET_REQUEST" = "HEALTH_AGE_GET_REQUEST"

Const HEALTH_AGE_GET_RESPONSE

HEALTH_AGE_GET_RESPONSE: "HEALTH_AGE_GET_RESPONSE" = "HEALTH_AGE_GET_RESPONSE"

Const HEALTH_RISKS_GET_REQUEST

HEALTH_RISKS_GET_REQUEST: "HEALTH_RISKS_GET_REQUEST" = "HEALTH_RISKS_GET_REQUEST"

Const HEALTH_RISKS_GET_RESPONSE

HEALTH_RISKS_GET_RESPONSE: "HEALTH_RISKS_GET_RESPONSE" = "HEALTH_RISKS_GET_RESPONSE"

Const HRA_COMPARISONREPORT_GET_REQUEST

HRA_COMPARISONREPORT_GET_REQUEST: "HRA_COMPARISONREPORT_GET_REQUEST" = "HRA_COMPARISONREPORT_GET_REQUEST"

Const HRA_COMPARISONREPORT_GET_RESPONSE

HRA_COMPARISONREPORT_GET_RESPONSE: "HRA_COMPARISONREPORT_GET_RESPONSE" = "HRA_COMPARISONREPORT_GET_RESPONSE"

Const HRA_CONCLUSION_CHECK

HRA_CONCLUSION_CHECK: "HRA_CONCLUSION_CHECK" = "HRA_CONCLUSION_CHECK"

Const HRA_CONCLUSION_UNCHECK

HRA_CONCLUSION_UNCHECK: "HRA_CONCLUSION_UNCHECK" = "HRA_CONCLUSION_UNCHECK"

Const HRA_SET_BASE_URL

HRA_SET_BASE_URL: "HRA_SET_BASE_URL" = "HRA_SET_BASE_URL"

Const OT_SET_BASE_URL

OT_SET_BASE_URL: "OT_SET_BASE_URL" = "OT_SET_BASE_URL"

Const POPULATE_MODAL

POPULATE_MODAL: "POPULATE_MODAL" = "POPULATE_MODAL"

Const SERVICE_SAGA_ERROR

SERVICE_SAGA_ERROR: "SERVICE_SAGA_ERROR" = "SERVICE_SAGA_ERROR"

Const TRAVERSAL_CHECKBOX_TOGGLE

TRAVERSAL_CHECKBOX_TOGGLE: "TRAVERSAL_CHECKBOX_TOGGLE" = "TRAVERSAL_CHECKBOX_TOGGLE"

Const TRAVERSAL_CONCLUSIONS_GET_REQUEST

TRAVERSAL_CONCLUSIONS_GET_REQUEST: "TRAVERSAL_CONCLUSIONS_GET_REQUEST" = "TRAVERSAL_CONCLUSIONS_GET_REQUEST"

Const TRAVERSAL_CONCLUSIONS_GET_RESPONSE

TRAVERSAL_CONCLUSIONS_GET_RESPONSE: "TRAVERSAL_CONCLUSIONS_GET_RESPONSE" = "TRAVERSAL_CONCLUSIONS_GET_RESPONSE"

Const TRAVERSAL_CONCLUSION_REPORT_GET_REQUEST

TRAVERSAL_CONCLUSION_REPORT_GET_REQUEST: "TRAVERSAL_CONCLUSION_REPORT_GET_REQUEST" = "TRAVERSAL_CONCLUSION_REPORT_GET_REQUEST"

Const TRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE

TRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE: "TRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE" = "TRAVERSAL_CONCLUSION_REPORT_GET_RESPONSE"

Const TRAVERSAL_GET_REQUEST

TRAVERSAL_GET_REQUEST: "TRAVERSAL_GET_REQUEST" = "TRAVERSAL_GET_REQUEST"

Const TRAVERSAL_GET_RESPONSE

TRAVERSAL_GET_RESPONSE: "TRAVERSAL_GET_RESPONSE" = "TRAVERSAL_GET_RESPONSE"

Const TRAVERSAL_POST_REQUEST

TRAVERSAL_POST_REQUEST: "TRAVERSAL_POST_REQUEST" = "TRAVERSAL_POST_REQUEST"

Const TRAVERSAL_POST_RESPONSE

TRAVERSAL_POST_RESPONSE: "TRAVERSAL_POST_RESPONSE" = "TRAVERSAL_POST_RESPONSE"

Const TRAVERSAL_PREVIOUS_POST_REQUEST

TRAVERSAL_PREVIOUS_POST_REQUEST: "TRAVERSAL_PREVIOUS_POST_REQUEST" = "TRAVERSAL_PREVIOUS_POST_REQUEST"

Const TRAVERSAL_PREVIOUS_POST_RESPONSE

TRAVERSAL_PREVIOUS_POST_RESPONSE: "TRAVERSAL_PREVIOUS_POST_RESPONSE" = "TRAVERSAL_PREVIOUS_POST_RESPONSE"

Const TRAVERSAL_RADIO_TOGGLE

TRAVERSAL_RADIO_TOGGLE: "TRAVERSAL_RADIO_TOGGLE" = "TRAVERSAL_RADIO_TOGGLE"

Const TRAVERSAL_RESPOND_POST_REQUEST

TRAVERSAL_RESPOND_POST_REQUEST: "TRAVERSAL_RESPOND_POST_REQUEST" = "TRAVERSAL_RESPOND_POST_REQUEST"

Const TRAVERSAL_RESPOND_POST_RESPONSE

TRAVERSAL_RESPOND_POST_RESPONSE: "TRAVERSAL_RESPOND_POST_RESPONSE" = "TRAVERSAL_RESPOND_POST_RESPONSE"

Const TRAVERSAL_REVISIT_POST_REQUEST

TRAVERSAL_REVISIT_POST_REQUEST: "TRAVERSAL_REVISIT_POST_REQUEST" = "TRAVERSAL_REVISIT_POST_REQUEST"

Const TRAVERSAL_REVISIT_POST_RESPONSE

TRAVERSAL_REVISIT_POST_RESPONSE: "TRAVERSAL_REVISIT_POST_RESPONSE" = "TRAVERSAL_REVISIT_POST_RESPONSE"

Const TRAVERSAL_SET_BASE_URL

TRAVERSAL_SET_BASE_URL: "TRAVERSAL_SET_BASE_URL" = "TRAVERSAL_SET_BASE_URL"

Const TRAVERSAL_SUMMARY_GET_REQUEST

TRAVERSAL_SUMMARY_GET_REQUEST: "TRAVERSAL_SUMMARY_GET_REQUEST" = "TRAVERSAL_SUMMARY_GET_REQUEST"

Const TRAVERSAL_SUMMARY_GET_RESPONSE

TRAVERSAL_SUMMARY_GET_RESPONSE: "TRAVERSAL_SUMMARY_GET_RESPONSE" = "TRAVERSAL_SUMMARY_GET_RESPONSE"

Const TRAVERSAL_VALUE_CHANGE

TRAVERSAL_VALUE_CHANGE: "TRAVERSAL_VALUE_CHANGE" = "TRAVERSAL_VALUE_CHANGE"

Const WELLNESS_GET_REQUEST

WELLNESS_GET_REQUEST: "WELLNESS_GET_REQUEST" = "WELLNESS_GET_REQUEST"

Const WELLNESS_GET_RESPONSE

WELLNESS_GET_RESPONSE: "WELLNESS_GET_RESPONSE" = "WELLNESS_GET_RESPONSE"

Const actionsNowDueSelector

actionsNowDueSelector: ConclusionsSelector = createSelector(conclusionsSelector,(conclusions) =>conclusions.filter((c) => c.subCategory === 'Actions Now Due').map((c) => ({...c,displayText: c.clinicalText.split('|')[1],})))

Const additionalConclusionsSelector

additionalConclusionsSelector: ConclusionsSelector = createSelector(nonSilentConclusionsSelector,riskConclusionsSelector,wellnessConclusionsSelector,(conclusions, riskConclusions, wellnessConclusions) =>conclusions.filter((c) =>riskConclusions.indexOf(c) === -1 &&wellnessConclusions.indexOf(c) === -1))

Const allConclusionIdsSelector

allConclusionIdsSelector: Selector<RootState, number[]> = createSelector(healthAgeConclusionIdsSelector,riskConclusionIdsSelector,wellnessConclusionIdsSelector,(healthConclusionIds, riskConclusionIds, wellnessConclusionIds) =>mergeArrays(healthConclusionIds, riskConclusionIds, wellnessConclusionIds))

Const allConclusionsSelector

allConclusionsSelector: (state: S) => R = createFilteredConclusionsSelector(allConclusionIdsSelector)

Type declaration

    • (state: S): R
    • Parameters

      • state: S

      Returns R

Const comparisonReportSelector

comparisonReportSelector: Selector<RootState, HealthComparisonModel | null> = createSelector(healthAssessmentSelector,(healthAssessment) => healthAssessment.comparisonReport)

Const healthAgeConclusionIdsSelector

healthAgeConclusionIdsSelector: Selector<RootState, number[]> = createSelector(healthAssessmentSelector,(hra) => hra.healthAge.checkableConclusions)

Const healthAgeConclusionsSelector

healthAgeConclusionsSelector: (state: S) => R = createFilteredConclusionsSelector(healthAgeConclusionIdsSelector)

Type declaration

    • (state: S): R
    • Parameters

      • state: S

      Returns R

Const healthAgeDiffSelector

healthAgeDiffSelector: Selector<RootState, number> = createSelector(healthAssessmentSelector,(healthAssessment) => {const { age, healthAge } = healthAssessment.healthAge;return healthAge - age;})

Const healthAgeExplanationSelector

healthAgeExplanationSelector: Selector<RootState, string | null> = createSelector(healthAgeRulesSelector,healthAgeDiffSelector,(rules, healthAgeDiff) => rules && rules.getRuleValue(healthAgeDiff))

Const healthAgeRulesSelector

healthAgeRulesSelector: Selector<RootState, XmlRules | null> = createSelector(conclusionsSelector, (conclusions) => {const conclusion = conclusions.find((c) => c.category1 === 'Health Age');if (!conclusion) return null;return new XmlRules(conclusion.moreDetail);})

Const myNumbersSelector

myNumbersSelector: Selector<RootState, NumberConclusion[]> = createSelector(conclusionsSelector, (conclusions) =>conclusions.filter((c) => c.category1 === 'My Numbers').map(parseNumberConclusion))

Const nonSilentConclusionsSelector

nonSilentConclusionsSelector: (state: S) => R & { recomputations: () => number; resetRecomputations: () => number; resultFunc: C } = createSelector(conclusionsSelector,(conclusions) => conclusions.filter((c) => !c.silent))

Const riskConclusionIdsSelector

riskConclusionIdsSelector: Selector<RootState, number[]> = createSelector(healthAssessmentSelector,(hra) => hra.riskSummary.checkableConclusions)

Const riskConclusionsSelector

riskConclusionsSelector: (state: S) => R = createFilteredConclusionsSelector(riskConclusionIdsSelector)

Type declaration

    • (state: S): R
    • Parameters

      • state: S

      Returns R

Const riskExplanationsSelector

riskExplanationsSelector: ConclusionsSelector = createSelector(conclusionsSelector,(conclusions) =>conclusions.filter((c) => c.category1 === 'Risk Models' && c.category2 === '2'))

Const serviceSagaErrorHandler

serviceSagaErrorHandler: SimpleEffect<"FORK", ForkEffectDescriptor<never>> = takeLatest(SERVICE_SAGA_ERROR,function* webApiError(action: ServiceSagaError) {const { error } = action;if (error.response) {// The request was made and the server responded with a status code// that falls out of the range of 2xxconsole.log(error.response.data);console.log(error.response.status);console.log(error.response.headers);} else if (error.request) {// The request was made but no response was received// `error.request` is an instance of XMLHttpRequest in the browser and an instance of// http.ClientRequest in node.jsconsole.log(error.request);} else {// Something happened in setting up the request that triggered an Errorconsole.log('Error', error.message);}yield call(console.log, error.config);})

Const wellnessConclusionIdsSelector

wellnessConclusionIdsSelector: Selector<RootState, number[]> = createSelector(healthAssessmentSelector,(hra) => hra.wellness.checkableConclusions)

Const wellnessConclusionsSelector

wellnessConclusionsSelector: (state: S) => R = createFilteredConclusionsSelector(wellnessConclusionIdsSelector)

Type declaration

    • (state: S): R
    • Parameters

      • state: S

      Returns R

Const wellnessExplanationsSelector

wellnessExplanationsSelector: ConclusionsSelector = createSelector(conclusionsSelector,(conclusions) =>conclusions.filter((c) => c.category1 === 'Wellbeing Models' && c.category2 === '2'))

Functions

Const algoSearchDataGetRequest

  • Parameters

    • answerId: string

    Returns AlgoSearchDataGetRequest

Const algoSearchDataGetResponse

  • Parameters

    • answerId: string
    • algos: AlgoSearchModel[]

    Returns AlgoSearchDataGetResponse

Const answersReducer

Const chatAnswersReducer

Const chatReducer

Const chatTraversalCheckboxToggle

  • Parameters

    • id: string
    • answerIds: string[]

    Returns ChatTraversalCheckboxToggle

Const chatTraversalConclusionReportGetRequest

Const chatTraversalConclusionReportGetResponse

Const chatTraversalConclusionsGetRequest

Const chatTraversalConclusionsGetResponse

Const chatTraversalGetRequest

  • Parameters

    • traversalId: string

    Returns ChatTraversalGetRequest

Const chatTraversalGetResponse

  • Parameters

    • traversal: ChatModel

    Returns ChatTraversalGetResponse

Const chatTraversalPostRequest

Const chatTraversalPostResponse

  • Parameters

    • traversal: ChatModel

    Returns ChatTraversalPostResponse

Const chatTraversalPreviousPostRequest

Const chatTraversalPreviousPostResponse

Const chatTraversalRadioToggle

  • chatTraversalRadioToggle(id: string, answerIds: string[], checked?: undefined | false | true): ChatTraversalRadioToggle
  • Parameters

    • id: string
    • answerIds: string[]
    • Optional checked: undefined | false | true

    Returns ChatTraversalRadioToggle

Const chatTraversalRespondPostRequest

Const chatTraversalRespondPostResponse

Const chatTraversalRevisitPostRequest

  • Parameters

    • traversalId: string
    • body: ChatTraversalsRevisit

    Returns ChatTraversalRevisitPostRequest

Const chatTraversalRevisitPostResponse

Const chatTraversalSetBaseUrl

  • Parameters

    • baseUrl: string

    Returns ChatTraversalSetBaseUrl

Const chatTraversalSummaryGetRequest

Const chatTraversalSummaryGetResponse

  • Parameters

    • questions: SummaryQuestion[] | null

    Returns ChatTraversalSummaryGetResponse

Const chatTraversalValueChange

  • chatTraversalValueChange(id: string, answerIds: string[], value: string): ChatTraversalAction
  • Parameters

    • id: string
    • answerIds: string[]
    • value: string

    Returns ChatTraversalAction

Const checkbox

Const closeModal

  • Returns CloseModal

Const conclusionReducer

Const conclusionsSelector

  • conclusionsSelector(state: TraversalRootState | ChatTraversalRootState): Conclusion[]
  • Parameters

    • state: TraversalRootState | ChatTraversalRootState

    Returns Conclusion[]

Const createFilteredConclusionsSelector

  • Parameters

    • conclusionIdsSelector: Selector<RootState, number[]>

    Returns ConclusionsSelector

Const data

  • Parameters

    Returns { [answerId]: object }

    • [answerId]: object
      • data: object
        • algos: AlgoSearchModel[]

Const healthAgeGetRequest

  • Parameters

    • traversalId: string
    • conclusions: number[]

    Returns HealthAgeGetRequest

Const healthAgeGetResponse

  • Parameters

    • healthAge: HealthAgeModel

    Returns HealthAgeGetResponse

Const healthAssessmentReducer

Const healthAssessmentSelector

  • healthAssessmentSelector(state: RootState): HealthAssessmentModel
  • Parameters

    Returns HealthAssessmentModel

Const healthRisksGetRequest

  • healthRisksGetRequest(traversalId: string, ages: number[], conclusions: number[]): HraAction
  • Parameters

    • traversalId: string
    • ages: number[]
    • conclusions: number[]

    Returns HraAction

Const healthRisksGetResponse

  • healthRisksGetResponse(healthRisks: HealthRisksModel): HraAction
  • Parameters

    • healthRisks: HealthRisksModel

    Returns HraAction

Const hraComparisonReportGetRequest

  • Parameters

    • currentTraversal: string
    • pastTraversal: string
    • riskAtAge: number

    Returns HraComparisonReportGetRequest

Const hraComparisonReportGetResponse

  • Parameters

    • comparisonOutcome: HealthComparisonModel | null

    Returns HraComparisonReportGetResponse

Const hraConclusionCheck

  • Parameters

    • id: number

    Returns HraConclusionCheck

Const hraConclusionUncheck

  • Parameters

    • id: number

    Returns HraConclusionUncheck

Const hraSetBaseUrl

  • Parameters

    • baseUrl: string

    Returns HraSetBaseUrl

mergeArrays

  • mergeArrays<T>(...arrays: T[][]): T[]
  • Type parameters

    • T

    Parameters

    • Rest ...arrays: T[][]

    Returns T[]

Const modalReducer

  • modalReducer(state?: undefined | null | ModalModel, action: PopulateModal | Action<"CLOSE_MODAL">): null | ModalModel
  • Parameters

    • Default value state: undefined | null | ModalModel = null
    • action: PopulateModal | Action<"CLOSE_MODAL">

    Returns null | ModalModel

Const onlineTriageSetBaseUrl

  • Parameters

    • baseUrl: string

    Returns OnlineTriageSetBaseUrl

parseNumberConclusion

  • parseNumberConclusion(conclusion: Conclusion): NumberConclusion
  • Parameters

    • conclusion: Conclusion

    Returns NumberConclusion

Const populateModal

  • Parameters

    • content: string
    • title: string

    Returns PopulateModal

Const radio

Const serviceSagaError

  • Parameters

    • error: AxiosError

    Returns ServiceSagaError

Const summaryReducer

Const traversalCheckboxToggle

  • Parameters

    • id: string
    • answerIds: string[]

    Returns TraversalCheckboxToggle

Const traversalConclusionReportGetRequest

Const traversalConclusionReportGetResponse

Const traversalConclusionsGetRequest

Const traversalConclusionsGetResponse

Const traversalGetRequest

  • Parameters

    • traversalId: string

    Returns TraversalGetRequest

Const traversalGetResponse

Const traversalPostRequest

  • Parameters

    • body: TraversalsBaseCreate

    Returns TraversalPostRequest

Const traversalPostResponse

Const traversalPreviousPostRequest

Const traversalPreviousPostResponse

Const traversalRadioToggle

  • traversalRadioToggle(id: string, answerIds: string[], checked?: undefined | false | true): TraversalRadioToggle
  • Parameters

    • id: string
    • answerIds: string[]
    • Optional checked: undefined | false | true

    Returns TraversalRadioToggle

Const traversalReducer

Const traversalRespondPostRequest

  • Parameters

    • traversalId: string
    • body: TraversalsBaseRespond[]

    Returns TraversalRespondPostRequest

Const traversalRespondPostResponse

Const traversalRevisitPostRequest

Const traversalRevisitPostResponse

Const traversalSetBaseUrl

  • Parameters

    • baseUrl: string

    Returns TraversalSetBaseUrl

Const traversalSummaryGetRequest

  • Parameters

    • traversalId: string

    Returns TraversalSummaryGetRequest

Const traversalSummaryGetResponse

  • Parameters

    • questions: SummaryQuestion[] | null

    Returns TraversalSummaryGetResponse

Const traversalValueChange

  • traversalValueChange(id: string, answerIds: string[], value: string): TraversalAction
  • Parameters

    • id: string
    • answerIds: string[]
    • value: string

    Returns TraversalAction

Const value

Const wellnessGetRequest

  • Parameters

    • traversalId: string
    • conclusions: number[]

    Returns WellnessGetRequest

Const wellnessGetResponse

  • Parameters

    • wellness: WellnessModel

    Returns WellnessGetResponse

Object literals

Const chatReducerMapObject

chatReducerMapObject: object

chatTraversal

chatTraversal: (state: S | undefined, action: A) => S = chatReducer

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const chatRootReducersMapObject

chatRootReducersMapObject: object

chatTraversal

chatTraversal: (state: S | undefined, action: A) => S = chatReducer as Reducer<ChatTraversalState, Action<any>>

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const conclusionReducerMapObject

conclusionReducerMapObject: object

conclusion

conclusion: (state: S | undefined, action: A) => S = conclusionReducer

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const defaultState

defaultState: object

checkedConclusions

checkedConclusions: never[] = []

comparisonReport

comparisonReport: object

loaded

loaded: false = false

currentSnapshot

currentSnapshot: object

clientId

clientId: string = ""

createdDate

createdDate: string = ""

id

id: number = 0

memberRef

memberRef: string = ""

myNumbers

myNumbers: never[] = []

traversalId

traversalId: string = ""

riskOutput

riskOutput: object

age

age: number = 0

healthAge

healthAge: number = 0

risks

risks: never[] = []

wellnessOutput

wellnessOutput: object

scores

scores: never[] = []

previousSnapshot

previousSnapshot: object

clientId

clientId: string = ""

createdDate

createdDate: string = ""

id

id: number = 0

memberRef

memberRef: string = ""

myNumbers

myNumbers: never[] = []

traversalId

traversalId: string = ""

riskOutput

riskOutput: object

age

age: number = 0

healthAge

healthAge: number = 0

risks

risks: never[] = []

wellnessOutput

wellnessOutput: object

scores

scores: never[] = []

summary

summary: object

myNumbers

myNumbers: {}

Type declaration

risk

risk: {}

Type declaration

wellness

wellness: {}

Type declaration

healthAge

healthAge: object

age

age: number = 0

checkableConclusions

checkableConclusions: never[] = []

healthAge

healthAge: number = 0

loaded

loaded: false = false

minimumHealthAge

minimumHealthAge: number = 0

riskSummary

riskSummary: object

age

age: number = 0

checkableConclusions

checkableConclusions: never[] = []

loaded

loaded: false = false

risks

risks: never[] = []

wellness

wellness: object

checkableConclusions

checkableConclusions: never[] = []

loaded

loaded: false = false

scores

scores: never[] = []

Const dualRootReducersMapObject

dualRootReducersMapObject: object

chatTraversal

chatTraversal: (state: S | undefined, action: A) => S = chatReducer as Reducer<ChatTraversalState, Action<any>>

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

traversal

traversal: (state: S | undefined, action: A) => S = traversalReducer as Reducer<TraversalState, Action<any>>

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const healthAssessmentReducerMapObject

healthAssessmentReducerMapObject: object

healthAssessment

healthAssessment: (state: S | undefined, action: A) => S = healthAssessmentReducer

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const modalReducerMapObject

modalReducerMapObject: object

modal

modal: (state: S | undefined, action: A) => S = modalReducer

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const reducersMapObject

reducersMapObject: object

conclusion

conclusion: (state: S | undefined, action: A) => S = conclusionReducer as Reducer<ConclusionState, Action<any>>

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

healthAssessment

healthAssessment: (state: S | undefined, action: A) => S = healthAssessmentReducer as Reducer<HealthAssessmentState,Action<any>>

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

modal

modal: (state: S | undefined, action: A) => S = modalReducer

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

summary

summary: (state: S | undefined, action: A) => S = summaryReducer as Reducer<SummaryState, Action<any>>

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const summaryReducerMapObject

summaryReducerMapObject: object

summary

summary: (state: S | undefined, action: A) => S = summaryReducer

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const traversalReducerMapObject

traversalReducerMapObject: object

traversal

traversal: (state: S | undefined, action: A) => S = traversalReducer

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S

Const traversalRootReducersMapObject

traversalRootReducersMapObject: object

traversal

traversal: (state: S | undefined, action: A) => S = traversalReducer as Reducer<TraversalState, Action<any>>

Type declaration

    • (state: S | undefined, action: A): S
    • Parameters

      • state: S | undefined
      • action: A

      Returns S