FHIR IG analytics| Package | fhir.argonaut.questionnaire |
| Resource Type | QuestionnaireResponse |
| Id | QuestionnaireResponse-adaptive-questionnaireresponse-example-sampler.json |
| FHIR Version | R3 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
NOTE: These examples are for educational and testing purposes, see the form copyright statement and do not redistribute without expressed permission from the form author.
This simulates is a simple adaptive questionnaire implementation.
After answering and submitting the first question another question is randomly
returned from the selected questionnaire. This is repeated two more times and
then the adaptive questionnaire will finish by changing the status to completed
and returning a score. Note that although these questionnaires are designed as forms and
are not really appropriate for the adaptive questionnaire use case, they are used here to
demonstrate a proof of concept implementation.
Questionnaire URL: http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler
Date Completed: 2018-07-26
Copyright: You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
{
"resourceType": "QuestionnaireResponse",
"id": "adaptive-questionnaireresponse-example-sampler",
"meta": {
"profile": [
"http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/argo-adap-questionnaireresponse"
]
},
"text": {
"status": "generated",
"div": "<!-- snip (see above) -->"
},
"contained": [
{
"resourceType": "Questionnaire",
"id": "contained-adaptive-questionnaire-example-sampler",
"meta": {
"profile": [
"http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/argo-questionnaire"
]
},
"extension": [
{
"url": "http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/extension-timeLimit",
"valueDuration": {
"value": 5,
"unit": "minute",
"system": "http://unitsofmeasure.org",
"code": "min"
}
}
],
"url": "http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler",
"title": "Contained Adaptive Argonaut Questionnaire Sampler",
"status": "active",
"date": "2019-02-13T00:40:08.804800Z",
"copyright": "You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.",
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
"valueBoolean": true
},
{
"url": "http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/extension-itemOrder",
"valueInteger": 1
}
],
"linkId": "score",
"text": "Cumulative Score is ...",
"type": "integer",
"repeats": false,
"readOnly": true
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
"valueBoolean": true
},
{
"url": "http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/extension-itemOrder",
"valueInteger": 2
}
],
"linkId": "std_dev",
"text": "Standard Deviation is ...",
"type": "decimal",
"repeats": false,
"readOnly": true
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-ordinalValue",
"valueDecimal": 17
},
{
"url": "http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/extension-itemOrder",
"valueInteger": 3
}
],
"linkId": "g2.q1",
"definition": "http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler-g2.q1",
"text": "Check the box if the following statement is true. The average air speed velocity of a laden European swallow is greater than a laden African swallow.",
"type": "boolean",
"required": true,
"repeats": false
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-ordinalValue",
"valueDecimal": 3
},
{
"url": "http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/extension-itemOrder",
"valueInteger": 4
}
],
"linkId": "g6.q1",
"definition": "http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler-g6.q1",
"text": "If a laden swallow left Camelot on 7/5/2018 and noon when would it reach Castle Anthrax?",
"type": "dateTime",
"required": true,
"repeats": false
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-ordinalValue",
"valueDecimal": 3
},
{
"url": "http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/extension-itemOrder",
"valueInteger": 5
}
],
"linkId": "g4.q1",
"definition": "http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler-g4.q1",
"text": "What is the average air speed velocity of a laden swallow in m/sec?",
"type": "integer",
"required": true,
"repeats": false
}
]
}
],
"extension": [
{
"url": "http://fhir.org/guides/argonaut/questionnaire/StructureDefinition/extension-responsePeriod",
"valuePeriod": {
"start": "2019-02-13T00:40:07.366415Z",
"end": "2019-02-13T00:40:50.850571Z"
}
}
],
"identifier": {
"value": "adaptive-questionnaireresponse-example-sampler"
},
"questionnaire": {
"reference": "#contained-adaptive-questionnaire-example-sampler"
},
"status": "completed",
"subject": {
"reference": "Patient/subject1"
},
"context": {
"reference": "Encounter/encounter1"
},
"authored": "2019-02-13T00:40:07.366415Z",
"author": {
"reference": "Practitioner/prov-admin1"
},
"source": {
"reference": "Patient/subject1"
},
"item": [
{
"linkId": "score",
"text": "Cumulative Score is ...",
"answer": [
{
"valueInteger": 0
}
]
},
{
"linkId": "std_dev",
"text": "Standard Deviation is ...",
"answer": [
{
"valueDecimal": 0
}
]
},
{
"linkId": "g2.q1",
"definition": "http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler-g2.q1",
"text": "Check the box if the following statement is true. The average air speed velocity of a laden European swallow is greater than a laden African swallow.",
"answer": [
{
"valueBoolean": false
}
]
},
{
"linkId": "g6.q1",
"definition": "http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler-g6.q1",
"text": "If a laden swallow left Camelot on 7/5/2018 and noon when would it reach Castle Anthrax?",
"answer": [
{
"valueDateTime": "2019-02-12T01:01:00Z"
}
]
},
{
"linkId": "g4.q1",
"definition": "http://fhir.org/guides/argonaut/questionnaire/Questionnaire/questionnaire-example-sampler-g4.q1",
"text": "What is the average air speed velocity of a laden swallow in m/sec?",
"answer": [
{
"valueInteger": 11
}
]
}
]
}