@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/DeviceRequest/right-lens> a fhir:DeviceRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "right-lens"] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://www.happysight.com/prescription"^^xsd:anyURI ;
       fhir:l <http://www.happysight.com/prescription>
     ] ;
     fhir:value [ fhir:v "15013R" ]
  ] ) ; # 
  fhir:groupIdentifier [
     fhir:system [
       fhir:v "http://acme.org"^^xsd:anyURI ;
       fhir:l <http://acme.org>
     ] ;
     fhir:value [ fhir:v "15013" ]
  ] ; # insert contents here
  fhir:status [ fhir:v "completed"] ; # 
  fhir:intent [ fhir:v "original-order"] ; # 
  fhir:product [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct>
       ] ;
       fhir:code [ fhir:v "lens" ]
     ] )
  ] ; # 
  fhir:parameter ( [
     fhir:code [
       fhir:coding ( [
         a loinc:28826-6 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "28826-6" ] ;
         fhir:display [ fhir:v "Right glasses lens prescription Sphere far" ]
       ] ) ;
       fhir:text [ fhir:v "sphere, right lens" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v -2.00 ] ;
       fhir:unit [ fhir:v "Diopter" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "[diop]" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:28829-0 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "28829-0" ] ;
         fhir:display [ fhir:v "Right glasses lens prescription Prism base direction" ]
       ] ) ;
       fhir:text [ fhir:v "prisms, right lens" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v -2.00 ] ;
       fhir:unit [ fhir:v "Diopter" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "[diop]" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:28810-0 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "28810-0" ] ;
         fhir:display [ fhir:v "Right corrective lens Add 1 by Lensmeter" ]
       ] ) ;
       fhir:text [ fhir:v "add, right lens" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v 2.00 ] ;
       fhir:unit [ fhir:v "Diopter" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "[diop]" ]
     ]
  ] ) ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:occurrence [
     a fhir:DateTime ;
     fhir:v "2014-06-15"^^xsd:date
  ] ; # 
  fhir:requester [
     fhir:l <http://hl7.org/fhir/Practitioner/example> ;
     fhir:reference [ fhir:v "Practitioner/example" ]
  ] . # 

<http://hl7.org/fhir/Patient/example> a fhir:Patient .

<http://hl7.org/fhir/Practitioner/example> a fhir:Practitioner .

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

