Skip to main content

core.getallquestionnaireanswers

Home > @medplum/core > getAllQuestionnaireAnswers

getAllQuestionnaireAnswers() function

Returns an array of questionnaire answers as a map by link ID.

Signature:

export declare function getAllQuestionnaireAnswers(response: QuestionnaireResponse): Record<string, QuestionnaireResponseItemAnswer[]>;

Parameters

ParameterTypeDescription
responseQuestionnaireResponseThe questionnaire response resource.

Returns:

Record<string, QuestionnaireResponseItemAnswer[]>

Questionnaire answer arrays mapped by link ID.