FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagefhir.argonaut.questionnaire
Resource TypeQuestionnaireResponse
IdQuestionnaireResponse-adaptive-questionnaireresponse-example-sampler.json
FHIR VersionR3

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Argonaut Questionnaire Sampler Adaptive View

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.




Question: (linkID=score) Cumulative Score is ... (this is hidden text/should not be displayed to the user)
Response: 0

Question: (linkID=std_dev) Standard Deviation is ... (this is hidden text/should not be displayed to the user)
Response: 0.0

Question: (linkID=g2.q1) 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.
Response: False

Question: (linkID=g6.q1) If a laden swallow left Camelot on 7/5/2018 and noon when would it reach Castle Anthrax?
Response: 2019-02-12T01:01

Question: (linkID=g4.q1) What is the average air speed velocity of a laden swallow in m/sec?
Response: 11

Source1

{
  "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
        }
      ]
    }
  ]
}