{ "description": null, "_filename": "DataElement-Questionnaire.item.enableWhen.json", "package_name": "hl7.fhir.r3.examples", "date": null, "meta": { "lastUpdated": "2017-04-19T07:44:43.294+10:00" }, "publisher": null, "element": [ { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "Element", "severity": "error", "expression": "hasValue() | (children().count() > id.count())" }, { "key": "que-7", "human": "enableWhen must contain either a 'answer' or a 'hasAnswer' element", "xpath": "count(f:*[starts-with(local-name(.), 'answer')]|self::f:hasAnswer) = 1", "severity": "error", "expression": "hasAnswer.exists() xor answer.exists()" } ], "path": "Questionnaire.item.enableWhen", "requirements": "Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.", "min": 0, "definition": "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.", "isModifier": true, "short": "Only allow data when", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "max": "*", "id": "Questionnaire.item.enableWhen", "comment": "If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true. I.e. treat \"enableWhen\"s as being joined by an \"or\" clause.\n\nThis element is a modifier because if enableWhen is present for an item, \"required\" is ignored unless one of the enableWhen conditions is met.", "isSummary": true } ], "name": null, "type": null, "experimental": "true", "resourceType": "DataElement", "title": null, "package_version": "3.0.2", "status": "draft", "id": "4be4e122-2063-49a7-98b8-1dd54462d26f", "kind": null, "url": "http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen", "stringency": "fully-specified", "version": null }