Skip to content

Commit

Permalink
MAT-8012: Updating error handling on CQLLibrary Save to show error fo…
Browse files Browse the repository at this point in the history
…r FHIRHelpers alias correction
  • Loading branch information
gregory-akins committed Dec 12, 2024
1 parent ee69938 commit f24d295
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/editCqlLibrary/EditCqlLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ const EditCqlLibrary = () => {
"Library statement was incorrect. MADiE has overwritten it."
);
}
if (updatedContent.isFhirHelpersAliasChanged) {
secondaryMessages.push(
"FHIRHelpers was incorrectly aliased. MADiE has overwritten the alias with 'FHIRHelpers'."
);
}
if (updatedContent.isUsingStatementChanged) {
secondaryMessages.push(
"Incorrect using statement(s) detected. MADiE has corrected it."
Expand Down
1 change: 1 addition & 0 deletions src/types/madie-madie-editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ declare module "@madie/madie-editor" {
isLibraryStatementChanged?: boolean;
isUsingStatementChanged?: boolean;
isValueSetChanged?: boolean;
isFhirHelpersAliasChanged?: boolean;
}

export const parseContent: (content: string) => CqlError[];
Expand Down

0 comments on commit f24d295

Please sign in to comment.