STU 3 Ballot

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 . Page versions: R5 R4B R4 R3

Questionnaire-example.ttl

Raw Turtle, JSON-LD

General questionnaire example

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/Questionnaire/3141> a fhir:Questionnaire;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "3141"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.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>"
  ];
  fhir:Questionnaire.url [ fhir:value "http://hl7.org/fhir/Questionnaire/3141"];
  fhir:Questionnaire.status [ fhir:value "draft"];
  fhir:Questionnaire.date [ fhir:value "2012-01"^^xsd:gYearMonth];
  fhir:Questionnaire.title [ fhir:value "Cancer Quality Forum Questionnaire 2012"];
  fhir:Questionnaire.subjectType [
     fhir:value "Patient";
     fhir:index 0
  ];
  fhir:Questionnaire.item [
     fhir:index 0;
     fhir:Questionnaire.item.linkId [ fhir:value "1" ];
     fhir:Questionnaire.item.concept [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ];
       fhir:Coding.code [ fhir:value "COMORBIDITY" ]
     ];
     fhir:Questionnaire.item.type [ fhir:value "group" ];
     fhir:Questionnaire.item.item [
       fhir:index 0;
       fhir:Questionnaire.item.linkId [ fhir:value "1.1" ];
       fhir:Questionnaire.item.concept [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ];
         fhir:Coding.code [ fhir:value "COMORB" ]
       ];
       fhir:Questionnaire.item.type [ fhir:value "choice" ];
       fhir:Questionnaire.item.options [
         fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>;
         fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ]
       ];
       fhir:Questionnaire.item.item [
         fhir:index 0;
         fhir:Questionnaire.item.linkId [ fhir:value "1.1.1" ];
         fhir:Questionnaire.item.concept [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ];
           fhir:Coding.code [ fhir:value "CARDIAL" ]
         ];
         fhir:Questionnaire.item.type [ fhir:value "group" ];
         fhir:Questionnaire.item.item [
           fhir:index 0;
           fhir:Questionnaire.item.linkId [ fhir:value "1.1.1.1" ];
           fhir:Questionnaire.item.concept [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ];
             fhir:Coding.code [ fhir:value "COMORBCAR" ]
           ];
           fhir:Questionnaire.item.type [ fhir:value "choice" ];
           fhir:Questionnaire.item.options [
             fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>;
             fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ]
           ]
         ], [
           fhir:index 1;
           fhir:Questionnaire.item.linkId [ fhir:value "1.1.1.2" ];
           fhir:Questionnaire.item.concept [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ];
             fhir:Coding.code [ fhir:value "COMCAR00" ];
             fhir:Coding.display [ fhir:value "Angina Pectoris" ]
           ], [
             fhir:index 1;
             fhir:concept sct:194828000;
             fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
             fhir:Coding.code [ fhir:value "194828000" ];
             fhir:Coding.display [ fhir:value "Angina (disorder)" ]
           ];
           fhir:Questionnaire.item.type [ fhir:value "choice" ];
           fhir:Questionnaire.item.options [
             fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>;
             fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ]
           ]
         ], [
           fhir:index 2;
           fhir:Questionnaire.item.linkId [ fhir:value "1.1.1.3" ];
           fhir:Questionnaire.item.concept [
             fhir:index 0;
             fhir:concept sct:22298006;
             fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
             fhir:Coding.code [ fhir:value "22298006" ];
             fhir:Coding.display [ fhir:value "Myocardial infarction (disorder)" ]
           ];
           fhir:Questionnaire.item.type [ fhir:value "choice" ];
           fhir:Questionnaire.item.options [
             fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>;
             fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ]
           ]
         ]
       ]
     ]
  ], [
     fhir:index 1;
     fhir:Questionnaire.item.linkId [ fhir:value "2" ];
     fhir:Questionnaire.item.concept [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ];
       fhir:Coding.code [ fhir:value "HISTOPATHOLOGY" ]
     ];
     fhir:Questionnaire.item.type [ fhir:value "group" ];
     fhir:Questionnaire.item.item [
       fhir:index 0;
       fhir:Questionnaire.item.linkId [ fhir:value "2.1" ];
       fhir:Questionnaire.item.concept [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ];
         fhir:Coding.code [ fhir:value "ABDOMINAL" ]
       ];
       fhir:Questionnaire.item.type [ fhir:value "group" ];
       fhir:Questionnaire.item.item [
         fhir:index 0;
         fhir:Questionnaire.item.linkId [ fhir:value "2.1.2" ];
         fhir:Questionnaire.item.concept [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ];
           fhir:Coding.code [ fhir:value "STADPT" ];
           fhir:Coding.display [ fhir:value "pT category" ]
         ];
         fhir:Questionnaire.item.type [ fhir:value "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.