@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://hl7-ie.github.io/medication-events/fhir/Medication/ie-mpd-medication-atorvastatin-20> a fhir:Medication ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ie-mpd-medication-atorvastatin-20"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medication-eprescription" ;
       fhir:index 0 ;
       fhir:link <https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medication-eprescription>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Medication ie-mpd-medication-atorvastatin-20</b></p><a name=\"ie-mpd-medication-atorvastatin-20\"> </a><a name=\"hcie-mpd-medication-atorvastatin-20\"> </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-ie-mpd-medication-eprescription.html\">IE MPD Medication (ePrescription/eDispensation)</a></p></div><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 254311000220102}, {http://snomed.info/sct 373444002}\">Atorvastatin 20mg tablets</span></p><p><b>form</b>: <span title=\"Codes:{http://snomed.info/sct 385055001}\">Tablet</span></p><p><b>amount</b>: 30 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span>/1 pack<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{pack} = '{pack}')</span></p><h3>Ingredients</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Item[x]</b></td><td><b>IsActive</b></td><td><b>Strength</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 373444002}\">Atorvastatin</span></td><td>true</td><td>20 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span>/1 tablet<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></td></tr></table></div>"
  ] ;
  fhir:Medication.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:254311000220102 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.version [ fhir:value "http://snomed.info/sct/1601000220105" ] ;
       fhir:Coding.code [ fhir:value "254311000220102" ] ;
       fhir:Coding.display [ fhir:value "Atorvastatin 20 mg oral tablet" ]
     ], [
       fhir:index 1 ;
       a sct:373444002 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "373444002" ] ;
       fhir:Coding.display [ fhir:value "Atorvastatin" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Atorvastatin 20mg tablets" ]
  ] ;
  fhir:Medication.form [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:385055001 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "385055001" ] ;
       fhir:Coding.display [ fhir:value "Tablet" ]
     ]
  ] ;
  fhir:Medication.amount [
     fhir:Ratio.numerator [
       fhir:Quantity.value [ fhir:value "30"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "tablets" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{tablet}" ]
     ] ;
     fhir:Ratio.denominator [
       fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "pack" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{pack}" ]
     ]
  ] ;
  fhir:Medication.ingredient [
     fhir:index 0 ;
     fhir:Medication.ingredient.itemCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:373444002 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "373444002" ] ;
         fhir:Coding.display [ fhir:value "Atorvastatin" ]
       ]
     ] ;
     fhir:Medication.ingredient.isActive [ fhir:value "true"^^xsd:boolean ] ;
     fhir:Medication.ingredient.strength [
       fhir:Ratio.numerator [
         fhir:Quantity.value [ fhir:value "20"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "mg" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "mg" ]
       ] ;
       fhir:Ratio.denominator [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "tablet" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tablet}" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://hl7-ie.github.io/medication-events/fhir/Medication/ie-mpd-medication-atorvastatin-20.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

