Clinical Practice Guidelines, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 3.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-recommendations/ and changes regularly. See the Directory of published versions
| Official URL: http://hl7.org/fhir/uv/cpg/OperationDefinition/cpg-structureDefinition-questionnaire | Version: 3.0.0-ballot | ||||
| Standards status: Trial-use | Maturity Level: 3 | Computable Name: CPGStructureDefinitionQuestionnaire | |||
| Other Identifiers: OID:2.16.840.1.113883.4.642.40.48.33.5 | |||||
Generates a Questionnaire instance based on a specified StructureDefinition, creating questions for a minimal set of elements or extension elements found in the Structure Definition.
Use this operation to generate questions from a StructureDefinition that describes the data to collect. It is useful for a case-feature definition selected by the application, including when a guideline evaluation identifies missing information.
The operation generates a Questionnaire from the profile's elements and extensions. PlanDefinition $questionnaire applies this approach across a plan's data requirements; interactive CDS explains how generated forms participate in a patient-specific collection and reevaluation cycle.
Language: en
URL: [base]/StructureDefinition/$questionnaire
URL: [base]/StructureDefinition/[id]/$questionnaire
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | identifier | 0..1 | Identifier | A logical identifier (i.e. 'StructureDefinition.identifier'). The server must know the StructureDefinition or be able to retrieve it from other known repositories. | ||
| IN | resource | 0..1 | StructureDefinition | The StructureDefinition is provided directly as part of the request. Servers may choose not to accept resources in this fashion | ||
| IN | url | 0..1 | canonical (StructureDefinition) | The StructureDefinition's official URL (i.e. 'StructureDefinition.url'). The server must know the StructureDefinition or be able to retrieve it from other known repositories. | ||
| IN | supportedOnly | 0..1 | boolean | If true, the questionnaire will only include those elements marked as "mustSupport='true'" in the StructureDefinition. | ||
| IN | minimalOnly | 0..1 | boolean | If true, the questionnaire items are limited to the minimal set of elements from the StructureDefinition. | ||
| IN | artifactEndpointConfiguration | 0..* | Configuration information to resolve canonical artifacts Processing Semantics: Create a canonical-like reference (e.g.
Rank each
NOTE: For evenly ranked | |||
| IN | artifactEndpointConfiguration.artifactRoute | 0..1 | uri | An optional route used to determine whether this endpoint is expected to be able to resolve artifacts that match the route (i.e. start with the route, up to and including the entire url) | ||
| IN | artifactEndpointConfiguration.endpointUri | 0..1 | uri | The URI of the endpoint, exclusive with the | ||
| IN | artifactEndpointConfiguration.endpoint | 0..1 | Endpoint | An Endpoint resource describing the endpoint, exclusive with the | ||
| OUT | return | 1..1 | Questionnaire | The questionnaire form generated based on the StructureDefinition. |
If the operation is not called at the instance level, one of the identifier, profile or url 'in' parameters must be provided. If more than one is specified, servers may raise an error or may resolve with the parameter of their choice. If called at the instance level, these parameters will be ignored. The response will contain a Questionnaire instance based on the specified StructureDefinition and/or an OperationOutcome resource with errors or warnings. Nested groups are used to handle complex structures and data types. If the 'minimalOnly' parameter is set to true, only minimal elements from the structure definition will be included. These are defined as:
Of note, supportedOnly is not recommended for use with minimalOnly within CPG. See Questionnaire Processing Semantics for further details.
identifier, resource, and url. The comment mentions profile, but no parameter with that name is declared. Servers may decline directly supplied resource inputs.minimalOnly true, generation considers differential elements and required snapshot elements, including required children of required parents, while excluding fixed/pattern-constrained questions. Avoid combining it with supportedOnly, as the operation advises. These rules do not guarantee that every completed response will yield a profile-valid resource.See questionnaire generation processing and the case-feature model.