Skip to main content

core.getquestionnaireanswers

Home > @medplum/core > getQuestionnaireAnswers

getQuestionnaireAnswers() function

Returns all questionnaire answers as a map by link ID.

Signature:

export declare function getQuestionnaireAnswers(response: QuestionnaireResponse): Record<string, QuestionnaireResponseItemAnswer>;

Parameters

Parameter

Type

Description

response

QuestionnaireResponse

The questionnaire response resource.

Returns:

Record<string, QuestionnaireResponseItemAnswer>

Questionnaire answers mapped by link ID.