@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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/CommunicationRequest/example> a fhir:CommunicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "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: 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\">Language: en</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>: Draft</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/communication-category instruction}\">Instruction</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>subject</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><h3>Payloads</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Content[x]</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Liver pathology biopsy report</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-full.html\">Practitioner Bone </a></p><p><b>recipient</b>: <a href=\"Organization-example.html\">Organization University Medical Center</a></p><p><b>sender</b>: <a href=\"http://example.org/fhir/someOtherProvider\">http://example.org/fhir/someOtherProvider</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" ]
  ] ) ; # 
  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 "draft"] ; # 
  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 "instruction" ]
     ] )
  ] ) ; # 
  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:subject [
     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:payload ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-CommunicationRequest.payload.content"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-CommunicationRequest.payload.content>
       ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           a loinc:65752-8 ;
           fhir:system [
             fhir:v "http://loinc.org"^^xsd:anyURI ;
             fhir:l <http://loinc.org>
           ] ;
           fhir:code [ fhir:v "65752-8" ] ;
           fhir:display [ fhir:v "Liver Pathology biopsy report" ]
         ] )
       ]
     ] ) ;
     fhir:content [
       a fhir:String ;
       fhir:v "Liver pathology biopsy report"
     ]
  ] ) ; # 
  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/davinci-crd/Practitioner/full> ;
     fhir:reference [ fhir:v "Practitioner/full" ]
  ] ; # 
  fhir:recipient ( [
     fhir:l <http://hl7.org/fhir/us/davinci-crd/Organization/example> ;
     fhir:reference [ fhir:v "Organization/example" ]
  ] ) ; # 
  fhir:sender [
     fhir:l <http://example.org/fhir/someOtherProvider> ;
     fhir:reference [ fhir:v "http://example.org/fhir/someOtherProvider" ]
  ] . # 

<http://hl7.org/fhir/us/davinci-crd/Patient/example> a fhir:Us .

<http://hl7.org/fhir/us/davinci-crd/Encounter/example> a fhir:Us .

<http://hl7.org/fhir/us/davinci-crd/Practitioner/full> a fhir:Us .

<http://hl7.org/fhir/us/davinci-crd/Organization/example> a fhir:Us .

# -------------------------------------------------------------------------------------

