Skip to content

Commit

Permalink
Merge pull request #439 from MeasureAuthoringTool/MAT-8145/deletingSn…
Browse files Browse the repository at this point in the history
…omedCode

MAT 8145 deleting snomed code
  • Loading branch information
sb-prateekkeerthi authored Jan 13, 2025
2 parents a00a7eb + fe63442 commit 2dd54b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AceEditor/madie-ace-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface EditorPropsType {
measureStoreCql?: string;
cqlMetaData?: CqlMetaData;
measureModel?: string;
handleCodeDelete?: (code: string) => void;
handleCodeDelete?: (code: string, measureModel: string) => void;
handleDefinitionDelete?: (definition: string) => void;
setEditorVal?: Function;
setIsCQLUnchanged?: Function;
Expand Down
4 changes: 3 additions & 1 deletion src/CqlBuilderPanel/codesSection/CodesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default function CodesSection({
version: codeSystemVersion,
oid: codeSystem?.oid,
suffix: getCodeSuffix(code),
versionIncluded: code.codeSystem.includes(codeSystemVersion),
versionIncluded: code.codeSystem?.startsWith(`"SNOMEDCT`)
? !_.isEmpty(codeSystemVersion)
: code.codeSystem.includes(codeSystemVersion),
};
});
setParsedCodesList(codesList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export default function SavedCodesSubSection({
<MadieDeleteDialog
open={deleteDialogModalOpen}
onContinue={() => {
handleCodeDelete(selectedCodeDetails);
handleCodeDelete(selectedCodeDetails, measureModel);
}}
onClose={() => {
setDeleteDialogModalOpen(false);
Expand Down

0 comments on commit 2dd54b5

Please sign in to comment.