From 94105cb9c2c77562df498bf0cbc4e4d35f6b120f Mon Sep 17 00:00:00 2001 From: Ross Blair Date: Thu, 24 Aug 2023 16:48:04 -0500 Subject: [PATCH 1/6] Update pet.yaml PlasmaAvail check. (#1595) BloodPlasma requirement in tabular data didn't check if the corresponding json was true. All jsons are required to have the PlasmaAvail field, so any dataset with PlasmaAvail false would fail this check. --- src/schema/rules/tabular_data/pet.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/schema/rules/tabular_data/pet.yaml b/src/schema/rules/tabular_data/pet.yaml index b00d9f1e88..7c72b028ea 100644 --- a/src/schema/rules/tabular_data/pet.yaml +++ b/src/schema/rules/tabular_data/pet.yaml @@ -28,6 +28,7 @@ BloodPlasma: - suffix == "blood" - extension == ".tsv" - '"PlasmaAvail" in sidecar' + - sidecar.PlasmaAvail == true columns: plasma_radioactivity: required From 60c173d3a576f45a4241f1185a5819de892ec10f Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 25 Aug 2023 11:32:30 -0400 Subject: [PATCH 2/6] Improve check messages (#1599) * Remove redundant phase entity rule. * Add missing newline. * Adjust check messages. * Add note about 89+ to age column description. --- src/schema/objects/columns.yaml | 3 +++ src/schema/rules/checks/asl.yaml | 36 +++++++++++++++------------- src/schema/rules/checks/dataset.yaml | 13 +++++----- src/schema/rules/checks/dwi.yaml | 10 ++++---- src/schema/rules/checks/events.yaml | 2 +- src/schema/rules/checks/fmap.yaml | 6 ++--- src/schema/rules/checks/func.yaml | 16 ++++++------- src/schema/rules/checks/general.yaml | 6 ++--- src/schema/rules/checks/hints.yaml | 7 +++--- src/schema/rules/checks/micr.yaml | 3 ++- src/schema/rules/checks/mri.yaml | 11 ++++----- src/schema/rules/checks/nifti.yaml | 6 ++--- src/schema/rules/checks/privacy.yaml | 7 +++--- src/schema/rules/sidecars/anat.yaml | 8 ------- src/schema/rules/sidecars/mri.yaml | 1 + 15 files changed, 67 insertions(+), 68 deletions(-) diff --git a/src/schema/objects/columns.yaml b/src/schema/objects/columns.yaml index bd1ab1478e..65fbde5a6c 100644 --- a/src/schema/objects/columns.yaml +++ b/src/schema/objects/columns.yaml @@ -37,6 +37,9 @@ age: display_name: Subject age description: | Numeric value in years (float or integer value). + + It is recommended to tag participant ages that are 89 or higher as 89+, + for privacy purposes. type: number unit: year cardiac: diff --git a/src/schema/rules/checks/asl.yaml b/src/schema/rules/checks/asl.yaml index cda02f4325..1b42593212 100644 --- a/src/schema/rules/checks/asl.yaml +++ b/src/schema/rules/checks/asl.yaml @@ -15,7 +15,7 @@ ASLLabelingDurationNiftiLength: an array of numbers must be specified, for which any `m0scan` in the timeseries has a `LabelingDuration` of zero. In case an array of numbers is provided, its length should be equal to the number of volumes specified in - `*_aslcontext.tsv`. Corresponds to DICOM Tag 0018,9258 `ASL Pulse Train Duration`. + the associated `aslcontext.tsv`. Corresponds to DICOM Tag 0018,9258 `ASL Pulse Train Duration`. level: error selectors: - suffix == "asl" @@ -30,7 +30,7 @@ ASLContextConsistent: issue: code: ASLCONTEXT_TSV_NOT_CONSISTENT message: | - The number of volumes in the '*_aslcontext.tsv' for this file does not match the number of + The number of volumes in the 'aslcontext.tsv' for this file does not match the number of values in the NIfTI header. level: error selectors: @@ -68,7 +68,7 @@ ASLFlipAngleASLContextLength: code: FLIP_ANGLE_NOT_MATCHING_ASLCONTEXT_TSV message: | The number of values for 'FlipAngle' for this file does not match the number of volumes in the - 'sub-