Skip to content

Commit

Permalink
Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Jun 19, 2024
1 parent 67dcddb commit 4206090
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions packages/smart-forms-renderer/src/utils/answerExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check failure on line 18 in packages/smart-forms-renderer/src/utils/answerExpression.ts

View workflow job for this annotation

GitHub Actions / Lint

All imports in the declaration are only used as types. Use `import type`
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<string, any>,
Expand Down Expand Up @@ -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
);
}

0 comments on commit 4206090

Please sign in to comment.