@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@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://emahealth.io/fhir/cl/Observation/EjemploEmaObservation> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "EjemploEmaObservation"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://emahealth.io/fhir/cl/StructureDefinition/ema-observation" ;
       fhir:index 0 ;
       fhir:link <https://emahealth.io/fhir/cl/StructureDefinition/ema-observation>
     ]
  ] ;
  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: Observation EjemploEmaObservation</b></p><a name=\"EjemploEmaObservation\"> </a><a name=\"hcEjemploEmaObservation\"> </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-observation.html\">EMA Observation</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category laboratory}\">Laboratory</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 1558-6}\">Fasting glucose [Mass/volume] in Serum or Plasma</span></p><p><b>subject</b>: <a href=\"Patient-EjemploEmaPatient.html\">María Fernández</a></p><p><b>encounter</b>: <a href=\"Encounter-EjemploEmaEncounter.html\">Consulta control diabético</a></p><p><b>effective</b>: 2026-03-10 08:30:00-0300</p><p><b>performer</b>: <a href=\"Practitioner-EjemploEmaPractitioner.html\">Dr. Andrés Soto</a></p><p><b>value</b>: 126 mg/dL<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg/dL = 'mg/dL')</span></p><p><b>interpretation</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation H}\">High</span></p></div>"
  ] ;
  fhir:Observation.status [ fhir:value "final"] ;
  fhir:Observation.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ] ;
       fhir:Coding.code [ fhir:value "laboratory" ]
     ]
  ] ;
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:1558-6 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "1558-6" ]
     ]
  ] ;
  fhir:Observation.subject [
     fhir:link <https://emahealth.io/fhir/cl/Patient/EjemploEmaPatient> ;
     fhir:Reference.reference [ fhir:value "Patient/EjemploEmaPatient" ] ;
     fhir:Reference.display [ fhir:value "María Fernández" ]
  ] ;
  fhir:Observation.encounter [
     fhir:link <https://emahealth.io/fhir/cl/Encounter/EjemploEmaEncounter> ;
     fhir:Reference.reference [ fhir:value "Encounter/EjemploEmaEncounter" ] ;
     fhir:Reference.display [ fhir:value "Consulta control diabético" ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2026-03-10T08:30:00-03:00"^^xsd:dateTime] ;
  fhir:Observation.performer [
     fhir:index 0 ;
     fhir:link <https://emahealth.io/fhir/cl/Practitioner/EjemploEmaPractitioner> ;
     fhir:Reference.reference [ fhir:value "Practitioner/EjemploEmaPractitioner" ] ;
     fhir:Reference.display [ fhir:value "Dr. Andrés Soto" ]
  ] ;
  fhir:Observation.valueQuantity [
     fhir:Quantity.value [ fhir:value "126"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "mg/dL" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "mg/dL" ]
  ] ;
  fhir:Observation.interpretation [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ;
       fhir:Coding.code [ fhir:value "H" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://emahealth.io/fhir/cl/Observation/EjemploEmaObservation.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

