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
Parameter | Type | Description |
---|---|---|
response | QuestionnaireResponse | The questionnaire response resource. |
Returns:
Record<string, QuestionnaireResponseItemAnswer[]>
Questionnaire answer arrays mapped by link ID.