Skip to content

Commit

Permalink
ENH: Add sample metadata to MRI and PET (bids-standard#1593)
Browse files Browse the repository at this point in the history
Co-authored-by: Remi Gau <[email protected]>
  • Loading branch information
effigies and Remi-Gau authored Feb 23, 2024
1 parent dcbcbbf commit f90fd70
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/modality-specific-files/magnetic-resonance-imaging-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,18 @@ A guide for using macros can be found at
-->
{{ MACROS___make_sidecar_table("mri.MRIEchoPlanarImagingAndB0Mapping") }}

#### Tissue description

<!-- 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("mri.MRISample") }}

## Anatomy imaging data

Anatomy MRI sequences measure static, structural features of the brain.
Expand Down
12 changes: 12 additions & 0 deletions src/modality-specific-files/positron-emission-tomography.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ A guide for using macros can be found at

{{ MACROS___make_sidecar_table("pet.PETInstitutionInformation") }}

#### Tissue description

<!-- 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("pet.PETSample") }}

#### Task

If the OPTIONAL [`task-<label>`](../appendices/entities.md#task) is used,
Expand Down
10 changes: 10 additions & 0 deletions src/schema/rules/sidecars/mri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ MRIHardware:
MatrixCoilMode: recommended
CoilCombinationMethod: recommended

MRISample:
selectors:
- modality == "mri"
fields:
BodyPart:
level: optional
description_addendum: Corresponds to DICOM Tag 0018, 0015 `Body Part Examined`.
BodyPartDetails: optional
BodyPartDetailsOntology: optional

MRIScannerHardwareASL:
selectors:
- datatype == "perf"
Expand Down
11 changes: 11 additions & 0 deletions src/schema/rules/sidecars/pet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ PETInstitutionInformation:
level: recommended
description_addendum: Corresponds to DICOM Tag 0008, 1040 `Institutional Department Name`.

PETSample:
selectors:
- modality == "pet"
- suffix == "pet"
fields:
BodyPart:
level: optional
description_addendum: Corresponds to DICOM Tag 0018, 0015 `Body Part Examined`.
BodyPartDetails: optional
BodyPartDetailsOntology: optional

PETRadioChemistry:
selectors:
- datatype == "pet"
Expand Down

0 comments on commit f90fd70

Please sign in to comment.