From 4206090c611857d4c0e6f31ef7d1100a69444574 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Wed, 19 Jun 2024 15:53:18 +0930 Subject: [PATCH] Fix deployment --- .../src/utils/answerExpression.ts | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/packages/smart-forms-renderer/src/utils/answerExpression.ts b/packages/smart-forms-renderer/src/utils/answerExpression.ts index a948f103..1736cd04 100644 --- a/packages/smart-forms-renderer/src/utils/answerExpression.ts +++ b/packages/smart-forms-renderer/src/utils/answerExpression.ts @@ -15,28 +15,10 @@ * limitations under the License. */ -/* - * Copyright 2024 Commonwealth Scientific and Industrial Research - * Organisation (CSIRO) ABN 41 687 119 230. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - import { AnswerExpression } from '../interfaces/answerExpression.interface'; import fhirpath from 'fhirpath'; import fhirpath_r4_model from 'fhirpath/fhir-context/r4'; import _isEqual from 'lodash/isEqual'; -import { LookupResponse } from '@aehrc/sdc-populate/lib/SDCPopulateQuestionnaireOperation/api/lookupCodeSystem'; export function evaluateAnswerExpressions( fhirPathContext: Record, @@ -89,13 +71,3 @@ export function evaluateAnswerExpressions( updatedAnswerExpressions: updatedAnswerExpressions }; } - -export function answerExpressionOptionsIsValid(response: any): response is LookupResponse { - return ( - response && - response.resourceType === 'Parameters' && - response.parameter && - response.parameter.find((p: any) => p.name === 'display') && - response.parameter.find((p: any) => p.name === 'display').valueString - ); -}