This page is part of the Structured Data Capture FHIR IG (v3.0.0: STU 3) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 3 |
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:OperationDefinition;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "Questionnaire-next-question"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "extensions" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>SDCNextQuestion</h2><p>OPERATION: SDCNextQuestion</p><p>The official URL for this operation definition is: </p><pre>http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-next-question</pre><div><p>The Next Question operation is used for <em>adaptive questionnaires</em> - forms where the next question (or set of questions) is based on previous answers. The result of this operation is to return an updated QuestionnaireResponse with a contained Questionnaire that includes the next question (or set of questions). It might also include display items with instructions and/or read-only questions containing calculated scores. This operation uses the <a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\">QuestionnaireResponse</a> resource with a <a href=\"http://hl7.org/fhir/R4/references.html#contained\"><em>contained</em></a> <a href=\"http://hl7.org/fhir/R4/questionnaire.html\">Questionnaire</a> as both the input and output parameter. The client initiates and queries for the next question by including the answers to all required questions in the questionnaire to that point. The Server updates the contained Questionnaire in the QuestionnaireResponse in the with the next question or set of questions and any needed instruction or score items. When the questionnaire is complete, the Server updates the <code>QuestionnaireResponse.status</code> resource parameter to <code>complete</code>. If completion of the questionnaire has exceeded any time limit, the Server may return an <a href=\"http://hl7.org/fhir/R4/operationoutcome.html\">OperationOutcome</a> with an error.</p>\n</div><p>URL: [base]/Questionnaire/$next-question</p><p>Input parameters Profile: <a href=\"StructureDefinition-parameters-questionnaire-next-question-in.html\">Next question operation input parameters</a></p><p>Output parameters Profile: <a href=\"StructureDefinition-parameters-questionnaire-next-question-in.html\">Next question operation input parameters</a></p><p>Parameters</p><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>questionnaire-response</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/resource.html\">Resource</a></td><td/><td><div><p>The <a href=\"StructureDefinition-sdc-questionnaireresponse-adapt.html\">Adaptive QuestionnaireResponse Profile</a> of the QuestionnaireResponse resource with a <em>contained</em> Questionnaire. When invoking the operation for the first time, neither the QuestionnaireResponse nor the contained Questionnaire will have any items, as no questions are yet known. In subsequent calls, the QuestionnaireResponse will include answers to all required questions asked so far and the contained QuestionnaireResponse will remain the same as provided back from the operation in the preceding response.</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/resource.html\">Resource</a></td><td/><td><div><p>The <a href=\"StructureDefinition-sdc-questionnaireresponse-adapt.html\">Adaptive QuestionnaireResponse Profile</a> of the QuestionnaireResponse resource with a <em>contained</em> Questionnaire. The Server updates the QuestionnaireResponse's contained Questionnaire by appending with the next question or questions ittems and any score or instruction items and returns the QuestionnaireResponse (with all answers completed thus far plus any calculated scores) as this parameter. When the questionnaire is complete, the Server updates the status of the QuestionnaireResponse resource parameter to <code>complete</code>.</p>\n</div></td></tr></table><div><p>To return a calculated score for the questionnaire or group of items, the service may return a <code>readOnly</code> question with the score value in the corresponding QuestionnaireResponse.item. The extension <code>questionnaire-hidden</code> can be included on the Questionnaire.item to indicate to the client that it should not be displayed to the end user</p>\n</div></div>"
];
fhir:DomainResource.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
fhir:Extension.valueInteger [
fhir:value "3"^^xsd:integer;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom" ];
fhir:Extension.valueCanonical [
fhir:value "http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc";
fhir:link <http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc> ] ] ]
], [
fhir:index 1;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
fhir:Extension.valueCode [
fhir:value "trial-use";
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom" ];
fhir:Extension.valueCanonical [
fhir:value "http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc";
fhir:link <http://hl7.org/fhir/uv/sdc/ImplementationGuide/hl7.fhir.uv.sdc> ] ] ]
];
fhir:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-next-question"];
fhir:OperationDefinition.version [ fhir:value "3.0.0"];
fhir:OperationDefinition.name [ fhir:value "SDCNextQuestion"];
fhir:OperationDefinition.title [ fhir:value "Adaptive Questionnaire - Next Question Operation"];
fhir:OperationDefinition.status [ fhir:value "draft"];
fhir:OperationDefinition.kind [ fhir:value "operation"];
fhir:OperationDefinition.date [ fhir:value "2018-08-29"^^xsd:date];
fhir:OperationDefinition.publisher [ fhir:value "HL7 International - FHIR Infrastructure Work Group"];
fhir:OperationDefinition.contact [
fhir:index 0;
fhir:ContactDetail.telecom [
fhir:index 0;
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://hl7.org/Special/committees/fiwg" ] ]
];
fhir:OperationDefinition.description [ fhir:value "The Next Question operation is used for *adaptive questionnaires* - forms where the next question (or set of questions) is based on previous answers. The result of this operation is to return an updated QuestionnaireResponse with a contained Questionnaire that includes the next question (or set of questions). It might also include display items with instructions and/or read-only questions containing calculated scores. This operation uses the [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) resource with a [*contained*](http://hl7.org/fhir/R4/references.html#contained) [Questionnaire](http://hl7.org/fhir/R4/questionnaire.html) as both the input and output parameter. The client initiates and queries for the next question by including the answers to all required questions in the questionnaire to that point. The Server updates the contained Questionnaire in the QuestionnaireResponse in the with the next question or set of questions and any needed instruction or score items. When the questionnaire is complete, the Server updates the `QuestionnaireResponse.status` resource parameter to `complete`. If completion of the questionnaire has exceeded any time limit, the Server may return an [OperationOutcome](http://hl7.org/fhir/R4/operationoutcome.html) with an error."];
fhir:OperationDefinition.jurisdiction [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
fhir:Coding.code [ fhir:value "001" ] ]
];
fhir:OperationDefinition.code [ fhir:value "next-question"];
fhir:OperationDefinition.comment [ fhir:value "To return a calculated score for the questionnaire or group of items, the service may return a `readOnly` question with the score value in the corresponding QuestionnaireResponse.item. The extension `questionnaire-hidden` can be included on the Questionnaire.item to indicate to the client that it should not be displayed to the end user"];
fhir:OperationDefinition.resource [
fhir:value "Questionnaire";
fhir:index 0
];
fhir:OperationDefinition.system [ fhir:value "false"^^xsd:boolean];
fhir:OperationDefinition.type [ fhir:value "true"^^xsd:boolean];
fhir:OperationDefinition.instance [ fhir:value "false"^^xsd:boolean];
fhir:OperationDefinition.inputProfile [
fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/parameters-questionnaire-next-question-in";
fhir:link <http://hl7.org/fhir/uv/sdc/StructureDefinition/parameters-questionnaire-next-question-in>
];
fhir:OperationDefinition.outputProfile [
fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/parameters-questionnaire-next-question-in";
fhir:link <http://hl7.org/fhir/uv/sdc/StructureDefinition/parameters-questionnaire-next-question-in>
];
fhir:OperationDefinition.parameter [
fhir:index 0;
fhir:OperationDefinition.parameter.name [ fhir:value "questionnaire-response" ];
fhir:OperationDefinition.parameter.use [ fhir:value "in" ];
fhir:OperationDefinition.parameter.min [ fhir:value "1"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "The [Adaptive QuestionnaireResponse Profile](StructureDefinition-sdc-questionnaireresponse-adapt.html) of the QuestionnaireResponse resource with a *contained* Questionnaire. When invoking the operation for the first time, neither the QuestionnaireResponse nor the contained Questionnaire will have any items, as no questions are yet known. In subsequent calls, the QuestionnaireResponse will include answers to all required questions asked so far and the contained QuestionnaireResponse will remain the same as provided back from the operation in the preceding response." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Resource" ]
], [
fhir:index 1;
fhir:OperationDefinition.parameter.name [ fhir:value "return" ];
fhir:OperationDefinition.parameter.use [ fhir:value "out" ];
fhir:OperationDefinition.parameter.min [ fhir:value "1"^^xsd:integer ];
fhir:OperationDefinition.parameter.max [ fhir:value "1" ];
fhir:OperationDefinition.parameter.documentation [ fhir:value "The [Adaptive QuestionnaireResponse Profile](StructureDefinition-sdc-questionnaireresponse-adapt.html) of the QuestionnaireResponse resource with a *contained* Questionnaire. The Server updates the QuestionnaireResponse's contained Questionnaire by appending with the next question or questions ittems and any score or instruction items and returns the QuestionnaireResponse (with all answers completed thus far plus any calculated scores) as this parameter. When the questionnaire is complete, the Server updates the status of the QuestionnaireResponse resource parameter to `complete`." ];
fhir:OperationDefinition.parameter.type [ fhir:value "Resource" ]
].
# - ontology header ------------------------------------------------------------
a owl:Ontology;
owl:imports fhir:fhir.ttl.