From 54ff3088ea63cd7e9be71971987680ee330ed42b Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Mon, 18 Dec 2023 13:29:52 +1030 Subject: [PATCH] Add missed change in rendering engine --- packages/smart-forms-renderer/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/smart-forms-renderer/src/index.ts b/packages/smart-forms-renderer/src/index.ts index 42e3aeea6..0085d04fb 100644 --- a/packages/smart-forms-renderer/src/index.ts +++ b/packages/smart-forms-renderer/src/index.ts @@ -1,7 +1,7 @@ import { questionnaireResponseStore, questionnaireStore } from './stores'; import type { Questionnaire, QuestionnaireResponse } from 'fhir/r4'; import { initialiseQuestionnaireResponse } from './utils/qrItem'; -import { removeHiddenAnswers } from './utils/removeHidden'; +import { removeEmptyAnswers } from './utils/removeEmptyAnswers'; import type { ItemToRepopulate } from './utils/repopulateItems'; import { getItemsToRepopulate } from './utils/repopulateItems'; import { repopulateItemsIntoResponse } from './utils/repopulateIntoResponse'; @@ -64,7 +64,7 @@ export function getResponse(): QuestionnaireResponse { * * @author Sean Fong */ -export function removeHiddenAnswersFromResponse( +export function removeEmptyAnswersFromResponse( questionnaire: Questionnaire, questionnaireResponse: QuestionnaireResponse ): QuestionnaireResponse { @@ -72,7 +72,7 @@ export function removeHiddenAnswersFromResponse( const enableWhenItems = questionnaireStore.getState().enableWhenItems; const enableWhenExpressions = questionnaireStore.getState().enableWhenExpressions; - return removeHiddenAnswers({ + return removeEmptyAnswers({ questionnaire, questionnaireResponse, enableWhenIsActivated,