diff --git a/cypress/fixtures/examples/good/example_synthetic.json b/cypress/fixtures/examples/good/example_synthetic.json index 41e75aac..3f7dafb3 100644 --- a/cypress/fixtures/examples/good/example_synthetic.json +++ b/cypress/fixtures/examples/good/example_synthetic.json @@ -1,18 +1,57 @@ { "participant_id":{ - "Description":"A participant ID" + "Description":"A participant ID", + "Annotations":{ + "IsAbout":{ + "TermURL":"nb:ParticipantID", + "Label":"Subject Unique Identifier" + }, + "Identifies":"participant" + } }, "session_id":{ "Description":"A session ID" }, "pheno_age":{ - "Description":"Age of the participant" + "Description":"Age of the participant", + "Annotations":{ + "IsAbout":{ + "TermURL":"nb:Age", + "Label":"Age" + }, + "Transformation":{ + "TermURL":"nb:FromEuro", + "Label":"european decimal value" + }, + "MissingValues":[ + "NA" + ] + } }, "pheno_sex":{ "Description":"Sex variable", "Levels":{ "M":"Male", "F":"Female" + }, + "Annotations":{ + "IsAbout":{ + "TermURL":"nb:Sex", + "Label":"Sex" + }, + "Levels":{ + "M":{ + "TermURL":"snomed:248153007", + "Label":"Male" + }, + "F":{ + "TermURL":"snomed:248152002", + "Label":"Female" + } + }, + "MissingValues":[ + "missing" + ] } }, "pheno_group":{ @@ -20,15 +59,73 @@ "Levels":{ "PAT":"Patient", "CTRL":"Control subject" + }, + "Annotations":{ + "IsAbout":{ + "TermURL":"nb:Diagnosis", + "Label":"Diagnosis" + }, + "Levels":{ + "PAT":{ + "TermURL":"snomed:406506008", + "Label":"Attention deficit hyperactivity disorder" + }, + "CTRL":{ + "TermURL":"ncit:C94342", + "Label":"Healthy Control" + } + }, + "MissingValues":[ + "NA" + ] } }, "tool1_item1":{ - "Description":"item 1 scores for tool1" + "Description":"item 1 scores for tool1", + "Annotations":{ + "IsAbout":{ + "TermURL":"nb:Assessment", + "Label":"Assessment tool" + }, + "IsPartOf":{ + "TermURL":"cogatlas:trm_57964b8a66aed", + "Label":"Montreal Cognitive Assessment" + }, + "MissingValues":[ + "missing" + ] + } }, "tool1_item2":{ - "Description":"item 2 scores for tool1" + "Description":"item 2 scores for tool1", + "Annotations":{ + "IsAbout":{ + "TermURL":"nb:Assessment", + "Label":"Assessment tool" + }, + "IsPartOf":{ + "TermURL":"cogatlas:trm_57964b8a66aed", + "Label":"Montreal Cognitive Assessment" + }, + "MissingValues":[ + "missing" + ] + } }, "tool2_item1":{ - "Description":"item 1 scores for tool2" + "Description":"item 1 scores for tool2", + "Annotations":{ + "IsAbout":{ + "TermURL":"nb:Assessment", + "Label":"Assessment tool" + }, + "IsPartOf":{ + "TermURL":"cogatlas:tsk_4a57abb949ece", + "Label":"Unified Parkinson's Disease Rating Scale" + }, + "MissingValues":[ + "not completed" + ] + } } } diff --git a/cypress/fixtures/examples/good/example_synthetic_expected_output.json b/cypress/fixtures/examples/good/example_synthetic_expected_output.json deleted file mode 100644 index 3f7dafb3..00000000 --- a/cypress/fixtures/examples/good/example_synthetic_expected_output.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "participant_id":{ - "Description":"A participant ID", - "Annotations":{ - "IsAbout":{ - "TermURL":"nb:ParticipantID", - "Label":"Subject Unique Identifier" - }, - "Identifies":"participant" - } - }, - "session_id":{ - "Description":"A session ID" - }, - "pheno_age":{ - "Description":"Age of the participant", - "Annotations":{ - "IsAbout":{ - "TermURL":"nb:Age", - "Label":"Age" - }, - "Transformation":{ - "TermURL":"nb:FromEuro", - "Label":"european decimal value" - }, - "MissingValues":[ - "NA" - ] - } - }, - "pheno_sex":{ - "Description":"Sex variable", - "Levels":{ - "M":"Male", - "F":"Female" - }, - "Annotations":{ - "IsAbout":{ - "TermURL":"nb:Sex", - "Label":"Sex" - }, - "Levels":{ - "M":{ - "TermURL":"snomed:248153007", - "Label":"Male" - }, - "F":{ - "TermURL":"snomed:248152002", - "Label":"Female" - } - }, - "MissingValues":[ - "missing" - ] - } - }, - "pheno_group":{ - "Description":"Group variable", - "Levels":{ - "PAT":"Patient", - "CTRL":"Control subject" - }, - "Annotations":{ - "IsAbout":{ - "TermURL":"nb:Diagnosis", - "Label":"Diagnosis" - }, - "Levels":{ - "PAT":{ - "TermURL":"snomed:406506008", - "Label":"Attention deficit hyperactivity disorder" - }, - "CTRL":{ - "TermURL":"ncit:C94342", - "Label":"Healthy Control" - } - }, - "MissingValues":[ - "NA" - ] - } - }, - "tool1_item1":{ - "Description":"item 1 scores for tool1", - "Annotations":{ - "IsAbout":{ - "TermURL":"nb:Assessment", - "Label":"Assessment tool" - }, - "IsPartOf":{ - "TermURL":"cogatlas:trm_57964b8a66aed", - "Label":"Montreal Cognitive Assessment" - }, - "MissingValues":[ - "missing" - ] - } - }, - "tool1_item2":{ - "Description":"item 2 scores for tool1", - "Annotations":{ - "IsAbout":{ - "TermURL":"nb:Assessment", - "Label":"Assessment tool" - }, - "IsPartOf":{ - "TermURL":"cogatlas:trm_57964b8a66aed", - "Label":"Montreal Cognitive Assessment" - }, - "MissingValues":[ - "missing" - ] - } - }, - "tool2_item1":{ - "Description":"item 1 scores for tool2", - "Annotations":{ - "IsAbout":{ - "TermURL":"nb:Assessment", - "Label":"Assessment tool" - }, - "IsPartOf":{ - "TermURL":"cogatlas:tsk_4a57abb949ece", - "Label":"Unified Parkinson's Disease Rating Scale" - }, - "MissingValues":[ - "not completed" - ] - } - } -} diff --git a/cypress/fixtures/examples/good/example_synthetic_participants.json b/cypress/fixtures/examples/good/example_synthetic_participants.json new file mode 100644 index 00000000..41e75aac --- /dev/null +++ b/cypress/fixtures/examples/good/example_synthetic_participants.json @@ -0,0 +1,34 @@ +{ + "participant_id":{ + "Description":"A participant ID" + }, + "session_id":{ + "Description":"A session ID" + }, + "pheno_age":{ + "Description":"Age of the participant" + }, + "pheno_sex":{ + "Description":"Sex variable", + "Levels":{ + "M":"Male", + "F":"Female" + } + }, + "pheno_group":{ + "Description":"Group variable", + "Levels":{ + "PAT":"Patient", + "CTRL":"Control subject" + } + }, + "tool1_item1":{ + "Description":"item 1 scores for tool1" + }, + "tool1_item2":{ + "Description":"item 2 scores for tool1" + }, + "tool2_item1":{ + "Description":"item 1 scores for tool2" + } +}