Skip to content

Commit

Permalink
fix(schema): Limit MRI metadata checks to NIfTIs
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 10, 2024
1 parent 9d136f4 commit e7a23e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/schema/rules/sidecars/mri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ PhaseEncodingDirectionRec:
PhaseEncodingDirectionReq:
selectors:
- modality == "mri"
- datatype == "fmap"
- suffix == "epi"
- match(extension, "^\.nii(\.gz)?$")
fields:
PhaseEncodingDirection:
level: required
Expand Down Expand Up @@ -244,6 +245,7 @@ SliceTimingMRI:
selectors:
- modality == "mri"
- sidecar.MRAcquisitionType == "2D"
- match(extension, "^\.nii(\.gz)?$")
fields:
SliceTiming:
level: recommended
Expand All @@ -257,6 +259,7 @@ SliceTimingASL:
- datatype == "perf"
- intersects([suffix], ["asl", "m0scan"])
- sidecar.MRAcquisitionType == "2D"
- match(extension, "^\.nii(\.gz)?$")
fields:
SliceTiming:
level: required
Expand Down Expand Up @@ -288,6 +291,7 @@ MRIFlipAngleLookLockerFalse:
selectors:
- modality == "mri"
- sidecar.LookLocker != true
- match(extension, "^\.nii(\.gz)?$")
fields:
FlipAngle:
level: recommended
Expand All @@ -304,6 +308,7 @@ MRIFlipAngleLookLockerTrue:
selectors:
- modality == "mri"
- sidecar.LookLocker == true
- match(extension, "^\.nii(\.gz)?$")
fields:
FlipAngle:
level: required
Expand Down Expand Up @@ -377,6 +382,7 @@ MRIInstitutionInformation:
DeidentificationMethod:
selectors:
- intersects([modality], ["mri", "pet"])
- match(extension, "^\.nii(\.gz)?$")
fields:
DeidentificationMethod:
level: optional
Expand Down

0 comments on commit e7a23e2

Please sign in to comment.