Connectathon 11 Snapshot

This page is part of the FHIR Specification (v1.2.0: STU 3 Draft). 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

Questionnaire-example.json

Raw JSON (canonical form)

General questionnaire example

{
  "resourceType": "Questionnaire",
  "id": "3141",
  "text": {
    "status": "generated",
    "div": "<div>\n      <pre>\n            Comorbidity? YES\n              Cardial Comorbidity? YES\n                Angina? YES\n                MI? NO\n              Vascular Comorbidity?\n                (no answers)\n              ...\n            Histopathology\n              Abdominal\n                pT category: 1a\n              ...\n          </pre>\n    </div>"
  },
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "yesno",
      "name": "Example YesNo",
      "_name": {
        "fhir_comments": [
          "    In practice you could (should?) use boolean for this sort of circumstance.  However, the reality is\n        that many systems treat booleans as coded data    "
        ]
      },
      "status": "active",
      "description": "Captures simple yes-no",
      "codeSystem": {
        "system": "http://example.org/system/code/yesno",
        "caseSensitive": true,
        "concept": [
          {
            "code": "1",
            "display": "Yes"
          },
          {
            "code": "2",
            "display": "No"
          }
        ]
      }
    }
  ],
  "status": "draft",
  "date": "2012-01",
  "title": "Cancer Quality Forum Questionnaire 2012",
  "subjectType": [
    "Patient"
  ],
  "item": [
    {
      "linkId": "1",
      "_linkId": {
        "fhir_comments": [
          "    COMORBIDITY    ",
          "    First main section of the form, questions about comorbidity    "
        ]
      },
      "concept": [
        {
          "system": "http://example.org/system/code/sections",
          "code": "COMORBIDITY"
        }
      ],
      "type": "group",
      "item": [
        {
          "fhir_comments": [
            "    section contains one question: whether there is comorbidity    "
          ],
          "linkId": "1.1",
          "concept": [
            {
              "system": "http://example.org/system/code/questions",
              "code": "COMORB"
            }
          ],
          "type": "choice",
          "options": {
            "reference": "#yesno"
          },
          "item": [
            {
              "linkId": "1.1.1",
              "_linkId": {
                "fhir_comments": [
                  "    COMORBIDITY/CARDIAL    ",
                  "    Subsection about specific comorbidity: cardial    "
                ]
              },
              "concept": [
                {
                  "system": "http://example.org/system/code/sections",
                  "code": "CARDIAL"
                }
              ],
              "type": "group",
              "item": [
                {
                  "linkId": "1.1.1.1",
                  "concept": [
                    {
                      "system": "http://example.org/system/code/questions",
                      "code": "COMORBCAR"
                    }
                  ],
                  "type": "choice",
                  "options": {
                    "reference": "#yesno"
                  }
                },
                {
                  "linkId": "1.1.1.2",
                  "_linkId": {
                    "fhir_comments": [
                      "    This answer carries both the questionnaire-specific name and an equivalent SNOMED CT code    "
                    ]
                  },
                  "concept": [
                    {
                      "system": "http://example.org/system/code/questions",
                      "code": "COMCAR00",
                      "display": "Angina Pectoris"
                    },
                    {
                      "system": "http://snomed.info/sct",
                      "code": "194828000",
                      "display": "Angina (disorder)"
                    }
                  ],
                  "type": "choice",
                  "options": {
                    "reference": "#yesno"
                  }
                },
                {
                  "linkId": "1.1.1.3",
                  "concept": [
                    {
                      "system": "http://snomed.info/sct",
                      "code": "22298006",
                      "display": "Myocardial infarction (disorder)"
                    }
                  ],
                  "type": "choice",
                  "options": {
                    "reference": "#yesno"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "fhir_comments": [
        "    Todo: What's supposed to go here?    "
      ],
      "linkId": "2",
      "_linkId": {
        "fhir_comments": [
          "    HISTOPATHOLOGY    "
        ]
      },
      "concept": [
        {
          "system": "http://example.org/system/code/sections",
          "code": "HISTOPATHOLOGY"
        }
      ],
      "type": "group",
      "item": [
        {
          "linkId": "2.1",
          "concept": [
            {
              "system": "http://example.org/system/code/sections",
              "code": "ABDOMINAL"
            }
          ],
          "type": "group",
          "item": [
            {
              "linkId": "2.1.2",
              "concept": [
                {
                  "system": "http://example.org/system/code/questions",
                  "code": "STADPT",
                  "display": "pT category"
                }
              ],
              "type": "choice"
            }
          ]
        }
      ]
    }
  ]
}

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.