DSTU2

This page is part of the FHIR Specification (v0.0.82: (v1.0.2: DSTU 1). 2). 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>"

    "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>"

  },
  "contained": [
    {
      "resourceType": "Patient",
      "id": "patsub",
      "identifier": [
        {
          "system": "http://cancer.questionnaire.org/systems/id/patientnr",
          "value": "A34442332"
        },
        {
          "label": "Dutch BSN",
          "system": "urn:oid:2.16.840.1.113883.2.4.6.3",
          "value": "188912345"
        }
      ],
      "gender": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/v3/AdministrativeGender",
            "code": "M"
          }

      "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    "

        ]
      },
      "birthDate": "1972-11-30"
    },
    {
      "resourceType": "Practitioner",
      "id": "questauth",
      "identifier": [
        {
          "label": "AUMC, Den Helder",
          "system": "http://cancer.questionnaire.org/systems/id/org",
          "value": "AUMC"
        }
      ]
    },
    {
      "resourceType": "Observation",
      "id": "obs.pt-category",
      "name": {
        "coding": [

      "status": "active",
      "description": "Captures simple yes-no",
      "codeSystem": {
        "system": "http://example.org/system/code/yesno",
        "caseSensitive": true,
        "concept": [

          {
            "system": "http://snomed.info/sct",
            "code": "53786006",
            "display": "pT1 category"
          }
        ]
      },
      "valueCodeableConcept": {
        "coding": [

            "code": "1",
            "display": "Yes"
          },

          {
            "system": "http://snomed.info/sct",
            "code": "443357004",
            "display": "pT1a category"

            "code": "2",
            "display": "No"

          }
        ]
      },
      "status": "final",
      "reliability": "unknown"

      }

    }
  ],
  "status": "completed",
  "authored": "2013-02-19T14:15:00",
  "subject": {
    "reference": "#patsub"
  },
  "author": {
    "reference": "#questauth"
  },
  "name": {
    "text": "Cancer Quality Forum Questionnaire 2012"
  },

  "status": "draft",
  "date": "2012-01",
  "subjectType": [
    "Patient"
  ],

  "group": {
    "linkId": "1",
    "title": "Cancer Quality Forum Questionnaire 2012",
    "required": true,

    "group": [
      {
        "name": {
          "coding": [
            {
              "system": "http://cancer.questionnaire.org/system/code/sections",
              "code": "COMORBIDITY"
            }

        "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": [
          {
            "name": {
              "coding": [
                {
                  "system": "http://cancer.questionnaire.org/system/code/questions",
                  "code": "COMORB"
                }
              ]
            },
            "choice": [

            "fhir_comments": [
              "    section contains one question: whether there is comorbidity    "
            ],
            "linkId": "1.1.1",
            "concept": [

              {
                "system": "http://cancer.questionnaire.org/system/code/yesno",
                "code": "1",
                "display": "Yes"

                "system": "http://example.org/system/code/questions",
                "code": "COMORB"

              }
            ],
            "type": "choice",
            "options": {
              "reference": "#yesno"
            },

            "group": [
              {
                "name": {
                  "coding": [
                    {
                      "system": "http://cancer.questionnaire.org/system/code/sections",
                      "code": "CARDIAL"
                    }

                "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": [
                  {
                    "name": {
                      "coding": [
                        {
                          "system": "http://cancer.questionnaire.org/system/code/questions",
                          "code": "COMORBCAR"
                        }
                      ]
                    },
                    "choice": [

                    "linkId": "1.1.1.1.1",
                    "concept": [

                      {
                        "system": "http://cancer.questionnaire.org/system/code/yesno",
                        "code": "1"

                        "system": "http://example.org/system/code/questions",
                        "code": "COMORBCAR"

                      }
                    ]

                    ],
                    "type": "choice",
                    "options": {
                      "reference": "#yesno"
                    }

                  },
                  {
                    "name": {
                      "coding": [
                        {
                          "system": "http://cancer.questionnaire.org/system/code/questions",
                          "code": "COMCAR00",
                          "display": "Angina Pectoris"
                        },
                        {
                          "system": "http://snomed.info/sct",
                          "code": "194828000",
                          "display": "Angina (disorder)"
                        }

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

                      ]
                    },
                    "choice": [

                    "concept": [

                      {
                        "system": "http://cancer.questionnaire.org/system/code/yesno",
                        "code": "1"

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

                  },
                  {
                    "name": {
                      "coding": [
                        {
                          "system": "http://snomed.info/sct",
                          "code": "22298006",
                          "display": "Myocardial infarction (disorder)"
                        }
                      ]
                    },
                    "choice": [

                    "linkId": "1.1.1.1.3",
                    "concept": [

                      {
                        "system": "http://cancer.questionnaire.org/system/code/yesno",
                        "code": "0"

                        "system": "http://snomed.info/sct",
                        "code": "22298006",
                        "display": "Myocardial infarction (disorder)"

                      }
                    ]

                    ],
                    "type": "choice",
                    "options": {
                      "reference": "#yesno"
                    }

                  }
                ]
              },
              {
                "name": {
                  "coding": [
                    {
                      "system": "http://cancer.questionnaire.org/system/code/sections",
                      "code": "VASCULAR"
                    }

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

                  ]
                }

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

              }
            ]
          }
        ]
      },
      {
        "name": {
          "coding": [
            {
              "system": "http://cancer.questionnaire.org/system/code/sections",
              "code": "HISTOPATHOLOGY"
            }

        "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": [
          {
            "name": {
              "coding": [
                {
                  "system": "http://cancer.questionnaire.org/system/code/sections",
                  "code": "ABDOMINAL"
                }
              ]
            },

            "linkId": "1.2.1",
            "concept": [
              {
                "system": "http://example.org/system/code/sections",
                "code": "ABDOMINAL"
              }
            ],

            "question": [
              {
                "name": {
                  "coding": [
                    {
                      "system": "http://cancer.questionnaire.org/system/code/questions",
                      "code": "STADPT",
                      "display": "pT category"
                    }
                  ]
                },
                "dataResource": {
                  "reference": "#obs.pt-category"
                }

                "linkId": "1.2.1.2",
                "concept": [
                  {
                    "system": "http://example.org/system/code/questions",
                    "code": "STADPT",
                    "display": "pT category"
                  }
                ]

              }
            ]
          }
        ]
      }
    ]
  }
}

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.