@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://emahealth.io/fhir/core/Medication/EjemploEmaCoreMedication> a fhir:Medication ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "EjemploEmaCoreMedication"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://emahealth.io/fhir/core/StructureDefinition/ema-core-medication" ;
       fhir:index 0 ;
       fhir:link <https://emahealth.io/fhir/core/StructureDefinition/ema-core-medication>
     ]
  ] ;
  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 EjemploEmaCoreMedication</b></p><a name=\"EjemploEmaCoreMedication\"> </a><a name=\"hcEjemploEmaCoreMedication\"> </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-ema-core-medication.html\">EMA Core Medication</a></p></div><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 372567009}\">Metformin</span></p><p><b>status</b>: Active</p><p><b>form</b>: <span title=\"Codes:\">Comprimido recubierto</span></p><h3>Ingredients</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Item[x]</b></td><td><b>Strength</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 372567009}\">Metformin</span></td><td>850 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span>/1 comprimido</td></tr></table></div>"
  ] ;
  fhir:Medication.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:372567009 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "372567009" ] ;
       fhir:Coding.display [ fhir:value "Metformin" ]
     ]
  ] ;
  fhir:Medication.status [ fhir:value "active"] ;
  fhir:Medication.form [
     fhir:CodeableConcept.text [ fhir:value "Comprimido recubierto" ]
  ] ;
  fhir:Medication.ingredient [
     fhir:index 0 ;
     fhir:Medication.ingredient.itemCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:372567009 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "372567009" ] ;
         fhir:Coding.display [ fhir:value "Metformin" ]
       ]
     ] ;
     fhir:Medication.ingredient.strength [
       fhir:Ratio.numerator [
         fhir:Quantity.value [ fhir:value "850"^^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 "comprimido" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://emahealth.io/fhir/core/Medication/EjemploEmaCoreMedication.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

