@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.icr.unicef.org/SupplyDelivery/example-albendazole-supply> a fhir:SupplyDelivery ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-albendazole-supply"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.icr.unicef.org/StructureDefinition/ICRSupplyDelivery" ;
       fhir:index 0 ;
       fhir:link <https://fhir.icr.unicef.org/StructureDefinition/ICRSupplyDelivery>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: SupplyDelivery example-albendazole-supply</b></p><a name=\"example-albendazole-supply\"> </a><a name=\"hcexample-albendazole-supply\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ICRSupplyDelivery.html\">ICR Supply Delivery</a></p></div><p><b>Record Origin</b>: campaign</p><blockquote><p><b>Stock Accountability</b></p><ul><li>received: 3600 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tbl} = '{tbl}')</span></li><li>used: 3080 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tbl} = '{tbl}')</span></li><li>remaining: 500 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tbl} = '{tbl}')</span></li><li>notUsable: 20 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tbl} = '{tbl}')</span></li><li>concordant: true</li></ul></blockquote><p><b>status</b>: Delivered</p><h3>SuppliedItems</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Quantity</b></td><td><b>Item[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>3600 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tbl} = '{tbl}')</span></td><td><span title=\"Codes:{http://www.whocc.no/atc P02CA03}\">albendazole</span></td></tr></table><p><b>destination</b>: <a href=\"Location-example-settlement.html\">Location Rokupr</a></p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://fhir.icr.unicef.org/StructureDefinition/record-origin" ] ;
     fhir:Extension.valueCode [ fhir:value "campaign" ]
  ], [
     fhir:index 1 ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "received" ] ;
       fhir:Extension.valueQuantity [
         fhir:Quantity.value [ fhir:value "3600"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "tablets" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tbl}" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "used" ] ;
       fhir:Extension.valueQuantity [
         fhir:Quantity.value [ fhir:value "3080"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "tablets" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tbl}" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:Extension.url [ fhir:value "remaining" ] ;
       fhir:Extension.valueQuantity [
         fhir:Quantity.value [ fhir:value "500"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "tablets" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tbl}" ]
       ]
     ], [
       fhir:index 3 ;
       fhir:Extension.url [ fhir:value "notUsable" ] ;
       fhir:Extension.valueQuantity [
         fhir:Quantity.value [ fhir:value "20"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "tablets" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tbl}" ]
       ]
     ], [
       fhir:index 4 ;
       fhir:Extension.url [ fhir:value "concordant" ] ;
       fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
     ] ;
     fhir:Extension.url [ fhir:value "https://fhir.icr.unicef.org/StructureDefinition/stock-accountability" ]
  ] ;
  fhir:SupplyDelivery.status [ fhir:value "completed"] ;
  fhir:SupplyDelivery.suppliedItem [
     fhir:SupplyDelivery.suppliedItem.quantity [
       fhir:Quantity.value [ fhir:value "3600"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "tablets" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{tbl}" ]
     ] ;
     fhir:SupplyDelivery.suppliedItem.itemCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://www.whocc.no/atc" ] ;
         fhir:Coding.code [ fhir:value "P02CA03" ] ;
         fhir:Coding.display [ fhir:value "albendazole" ]
       ]
     ]
  ] ;
  fhir:SupplyDelivery.destination [
     fhir:link <https://fhir.icr.unicef.org/Location/example-settlement> ;
     fhir:Reference.reference [ fhir:value "Location/example-settlement" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.icr.unicef.org/SupplyDelivery/example-albendazole-supply.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

