R6 Ballot (2nd Draft)

Publish-box (todo)

Example QuestionnaireResponse/f201 (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

[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:value [ fhir:v "Lifelines" ]
     ] )
  ] ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:subject [
     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:reference [ fhir:v "Practitioner/f201" ]
  ] ; # 
  fhir:source [
     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 [ fhir:v "true"^^xsd:boolean ]
     ] )
  ] [
     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 [ fhir:v "Male" ]
       ] )
     ] [
       fhir:linkId [ fhir:v "2.2" ] ;
       fhir:text [ fhir:v "What is your date of birth?" ] ;
       fhir:answer ( [
         fhir:value [ 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 [ fhir:v "The Netherlands" ]
       ] )
     ] [
       fhir:linkId [ fhir:v "2.4" ] ;
       fhir:text [ fhir:v "What is your marital status?" ] ;
       fhir:answer ( [
         fhir:value [ 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 [ fhir:v "false"^^xsd:boolean ]
       ] )
     ] [
       fhir:linkId [ fhir:v "3.2" ] ;
       fhir:text [ fhir:v "Do you drink alchohol?" ] ;
       fhir:answer ( [
         fhir:value [ fhir:v "false"^^xsd:boolean ]
       ] )
     ] )
  ] )] . # 

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


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.