Release 4 FHIR CI-Build

This page is part of the Continuous Integration Build of FHIR Specification (v4.0.1: R4 - Mixed Normative and STU ) in it's permanent home (it will always (will be available incorrect/inconsistent at this URL). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Questionnaireresponse-example-f201-lifelines.ttl

Example QuestionnaireResponse/f201 (Turtle)

Maturity Level : N/A
Responsible Owner: FHIR Infrastructure Work Group Standards Status : Informative Compartments : Device , Encounter , Patient , Practitioner , RelatedPerson

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

Real-world lifelines questionnaire response (fictively taken from the patient)

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/QuestionnaireResponse/f201> a fhir:QuestionnaireResponse;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "f201"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: f201</p><p><b>status</b>: completed</p><p><b>subject</b>: <a>Roel</a></p><p><b>authored</b>: 18/06/2013 12:00:00 AM</p><p><b>author</b>: <a>Practitioner/f201</a></p><p><b>source</b>: <a>Practitioner/f201</a></p><blockquote><p><b>item</b></p><p><b>linkId</b>: 1</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: 2</p><p><b>text</b>: General questions</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr><tr><td>*</td></tr><tr><td>*</td></tr><tr><td>*</td></tr></table></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: 3</p><p><b>text</b>: Intoxications</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr><tr><td>*</td></tr></table></blockquote></div>"
  ];
  fhir:QuestionnaireResponse.status [ fhir:value "completed"];
  fhir:QuestionnaireResponse.subject [
     fhir:link <http://hl7.org/fhir/Patient/f201>;
     fhir:Reference.reference [ fhir:value "Patient/f201" ];
     fhir:Reference.display [ fhir:value "Roel" ]
  ];
  fhir:QuestionnaireResponse.authored [ fhir:value "2013-06-18T00:00:00+01:00"^^xsd:dateTime];
  fhir:QuestionnaireResponse.author [
     fhir:link <http://hl7.org/fhir/Practitioner/f201>;
     fhir:Reference.reference [ fhir:value "Practitioner/f201" ]
  ];
  fhir:QuestionnaireResponse.source [
     fhir:link <http://hl7.org/fhir/Practitioner/f201>;
     fhir:Reference.reference [ fhir:value "Practitioner/f201" ]
  ];
  fhir:QuestionnaireResponse.item [
     fhir:index 0;
     fhir:QuestionnaireResponse.item.linkId [ fhir:value "1" ];
     fhir:QuestionnaireResponse.item.item [
       fhir:index 0;
       fhir:QuestionnaireResponse.item.linkId [ fhir:value "1.1" ];
       fhir:QuestionnaireResponse.item.text [ fhir:value "Do you have allergies?" ];
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueString [ fhir:value "I am allergic to house dust" ]
       ]
     ]
  ], [
     fhir:index 1;
     fhir:QuestionnaireResponse.item.linkId [ fhir:value "2" ];
     fhir:QuestionnaireResponse.item.text [ fhir:value "General questions" ];
     fhir:QuestionnaireResponse.item.item [
       fhir:index 0;
       fhir:QuestionnaireResponse.item.linkId [ fhir:value "2.1" ];
       fhir:QuestionnaireResponse.item.text [ fhir:value "What is your gender?" ];
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueString [ fhir:value "Male" ]
       ]
     ], [
       fhir:index 1;
       fhir:QuestionnaireResponse.item.linkId [ fhir:value "2.2" ];
       fhir:QuestionnaireResponse.item.text [ fhir:value "What is your date of birth?" ];
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueDate [ fhir:value "1960-03-13"^^xsd:date ]
       ]
     ], [
       fhir:index 2;
       fhir:QuestionnaireResponse.item.linkId [ fhir:value "2.3" ];
       fhir:QuestionnaireResponse.item.text [ fhir:value "What is your country of birth?" ];
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueString [ fhir:value "The Netherlands" ]
       ]
     ], [
       fhir:index 3;
       fhir:QuestionnaireResponse.item.linkId [ fhir:value "2.4" ];
       fhir:QuestionnaireResponse.item.text [ fhir:value "What is your marital status?" ];
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueString [ fhir:value "married" ]
       ]
     ]
  ], [
     fhir:index 2;
     fhir:QuestionnaireResponse.item.linkId [ fhir:value "3" ];
     fhir:QuestionnaireResponse.item.text [ fhir:value "Intoxications" ];
     fhir:QuestionnaireResponse.item.item [
       fhir:index 0;
       fhir:QuestionnaireResponse.item.linkId [ fhir:value "3.1" ];
       fhir:QuestionnaireResponse.item.text [ fhir:value "Do you smoke?" ];
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueString [ fhir:value "No" ]

<http://hl7.org/fhir/QuestionnaireResponse/f201> a fhir:QuestionnaireResponse ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "f201"] ; # 
  fhir:questionnaire [
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/display"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/display>
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Lifelines"

       ]
     ], [
       fhir:index 1;
       fhir:QuestionnaireResponse.item.linkId [ fhir:value "3.2" ];
       fhir:QuestionnaireResponse.item.text [ fhir:value "Do you drink alchohol?" ];
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueString [ fhir:value "No, but I used to drink" ]

     ] )
  ] ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/f201> ;
     fhir:reference [ fhir:v "Patient/f201" ] ;
     fhir:display [ fhir:v "Roel" ]
  ] ; #  Fictive, only the below answers are non-fictive 
  fhir:authored [ fhir:v "2013-06-18T00:00:00+01:00"^^xsd:dateTime] ; # 
  fhir:author [
     fhir:l <http://hl7.org/fhir/Practitioner/f201> ;
     fhir:reference [ fhir:v "Practitioner/f201" ]
  ] ; # 
  fhir:source [
     fhir:l <http://hl7.org/fhir/Practitioner/f201> ;
     fhir:reference [ fhir:v "Practitioner/f201" ]
  ] ; # 
  fhir:item ( [
     fhir:linkId [ fhir:v "1" ] ;
     fhir:text [ fhir:v "Do you have allergies?" ] ;
     fhir:answer ( [
       fhir:value [
         a fhir:Boolean ;
         fhir:v true

       ]
     ]
  ] .

     ] )
  ] [
     fhir:linkId [ fhir:v "2" ] ; #  Answers to general questions 
     fhir:text [ fhir:v "General questions" ] ;
     fhir:item ( [
       fhir:linkId [ fhir:v "2.1" ] ;
       fhir:text [ fhir:v "What is your gender?" ] ;
       fhir:answer ( [
         fhir:value [
           a fhir:String ;
           fhir:v "Male"
         ]
       ] )
     ] [
       fhir:linkId [ fhir:v "2.2" ] ;
       fhir:text [ fhir:v "What is your date of birth?" ] ;
       fhir:answer ( [
         fhir:value [
           a fhir:Date ;
           fhir:v "1960-03-13"^^xsd:date
         ]
       ] )
     ] [
       fhir:linkId [ fhir:v "2.3" ] ;
       fhir:text [ fhir:v "What is your country of birth?" ] ;
       fhir:answer ( [
         fhir:value [
           a fhir:String ;
           fhir:v "The Netherlands"
         ]
       ] )
     ] [
       fhir:linkId [ fhir:v "2.4" ] ;
       fhir:text [ fhir:v "What is your marital status?" ] ;
       fhir:answer ( [
         fhir:value [
           a fhir:String ;
           fhir:v "married"
         ]
       ] )
     ] )
  ] [
     fhir:linkId [ fhir:v "3" ] ; #  Answers to intoxications 
     fhir:text [ fhir:v "Intoxications" ] ;
     fhir:item ( [
       fhir:linkId [ fhir:v "3.1" ] ;
       fhir:text [ fhir:v "Do you smoke?" ] ;
       fhir:answer ( [
         fhir:value [
           a fhir:Boolean ;
           fhir:v false
         ]
       ] )
     ] [
       fhir:linkId [ fhir:v "3.2" ] ;
       fhir:text [ fhir:v "Do you drink alchohol?" ] ;
       fhir:answer ( [
         fhir:value [
           a fhir:Boolean ;
           fhir:v false
         ]
       ] )
     ] )
  ] ) . # 


<http://hl7.org/fhir/Patient/f201> a fhir:Patient .

<http://hl7.org/fhir/Practitioner/f201> a fhir:Practitioner .

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

<http://hl7.org/fhir/QuestionnaireResponse/f201.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/QuestionnaireResponse/f201.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.