Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). 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

Example Questionnaire/gcs (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

Glasgow Coma Score example form

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

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

[a fhir:Questionnaire;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "gcs"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Questionnaire</b><a name=\"gcs\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Questionnaire &quot;gcs&quot; </p></div><p><b>url</b>: <code>http://hl7.org/fhir/Questionnaire/gcs</code></p><p><b>identifier</b>: id: urn:oid:2.16.840.1.113883.4.642.20.5</p><p><b>title</b>: Glasgow Coma Score</p><p><b>status</b>: draft</p><p><b>subjectType</b>: Patient</p><p><b>date</b>: 2015-08-03</p><p><b>publisher</b>: FHIR Project team</p><p><b>code</b>: Glasgow coma score total (Details: LOINC code 9269-2 = 'Glasgow coma score total', stated as 'null')</p><blockquote><p><b>item</b></p><p><b>linkId</b>: 1.1</p><p><b>code</b>: Glasgow coma score verbal (Details: LOINC code 9270-0 = 'Glasgow coma score verbal', stated as 'null')</p><p><b>type</b>: coding</p><p><b>answerValueSet</b>: <code>#verbal</code></p></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: 1.2</p><p><b>code</b>: Glasgow coma score motor (Details: LOINC code 9268-4 = 'Glasgow coma score motor', stated as 'null')</p><p><b>type</b>: coding</p><p><b>answerValueSet</b>: <code>#motor</code></p></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: 1.3</p><p><b>code</b>: Glasgow coma score eye opening (Details: LOINC code 9267-6 = 'Glasgow coma score eye opening', stated as 'null')</p><p><b>type</b>: coding</p><p><b>answerValueSet</b>: <code>#eye</code></p></blockquote></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:ValueSet;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "motor" ];
     fhir:ValueSet.identifier [
       fhir:index 0;
       fhir:Identifier.system [ fhir:value "http://loinc.org" ];
       fhir:Identifier.value [ fhir:value "http://loinc.org/ValueSet/LL357-5" ]
     ];
     fhir:ValueSet.name [ fhir:value "GCS Motor Value Set" ];
     fhir:ValueSet.status [ fhir:value "active" ];
     fhir:ValueSet.description [ fhir:value "LOINC ANSWER LIST    (LL357-5)" ];
     fhir:ValueSet.compose [
       fhir:ValueSet.compose.include [
         fhir:index 0;
         fhir:ValueSet.compose.include.system [ fhir:value "http://loinc.org" ];
         fhir:ValueSet.compose.include.concept [
           fhir:index 0;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6562-8" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "No motor response" ]
         ], [
           fhir:index 1;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6563-6" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Extension to pain" ]
         ], [
           fhir:index 2;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6564-4" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Flexion to pain" ]
         ], [
           fhir:index 3;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6565-1" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Withdrawl from pain" ]
         ], [
           fhir:index 4;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6566-9" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Localizing pain" ]
         ], [
           fhir:index 5;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6567-7" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Obeys commands" ]
         ]
       ]
     ]
  ], [
     a fhir:ValueSet;
     fhir:index 1;
     fhir:Resource.id [ fhir:value "verbal" ];
     fhir:ValueSet.identifier [
       fhir:index 0;
       fhir:Identifier.system [ fhir:value "http://loinc.org" ];
       fhir:Identifier.value [ fhir:value "http://loinc.org/ValueSet/LL356-7" ]
     ];
     fhir:ValueSet.name [ fhir:value "GCS Verbal Value Set" ];
     fhir:ValueSet.status [ fhir:value "active" ];
     fhir:ValueSet.description [ fhir:value "LOINC ANSWER LIST    (LL356-7)" ];
     fhir:ValueSet.compose [
       fhir:ValueSet.compose.include [
         fhir:index 0;
         fhir:ValueSet.compose.include.system [ fhir:value "http://loinc.org" ];
         fhir:ValueSet.compose.include.concept [
           fhir:index 0;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6557-8" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "No verbal response (>2yrs); no vocal response (<=2yrs)" ]
         ], [
           fhir:index 1;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6558-6" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Incomprehensible sounds" ]
         ], [
           fhir:index 2;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6559-4" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Inappropriate words" ]
         ], [
           fhir:index 3;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6560-2" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Confused" ]
         ], [
           fhir:index 4;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6561-0" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Oriented" ]
         ]
       ]
     ]
  ], [
     a fhir:ValueSet;
     fhir:index 2;
     fhir:Resource.id [ fhir:value "eye" ];
     fhir:ValueSet.identifier [
       fhir:index 0;
       fhir:Identifier.system [ fhir:value "http://loinc.org" ];
       fhir:Identifier.value [ fhir:value "http://loinc.org/ValueSet/LL355-9" ]
     ];
     fhir:ValueSet.name [ fhir:value "GCS Eye Value Set" ];
     fhir:ValueSet.status [ fhir:value "active" ];
     fhir:ValueSet.description [ fhir:value "LOINC ANSWER LIST    (LL355-9)" ];
     fhir:ValueSet.compose [
       fhir:ValueSet.compose.include [
         fhir:index 0;
         fhir:ValueSet.compose.include.system [ fhir:value "http://loinc.org" ];
         fhir:ValueSet.compose.include.concept [
           fhir:index 0;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6553-7" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "No eye opening" ]
         ], [
           fhir:index 1;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6554-5" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Eye opening to pain" ]
         ], [
           fhir:index 2;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6555-2" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Eye opening to verbal command" ]
         ], [
           fhir:index 3;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "LA6556-0" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Eyes open spontaneously" ]
         ]
       ]
     ]
  ];
  fhir:Questionnaire.url [ fhir:value "http://hl7.org/fhir/Questionnaire/gcs"];
  fhir:Questionnaire.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.20.5" ]
  ];
  fhir:Questionnaire.title [ fhir:value "Glasgow Coma Score"];
  fhir:Questionnaire.status [ fhir:value "draft"];
  fhir:Questionnaire.subjectType [
     fhir:value "Patient";
     fhir:index 0
  ];
  fhir:Questionnaire.date [ fhir:value "2015-08-03"^^xsd:date];
  fhir:Questionnaire.publisher [ fhir:value "FHIR Project team"];
  fhir:Questionnaire.code [
     fhir:index 0;
     a loinc:9269-2;
     fhir:Coding.system [ fhir:value "http://loinc.org" ];
     fhir:Coding.code [ fhir:value "9269-2" ]
  ];
  fhir:Questionnaire.item [
     fhir:index 0;
     fhir:Questionnaire.item.linkId [ fhir:value "1.1" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:9270-0;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "9270-0" ]
     ];
     fhir:Questionnaire.item.type [ fhir:value "coding" ];
     fhir:Questionnaire.item.answerValueSet [ fhir:value "#verbal" ]
  ], [
     fhir:index 1;
     fhir:Questionnaire.item.linkId [ fhir:value "1.2" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:9268-4;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "9268-4" ]
     ];
     fhir:Questionnaire.item.type [ fhir:value "coding" ];
     fhir:Questionnaire.item.answerValueSet [ fhir:value "#motor" ]
  ], [
     fhir:index 2;
     fhir:Questionnaire.item.linkId [ fhir:value "1.3" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:9267-6;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "9267-6" ]
     ];
     fhir:Questionnaire.item.type [ fhir:value "coding" ];
     fhir:Questionnaire.item.answerValueSet [ fhir:value "#eye" ]
  ]] .

# - ontology header ------------------------------------------------------------

[a owl:Ontology;
  owl:imports fhir:fhir.ttl] .

# -------------------------------------------------------------------------------------


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.