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

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

<http://hl7.org/fhir/MedicationDispense/meddisp0305> a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "meddisp0305"] ; # 
  fhir:contained ( [
     a fhir:Medication ;
     fhir:id [ fhir:v "med0311" ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ;
           fhir:l <http://www.nlm.nih.gov/research/umls/rxnorm>
         ] ;
         fhir:code [ fhir:v "763179" ] ;
         fhir:display [ fhir:v "{48 (prednisone 5 MG Oral Tablet) } Pack" ]
       ] )
     ]
  ] ) ; # 
  fhir:status [ fhir:v "entered-in-error"] ; # 
  fhir:medication [
     fhir:reference [
       fhir:l <#med0311> ;
       fhir:reference [ fhir:v "#med0311" ] ;
       fhir:display [ fhir:v "Prednisone" ]
     ] #   Linked to a RESOURCE Medication  
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/pat1> ;
     fhir:reference [ fhir:v "Patient/pat1" ] ;
     fhir:display [ fhir:v "Donald Duck" ]
  ] ; # 
  fhir:performer ( [
     fhir:actor [
       fhir:l <http://hl7.org/fhir/Practitioner/f006> ;
       fhir:reference [ fhir:v "Practitioner/f006" ]
     ]
  ] ) ; # 
  fhir:authorizingPrescription ( [
     fhir:l <http://hl7.org/fhir/MedicationRequest/medrx0303> ;
     fhir:reference [ fhir:v "MedicationRequest/medrx0303" ]
  ] ) ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
       ] ;
       fhir:code [ fhir:v "FF" ] ;
       fhir:display [ fhir:v "First Fill" ]
     ] )
  ] ; # 
  fhir:quantity [
     fhir:value [ fhir:v "49"^^xsd:decimal ] ;
     fhir:unit [ fhir:v "TAB" ] ;
     fhir:system [
       fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
       fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
     ] ;
     fhir:code [ fhir:v "TAB" ]
  ] ; # 
  fhir:daysSupply [
     fhir:value [ fhir:v "21"^^xsd:decimal ] ;
     fhir:unit [ fhir:v "Day" ] ;
     fhir:system [
       fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
       fhir:l <http://unitsofmeasure.org>
     ] ;
     fhir:code [ fhir:v "d" ]
  ] ; # 
  fhir:whenPrepared [ fhir:v "2015-01-15T10:20:00Z"^^xsd:dateTime] ; # 
  fhir:whenHandedOver [ fhir:v "2015-01-15T16:20:00Z"^^xsd:dateTime] ; # 
  fhir:dosageInstruction [
     fhir:renderedInstruction [ fhir:v "Take 4 tablets daily for 7 days, then 2 tablets daily for 7 days, then 1 tablet daily for 7 days. Take with or after food." ] ;
     fhir:step ( [
       fhir:component ( [
         fhir:text [ fhir:v "Take 4 tablets daily for 7 days starting January 16, 2015" ] ;
         fhir:additionalInstruction ( [
           fhir:coding ( [
             a sct:311504000 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "311504000" ] ;
             fhir:display [ fhir:v "With or after Food" ]
           ] )
         ] ) ;
         fhir:timing [
           fhir:repeat [
             fhir:bounds [
               a fhir:Period ;
               fhir:start [ fhir:v "2015-01-16"^^xsd:date ] ;
               fhir:end [ fhir:v "2015-01-20"^^xsd:date ]
             ] ;
             fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
             fhir:period [ fhir:v "1"^^xsd:decimal ] ;
             fhir:periodUnit [ fhir:v "d" ]
           ]
         ] ;
         fhir:route [
           fhir:coding ( [
             a sct:26643006 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "26643006" ] ;
             fhir:display [ fhir:v "Oral Route" ]
           ] )
         ] ;
         fhir:method [
           fhir:coding ( [
             a sct:421521009 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "421521009" ] ;
             fhir:display [ fhir:v "Swallow - dosing instruction imperative (qualifier value)" ]
           ] )
         ] ;
         fhir:doseAndRate ( [
           fhir:type [
             fhir:coding ( [
               fhir:system [
                 fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ;
                 fhir:l <http://terminology.hl7.org/CodeSystem/dose-rate-type>
               ] ;
               fhir:code [ fhir:v "calculated" ] ;
               fhir:display [ fhir:v "Calculated" ]
             ] )
           ] ;
           fhir:dose [
             a fhir:Quantity ;
             fhir:value [ fhir:v "4"^^xsd:decimal ] ;
             fhir:unit [ fhir:v "TAB" ] ;
             fhir:system [
               fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
             ] ;
             fhir:code [ fhir:v "TAB" ]
           ]
         ] )
       ] )
     ] [
       fhir:component ( [
         fhir:text [ fhir:v "Take 2 tablets daily for 7 days starting January 23, 2015" ] ;
         fhir:additionalInstruction ( [
           fhir:coding ( [
             a sct:311504000 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "311504000" ] ;
             fhir:display [ fhir:v "With or after Food" ]
           ] )
         ] ) ;
         fhir:timing [
           fhir:repeat [
             fhir:bounds [
               a fhir:Period ;
               fhir:start [ fhir:v "2015-01-23"^^xsd:date ] ;
               fhir:end [ fhir:v "2015-01-30"^^xsd:date ]
             ] ;
             fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
             fhir:period [ fhir:v "1"^^xsd:decimal ] ;
             fhir:periodUnit [ fhir:v "d" ]
           ]
         ] ;
         fhir:route [
           fhir:coding ( [
             a sct:26643006 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "26643006" ] ;
             fhir:display [ fhir:v "Oral Route" ]
           ] )
         ] ;
         fhir:method [
           fhir:coding ( [
             a sct:421521009 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "421521009" ] ;
             fhir:display [ fhir:v "Swallow - dosing instruction imperative (qualifier value)" ]
           ] )
         ] ;
         fhir:doseAndRate ( [
           fhir:type [
             fhir:coding ( [
               fhir:system [
                 fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ;
                 fhir:l <http://terminology.hl7.org/CodeSystem/dose-rate-type>
               ] ;
               fhir:code [ fhir:v "calculated" ] ;
               fhir:display [ fhir:v "Calculated" ]
             ] )
           ] ;
           fhir:dose [
             a fhir:Quantity ;
             fhir:value [ fhir:v "2"^^xsd:decimal ] ;
             fhir:unit [ fhir:v "TAB" ] ;
             fhir:system [
               fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
             ] ;
             fhir:code [ fhir:v "TAB" ]
           ]
         ] )
       ] )
     ] [
       fhir:component ( [
         fhir:text [ fhir:v "Take 1 tablets daily for 7 days starting January 31, 2015" ] ;
         fhir:additionalInstruction ( [
           fhir:coding ( [
             a sct:311504000 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "311504000" ] ;
             fhir:display [ fhir:v "With or after Food" ]
           ] )
         ] ) ;
         fhir:timing [
           fhir:repeat [
             fhir:bounds [
               a fhir:Period ;
               fhir:start [ fhir:v "2015-01-31"^^xsd:date ] ;
               fhir:end [ fhir:v "2015-02-06"^^xsd:date ]
             ] ;
             fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
             fhir:period [ fhir:v "1"^^xsd:decimal ] ;
             fhir:periodUnit [ fhir:v "d" ]
           ]
         ] ;
         fhir:route [
           fhir:coding ( [
             a sct:26643006 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "26643006" ] ;
             fhir:display [ fhir:v "Oral Route" ]
           ] )
         ] ;
         fhir:method [
           fhir:coding ( [
             a sct:421521009 ;
             fhir:system [
               fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
               fhir:l <http://snomed.info/sct>
             ] ;
             fhir:code [ fhir:v "421521009" ] ;
             fhir:display [ fhir:v "Swallow - dosing instruction imperative (qualifier value)" ]
           ] )
         ] ;
         fhir:doseAndRate ( [
           fhir:type [
             fhir:coding ( [
               fhir:system [
                 fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ;
                 fhir:l <http://terminology.hl7.org/CodeSystem/dose-rate-type>
               ] ;
               fhir:code [ fhir:v "calculated" ] ;
               fhir:display [ fhir:v "Calculated" ]
             ] )
           ] ;
           fhir:dose [
             a fhir:Quantity ;
             fhir:value [ fhir:v "1"^^xsd:decimal ] ;
             fhir:unit [ fhir:v "TAB" ] ;
             fhir:system [
               fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
             ] ;
             fhir:code [ fhir:v "TAB" ]
           ]
         ] )
       ] )
     ] )
  ] . # 

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

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

<http://hl7.org/fhir/MedicationRequest/medrx0303> a fhir:MedicationRequest .

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

