Publish-box (todo)
Example Questionnaire/child-rel-demo (Turtle)
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 "generated" ] ;
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 "child-rel-demo" Version "1" Updated "2023-03-03T03:05:07.9531803Z" </p></div><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><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: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: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.