This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
Operation Definition
{ "resourceType": "OperationDefinition", "id": "StructureDefinition-questionnaire", "text": { "status": "generated", "div": "<div>!-- Snipped for Brevity --></div>" }, "url": "http://hl7.org/fhir/OperationDefinition/StructureDefinition-questionnaire", "name": "Build Questionnaire", "publisher": "HL7 (FHIR Project)", "contact": [ { "telecom": [ { "system": "url", "value": "http://hl7.org/fhir" }, { "system": "email", "value": "fhir@lists.hl7.org" } ] } ], "description": "Generates a [[[Questionnaire]]] instance based on a specified [[[StructureDefinition]]], creating questions for each core element or extension element found in the StructureDefinition. \n\nIf the operation is not called at the instance level, one of the *identifier*, *profile* or *url* 'in' parameters must be provided. (If called at the instance level, these parameters will be ignored. If more than one is specified, servers may raise an error or may resolve with the parameter of their choice.)\n\nThe response will contain a [[[Questionnaire]]] instance based on the specified [[[StructureDefinition]]] and/or an [[[OperationOutcome]]] resource with errors or warnings.\n\nNested groups are used to handle complex structures and data types. If the 'supportedOnly' parameter is set to true, only those elements marked as \"must support\" will be included.\n\nThis operation is intended to enable auto-generation of simple interfaces for arbitrary profiles. The 'questionnaire' approach to data entry has limitations that will make it less optimal than custom-defined interfaces. However, this function may be useful for simple applications or for systems that wish to support \"non-core\" resources with minimal development effort.", "status": "draft", "date": "2015-03-27T00:13:00+11:00", "kind": "operation", "code": "questionnaire", "notes": "**Open Issue**: Ideally, extensions should be populated in the generated [[[Questionnaire]]] that will support taking [[[QuestionnaireAnswers]]] resources generated from the Questionnaire and turning them back into the appropriate resources.", "system": false, "type": [ "StructureDefinition" ], "instance": true, "parameter": [ { "name": "identifier", "use": "in", "min": 0, "max": "1", "documentation": "A logical profile identifier (i.e. 'StructureDefinition.identifier''). The server must know the profile or be able to retrieve it from other known repositories.", "type": "uri" }, { "name": "profile", "use": "in", "min": 0, "max": "1", "documentation": "The [[[StructureDefinition]]] is provided directly as part of the request. Servers may choose not to accept profiles in this fashion", "type": "token" }, { "name": "url", "use": "in", "min": 0, "max": "1", "documentation": "The profile's official url (i.e. 'StructureDefinition.url'). The server must know the profile or be able to retrieve it from other known repositories.", "type": "uri" }, { "name": "supportedOnly", "use": "in", "min": 0, "max": "1", "documentation": "If true, the questionnaire will only include those elements marked as \"mustSupport='true'\" in the StructureDefinition.", "type": "boolean" }, { "name": "return", "use": "out", "min": 1, "max": "1", "documentation": "The questionnaire form generated based on the StructureDefinition.", "type": "Questionnaire" } ] }
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.