Skip to content

Commit

Permalink
extract body part information into a separate table
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Feb 5, 2023
1 parent 4402fc6 commit 8c6f280
Show file tree
Hide file tree
Showing 4 changed files with 35 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 @@ -163,6 +163,18 @@ When adding additional metadata please use the CamelCase version of
whenever possible. See also
[recommendations on JSON files](../common-principles.md#keyvalue-files-dictionaries).

#### 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

<!--
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 @@ -151,6 +151,18 @@ A guide for using macros can be found at
-->
{{ MACROS___make_sidecar_table("pet.PETScannerHardware") }}

#### 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") }}

#### Radiochemistry

<!-- This block generates a metadata table.
Expand Down
5 changes: 5 additions & 0 deletions src/schema/rules/sidecars/mri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ MRIScannerHardware:
MatrixCoilMode: recommended
CoilCombinationMethod: recommended
NumberTransmitCoilActiveElements: optional

MRISample:
selectors:
- modality == "mri"
fields:
BodyPart: optional
BodyPartDetails: optional
BodyPartDetailsOntology: optional
Expand Down
6 changes: 6 additions & 0 deletions src/schema/rules/sidecars/pet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ PETScannerHardware:
InstitutionalDepartmentName:
level: recommended
description_addendum: Corresponds to DICOM Tag 0008, 1040 `Institutional Department Name`.

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

0 comments on commit 8c6f280

Please sign in to comment.