R6 Ballot (1st Draft)

This page is part of the FHIR Specification v6.0.0-ballot1: Release 6 Ballot (1st Draft) (see Ballot Notes). The current version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example Questionnaire/child-rel-demo (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

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

Questionnaire with a variety of child item types (as used in the QuestionnaireResponse page links section)

@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

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

[a fhir:Questionnaire ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "child-rel-demo"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "1" ] ;
     fhir:lastUpdated [ fhir:v "2023-03-03T03:05:07.9531803+00:00"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Questionnaire</b><a name=\"child-rel-demo\"> </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;child-rel-demo&quot; Version &quot;1&quot; Updated &quot;2023-03-03T03:05:07.9531803Z&quot; </p></div><p><b>StructureDefinition Work Group</b>: fhir</p><p><b>url</b>: <code>http://example.org/Questionnaire/child-rel-demo</code></p><p><b>title</b>: Demo form on R5 spec QR page</p><p><b>status</b>: draft</p><p><b>publisher</b>: HL7 International / FHIR Infrastructure</p><p><b>contact</b>: </p><blockquote><p><b>item</b></p><p><b>linkId</b>: grp1</p><p><b>text</b>: grp1</p><p><b>type</b>: group</p><p><b>required</b>: true</p><p><b>repeats</b>: true</p><blockquote><p><b>item</b></p><p><b>linkId</b>: grp2</p><p><b>text</b>: grp2</p><p><b>type</b>: group</p><blockquote><p><b>item</b></p></blockquote><blockquote><p><b>item</b></p></blockquote></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: Q3</p><p><b>text</b>: Q3</p><p><b>type</b>: string</p><p><b>required</b>: true</p><p><b>repeats</b>: true</p><blockquote><p><b>item</b></p></blockquote><blockquote><p><b>item</b></p></blockquote></blockquote></blockquote></div>"
  ] ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "fhir" ]
  ] ) ; # 
  fhir:url [ fhir:v "http://example.org/Questionnaire/child-rel-demo"^^xsd:anyURI] ; # 
  fhir:title [ fhir:v "Demo form on R5 spec QR page"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ]
     ] )
  ] ) ; # 
  fhir:item ( [
     fhir:linkId [ fhir:v "grp1" ] ;
     fhir:text [ fhir:v "grp1" ] ;
     fhir:type [ fhir:v "group" ] ;
     fhir:required [ fhir:v "true"^^xsd:boolean ] ;
     fhir:repeats [ fhir:v "true"^^xsd:boolean ] ;
     fhir:item ( [
       fhir:linkId [ fhir:v "grp2" ] ;
       fhir:text [ fhir:v "grp2" ] ;
       fhir:type [ fhir:v "group" ] ;
       fhir:item ( [
         fhir:linkId [ fhir:v "Q1" ] ;
         fhir:text [ fhir:v "Q1" ] ;
         fhir:type [ fhir:v "string" ] ;
         fhir:repeats [ fhir:v "true"^^xsd:boolean ]
       ] [
         fhir:linkId [ fhir:v "Q2" ] ;
         fhir:text [ fhir:v "Q2" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] [
       fhir:linkId [ fhir:v "Q3" ] ;
       fhir:text [ fhir:v "Q3" ] ;
       fhir:type [ fhir:v "string" ] ;
       fhir:required [ fhir:v "true"^^xsd:boolean ] ;
       fhir:repeats [ fhir:v "true"^^xsd:boolean ] ;
       fhir:item ( [
         fhir:linkId [ fhir:v "Q4" ] ;
         fhir:text [ fhir:v "Q4" ] ;
         fhir:type [ fhir:v "string" ]
       ] [
         fhir:linkId [ fhir:v "grp3" ] ;
         fhir:text [ fhir:v "grp3" ] ;
         fhir:type [ fhir:v "string" ] ;
         fhir:item ( [
           fhir:linkId [ fhir:v "Q5" ] ;
           fhir:text [ fhir:v "Q5" ] ;
           fhir:type [ fhir:v "string" ]
         ] )
       ] )
     ] )
  ] )] . # 

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


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.