Skip to content

Commit

Permalink
Check DSM5_crosscutting_adult_schema with psychiatry.org (#71)
Browse files Browse the repository at this point in the history
* Check DSM5_crosscutting_adult_schema

* Check DSM-5_A items against psychiatry.org

* Make prefLabels human-readable

* Add category item for DSM-5_A

* Create domain and total score items

* Shorten file names

* Update domain item contents

* Remove total score item

* Add domain score calculations to activity schema

* Add missing domain score calculations

* Fix apostrophe encoding issue

* Make jsExpressions valid JavaScript

* Rename files because the UI expects file name s to be ids

* Remove "missing" option from response choices

* Update the preamble to conform with APA version

* Sort domain entries in compute

* Make responseOptions valueConstraints for domain items

* Update domain names to be more parseable

* Update the ids in compute

* Update addProperties with domain items

* Add domain item references to order and addProperties

* Remove domain items from order
  • Loading branch information
ibevers authored May 24, 2024
1 parent ce88990 commit 9b13aaf
Show file tree
Hide file tree
Showing 38 changed files with 342 additions and 57 deletions.
136 changes: 134 additions & 2 deletions activities/DSM-5_A/DSM5_crosscutting_adult_schema
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,67 @@
"@type": "reproschema:Activity",
"@id": "DSM5_crosscutting_adult_schema",
"prefLabel": "DSM5_crosscutting_adult",
"description": "The DSM-5 Level 1 Cross-Cutting Symptom Measure is a self- or informant-rated measure that assesses mental health domains that are important across psychiatric diagnoses. It is intended to help clinicians identify additional areas of inquiry that may have significant impact on the individuals treatment and prognosis. In addition, the measure may be used to track changes in the individuals symptom presentation over time. This version asks adults to consider how much (or how often) they have been bothered by specific problems in the past two weeks.",
"description": "The DSM-5 Level 1 Cross-Cutting Symptom Measure is a self- or informant-rated measure that assesses mental health domains that are important across psychiatric diagnoses. It is intended to help clinicians identify additional areas of inquiry that may have significant impact on the individual's treatment and prognosis. In addition, the measure may be used to track changes in the individual's symptom presentation over time. This version asks adults to consider how much (or how often) they have been bothered by specific problems in the past two weeks.",
"citation": "https://doi.org/10.1176/appi.books.9780890425596",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"preamble": {
"en": "During the past TWO (2) WEEKS, how much (or how often) have you been bothered by the following problems?\n\n0=None (Not at all), 1=Slight (Rare, less than a day or two), 2=Mild (Several days), 3=Moderate (More than half the days), 4=Severe (Nearly every day)"
"en": "During the past TWO (2) WEEKS, how much (or how often) have you been bothered by the following problems?"
},
"compute": [
{
"variableName": "dsm5crossad_d_1",
"jsExpression": "Math.max(dsm5crossad_1, dsm5crossad_2)"
},
{
"variableName": "dsm5crossad_d_2",
"jsExpression": "Math.max(dsm5crossad_3)"
},
{
"variableName": "dsm5crossad_d_3",
"jsExpression": "Math.max(dsm5crossad_4, dsm5crossad_5)"
},
{
"variableName": "dsm5crossad_d_4",
"jsExpression": "Math.max(dsm5crossad_6, dsm5crossad_7, dsm5crossad_8)"
},
{
"variableName": "dsm5crossad_d_5",
"jsExpression": "Math.max(dsm5crossad_9, dsm5crossad_10)"
},
{
"variableName": "dsm5crossad_d_6",
"jsExpression": "Math.max(dsm5crossad_11)"
},
{
"variableName": "dsm5crossad_d_7",
"jsExpression": "Math.max(dsm5crossad_12, dsm5crossad_13)"
},
{
"variableName": "dsm5crossad_d_8",
"jsExpression": "Math.max(dsm5crossad_14)"
},
{
"variableName": "dsm5crossad_d_9",
"jsExpression": "Math.max(dsm5crossad_15)"
},
{
"variableName": "dsm5crossad_d_10",
"jsExpression": "Math.max(dsm5crossad_16, dsm5crossad_17)"
},
{
"variableName": "dsm5crossad_d_11",
"jsExpression": "Math.max(dsm5crossad_18)"
},
{
"variableName": "dsm5crossad_d_12",
"jsExpression": "Math.max(dsm5crossad_19, dsm5crossad_20)"
},
{
"variableName": "dsm5crossad_d_13",
"jsExpression": "Math.max(dsm5crossad_21, dsm5crossad_22, dsm5crossad_23)"
}
],
"ui": {
"order": [
"items/dsm5crossad_1",
Expand Down Expand Up @@ -173,6 +227,84 @@
"isAbout": "items/dsm5crossad_23",
"valueRequired": true,
"isVis": true
},
{
"variableName": "dsm5crossad_d_1",
"isAbout": "items/dsm5crossad_d_1",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_2",
"isAbout": "items/dsm5crossad_d_2",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_3",
"isAbout": "items/dsm5crossad_d_3",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_4",
"isAbout": "items/dsm5crossad_d_4",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_5",
"isAbout": "items/dsm5crossad_d_5",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_6",
"isAbout": "items/dsm5crossad_d_6",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_7",
"isAbout": "items/dsm5crossad_d_7",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_8",
"isAbout": "items/dsm5crossad_d_8",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_9",
"isAbout": "items/dsm5crossad_d_9",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_10",
"isAbout": "items/dsm5crossad_d_10",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_11",
"isAbout": "items/dsm5crossad_d_11",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_12",
"isAbout": "items/dsm5crossad_d_12",
"valueRequired": true,
"isVis": false
},
{
"variableName": "dsm5crossad_d_13",
"isAbout": "items/dsm5crossad_d_13",
"valueRequired": true,
"isVis": false
}
],
"shuffle": false
Expand Down
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_1",
"prefLabel": "dsm5crossad_1",
"prefLabel": "DSM5 Crosscutting Adult Question 1",
"description": "Q1 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Little interest or pleasure in doing things?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_10
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_10",
"prefLabel": "dsm5crossad_10",
"prefLabel": "DSM5 Crosscutting Adult Question 10",
"description": "Q10 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Feeling that your illnesses are not being taken seriously enough?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_11
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_11",
"prefLabel": "dsm5crossad_11",
"prefLabel": "DSM5 Crosscutting Adult Question 11",
"description": "Q11 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Thoughts of actually hurting yourself?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_12
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_12",
"prefLabel": "dsm5crossad_12",
"prefLabel": "DSM5 Crosscutting Adult Question 12",
"description": "Q12 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Hearing things other people couldn't hear, such as voices even when no one was around?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_13
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_13",
"prefLabel": "dsm5crossad_13",
"prefLabel": "DSM5 Crosscutting Adult Question 13",
"description": "Q13 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Feeling that someone could hear your thoughts, or that you could hear what another person was thinking?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_14
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_14",
"prefLabel": "dsm5crossad_14",
"prefLabel": "DSM5 Crosscutting Adult Question 14",
"description": "Q14 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Problems with sleep that affected your sleep quality over all?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_15
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_15",
"prefLabel": "dsm5crossad_15",
"prefLabel": "DSM5 Crosscutting Adult Question 15",
"description": "Q15 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Problems with memory (e.g., learning new information) or with location (e.g., finding your way home)?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_16
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_16",
"prefLabel": "dsm5crossad_16",
"prefLabel": "DSM5 Crosscutting Adult Question 16",
"description": "Q16 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Unpleasant thoughts, urges, or images that repeatedly enter your mind?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_17
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_17",
"prefLabel": "dsm5crossad_17",
"prefLabel": "DSM5 Crosscutting Adult Question 17",
"description": "Q17 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Feeling driven to perform certain behaviors or mental acts over and over again?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_18
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_18",
"prefLabel": "dsm5crossad_18",
"prefLabel": "DSM5 Crosscutting Adult Question 18",
"description": "Q18 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Feeling detached or distant from yourself, your body, your physical surroundings, or your memories?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_19
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_19",
"prefLabel": "dsm5crossad_19",
"prefLabel": "DSM5 Crosscutting Adult Question 19",
"description": "Q19 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Not knowing who you really are or what you want out of life?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_2",
"prefLabel": "dsm5crossad_2",
"prefLabel": "DSM5 Crosscutting Adult Question 2",
"description": "Q2 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Feeling down, depressed, or hopeless?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_20
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_20",
"prefLabel": "dsm5crossad_20",
"prefLabel": "DSM5 Crosscutting Adult Question 20",
"description": "Q20 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Not feeling close to other people or enjoying your relationships with them?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
3 changes: 1 addition & 2 deletions activities/DSM-5_A/items/dsm5crossad_21
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_21",
"prefLabel": "dsm5crossad_21",
"prefLabel": "DSM5 Crosscutting Adult Question 21",
"description": "Q21 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Drinking at least 4 drinks of any kind of alcohol in a single day?"
Expand All @@ -11,5 +11,4 @@
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
5 changes: 2 additions & 3 deletions activities/DSM-5_A/items/dsm5crossad_22
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "dsm5crossad_22",
"prefLabel": "dsm5crossad_22",
"prefLabel": "DSM5 Crosscutting Adult Question 22",
"description": "Q22 of the DSM-5 Level 1 Cross-Cutting Symptom Measure - Adult Report",
"question": {
"en": "Smoking any cigarettes, a cigar, or pipe, or using snuff or chewing tobacco?"
"en": "Smoking any cigarettes, a cigar, or pipe or using snuff or chewing tobacco?"
},
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"

}
Loading

0 comments on commit 9b13aaf

Please sign in to comment.