{ "resourceType": "Questionnaire", "status": "draft", "meta": { "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire|3.5.0" ] }, "title": "PHQ-9 quick depression assessment panel", "name": "PHQ-9 quick depression assessment panel", "identifier": [ { "system": "http://loinc.org", "value": "44249-1" } ], "code": [ { "system": "http://loinc.org", "code": "44249-1", "display": "PHQ-9 quick depression assessment panel" } ], "subjectType": [ "Patient", "Person" ], "item": [ { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44250-9", "code": [ { "system": "http://loinc.org", "code": "44250-9", "display": "Little interest or pleasure in doing things?" } ], "text": "Little interest or pleasure in doing things?", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44255-8", "code": [ { "system": "http://loinc.org", "code": "44255-8", "display": "Feeling down, depressed, or hopeless?" } ], "text": "Feeling down, depressed, or hopeless?", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44259-0", "code": [ { "system": "http://loinc.org", "code": "44259-0", "display": "Trouble falling or staying asleep, or sleeping too much" } ], "text": "Trouble falling or staying asleep, or sleeping too much", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44254-1", "code": [ { "system": "http://loinc.org", "code": "44254-1", "display": "Feeling tired or having little energy" } ], "text": "Feeling tired or having little energy", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44251-7", "code": [ { "system": "http://loinc.org", "code": "44251-7", "display": "Poor appetite or overeating" } ], "text": "Poor appetite or overeating", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44258-2", "code": [ { "system": "http://loinc.org", "code": "44258-2", "display": "Feeling bad about yourself-or that you are a failure or have let yourself or your family down" } ], "text": "Feeling bad about yourself-or that you are a failure or have let yourself or your family down", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44252-5", "code": [ { "system": "http://loinc.org", "code": "44252-5", "display": "Trouble concentrating on things, such as reading the newspaper or watching television" } ], "text": "Trouble concentrating on things, such as reading the newspaper or watching television", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": true, "linkId": "/44253-3", "code": [ { "system": "http://loinc.org", "code": "44253-3", "display": "Moving or speaking so slowly that other people could have noticed. Or the opposite-being so fidgety or restless that you have been moving around a lot more than usual" } ], "text": "Moving or speaking so slowly that other people could have noticed. Or the opposite-being so fidgety or restless that you have been moving around a lot more than usual", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": false, "linkId": "/44260-8", "code": [ { "system": "http://loinc.org", "code": "44260-8", "display": "Thoughts that you would be better off dead, or of hurting yourself in some way" } ], "text": "Thoughts that you would be better off dead, or of hurting yourself in some way", "answerOption": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "0" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 0 } ], "valueCoding": { "code": "LA6568-5", "display": "Not at all" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "1" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 1 } ], "valueCoding": { "code": "LA6569-3", "display": "Several days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "2" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 2 } ], "valueCoding": { "code": "LA6570-1", "display": "More than half the days" } }, { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix", "valueString": "3" }, { "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue", "valueDecimal": 3 } ], "valueCoding": { "code": "LA6571-9", "display": "Nearly every day" } } ] }, { "type": "decimal", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory", "valueCodeableConcept": { "text": "The PHQ-9 is the standard (and most commonly used) depression measure, and it ranges from 0-27 Scoring: Add up all checked boxes on PHQ-9. For every check: Not at all = 0; Several days = 1; More than half the days = 2; Nearly every day = 3 (the scores are the codes that appear in the answer list for each of the PHQ-9 problem panel terms). Interpretation: 1-4 = Minimal depression; 5-9 = Mild depression; 10-14 = Moderate depression; 15-19 = Moderately severe depression; 20-27 = Severed depression.", "coding": [ { "display": "The PHQ-9 is the standard (and most commonly used) depression measure, and it ranges from 0-27 Scoring: Add up all checked boxes on PHQ-9. For every check: Not at all = 0; Several days = 1; More than half the days = 2; Nearly every day = 3 (the scores are the codes that appear in the answer list for each of the PHQ-9 problem panel terms). Interpretation: 1-4 = Minimal depression; 5-9 = Mild depression; 10-14 = Moderate depression; 15-19 = Moderately severe depression; 20-27 = Severed depression." } ] } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit", "valueCoding": { "display": "{score}" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "scoreExt", "language": "text/fhirpath", "expression": "'http://hl7.org/fhir/StructureDefinition/ordinalValue'" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q1_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44250-9').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44250-9').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q2_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44255-8').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44255-8').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q3_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44259-0').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44259-0').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q4_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44254-1').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44254-1').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q5_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44251-7').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44251-7').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q6_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44258-2').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44258-2').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q7_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44252-5').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44252-5').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q8_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44253-3').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44253-3').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "q9_value", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/44260-8').answerOption.where(valueCoding.code=%resource.item.where(linkId = '/44260-8').answer.valueCoding.code).extension.where(url=%scoreExt).valueDecimal" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression" : { "name": "any_questions_answered", "language": "text/fhirpath", "expression": "%q1_value.exists() or %q2_value.exists() or %q3_value.exists() or %q4_value.exists() or %q5_value.exists() or %q6_value.exists() or %q7_value.exists() or %q8_value.exists() or %q9_value.exists()" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-calculatedExpression", "valueExpression": { "description": "Total score calculation", "language" : "text/fhirpath", "expression": "iif(%any_questions_answered, iif(%q1_value.exists(), %q1_value, 0) + iif(%q2_value.exists(), %q2_value, 0) + iif(%q3_value.exists(), %q3_value, 0) + iif(%q4_value.exists(), %q4_value, 0) + iif(%q5_value.exists(), %q5_value, 0) + iif(%q6_value.exists(), %q6_value, 0) + iif(%q7_value.exists(), %q7_value, 0) + iif(%q8_value.exists(), %q8_value, 0) + iif(%q9_value.exists(), %q9_value, 0), {})" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": false, "linkId": "/44261-6", "code": [ { "system": "http://loinc.org", "code": "44261-6", "display": "Patient health questionnaire 9 item total score" } ], "text": "Patient health questionnaire 9 item total score" }, { "type": "choice", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/questionnaire-item-control", "code": "drop-down", "display": "Drop down" } ], "text": "Drop down" } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory", "valueCodeableConcept": { "text": "If you checked off any problems on this questionnaire", "coding": [ { "display": "If you checked off any problems on this questionnaire" } ] } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-observationLinkPeriod", "valueDuration": { "value": "1", "unit": "year", "system": "http://unitsofmeasure.org", "code": "a" } } ], "required": false, "linkId": "/69722-7", "code": [ { "system": "http://loinc.org", "code": "69722-7", "display": "How difficult have these problems made it for you to do your work, take care of things at home, or get along with other people?" } ], "text": "How difficult have these problems made it for you to do your work, take care of things at home, or get along with other people?", "answerOption": [ { "valueCoding": { "code": "LA6572-7", "display": "Not difficult at all" } }, { "valueCoding": { "code": "LA6573-5", "display": "Somewhat difficult" } }, { "valueCoding": { "code": "LA6575-0", "display": "Very difficult" } }, { "valueCoding": { "code": "LA6574-3", "display": "Extremely difficult" } } ] } ] }