@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/meddisp0319> a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "meddisp0319"] ; # 
  fhir:contained ( [
     a fhir:Medication ;
     fhir:id [ fhir:v "med0320" ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/sid/ndc"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/sid/ndc>
         ] ;
         fhir:code [ fhir:v "33261-141-20" ] ;
         fhir:display [ fhir:v "PROCHLORPERAZINE MALEATE, 20 TABLET in 1 BOTTLE, PLASTIC (33261-141-20) (package)" ]
       ] ) ;
       fhir:text [ fhir:v "Azithromycin 250mg tablet, film coated (Aidarex Pharmaceuticals LLC)" ]
     ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:medication [
     fhir:reference [
       fhir:l <#med0320> ;
       fhir:reference [ fhir:v "#med0320" ] ;
       fhir:display [ fhir:v "Azithromycin (as azithromycin dihydrate) 250 mg oral capsule" ]
     ]
  ] ; # 
  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/medrx0302> ;
     fhir:reference [ fhir:v "MedicationRequest/medrx0302" ]
  ] ) ; # 
  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 "FFC" ] ;
       fhir:display [ fhir:v "First Fill - Complete" ]
     ] )
  ] ; # 
  fhir:quantity [
     fhir:value [ fhir:v "6"^^xsd:decimal ] ;
     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 "5"^^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-03-16T17:13:00+05:00"^^xsd:dateTime] ; # 
  fhir:whenHandedOver [ fhir:v "2015-03-17T17:13:00+05:00"^^xsd:dateTime] ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Patient told to take with food" ]
  ] ) ; # 
  fhir:dosageInstruction [
     fhir:renderedInstruction [ fhir:v "Two tablets at once, then one tablet daily for 4 days. Take with or after food." ] ;
     fhir:step ( [
       fhir:component ( [
         fhir:text [ fhir:v "Two tablets at once" ] ;
         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: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 "ordered" ] ;
               fhir:display [ fhir:v "Ordered" ]
             ] )
           ] ;
           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 "One tablet daily for 4 days" ] ;
         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:Duration ;
               fhir:value [ fhir:v "4"^^xsd:decimal ] ;
               fhir:unit [ fhir:v "days" ] ;
               fhir:system [
                 fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
                 fhir:l <http://unitsofmeasure.org>
               ] ;
               fhir:code [ fhir:v "d" ]
             ] ;
             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: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 "ordered" ] ;
               fhir:display [ fhir:v "Ordered" ]
             ] )
           ] ;
           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/medrx0302> a fhir:MedicationRequest .

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

