@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/PackagedProductDefinition/package-with-liquid-and-syringe> a fhir:PackagedProductDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "package-with-liquid-and-syringe"] ; # 
  fhir:contained ( [
     a fhir:DeviceDefinition ;
     fhir:id [ fhir:v "syringeDevice" ] ;
     fhir:status [ fhir:v "active" ] ;
     fhir:classification ( [
       fhir:type [
         fhir:text [ fhir:v "syringe" ]
       ]
     ] )
  ] [
     a fhir:ManufacturedItemDefinition ;
     fhir:id [ fhir:v "liquidItem" ] ;
     fhir:status [ fhir:v "active" ] ;
     fhir:manufacturedDoseForm [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://example.org.uk/fhir/doseform"^^xsd:anyURI ;
           fhir:l <http://example.org.uk/fhir/doseform>
         ] ;
         fhir:code [ fhir:v "solution for injection" ]
       ] )
     ]
  ] ) ; # 
  fhir:packageFor ( [
     fhir:l <http://hl7.org/fhir/MedicinalProductDefinition/ProductThatHasThisPackType> ;
     fhir:reference [ fhir:v "MedicinalProductDefinition/ProductThatHasThisPackType" ]
  ] ) ; #   the product for which this is one available package type (possibly one package type of several for this product)  
  fhir:packaging [
     fhir:containedItem ( [
       fhir:item [
         fhir:reference [
           fhir:l <#liquidItem> ;
           fhir:reference [ fhir:v "#liquidItem" ] #   reference an item defined above  
         ]
       ] ;
       fhir:amount [
         fhir:value [ fhir:v "20"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "ml" ] ;
         fhir:system [
           fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
           fhir:l <http://unitsofmeasure.org>
         ] ;
         fhir:code [ fhir:v "mL" ]
       ]
     ] [
       fhir:item [
         fhir:reference [
           fhir:l <#syringeDevice> ;
           fhir:reference [ fhir:v "#syringeDevice" ] #   reference an item defined above  
         ]
       ]
     ] ) #   here we can describe the packaging, but in this case we just want to talk about the contents  ,   Note that containedItem here is a completely different meaning to \"contained\" above\n	         This refers to items physically contained in the package.  
  ] . #   package contents start here, consists of a liquid and a syringe  

<http://hl7.org/fhir/MedicinalProductDefinition/ProductThatHasThisPackType> a fhir:MedicinalProductDefinition .

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

