From c096cce893e1d8ad36facb51ca013857d6846f13 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Fri, 14 Oct 2022 11:05:24 +0200 Subject: [PATCH] schema: add EEG channel count rules --- src/schema/rules/checks/eeg.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/schema/rules/checks/eeg.yaml diff --git a/src/schema/rules/checks/eeg.yaml b/src/schema/rules/checks/eeg.yaml new file mode 100644 index 0000000000..a070487850 --- /dev/null +++ b/src/schema/rules/checks/eeg.yaml @@ -0,0 +1,31 @@ +--- +EEGChannelCountReq: + selectors: + - suffix == "eeg" + checks: + - sidecar.EEGChannelCount == count(associations.channels.type, "EEG") +ECGChannelCountReq: + selectors: + - suffix == "eeg" + checks: + - sidecar.ECGChannelCount == count(associations.channels.type, "ECG") +EMGChannelCountReq: + selectors: + - suffix == "eeg" + checks: + - sidecar.EMGChannelCount == count(associations.channels.type, "EMG") +EOGChannelCountReq: + selectors: + - suffix == "eeg" + checks: + - sidecar.EOGChannelCount == count(associations.channels.type, "EOG") +MiscChannelCountReq: + selectors: + - suffix == "eeg" + checks: + - sidecar.MiscChannelCount == count(associations.channels.type, "MISC") +TriggerChannelCountReq: + selectors: + - suffix == "eeg" + checks: + - sidecar.TriggerChannelCount == count(associations.channels.type, "TRIG")