@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/us/davinci-crd/Task/questionnaire-example> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "questionnaire-example"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: Task questionnaire-example</b></p><a name=\"questionnaire-example\"> </a><a name=\"hcquestionnaire-example\"> </a><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\">Language: en</p></div><p><b>basedOn</b>: <a href=\"MedicationRequest-example.html\">MedicationRequest: identifier = http://example.org/portal/prescriptions#12345689 (use: official, ); status = draft; intent = order; medication[x] = -&gt;Medication Azithromycin 250 mg oral tablet; authoredOn = 2015-01-15; reasonCode = Traveler's Diarrhea (disorder); note = Patient told to take with food</a></p><p><b>status</b>: Ready</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/sdc/CodeSystem/temp complete-questionnaire}\">Complete Questionnaire</span></p><p><b>for</b>: <a href=\"Patient-example.html\">Amy V. Shaw  Female, DoB: 1987-02-20 ( Medical Record Number: 1032702 (use: usual, ))</a></p><p><b>encounter</b>: <a href=\"Encounter-example.html\">Encounter: identifier = http://example.org/zorgportal/identifiers/visits#v1451 (use: official, ); status = in-progress; class = ambulatory (ActCode#AMB); type = Patient-initiated encounter; priority = Non-urgent cardiological admission; reasonCode = Heart valve replacement</a></p><p><b>authoredOn</b>: 2018-08-09</p><p><b>requester</b>: <a href=\"http://example.org/fhir/Organization/payer\">http://example.org/fhir/Organization/payer</a></p><p><b>reasonCode</b>: <span title=\"Codes:\">Helps assess opioid appropriateness</span></p><blockquote><p><b>input</b></p><p><b>type</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/sdc/CodeSystem/temp questionnaire}\">Questionnaire</span></p><p><b>value</b>: <code>http://example.org/Questionnaire/XYZ|2</code></p></blockquote><blockquote><p><b>input</b></p><p><b>type</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/sdc/CodeSystem/temp response-endpoint}\">Response Endpoint</span></p><p><b>value</b>: <a href=\"http://example.org/somePayer\">http://example.org/somePayer</a></p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:basedOn ( [
     fhir:l <http://hl7.org/fhir/us/davinci-crd/MedicationRequest/example> ;
     fhir:reference [ fhir:v "MedicationRequest/example" ]
  ] ) ; # 
  fhir:status [ fhir:v "ready"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/uv/sdc/CodeSystem/temp"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/sdc/CodeSystem/temp>
       ] ;
       fhir:code [ fhir:v "complete-questionnaire" ]
     ] )
  ] ; # 
  fhir:for [
     fhir:l <http://hl7.org/fhir/us/davinci-crd/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:encounter [
     fhir:l <http://hl7.org/fhir/us/davinci-crd/Encounter/example> ;
     fhir:reference [ fhir:v "Encounter/example" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2018-08-09"^^xsd:date] ; # 
  fhir:requester [
     fhir:l <http://example.org/fhir/Organization/payer> ;
     fhir:reference [ fhir:v "http://example.org/fhir/Organization/payer" ]
  ] ; # 
  fhir:reasonCode [
     fhir:text [ fhir:v "Helps assess opioid appropriateness" ]
  ] ; # 
  fhir:input ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/uv/sdc/CodeSystem/temp"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/sdc/CodeSystem/temp>
         ] ;
         fhir:code [ fhir:v "questionnaire" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Canonical ;
       fhir:v "http://example.org/Questionnaire/XYZ|2"^^xsd:anyURI ;
       fhir:l <http://example.org/Questionnaire/XYZ?version=2>
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/uv/sdc/CodeSystem/temp"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/sdc/CodeSystem/temp>
         ] ;
         fhir:code [ fhir:v "response-endpoint" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Url ;
       fhir:v "http://example.org/somePayer"^^xsd:anyURI ;
       fhir:l <http://example.org/somePayer>
     ]
  ] ) . # 

<http://hl7.org/fhir/us/davinci-crd/MedicationRequest/example> a fhir:Us .

<http://hl7.org/fhir/us/davinci-crd/Patient/example> a fhir:Us .

<http://hl7.org/fhir/us/davinci-crd/Encounter/example> a fhir:Us .

# -------------------------------------------------------------------------------------

