From 03333a34cdf497c6a9115f8226a7544092b87d88 Mon Sep 17 00:00:00 2001 From: Joel Bessire Date: Wed, 1 Apr 2026 17:56:05 +0200 Subject: [PATCH] remove amb catalogs --- src/App.tsx | 14 +++----------- src/Components/Bodies/CodeBodyVersionized.tsx | 2 -- src/Components/Buttons/ButtonGroup.tsx | 2 -- src/Components/SearchResult/SearchResult.tsx | 2 -- src/Components/Searchbar/Searchbar.tsx | 2 -- src/Services/catalog-version.service.tsx | 10 ---------- 6 files changed, 3 insertions(+), 29 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index f872840..f23e161 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -25,7 +25,7 @@ import { useTranslation } from 'react-i18next'; */ const emptyVersions: IVersions = { - 'ICD': [], 'CHOP': [], 'TARMED': [], 'TARDOC': [], 'SwissDRG': [], 'AmbGroup': [], 'Reha': [], 'Supplements': [] + 'ICD': [], 'CHOP': [], 'TARMED': [], 'SwissDRG': [], 'Reha': [], 'Supplements': [] } /** @@ -124,10 +124,6 @@ function App() { code = ver; resource_type = 'supplements'; break; - case 'AmbGroup': - code = ver; - resource_type = 'capitula'; - break; case 'Reha': code = ver; resource_type = 'arcgs'; @@ -280,8 +276,6 @@ function App() { 'CHOP': 'CHOP', 'SwissDRG': 'SwissDRG', 'TARMED': 'TARMED', - 'TARDOC': 'TARDOC', - 'AmbGroup': t("LBL_AMB_GROUP"), 'MIGEL': t("LBL_MIGEL_LABEL"), 'AL': t("LBL_AL"), 'DRUG': t("LBL_DRUG"), @@ -410,8 +404,7 @@ function App() { changeSelectedVersion={setSelectedVersion} changeSelectedDate={setSelectedDate} labels={labelHash()} - buttons={['ICD', 'CHOP', 'SwissDRG', 'Supplements', 'Reha', 'TARMED', 'TARDOC', - 'AmbGroup', 'MIGEL', 'AL', 'DRUG']} + buttons={['ICD', 'CHOP', 'SwissDRG', 'Supplements', 'Reha', 'TARMED', 'MIGEL', 'AL', 'DRUG']} />
diff --git a/src/Components/Bodies/CodeBodyVersionized.tsx b/src/Components/Bodies/CodeBodyVersionized.tsx index e28dd13..a07d743 100644 --- a/src/Components/Bodies/CodeBodyVersionized.tsx +++ b/src/Components/Bodies/CodeBodyVersionized.tsx @@ -128,8 +128,6 @@ function CodeBodyVersionized() { breadcrumbRoot = t('LBL_SUPPLEMENTS') + ' ' + ver.substring(1) } else if (cat === "Reha") { breadcrumbRoot = "ST Reha " + ver.substring(5).replace("_", " ") - } else if (cat === "AmbGroup"){ - breadcrumbRoot = t('LBL_AMB_GROUP') + " " + ver.substring(1) } } else { breadcrumbRoot = ''; diff --git a/src/Components/Buttons/ButtonGroup.tsx b/src/Components/Buttons/ButtonGroup.tsx index 9fb5b32..55b10ce 100644 --- a/src/Components/Buttons/ButtonGroup.tsx +++ b/src/Components/Buttons/ButtonGroup.tsx @@ -43,8 +43,6 @@ function ButtonGroup(props: Props) { SwissDRG: props.initialVersions['SwissDRG'].at(-1), CHOP: props.initialVersions['CHOP'].at(-1), TARMED: props.initialVersions['TARMED'].at(-1), - TARDOC: props.initialVersions['TARDOC'].at(-1), - AmbGroup: props.initialVersions['AmbGroup'].at(-1), Reha: props.initialVersions['Reha'].at(-1), Supplements: props.initialVersions['Supplements'].at(-1), }); diff --git a/src/Components/SearchResult/SearchResult.tsx b/src/Components/SearchResult/SearchResult.tsx index 9f39f75..036d7d8 100644 --- a/src/Components/SearchResult/SearchResult.tsx +++ b/src/Components/SearchResult/SearchResult.tsx @@ -31,8 +31,6 @@ function SearchResult({ result, showHide }: Props) { pathname = "/" + path[1] + "/" + path[2] + "/" + path[3] + "/drgs/" + result.code } else if (path[2] === "Reha") { pathname = "/" + path[1] + "/" + path[2] + "/" + path[3] + "/rcgs/" + result.code - } else if (path[2] === "AmbGroup") { - pathname = "/" + path[1] + "/" + path[2] + "/" + path[3] + "/amb_groups/" + result.code } else if (path[2] === "Supplements") { pathname = "/" + path[1] + "/" + path[2] + "/" + path[3] + "/supplements/" + result.code } else { diff --git a/src/Components/Searchbar/Searchbar.tsx b/src/Components/Searchbar/Searchbar.tsx index 47d519d..4d0621d 100644 --- a/src/Components/Searchbar/Searchbar.tsx +++ b/src/Components/Searchbar/Searchbar.tsx @@ -14,11 +14,9 @@ const resourceTypeByBtn = { "ICD": 'icds', "CHOP": 'chops', "TARMED": 'tarmeds', - "TARDOC": 'tardocs', "MIGEL": 'migels', "AL": 'laboratory_analyses', "DRUG": 'drugs', - 'AmbGroup': 'amb_groups', 'Reha': 'rcgs', 'Supplements': 'supplements' } diff --git a/src/Services/catalog-version.service.tsx b/src/Services/catalog-version.service.tsx index 2468bc7..e1df725 100644 --- a/src/Services/catalog-version.service.tsx +++ b/src/Services/catalog-version.service.tsx @@ -6,8 +6,6 @@ export const versionizedCatalogs = [ 'SwissDRG', 'CHOP', 'TARMED', - 'TARDOC', - 'AmbGroup', 'Reha', 'Supplements' ] @@ -16,8 +14,6 @@ export const currentCatalogsByButton = { 'SwissDRG': 'currentSwissDRG', 'CHOP': 'currentCHOP', 'TARMED': 'currentTARMED', - 'TARDOC': 'currentTARDOC', - 'AmbGroup': 'currentAmbGroup', 'Reha': 'currentReha', 'Supplements': 'currentSupplements' } @@ -37,10 +33,8 @@ export function cutCatalogFromVersion(catalog, version) { return version.substring(5).replace("_", " ") case "SwissDRG": case "Supplements": - case "AmbGroup": return version case "TARMED": - case "TARDOC": return version.substring(7) default: return @@ -64,10 +58,6 @@ export function convertCatalogToResourceType(catalog) { return "supplements" case "TARMED": return "tarmeds" - case "TARDOC": - return "tardocs" - case "AmbGroup": - return "amb_groups" case "Reha": return "rcgs" default: