diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a825e940d9..fa428cfd96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - id: flake8 args: [--config=tools/schemacode/setup.cfg] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.2 + rev: v3.0.3 hooks: - id: prettier files: src/schema/.*/.*\.yaml 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/objects/entities.yaml b/src/schema/objects/entities.yaml index 654ae05e11..eeb8f0d3ae 100644 --- a/src/schema/objects/entities.yaml +++ b/src/schema/objects/entities.yaml @@ -210,7 +210,7 @@ part: `part-real`/`part-imag` pairs of files. Phase images MAY be in radians or in arbitrary units. - The sidecar JSON file MUST include the units of the `phase` image. + The sidecar JSON file MUST include the `"Units"` of the `phase` image. The possible options are `"rad"` or `"arbitrary"`. When there is only a magnitude image of a given type, the `part` entity MAY be 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-