Skip to content

Commit

Permalink
MAT-7999: Updating cql-antlr-parser for new custom error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-akins committed Dec 31, 2024
1 parent 142a149 commit 0ba0f8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"@fortawesome/react-fontawesome": "^0.2.2",
"@heroicons/react": "^1.0.5",
"@lhncbc/ucum-lhc": "^4.1.5",
"@madie/cql-antlr-parser": "^1.0.8",
"@madie/cql-antlr-parser": "^1.0.11",
"@madie/madie-auth": "^0.0.1",
"@madie/madie-design-system": "^1.2.41",
"@madie/madie-editor": "^0.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/editMeasure/editor/MeasureEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ const MeasureEditor = () => {
const definitions = new CqlAntlr(newMeasure.cql).parse();
if (definitions?.codes && cqlMetaData) {
const parsedCodes = definitions?.codes.map((code) => ({
codeId: code?.codeId.replace(/['"]/g, ""),
codeSystem: code?.codeSystem.replace(/['"]/g, ""),
codeId: code?.codeId?.replace(/['"]/g, ""),
codeSystem: code?.codeSystem?.replace(/['"]/g, ""),
}));

return Object.fromEntries(
Expand Down

0 comments on commit 0ba0f8c

Please sign in to comment.