From 66feba29d5d3917d4dc5b131cb8cdd705b349243 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Fri, 10 May 2024 14:56:03 -0700 Subject: [PATCH 1/2] Update version of data model in code --- sheets_to_JSON_phenotype.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheets_to_JSON_phenotype.R b/sheets_to_JSON_phenotype.R index b3dcdd0..683bd35 100644 --- a/sheets_to_JSON_phenotype.R +++ b/sheets_to_JSON_phenotype.R @@ -9,7 +9,7 @@ library(jsonlite) url <- "https://docs.google.com/spreadsheets/d/1kpWz-6QfjMPVtm62fQwm4hoxzXhR0dnKxVt02fbx9ks" model_name <- "PRIMED Phenotype Data Model" model_description <- "Data model for phenotype data in the PRIMED consortium" -model_version <-"1.7" +model_version <-"1.8" # table metadata meta <- read_sheet(url, sheet="Description", skip=1, col_types="c") %>% From d02240073a9ed2ae248dcfd232c87ad842fe9f55 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Fri, 10 May 2024 14:56:55 -0700 Subject: [PATCH 2/2] Update hematology table with min/max values --- PRIMED_phenotype_data_model.json | 64 +++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 17 deletions(-) diff --git a/PRIMED_phenotype_data_model.json b/PRIMED_phenotype_data_model.json index 3166643..6184cc9 100755 --- a/PRIMED_phenotype_data_model.json +++ b/PRIMED_phenotype_data_model.json @@ -1,7 +1,7 @@ { "name": "PRIMED Phenotype Data Model", "description": "Data model for phenotype data in the PRIMED consortium", - "version": "1.7", + "version": "1.8", "tables": [ { "table": "subject", @@ -628,7 +628,7 @@ { "table": "cmqt_hematology", "url": "https://docs.google.com/spreadsheets/d/1LTGvRdGTsc0gYiFrNHOvKsRE5E4ohxoI466pt4fXyjY/edit#gid=768778505", - "version": "1.0", + "version": "1.1", "columns": [ { "column": "subject_id", @@ -660,77 +660,107 @@ { "column": "rbc_1", "description": "Red blood cell count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "hemoglobin_1", "description": "Hemoglobin", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "hematocrit_1", "description": "Hematocrit", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "mcv_1", "description": "Mean corpuscular volume", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 1000 }, { "column": "mch_1", "description": "Mean corpuscular hemoglobin", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 1000 }, { "column": "mchc_1", "description": "Mean corpuscular hemoglobin concentration", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 1000 }, { "column": "rdw_1", "description": "Red blood cell distribution width", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "wbc_1", "description": "White blood cell count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 10000 }, { "column": "basophil_count_1", "description": "Relative basophil count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "eosinophil_count_1", "description": "Relative eosinophil count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "lymphocyte_count_1", "description": "Relative lymphocyte count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "monocyte_count_1", "description": "Relative monocyte count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "neutrophil_count_1", "description": "Relative neutrophil count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 }, { "column": "platelet_count_1", "description": "Platelet count", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 10000 }, { "column": "mean_platelet_volume_1", "description": "Mean platelet volume", - "data_type": "float" + "data_type": "float", + "min": 0, + "max": 100 } ] },