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

ParameterTypeDescription
responseQuestionnaireResponseThe questionnaire response resource.

Returns:

Record<string, QuestionnaireResponseItemAnswer>

Questionnaire answers mapped by link ID.