Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Add sample metadata to MRI and PET #1593

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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