STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Questionnaireresponse-example.ttl

Raw Turtle, JSON-LD

General questionnaire response example

@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 sct: <http://snomed.info/sct/> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir//QuestionnaireResponse/3141> a fhir:QuestionnaireResponse;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "3141"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.contained [
     fhir:index 0;
     fhir:Patient [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "patsub" ];
       fhir:Patient.identifier [
         fhir:index 0;
         fhir:Identifier.system [ fhir:value "http://cancer.questionnaire.org/systems/id/patientnr" ];
         fhir:Identifier.value [ fhir:value "A34442332" ]       ];
       fhir:Patient.identifier [
         fhir:index 1;
         fhir:Identifier.type [
           fhir:CodeableConcept.text [ fhir:value "Dutch BSN" ]         ];
         fhir:Identifier.system [ fhir:value "urn:oid:2.16.840.1.113883.2.4.6.3" ];
         fhir:Identifier.value [ fhir:value "188912345" ]       ];
       fhir:Patient.gender [ fhir:value "male" ];
       fhir:Patient.birthDate [ fhir:value "1972-11-30"^^xs:date ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 1;
     fhir:Practitioner [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "questauth" ];
       fhir:Practitioner.identifier [
         fhir:index 0;
         fhir:Identifier.type [
           fhir:CodeableConcept.text [ fhir:value "AUMC, Den Helder" ]         ];
         fhir:Identifier.system [ fhir:value "http://cancer.questionnaire.org/systems/id/org" ];
         fhir:Identifier.value [ fhir:value "AUMC" ]       ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 2;
     fhir:Observation [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "obs.pt-category" ];
       fhir:Observation.status [ fhir:value "final" ];
       fhir:Observation.code [
         a sct:53786006;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           a sct:53786006;
           fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
           fhir:Coding.code [ fhir:value "53786006" ];
           fhir:Coding.display [ fhir:value "pT1 category" ]         ]       ];
       fhir:Observation.subjectReference [
         fhir:Reference.reference [ fhir:value "#patsub" ]       ];
       fhir:Observation.performerReference [
         fhir:index 0;
         fhir:Reference.reference [ fhir:value "#questauth" ]       ];
       fhir:Observation.valueCodeableConcept [
         a sct:443357004;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           a sct:443357004;
           fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
           fhir:Coding.code [ fhir:value "443357004" ];
           fhir:Coding.display [ fhir:value "pT1a category" ]         ]       ]     ]
  ];
  fhir:QuestionnaireResponse.status [ fhir:value "completed"];
  fhir:QuestionnaireResponse.subject [
     fhir:Reference.reference [ fhir:value "#patsub" ]
  ];
  fhir:QuestionnaireResponse.authorReference [
     fhir:Reference.reference [ fhir:value "#questauth" ]
  ];
  fhir:QuestionnaireResponse.authored [ fhir:value "2013-02-19T14:15:00-05:00"^^xs:dateTime];
  fhir:QuestionnaireResponse.item [
     fhir:index 0;
     fhir:QuestionnaireResponse.item.item [
       fhir:index 0;
       fhir:QuestionnaireResponse.item.answer [
         fhir:index 0;
         fhir:QuestionnaireResponse.item.answer.valueCoding [
           fhir:Coding.system [ fhir:value "http://cancer.questionnaire.org/system/code/yesno" ];
           fhir:Coding.code [ fhir:value "1" ];
           fhir:Coding.display [ fhir:value "Yes" ]         ];
         fhir:QuestionnaireResponse.item.answer.item [
           fhir:index 0;
           fhir:QuestionnaireResponse.item.item [
             fhir:index 0;
             fhir:QuestionnaireResponse.item.answer [
               fhir:index 0;
               fhir:QuestionnaireResponse.item.answer.valueCoding [
                 fhir:Coding.system [ fhir:value "http://cancer.questionnaire.org/system/code/yesno" ];
                 fhir:Coding.code [ fhir:value "1" ]               ]             ]           ];
           fhir:QuestionnaireResponse.item.item [
             fhir:index 1;
             fhir:QuestionnaireResponse.item.answer [
               fhir:index 0;
               fhir:QuestionnaireResponse.item.answer.valueCoding [
                 fhir:Coding.system [ fhir:value "http://cancer.questionnaire.org/system/code/yesno" ];
                 fhir:Coding.code [ fhir:value "1" ]               ]             ]           ];
           fhir:QuestionnaireResponse.item.item [
             fhir:index 2;
             fhir:QuestionnaireResponse.item.answer [
               fhir:index 0;
               fhir:QuestionnaireResponse.item.answer.valueCoding [
                 fhir:Coding.system [ fhir:value "http://cancer.questionnaire.org/system/code/yesno" ];
                 fhir:Coding.code [ fhir:value "0" ]               ]             ]           ]         ]       ]     ]
  ].

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


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.