2.7.0 - STU 3 (2nd ballot)

This page is part of the Structured Data Capture FHIR IG (v2.7.0: STU 3 Ballot 2) based on FHIR R4. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions

SDC-Advanced Rendering - TTL Representation

(back to narrative)

Raw ttl

@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:Resource.id [ fhir:value "questionnaire-sdc-profile-example-render"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n			<pre>\n				&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;\n					&lt;head&gt;\n						&lt;meta content=&quot;text/html;charset=utf-8&quot; http-equiv=&quot;Content-Type&quot;/&gt;\n						&lt;title&gt;Advanced Rendering Questionnaire Demonstration&lt;/title&gt;\n					&lt;/head&gt;\n					&lt;body&gt;\n						&lt;div id=&quot;questionnaire-title&quot;&gt;\n							&lt;h1&gt;\n								&lt;span style=&quot;color:blue;&quot;&gt;\n									&lt;b&gt;Advanced&lt;/b&gt;\n									&lt;i&gt;Rendering&lt;/i&gt;\n									&lt;u&gt;Questionnaire&lt;/u&gt;\n									&lt;b&gt;\n										&lt;i&gt;Demonstration&lt;/i&gt;\n									&lt;/b&gt;\n								&lt;/span&gt;\n							&lt;/h1&gt;\n						&lt;/div&gt;\n						&lt;div id=&quot;linkitem-1&quot; class=&quot;group&quot;&gt;\n							&lt;h2&gt;&lt;span style=&quot;color:red;&quot;&gt;&lt;u&gt;1&lt;/u&gt;&lt;/span&gt; Demographics&lt;/h2&gt;\n							&lt;div id=&quot;linkitem-1.0&quot; class=&quot;display&quot;&gt;\n								&lt;p&gt;\n									&lt;span style=&quot;color:green;&quot;&gt;&lt;i&gt;Please&lt;/i&gt; complete the questionnaire&lt;/span&gt;\n								&lt;/p&gt;\n								&lt;!-- Instructions | The text provides guidance on how to populate or use a portion of the questionnaire (or the questionnaire as a whole). --&gt;\n								&lt;span id=&quot;linkitem-1.0-displayCategory&quot; style=&quot;display:none;&quot;&gt;Instructions | The text provides guidance on how to populate or use a portion of the questionnaire (or the questionnaire as a whole).&lt;/span&gt;\n							&lt;/div&gt;\n							&lt;div id=&quot;linkitem-1.1&quot; class=&quot;string&quot;&gt;\n								&lt;form action=&quot;http://hl7.org/fhir/&quot;&gt;\n								First Name\n								&lt;input id=&quot;linkitem-1.1-input&quot; type=&quot;text&quot;/&gt;\n							&lt;/form&gt;\n								&lt;!-- optionalDisplay=true --&gt;\n							&lt;/div&gt;\n							&lt;div id=&quot;linkitem-1.2&quot; class=&quot;string&quot; style=&quot;display:none;&quot;&gt;\n								&lt;form action=&quot;http://hl7.org/fhir/&quot;&gt;\n								Hidden Name\n								&lt;input id=&quot;linkitem-1.2-input&quot; type=&quot;text&quot;/&gt;\n							&lt;/form&gt;\n							&lt;/div&gt;\n							&lt;div id=&quot;linkitem-1.3&quot; class=&quot;string&quot;&gt;\n								&lt;form action=&quot;http://hl7.org/fhir/&quot;&gt;\n									&lt;a href=&quot;http://hl7.org/fhir/&quot;&gt;Middle Name&lt;/a&gt;\n									&lt;input id=&quot;linkitem-1.3-input&quot; type=&quot;text&quot;/&gt;\n								&lt;/form&gt;\n							&lt;/div&gt;\n							&lt;div id=&quot;linkitem-1.4&quot; class=&quot;string&quot;&gt;\n								&lt;form action=&quot;http://hl7.org/fhir/&quot;&gt;\n								Last Name\n								&lt;input id=&quot;linkitem-1.4-input&quot; type=&quot;text&quot;/&gt;\n							&lt;/form&gt;\n							&lt;/div&gt;\n							&lt;div id=&quot;linkitem-1.5&quot; class=&quot;string&quot;&gt;\n								&lt;form action=&quot;http://hl7.org/fhir/&quot;&gt;\n								Gender\n								&lt;input id=&quot;linkitem-1.5-f&quot; type=&quot;radio&quot; name=&quot;Gender&quot; value=&quot;F&quot; checked=&quot;checked&quot;/&gt;(a) Female \n								&lt;input id=&quot;linkitem-1.5-m&quot; type=&quot;radio&quot; name=&quot;Gender&quot; value=&quot;M&quot;/&gt;Male \n								&lt;input id=&quot;linkitem-1.5-o&quot; type=&quot;radio&quot; name=&quot;Gender&quot; value=&quot;O&quot;/&gt;Other \n								&lt;input id=&quot;linkitem-1.5-u&quot; type=&quot;radio&quot; name=&quot;Gender&quot; value=&quot;U&quot;/&gt;Unknown \n							&lt;/form&gt;\n							&lt;/div&gt;\n						&lt;/div&gt;\n						&lt;div id=&quot;linkitem-2&quot; class=&quot;group&quot;&gt;\n							&lt;h2&gt;2 Medical History&lt;/h2&gt;\n							&lt;form action=&quot;http://hl7.org/fhir/&quot;&gt;\n								&lt;table border=&quot;1&quot;&gt;\n									&lt;col width=&quot;65%&quot;/&gt;\n									&lt;col width=&quot;35%&quot;/&gt;\n									&lt;tr&gt;\n										&lt;td&gt;\n											Diabetes\n										&lt;/td&gt;\n										&lt;td&gt;\n											Other Information\n										&lt;/td&gt;\n									&lt;/tr&gt;\n									&lt;tr&gt;\n										&lt;td&gt;\n											&lt;input id=&quot;linkitem-2.1-choice1&quot; type=&quot;checkbox&quot; name=&quot;diabetes-type1&quot; value=&quot;diabetes-type1&quot;/&gt;Type 1\n										&lt;/td&gt;\n										&lt;td&gt;\n											&lt;input id=&quot;linkitem-2.2-choice1&quot; type=&quot;checkbox&quot; name=&quot;otherinformation-hypertension&quot; value=&quot;otherinformation-hypertension&quot;/&gt;Hypertension\n										&lt;/td&gt;\n									&lt;/tr&gt;\n									&lt;tr&gt;\n										&lt;td&gt;\n											&lt;input id=&quot;linkitem-2.1-choice2&quot; type=&quot;checkbox&quot; name=&quot;diabetes-type2&quot; value=&quot;diabetes-type2&quot;/&gt;Type 2\n										&lt;/td&gt;\n										&lt;td&gt;\n											&lt;input id=&quot;linkitem-2.2-choice2&quot; type=&quot;checkbox&quot; name=&quot;otherinformation-smoker&quot; value=&quot;otherinformation-smoker&quot;/&gt;Smoker\n										&lt;/td&gt;\n									&lt;/tr&gt;\n								&lt;/table&gt;\n							&lt;/form&gt;\n						&lt;/div&gt;\n						&lt;div id=&quot;linkitem-3&quot; class=&quot;group&quot;&gt;\n							&lt;h2&gt;3 Slider demonstration&lt;/h2&gt;\n							&lt;div id=&quot;linkitem-3.1&quot; class=&quot;slidecontainer&quot;&gt;\n							Adjust the slider&lt;br/&gt;\n							&lt;form action=&quot;http://hl7.org/fhir/&quot;&gt;\n								&lt;input type=&quot;range&quot; min=&quot;0&quot; max=&quot;100&quot; value=&quot;50&quot; step=&quot;10&quot; class=&quot;slider&quot; id=&quot;linkitem-3.1-slider&quot;/&gt;\n							&lt;/form&gt;\n						&lt;/div&gt;\n						&lt;/div&gt;\n					&lt;/body&gt;\n				&lt;/html&gt;\n			</pre>\n		</div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired" ];
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "urn:iso-astm:E1762-95:2013" ];
         fhir:Coding.code [ fhir:value "1.2.840.10065.1.12.1.1" ];
         fhir:Coding.display [ fhir:value "Author's Signature" ]       ];
       fhir:CodeableConcept.text [ fhir:value "the signature of the primary or sole author of a health information document. There can be only one primary author of a health information document." ]     ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/rendering-styleSensitive" ];
     fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
  ];
  fhir:Questionnaire.url [ fhir:value "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-render"];
  fhir:Questionnaire.version [ fhir:value "2.7.0"];
  fhir:Questionnaire.title [
     fhir:value "Advanced Rendering Questionnaire Profile Demonstration";
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/rendering-style" ];
       fhir:Extension.valueString [ fhir:value "color:blue;" ]     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/rendering-xhtml" ];
       fhir:Extension.valueString [ fhir:value "<b>Advanced</b> <i>Rendering</i> <u>Questionnaire</u> <b><i>Demonstration</i></b>" ]     ]
  ];
  fhir:Questionnaire.status [ fhir:value "draft"];
  fhir:Questionnaire.subjectType [
     fhir:value "Patient";
     fhir:index 0
  ];
  fhir:Questionnaire.date [ fhir:value "2018-08-01T00:00:00+10:00"^^xsd:dateTime];
  fhir:Questionnaire.item [
     fhir:index 0;
     fhir:Questionnaire.item.linkId [ fhir:value "1" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ];
       fhir:Coding.code [ fhir:value "DEMOGRAPHICS" ]     ];
     fhir:Questionnaire.item.prefix [
       fhir:value "1";
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/rendering-style" ];
         fhir:Extension.valueString [ fhir:value "color:red;" ]       ], [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/rendering-xhtml" ];
         fhir:Extension.valueString [ fhir:value "<u>1</u>" ]       ]     ];
     fhir:Questionnaire.item.text [ fhir:value "Demographics" ];
     fhir:Questionnaire.item.type [ fhir:value "group" ];
     fhir:Questionnaire.item.item [
       fhir:index 0;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory" ];
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/questionnaire-display-category" ];
             fhir:Coding.code [ fhir:value "instructions" ];
             fhir:Coding.display [ fhir:value "Instructions" ]           ];
           fhir:CodeableConcept.text [ fhir:value "The text provides guidance on how to populate or use a portion of the questionnaire (or the questionnaire as a whole)." ]         ]       ];
       fhir:Questionnaire.item.linkId [ fhir:value "1.0" ];
       fhir:Questionnaire.item.text [
         fhir:value "Please complete the questionnaire";
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/rendering-style" ];
           fhir:Extension.valueString [ fhir:value "color:green;" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/rendering-xhtml" ];
           fhir:Extension.valueString [ fhir:value "<i>Please</i> complete the questionnaire" ]         ]       ];
       fhir:Questionnaire.item.type [ fhir:value "display" ]     ], [
       fhir:index 1;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-optionalDisplay" ];
         fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]       ];
       fhir:Questionnaire.item.linkId [ fhir:value "1.1" ];
       fhir:Questionnaire.item.text [ fhir:value "First Name" ];
       fhir:Questionnaire.item.type [ fhir:value "string" ]     ], [
       fhir:index 2;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden" ];
         fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]       ];
       fhir:Questionnaire.item.linkId [ fhir:value "1.2" ];
       fhir:Questionnaire.item.text [ fhir:value "Hidden Name" ];
       fhir:Questionnaire.item.type [ fhir:value "string" ]     ], [
       fhir:index 3;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-supportLink" ];
         fhir:Extension.valueUri [ fhir:value "http://hl7.org/fhir/" ]       ];
       fhir:Questionnaire.item.linkId [ fhir:value "1.3" ];
       fhir:Questionnaire.item.text [ fhir:value "Middle Name" ];
       fhir:Questionnaire.item.type [ fhir:value "string" ]     ], [
       fhir:index 4;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired" ];
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "urn:iso-astm:E1762-95:2013" ];
             fhir:Coding.code [ fhir:value "1.2.840.10065.1.12.1.8" ];
             fhir:Coding.display [ fhir:value "Signature Witness Signature" ]           ];
           fhir:CodeableConcept.text [ fhir:value "the signature of a witness to any other signature." ]         ]       ], [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-usageMode" ];
         fhir:Extension.valueCode [ fhir:value "capture" ]       ];
       fhir:Questionnaire.item.linkId [ fhir:value "1.4" ];
       fhir:Questionnaire.item.text [ fhir:value "Last Name" ];
       fhir:Questionnaire.item.type [ fhir:value "string" ]     ], [
       fhir:index 5;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation" ];
         fhir:Extension.valueCode [ fhir:value "horizontal" ]       ], [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" ];
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/questionnaire-item-control" ];
             fhir:Coding.code [ fhir:value "radio-button" ];
             fhir:Coding.display [ fhir:value "Radio Button" ]           ];
           fhir:CodeableConcept.text [ fhir:value "A control where choices are listed with a button beside them. The button can be toggled to select or de-select a given choice. Selecting one item deselects all others." ]         ]       ];
       fhir:Questionnaire.item.linkId [ fhir:value "1.5" ];
       fhir:Questionnaire.item.text [ fhir:value "Gender" ];
       fhir:Questionnaire.item.type [ fhir:value "choice" ];
       fhir:Questionnaire.item.answerOption [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix" ];
           fhir:Extension.valueString [ fhir:value "(a)" ]         ];
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "F" ];
           fhir:Coding.display [ fhir:value "Female" ]         ];
         fhir:Questionnaire.item.answerOption.initialSelected [ fhir:value "true"^^xsd:boolean ]       ], [
         fhir:index 1;
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "M" ];
           fhir:Coding.display [ fhir:value "Male" ]         ]       ], [
         fhir:index 2;
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "O" ];
           fhir:Coding.display [ fhir:value "Other" ]         ]       ], [
         fhir:index 3;
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "U" ];
           fhir:Coding.display [ fhir:value "Unknown" ]         ]       ]     ]
  ], [
     fhir:index 1;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/questionnaire-item-control" ];
           fhir:Coding.code [ fhir:value "htable" ];
           fhir:Coding.display [ fhir:value "Horizontal Answer Table" ]         ];
         fhir:CodeableConcept.text [ fhir:value "Questions within the group are columns in the table with possible answers as rows. Used for 'choice' questions." ]       ]     ];
     fhir:Questionnaire.item.linkId [ fhir:value "2" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ];
       fhir:Coding.code [ fhir:value "FAMILYDOC" ]     ];
     fhir:Questionnaire.item.prefix [ fhir:value "2" ];
     fhir:Questionnaire.item.text [ fhir:value "Family Physician Name" ];
     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.text [ fhir:value "Diabetes" ];
       fhir:Questionnaire.item.type [ fhir:value "choice" ];
       fhir:Questionnaire.item.answerOption [
         fhir:index 0;
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "diabetes-type1" ];
           fhir:Coding.display [ fhir:value "Type 1" ]         ]       ], [
         fhir:index 1;
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "diabetes-type2" ];
           fhir:Coding.display [ fhir:value "Type 2" ]         ]       ]     ], [
       fhir:index 1;
       fhir:Questionnaire.item.linkId [ fhir:value "2.2" ];
       fhir:Questionnaire.item.text [ fhir:value "Other Information" ];
       fhir:Questionnaire.item.type [ fhir:value "choice" ];
       fhir:Questionnaire.item.answerOption [
         fhir:index 0;
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "otherinformation-hypertension" ];
           fhir:Coding.display [ fhir:value "Hypertension" ]         ]       ], [
         fhir:index 1;
         fhir:Questionnaire.item.answerOption.valueCoding [
           fhir:Coding.code [ fhir:value "otherinformation-smoker" ];
           fhir:Coding.display [ fhir:value "Smoker" ]         ]       ]     ]
  ], [
     fhir:index 2;
     fhir:Questionnaire.item.linkId [ fhir:value "3" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ];
       fhir:Coding.code [ fhir:value "SLIDER" ]     ];
     fhir:Questionnaire.item.prefix [ fhir:value "3" ];
     fhir:Questionnaire.item.text [ fhir:value "Slider demonstration" ];
     fhir:Questionnaire.item.type [ fhir:value "group" ];
     fhir:Questionnaire.item.item [
       fhir:index 0;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" ];
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/questionnaire-item-control" ];
             fhir:Coding.code [ fhir:value "slider" ];
             fhir:Coding.display [ fhir:value "Slider" ]           ];
           fhir:CodeableConcept.text [ fhir:value "A control where an axis is displayed between the high and low values and the control can be visually manipulated to select a value anywhere on the axis." ]         ]       ], [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-sliderStepValue" ];
         fhir:Extension.valueInteger [ fhir:value "10"^^xsd:integer ]       ], [
         fhir:index 2;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/minValue" ];
         fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]       ], [
         fhir:index 3;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/maxValue" ];
         fhir:Extension.valueInteger [ fhir:value "100"^^xsd:integer ]       ];
       fhir:Questionnaire.item.linkId [ fhir:value "3.1" ];
       fhir:Questionnaire.item.text [ fhir:value "Adjust the slider" ];
       fhir:Questionnaire.item.type [ fhir:value "integer" ];
       fhir:Questionnaire.item.initial [
         fhir:index 0;
         fhir:Questionnaire.item.initial.valueInteger [ fhir:value "50"^^xsd:integer ]       ]     ]
  ].

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

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