From 76928aedeb3e8b775c3a076639a2d5a632ace1b4 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 3 May 2021 14:09:02 -0400 Subject: [PATCH 1/3] Use `type` key from other parts of schema on entities. By using the same tools, we can also use things like `enum` to limit values. --- src/schema/entities.yaml | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/src/schema/entities.yaml b/src/schema/entities.yaml index 5332c5f005..96b48a4ac3 100644 --- a/src/schema/entities.yaml +++ b/src/schema/entities.yaml @@ -4,6 +4,7 @@ subject: entity: sub description: | A person or animal participating in the study. + type: string format: label session: name: Session @@ -24,16 +25,18 @@ session: data acquisitions are planned and performed on all -or most- subjects, often in the case of some intervention between sessions (for example, training). + type: string format: label task: name: Task entity: task - format: label description: | Each task has a unique label that MUST only consist of letters and/or numbers (other characters, including spaces and underscores, are not allowed). Those labels MUST be consistent across subjects and sessions. + type: string + format: label acquisition: name: Acquisition entity: acq @@ -54,6 +57,7 @@ acquisition: At what level of detail to make the distinction (for example, just between RARE and FLASH, or between RARE, FLASH, and FLASHsubsampled) remains at the discretion of the researcher. + type: string format: label ceagent: name: Contrast Enhancing Agent @@ -64,6 +68,7 @@ ceagent: The label is the name of the contrast agent. The key `ContrastBolusIngredient` MAY also be added in the JSON file, with the same label. + type: string format: label tracer: name: Tracer @@ -73,6 +78,7 @@ tracer: sequences using different tracers. The key `TracerName` MUST also be included in the associated JSON file, although the label may be different. + type: string format: label reconstruction: name: Reconstruction @@ -81,6 +87,7 @@ reconstruction: The `rec-