{ "description": null, "_filename": "example/Questionnaire-questionnaire-sdc-profile-example-context-expression.json", "package_name": "hl7.fhir.uv.sdc", "date": "2024-12-17T01:55:34+00:00", "meta": { "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave" ] }, "publisher": "HL7 International / FHIR Infrastructure", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "display": "World" } ] } ], "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": "4.0.0-ballot", "extension": [ { "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]", "valueCoding": { "code": "semver", "system": "http://hl7.org/fhir/version-algorithm" } }, { "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": "active", "id": "08e6d6a5-32e3-40ea-b521-fbdc8c1a1ed1", "kind": null, "url": "http://hl7.org/fhir/uv/sdc/questionnaire-sdc-profile-example-context-expression", "identifier": [ { "value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.7", "system": "urn:ietf:rfc:3986" } ], "version": "4.0.0-ballot", "contact": [ { "name": "HL7 International / FHIR Infrastructure", "telecom": [ { "value": "http://www.hl7.org/Special/committees/fiwg", "system": "url" } ] }, { "telecom": [ { "value": "http://www.hl7.org/Special/committees/fiwg", "system": "url" } ] } ] }