{ "description": "Example Questionnaire that shows both definition-based population and StructureMap-based extraction", "_filename": "example/Questionnaire-SDOHCC-QuestionnaireHungerVitalSign.json", "package_name": "hl7.fhir.uv.sdc.r4", "subjectType": [ "Patient" ], "date": "2022-03-08T18:37:19+00:00", "meta": { "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extr-defn" ] }, "publisher": "HL7 International - FHIR Infrastructure Work Group", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm" } ] } ], "name": "SDOHCCQuestionnaireHungerVitalSign", "item": [ { "code": [ { "code": "88122-7", "system": "http://loinc.org", "display": "(I/We) worried whether (my/our) food would run out before (I/we) got money to buy more." } ], "text": "(I/We) worried whether (my/our) food would run out before (I/we) got money to buy more.", "type": "choice", "linkId": "/88122-7", "required": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "text": "Drop down", "coding": [ { "code": "drop-down", "system": "http://hl7.org/fhir/questionnaire-item-control", "display": "Drop down" } ] } } ], "answerOption": [ { "valueCoding": { "code": "LA28397-0", "system": "http://loinc.org", "display": "Often true" } }, { "valueCoding": { "code": "LA6729-3", "system": "http://loinc.org", "display": "Sometimes true" } }, { "valueCoding": { "code": "LA28398-8", "system": "http://loinc.org", "display": "Never true" } }, { "valueCoding": { "code": "LA15775-2", "system": "http://loinc.org", "display": "Don't know/refused" } } ] }, { "code": [ { "code": "88123-5", "system": "http://loinc.org", "display": "The food that (I/we) bought just didn't last, and (I/we) didn't have money to get more." } ], "text": "The food that (I/we) bought just didn't last, and (I/we) didn't have money to get more.", "type": "choice", "linkId": "/88123-5", "required": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "text": "Drop down", "coding": [ { "code": "drop-down", "system": "http://hl7.org/fhir/questionnaire-item-control", "display": "Drop down" } ] } } ], "answerOption": [ { "valueCoding": { "code": "LA28397-0", "system": "http://loinc.org", "display": "Often true" } }, { "valueCoding": { "code": "LA6729-3", "system": "http://loinc.org", "display": "Sometimes true" } }, { "valueCoding": { "code": "LA28398-8", "system": "http://loinc.org", "display": "Never true" } }, { "valueCoding": { "code": "LA15775-2", "system": "http://loinc.org", "display": "Don't know/refused" } } ] }, { "code": [ { "code": "88124-3", "system": "http://loinc.org", "display": "Food insecurity risk [HVS]" } ], "item": [ { "text": "An answer of \"often true\" or \"sometimes true\" to either or both of the Hunger Vital Sign™ questions identifies a patient as at risk for food insecurity (FI).", "type": "display", "linkId": "/88124-3-help", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "text": "Help-Button", "coding": [ { "code": "help", "system": "http://hl7.org/fhir/questionnaire-item-control", "display": "Help-Button" } ] } } ] } ], "text": "Food insecurity risk", "type": "choice", "linkId": "/88124-3", "required": false, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "text": "Drop down", "coding": [ { "code": "drop-down", "system": "http://hl7.org/fhir/questionnaire-item-control", "display": "Drop down" } ] } }, { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "thisItem", "language": "text/fhirpath", "expression": "%questionnaire.item.where(linkId = '/88124-3')" } }, { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "atRiskCoding", "language": "text/fhirpath", "expression": "%thisItem.answerOption.valueCoding.where(code='LA19952-3')" } }, { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "noRiskCoding", "language": "text/fhirpath", "expression": "%thisItem.answerOption.valueCoding.where(code='LA19983-8')" } }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", "expression": "iif(%answeredEitherQ, iif(%riskStatus, %atRiskCoding, %noRiskCoding), {})", "description": "risk determination" } }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", "expression": "iif(%answeredEitherQ, iif(%riskStatus, %atRiskCoding, %noRiskCoding), {})", "description": "risk determination" } } ], "answerOption": [ { "valueCoding": { "code": "LA19952-3", "system": "http://loinc.org", "display": "At risk" } }, { "valueCoding": { "code": "LA19983-8", "system": "http://loinc.org", "display": "No risk" } } ] } ], "copyright": "Content is from the Hunger Vital Sign Survey with permission: © 2010 Dr. Erin Hager and Dr. Anna Quigg and the Children’s HealthWatch research team", "type": null, "experimental": null, "resourceType": "Questionnaire", "title": "SDOHCC Questionnaire Hunger Vital Sign", "package_version": "3.0.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "worriedAnsCode", "language": "text/fhirpath", "expression": "%resource.item.where(linkId='/88122-7').answer.value.code" } }, { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "ranOutAnsCode", "language": "text/fhirpath", "expression": "%resource.item.where(linkId='/88123-5').answer.value.code" } }, { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "riskCodes", "language": "text/fhirpath", "expression": "'LA28397-0'.combine('LA6729-3')" } }, { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "riskStatus", "language": "text/fhirpath", "expression": "%riskCodes contains %worriedAnsCode or %riskCodes contains %ranOutAnsCode" } }, { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { "name": "answeredEitherQ", "language": "text/fhirpath", "expression": "%worriedAnsCode.exists() or %ranOutAnsCode.exists()" } }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", "valueCanonical": "http://hl7.org/fhir/uv/sdc/StructureMap/SDOHCC-StructureMapHungerVitalSign" } ], "status": "draft", "id": "ec81b785-99ff-4a11-9b91-475b43790b39", "kind": null, "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/SDOHCC-QuestionnaireHungerVitalSign", "version": "3.0.0", "contact": [ { "telecom": [ { "value": "http://hl7.org/Special/committees/fiwg", "system": "url" } ] } ] }