From 82674bca3a7f299116926ec9ffbb4a1b7f8a4d79 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Thu, 6 Jun 2024 09:28:40 +0200 Subject: [PATCH] add deprecation check --- src/schema/rules/checks/deprecations.yml | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/schema/rules/checks/deprecations.yml diff --git a/src/schema/rules/checks/deprecations.yml b/src/schema/rules/checks/deprecations.yml new file mode 100644 index 0000000000..d7a3c27372 --- /dev/null +++ b/src/schema/rules/checks/deprecations.yml @@ -0,0 +1,53 @@ +AnatomicalLandmarkCoordinateSystemDeprecation: + issue: + code: ELEKTA_NEUROMAG_DEPRECATED + message: | + "ElektaNeuromag" as a coordinate system is deprecated. + Use "NeuromagElektaMEGIN" instead. + level: warning + selectors: + - sidecar.AnatomicalLandmarkCoordinateSystem + checks: + - sidecar.AnatomicalLandmarkCoordinateSystem != "ElektaNeuromag" + +DigitizedHeadPointsCoordinateSystemDeprecation: + $ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation + selectors: + - sidecar.DigitizedHeadPointsCoordinateSystem + checks: + - sidecar.DigitizedHeadPointsCoordinateSystem != "ElektaNeuromag" + +EEGCoordinateSystemDeprecation: + $ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation + selectors: + - sidecar.EEGCoordinateSystem + checks: + - sidecar.EEGCoordinateSystem != "ElektaNeuromag" + +FiducialsCoordinateSystemDeprecation: + $ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation + selectors: + - sidecar.FiducialsCoordinateSystem + checks: + - sidecar.FiducialsCoordinateSystem != "ElektaNeuromag" + +HeadCoilCoordinateSystemDeprecation: + $ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation + selectors: + - sidecar.HeadCoilCoordinateSystem + checks: + - sidecar.HeadCoilCoordinateSystem != "ElektaNeuromag" + +MEGCoordinateSystemDeprecation: + $ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation + selectors: + - sidecar.MEGCoordinateSystem + checks: + - sidecar.MEGCoordinateSystem != "ElektaNeuromag" + +NIRSCoordinateSystemDeprecation: + $ref: rules.checks.deprecations.AnatomicalLandmarkCoordinateSystemDeprecation + selectors: + - sidecar.NIRSCoordinateSystem + checks: + - sidecar.NIRSCoordinateSystem != "ElektaNeuromag"