Skip to content

Commit

Permalink
Moved tool and diagnosis terms into separate json files
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Oct 26, 2023
1 parent 9536598 commit b78a245
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 35 deletions.
86 changes: 86 additions & 0 deletions static/diagnosisTerms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[
{
"label":"Acute depression",
"identifier":"snomed:712823008"
},
{
"label":"Anxiety",
"identifier":"snomed:48694002"
},
{
"label":"Anxiety disorder",
"identifier":"snomed:197480006"
},
{
"label":"Attention deficit hyperactivity disorder",
"identifier":"snomed:406506008"
},
{
"label":"Autism spectrum disorder",
"identifier":"snomed:35919005"
},
{
"label":"Borderline personality disorder",
"identifier":"snomed:20010003"
},
{
"label":"Concussion injury of brain",
"identifier":"snomed:110030002"
},
{
"label":"Disorder of cardiovascular system",
"identifier":"snomed:49601007"
},
{
"label":"Dyslexia",
"identifier":"snomed:59770006"
},
{
"label":"Fibromyalgia",
"identifier":"snomed:203082005"
},
{
"label":"Hearing problem",
"identifier":"snomed:300228004"
},
{
"label":"Mental disorder",
"identifier":"snomed:74732009"
},
{
"label":"Migraine",
"identifier":"snomed:37796009"
},
{
"label":"Schizophrenia",
"identifier":"snomed:58214004"
},
{
"label":"Separation anxiety",
"identifier":"snomed:126943008"
},
{
"label":"Smoker",
"identifier":"snomed:77176002"
},
{
"label":"Social phobia",
"identifier":"snomed:25501002"
},
{
"label":"Specific spelling disorder",
"identifier":"snomed:268738002"
},
{
"label":"Traumatic brain injury",
"identifier":"snomed:127295002"
},
{
"label":"Visual impairment",
"identifier":"snomed:397540003"
},
{
"label":"Healthy Control",
"identifier":"ncit:C94342"
}
]
12 changes: 12 additions & 0 deletions static/toolTerms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"label":"MOCA",
"identifier":"cogAtlas:MOCA",
"selected":false
},
{
"label":"UPDRS",
"identifier":"cogAtlas:UPDRS",
"selected":false
}
]
39 changes: 4 additions & 35 deletions store/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Facilitate Vue reactivity via 'Vue.set' and 'Vue.delete'
import { Set } from "core-js";
import Vue from "vue";
import toolTerms from "~/static/toolTerms.json";
import diagnosisTerms from "~/static/diagnosisTerms.json";

export const state = () => ({

Expand All @@ -22,29 +24,7 @@ export const state = () => ({
{ label: "female", identifier: "bids:female" },
{ label: "other", identifier: "bids:other" }
],
"Diagnosis": [
{label: "Acute depression", identifier: "snomed:712823008"},
{label: "Anxiety", identifier: "snomed:48694002"},
{label: "Anxiety disorder", identifier: "snomed:197480006"},
{label: "Attention deficit hyperactivity disorder", identifier: "snomed:406506008"},
{label: "Autism spectrum disorder", identifier: "snomed:35919005"},
{label: "Borderline personality disorder", identifier: "snomed:20010003"},
{label: "Concussion injury of brain", identifier: "snomed:110030002"},
{label: "Disorder of cardiovascular system", identifier: "snomed:49601007"},
{label: "Dyslexia", identifier: "snomed:59770006"},
{label: "Fibromyalgia", identifier: "snomed:203082005"},
{label: "Hearing problem", identifier: "snomed:300228004"},
{label: "Mental disorder", identifier: "snomed:74732009"},
{label: "Migraine", identifier: "snomed:37796009"},
{label: "Schizophrenia", identifier: "snomed:58214004"},
{label: "Separation anxiety", identifier: "snomed:126943008"},
{label: "Smoker", identifier: "snomed:77176002"},
{label: "Social phobia", identifier: "snomed:25501002"},
{label: "Specific spelling disorder", identifier: "snomed:268738002"},
{label: "Traumatic brain injury", identifier: "snomed:127295002"},
{label: "Visual impairment", identifier: "snomed:397540003"},
{label: "Healthy Control", identifier: "ncit:C94342"}
]
"Diagnosis": diagnosisTerms
},

categories: {
Expand Down Expand Up @@ -193,18 +173,7 @@ export const state = () => ({
}
},

toolTerms: [
{
label: "MOCA",
identifier: "cogAtlas:MOCA",
selected: false
},
{
label: "UPDRS",
identifier: "cogAtlas:UPDRS",
selected: false
}
],
toolTerms: toolTerms,

columnToToolMap: {}
});
Expand Down

0 comments on commit b78a245

Please sign in to comment.