Skip to content

Commit

Permalink
Uncombine required/recommended/optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jun 1, 2024
1 parent 83c6f3e commit 1d5e089
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
33 changes: 31 additions & 2 deletions src/modality-specific-files/magnetic-resonance-spectroscopy.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ A guide for using macros can be found at

### MRS-relevant fields

Metadata fields that MUST, SHOULD or MAY be present:
Metadata fields that MUST be present:

<!-- This block generates a metadata table.
These tables are defined in
Expand All @@ -190,13 +190,42 @@ A guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_sidecar_table([
"mrs.MRSRelevantFields",
"mrs.MRSRequiredFields",
])
}}

Metadata fields that SHOULD be present:

<!-- This block generates a metadata table.
These tables are defined in
src/schema/rules/sidecars
The definitions of the fields specified in these tables may be found in
src/schema/objects/metadata.yaml
A guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_sidecar_table([
"mrs.MRSRecommendedFields",
"mrs.MRSRepetitionTime",
"mrs.MRSVolumeTiming",
"mrs.MRSConditionalNumTransients",
"mrs.MRSIRecommendedFields",
"mrs.MRSConditionalInversionTime",
"mrs.MRSConditionalAnatomicalImage",
])
}}

Metadata fields that MAY be present:

<!-- This block generates a metadata table.
These tables are defined in
src/schema/rules/sidecars
The definitions of the fields specified in these tables may be found in
src/schema/objects/metadata.yaml
A guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_sidecar_table([
"mrs.MRSOptionalFields",
])
}}
Expand Down
7 changes: 6 additions & 1 deletion src/schema/rules/sidecars/mrs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,19 @@ MRSSequenceSpecifics:
B0ShimmingTechnique: optional
B1ShimmingTechnique: optional

MRSRelevantFields:
MRSRequiredFields:
selectors:
- modality == "mrs"
fields:
ResonantNucleus: required
SpectrometerFrequency: required
SpectralWidth: required
EchoTime: required

MRSRecommendedFields:
selectors:
- modality == "mrs"
fields:
NumberOfSpectralPoints: recommended
MixingTime: recommended
FlipAngle: recommended
Expand Down

0 comments on commit 1d5e089

Please sign in to comment.