From d57708c505c8086a2bf752d6e469b75959fedb20 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 23 Oct 2025 10:55:57 -0500 Subject: [PATCH 1/4] add 'monitor_name' to _terms.yaml --- gdcdictionary/schemas/_terms.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdcdictionary/schemas/_terms.yaml b/gdcdictionary/schemas/_terms.yaml index eb3fb40..7e22ff0 100644 --- a/gdcdictionary/schemas/_terms.yaml +++ b/gdcdictionary/schemas/_terms.yaml @@ -1072,6 +1072,10 @@ microsatellite_instability_abnormal: cde_version: 1.0 term_url: "https://cdebrowser.nci.nih.gov/CDEBrowser/search?elementDetails=9&FirstTimer=0&PageId=ElementDetailsGroup&publicId=3123142&version=1.0" +monitor_name: # TOREVIEW + description: > + Name of the monitor used to collect the data. + morphology: description: > The third edition of the International Classification of Diseases for Oncology, published in From 193ff6af15c5a760642b1f344a5a2a23f12c74da Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 23 Oct 2025 11:02:44 -0500 Subject: [PATCH 2/4] add wearable activity monitor file yaml to bdc DD --- .../wearable_activity_monitor_file.yaml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 gdcdictionary/schemas/wearable_activity_monitor_file.yaml diff --git a/gdcdictionary/schemas/wearable_activity_monitor_file.yaml b/gdcdictionary/schemas/wearable_activity_monitor_file.yaml new file mode 100644 index 0000000..40f202e --- /dev/null +++ b/gdcdictionary/schemas/wearable_activity_monitor_file.yaml @@ -0,0 +1,86 @@ +$schema: "http://json-schema.org/draft-04/schema#" + +id: "wearable_activity_monitor_file" +title: Wearable Activity Monitor File +type: object +namespace: https://niaid.bionimbus.org +category: data_file +program: '*' +project: '*' +description: > + File containing raw or summarized data from a wearable activity monitor. +additionalProperties: false +submittable: true +validators: null + +systemProperties: + - id + - project_id + - state + - created_datetime + - updated_datetime + +links: + - exclusive: false + required: true + subgroup: + - name: core_metadata_collections + backref: imaging_files + label: data_from + target_type: core_metadata_collection + multiplicity: many_to_one + required: false + - name: subjects + backref: imaging_files + label: data_from + target_type: subject + multiplicity: many_to_one + required: false + +uniqueKeys: + - [id] + - [project_id, submitter_id] + +required: + - type + - submitter_id + - file_name + - file_size + - md5sum + - data_category + - data_type + - data_format + - monitor_name + +properties: + $ref: "_definitions.yaml#/data_file_properties" + + type: + enum: [ "wearable_activity_monitor_file" ] + + data_category: + term: + $ref: "_terms.yaml#/data_category" + enum: + - Wearable Activity Monitor File + - Wearable Activity Monitor File Supplement + + data_type: + term: + $ref: "_terms.yaml#/data_type" + type: string + + data_format: + term: + $ref: "_terms.yaml#/data_format" + enum: + - PARQUET + + monitor_name: + term: + $ref: "_terms.yaml#/monitor_name" + + subjects: + $ref: "_definitions.yaml#/to_one" + core_metadata_collections: + $ref: "_definitions.yaml#/to_one" From 80b48ea39bc9c0ee24d5b661cb4e1b5dab23f820 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 23 Oct 2025 11:05:17 -0500 Subject: [PATCH 3/4] update backrefs --- gdcdictionary/schemas/wearable_activity_monitor_file.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdcdictionary/schemas/wearable_activity_monitor_file.yaml b/gdcdictionary/schemas/wearable_activity_monitor_file.yaml index 40f202e..963aa37 100644 --- a/gdcdictionary/schemas/wearable_activity_monitor_file.yaml +++ b/gdcdictionary/schemas/wearable_activity_monitor_file.yaml @@ -25,13 +25,13 @@ links: required: true subgroup: - name: core_metadata_collections - backref: imaging_files + backref: wearable_activity_monitor_files label: data_from target_type: core_metadata_collection multiplicity: many_to_one required: false - name: subjects - backref: imaging_files + backref: wearable_activity_monitor_files label: data_from target_type: subject multiplicity: many_to_one From a50e88c0440aadf0c52c072b35471e997017e33a Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 23 Oct 2025 11:07:39 -0500 Subject: [PATCH 4/4] add type to monitor name --- gdcdictionary/schemas/wearable_activity_monitor_file.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/gdcdictionary/schemas/wearable_activity_monitor_file.yaml b/gdcdictionary/schemas/wearable_activity_monitor_file.yaml index 963aa37..29fad6a 100644 --- a/gdcdictionary/schemas/wearable_activity_monitor_file.yaml +++ b/gdcdictionary/schemas/wearable_activity_monitor_file.yaml @@ -79,6 +79,7 @@ properties: monitor_name: term: $ref: "_terms.yaml#/monitor_name" + type: string subjects: $ref: "_definitions.yaml#/to_one"