@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/qicore/CommunicationRequest/example> a fhir:CommunicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationrequest"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-communicationrequest>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CommunicationRequest example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-communicationrequest.html\">QICore CommunicationRequest</a></p></div><p><b>identifier</b>: <code>http://example.org/insurer/123456</code>/ABC123</p><p><b>basedOn</b>: EligibilityRequest</p><p><b>replaces</b>: prior CommunicationRequest</p><p><b>groupIdentifier</b>: 12345</p><p><b>status</b>: Active</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/communication-category notification}\">Notification</span></p><p><b>priority</b>: Routine</p><p><b>medium</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationMode WRITTEN}\">written</span></p><p><b>encounter</b>: <a href=\"Encounter-example.html\">Encounter: status = in-progress; class = inpatient encounter (ActCode#IMP); type = Initial hospital inpatient or observation care, per day, for the evaluation and management of a patient, which requires a medically appropriate history and/or examination and high level of medical decision making. When using total time on the date of the encounter for code selection, 75 minutes must be met or exceeded.</a></p><h3>Payloads</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Content[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>Please provide the accident report and any associated pictures to support your Claim #DEF5647.</td></tr></table><p><b>occurrence</b>: 2016-06-10 11:01:10-0800</p><p><b>authoredOn</b>: 2016-06-10 11:01:10-0800</p><p><b>requester</b>: <a href=\"Practitioner-example.html\">Practitioner Adam Careful </a></p><p><b>recipient</b>: <a href=\"Organization-example.html\">Organization Health Level Seven International</a></p><p><b>sender</b>: <a href=\"Patient-example.html\">Jim Chalmers  Male, DoB: 1974-12-25 ( Medical record number (use: usual, period: 2001-05-06 --&gt; (ongoing)))</a></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://example.org/insurer/123456"^^xsd:anyURI ;
       fhir:l <http://example.org/insurer/123456>
     ] ;
     fhir:value [ fhir:v "ABC123" ]
  ] ) ; #    body of the resource   ,    this is the value to which the response will refer   
  fhir:basedOn ( [
     fhir:display [ fhir:v "EligibilityRequest" ]
  ] ) ; # 
  fhir:replaces ( [
     fhir:display [ fhir:v "prior CommunicationRequest" ]
  ] ) ; # 
  fhir:groupIdentifier [
     fhir:value [ fhir:v "12345" ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/communication-category"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/communication-category>
       ] ;
       fhir:code [ fhir:v "notification" ]
     ] )
  ] ) ; # 
  fhir:priority [ fhir:v "routine"] ; # 
  fhir:medium ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationMode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ParticipationMode>
       ] ;
       fhir:code [ fhir:v "WRITTEN" ] ;
       fhir:display [ fhir:v "written" ]
     ] ) ;
     fhir:text [ fhir:v "written" ]
  ] ) ; # 
  fhir:encounter [
     fhir:l <http://hl7.org/fhir/us/qicore/Encounter/example> ;
     fhir:reference [ fhir:v "Encounter/example" ]
  ] ; # 
  fhir:payload ( [
     fhir:content [
       a fhir:String ;
       fhir:v "Please provide the accident report and any associated pictures to support your Claim #DEF5647."
     ]
  ] ) ; # 
  fhir:occurrence [
     a fhir:DateTime ;
     fhir:v "2016-06-10T11:01:10-08:00"^^xsd:dateTime
  ] ; # 
  fhir:authoredOn [ fhir:v "2016-06-10T11:01:10-08:00"^^xsd:dateTime] ; # 
  fhir:requester [
     fhir:l <http://hl7.org/fhir/us/qicore/Practitioner/example> ;
     fhir:reference [ fhir:v "Practitioner/example" ]
  ] ; # 
  fhir:recipient ( [
     fhir:l <http://hl7.org/fhir/us/qicore/Organization/example> ;
     fhir:reference [ fhir:v "Organization/example" ]
  ] ) ; # 
  fhir:sender [
     fhir:l <http://hl7.org/fhir/us/qicore/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] . # 

<http://hl7.org/fhir/us/qicore/Encounter/example> a fhir:Us .

<http://hl7.org/fhir/us/qicore/Practitioner/example> a fhir:Us .

<http://hl7.org/fhir/us/qicore/Organization/example> a fhir:Us .

<http://hl7.org/fhir/us/qicore/Patient/example> a fhir:Us .

# -------------------------------------------------------------------------------------

