Skip to content

Commit

Permalink
Add missed change in rendering engine
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Dec 18, 2023
1 parent 3b9e044 commit 54ff308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/smart-forms-renderer/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -64,15 +64,15 @@ export function getResponse(): QuestionnaireResponse {
*
* @author Sean Fong
*/
export function removeHiddenAnswersFromResponse(
export function removeEmptyAnswersFromResponse(
questionnaire: Questionnaire,
questionnaireResponse: QuestionnaireResponse
): QuestionnaireResponse {
const enableWhenIsActivated = questionnaireStore.getState().enableWhenIsActivated;
const enableWhenItems = questionnaireStore.getState().enableWhenItems;
const enableWhenExpressions = questionnaireStore.getState().enableWhenExpressions;

return removeHiddenAnswers({
return removeEmptyAnswers({
questionnaire,
questionnaireResponse,
enableWhenIsActivated,
Expand Down

0 comments on commit 54ff308

Please sign in to comment.