DSTU2 STU 3 Ballot
This page is part of the FHIR Specification (v1.0.2: DSTU 2). The current version which supercedes this version is

This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . For a full list of available versions, see the Directory of published versions . Page versions: . Page versions: R5 R4B R4 R3 R2

Questionnaire-example.json Raw JSON (

Raw JSON ( canonical form canonical form ) General questionnaire example )

General questionnaire example

{
  "resourceType": "Questionnaire",
  "id": "3141",
  "text": {
    "status": "generated",
    "div": "<div>\n      \n      \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    \n    \n    </div>"

    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\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"
          }
        ]
      }
    }
  ],

  "url": "http://hl7.org/fhir/Questionnaire/3141",

  "status": "draft",
  "date": "2012-01",
  "title": "Cancer Quality Forum Questionnaire 2012",

  "subjectType": [
    "Patient"
  ],
  "group": {
    "linkId": "1",
    "title": "Cancer Quality Forum Questionnaire 2012",
    "required": true,
    "group": [
      {
        "linkId": "1.1",
        "_linkId": {
          "fhir_comments": [
            "    COMORBIDITY    ",
            "    First main section of the form, questions about comorbidity    "
          ]
        },
        "concept": [
          {
            "system": "http://example.org/system/code/sections",
            "code": "COMORBIDITY"
          }
        ],
        "question": [
          {
            "fhir_comments": [
              "    section contains one question: whether there is comorbidity    "
            ],
            "linkId": "1.1.1",
            "concept": [
              {
                "system": "http://example.org/system/code/questions",
                "code": "COMORB"
              }
            ],
            "type": "choice",
            "options": {
              "reference": "#yesno"
            },
            "group": [
              {
                "linkId": "1.1.1.1",
                "_linkId": {
                  "fhir_comments": [
                    "    COMORBIDITY/CARDIAL    ",
                    "    Subsection about specific comorbidity: cardial    "
                  ]
                },
                "concept": [
                  {
                    "system": "http://example.org/system/code/sections",
                    "code": "CARDIAL"
                  }
                ],
                "question": [
                  {
                    "linkId": "1.1.1.1.1",
                    "concept": [
                      {
                        "system": "http://example.org/system/code/questions",
                        "code": "COMORBCAR"
                      }
                    ],
                    "type": "choice",
                    "options": {
                      "reference": "#yesno"

  "item": [
    {
      "linkId": "1",
      "concept": [
        {
          "system": "http://example.org/system/code/sections",
          "code": "COMORBIDITY"
        }
      ],
      "type": "group",
      "item": [
        {
          "linkId": "1.1",
          "concept": [
            {
              "system": "http://example.org/system/code/questions",
              "code": "COMORB"
            }
          ],
          "type": "choice",
          "options": {
            "reference": "http://hl7.org/fhir/ValueSet/yesnodontknow"
          },
          "item": [
            {
              "linkId": "1.1.1",
              "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"

                    }
                  },
                  {
                    "linkId": "1.1.1.1.2",
                    "_linkId": {
                      "fhir_comments": [
                        "    This answer carries both the questionnaire-specific name and an equivalent SNOMED CT code    "
                      ]

                  ],
                  "type": "choice",
                  "options": {
                    "reference": "http://hl7.org/fhir/ValueSet/yesnodontknow"
                  }
                },
                {
                  "linkId": "1.1.1.2",
                  "concept": [
                    {
                      "system": "http://example.org/system/code/questions",
                      "code": "COMCAR00",
                      "display": "Angina Pectoris"

                    },
                    "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.1.3",
                    "concept": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "22298006",
                        "display": "Myocardial infarction (disorder)"
                      }
                    ],
                    "type": "choice",
                    "options": {
                      "reference": "#yesno"

                    {
                      "system": "http://snomed.info/sct",
                      "code": "194828000",
                      "display": "Angina (disorder)"

                    }
                  ],
                  "type": "choice",
                  "options": {
                    "reference": "http://hl7.org/fhir/ValueSet/yesnodontknow"

                  }
                ]
              },
              {
                "linkId": "1.1.1.2",
                "_linkId": {
                  "fhir_comments": [
                    "    COMORBIDITY/VASCULAR    "
                  ]

                },
                "concept": [
                  {
                    "system": "http://example.org/system/code/sections",
                    "code": "VASCULAR"

                {
                  "linkId": "1.1.1.3",
                  "concept": [
                    {
                      "system": "http://snomed.info/sct",
                      "code": "22298006",
                      "display": "Myocardial infarction (disorder)"
                    }
                  ],
                  "type": "choice",
                  "options": {
                    "reference": "http://hl7.org/fhir/ValueSet/yesnodontknow"

                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "fhir_comments": [
          "    Todo: What's supposed to go here?    "
        ],
        "linkId": "1.2",
        "_linkId": {
          "fhir_comments": [
            "    HISTOPATHOLOGY    "

                }
              ]
            }

          ]
        },
        "concept": [
          {
            "system": "http://example.org/system/code/sections",
            "code": "HISTOPATHOLOGY"
          }
        ],
        "group": [
          {
            "linkId": "1.2.1",
            "concept": [
              {
                "system": "http://example.org/system/code/sections",
                "code": "ABDOMINAL"
              }
            ],
            "question": [
              {
                "linkId": "1.2.1.2",
                "concept": [
                  {
                    "system": "http://example.org/system/code/questions",
                    "code": "STADPT",
                    "display": "pT category"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }

        }
      ]
    },
    {
      "linkId": "2",
      "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.
©
HL7.org
2011+.
FHIR
DSTU2
(v1.0.2-7202)
generated
on
Sat,
Oct
24,
2015
07:44+1100.
Links:

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.