{ "description": null, "_filename": "example/Questionnaire-questionnaire-sdc-profile-example-context-expression.json", "package_name": "hl7.fhir.uv.sdc.r4", "date": "2022-03-08T18:37:19+00:00", "publisher": "HL7 International - FHIR Infrastructure Work Group", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm" } ] } ], "name": "SDCExampleUsingContextExpression", "item": [ { "item": [ { "text": "Instruction: Click on \"Previous Visits\" button to view all the visits of this patient in the past year.", "type": "display", "linkId": "1.1" }, { "text": "Has the patient been admitted for this issue on any visits in the past year?", "type": "choice", "linkId": "1.2", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-contextExpression", "extension": [ { "url": "label", "valueString": "Encounters in past year" }, { "url": "expression", "valueExpression": { "language": "application/x-fhir-query", "expression": "Encounter?patient={{%patient.id}}&date=ge{{today()-1 year}}&_sort=-date&_include=Encounter:practitioner", "description": "list all Encounters with patient in the past year, in order by date - newest to oldest" } } ] }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn", "extension": [ { "url": "path", "valueString": "period.start" }, { "url": "label", "valueString": "Date" }, { "url": "width", "valueQuantity": { "code": "%", "value": 40, "system": "http://unitsofmeasure.org" } }, { "url": "forDisplay", "valueBoolean": true } ] }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn", "extension": [ { "url": "path", "valueString": "reason.coding.display + ' - ' + type.text" }, { "url": "label", "valueString": "Visit Reason/Description" }, { "url": "width", "valueQuantity": { "code": "%", "value": 60, "system": "http://unitsofmeasure.org" } }, { "url": "forDisplay", "valueBoolean": false } ] }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "text": "A control where choices are listed with a button beside them. The button can be toggled to select or de-select a given choice. Selecting one item deselects all others.", "coding": [ { "code": "radio-button", "system": "http://hl7.org/fhir/questionnaire-item-control", "display": "Radio Button" } ] } }, { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", "valueCodeableConcept": { "text": "A control where choices are listed with a button beside them. The button can be toggled to select or de-select a given choice. Selecting one item deselects all others.", "coding": [ { "code": "radio-button", "system": "http://hl7.org/fhir/questionnaire-item-control", "display": "Radio Button" } ] } } ], "answerValueSet": "http://hl7.org/fhir/ValueSet/yesnodontknow" } ], "type": "group", "linkId": "1.0" } ], "type": null, "experimental": null, "resourceType": "Questionnaire", "title": null, "package_version": "3.0.0", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext", "extension": [ { "url": "name", "valueCoding": { "code": "patient", "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext", "display": "Patient" } }, { "url": "type", "valueCode": "Patient" }, { "url": "description", "valueString": "The patient that is to be used to pre-populate the form" } ] } ], "status": "draft", "id": "03a5f365-310f-498a-9646-91486f2db3b8", "kind": null, "url": "http://hl7.org/fhir/uv/sdc/questionnaire-sdc-profile-example-context-expression", "version": "3.0.0", "contact": [ { "telecom": [ { "value": "http://hl7.org/Special/committees/fiwg", "system": "url" } ] } ] }