@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/core/Observation/EjemploEmaCoreObservationLab> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "EjemploEmaCoreObservationLab"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://emahealth.io/fhir/core/StructureDefinition/ema-core-observation-lab" ;
       fhir:index 0 ;
       fhir:link <https://emahealth.io/fhir/core/StructureDefinition/ema-core-observation-lab>
     ]
  ] ;
  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 EjemploEmaCoreObservationLab</b></p><a name=\"EjemploEmaCoreObservationLab\"> </a><a name=\"hcEjemploEmaCoreObservationLab\"> </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-observation-lab.html\">EMA Core Laboratory Observation</a></p></div><p><b>basedOn</b>: <a href=\"ServiceRequest-EjemploEmaCoreServiceRequest.html\">ServiceRequest Hemoglobin A1c/Hemoglobin.total in Blood</a></p><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 4548-4}\">Hemoglobin A1c/Hemoglobin.total in Blood</span></p><p><b>subject</b>: <a href=\"Patient-EjemploEmaCorePatient.html\">Carmen Díaz (official) Female, DoB: 1969-04-22 ( Medical record number (use: usual, ))</a></p><p><b>encounter</b>: <a href=\"Encounter-EjemploEmaCoreEncounter.html\">Encounter: status = finished; class = ambulatory (ActCode#AMB); type = Encounter for check up; period = 2026-08-18 09:00:00-0400 --&gt; 2026-08-18 09:30:00-0400</a></p><p><b>effective</b>: 2026-08-18 10:32:00-0400</p><p><b>issued</b>: 2026-08-18 14:20:00-0400</p><p><b>performer</b>: <a href=\"Practitioner-EjemploEmaCorePractitionerLab.html\">Practitioner Valentina Núñez (official)</a></p><p><b>value</b>: 8.2 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></p><p><b>interpretation</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation H}\">High</span></p><p><b>specimen</b>: <a href=\"Specimen-EjemploEmaCoreSpecimen.html\">Specimen: identifier = https://tenant-ejemplo.emahealth.io/fhir/sid/muestra#MUE-2026-0000871; accessionIdentifier = https://tenant-ejemplo.emahealth.io/fhir/sid/acceso#ACC-2026-0000871; status = available; type = Venous blood specimen; receivedTime = 2026-08-18 11:05:00-0400</a></p><h3>ReferenceRanges</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Low</b></td><td><b>High</b></td></tr><tr><td style=\"display: none\">*</td><td>4 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></td><td>5.6 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></td></tr></table></div>"
  ] ;
  fhir:Observation.basedOn [
     fhir:index 0 ;
     fhir:link <https://emahealth.io/fhir/core/ServiceRequest/EjemploEmaCoreServiceRequest> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/EjemploEmaCoreServiceRequest" ]
  ] ;
  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:Coding.display [ fhir:value "Laboratory" ]
     ]
  ] ;
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:4548-4 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "4548-4" ]
     ]
  ] ;
  fhir:Observation.subject [
     fhir:link <https://emahealth.io/fhir/core/Patient/EjemploEmaCorePatient> ;
     fhir:Reference.reference [ fhir:value "Patient/EjemploEmaCorePatient" ]
  ] ;
  fhir:Observation.encounter [
     fhir:link <https://emahealth.io/fhir/core/Encounter/EjemploEmaCoreEncounter> ;
     fhir:Reference.reference [ fhir:value "Encounter/EjemploEmaCoreEncounter" ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2026-08-18T10:32:00-04:00"^^xsd:dateTime] ;
  fhir:Observation.issued [ fhir:value "2026-08-18T14:20:00-04:00"^^xsd:dateTime] ;
  fhir:Observation.performer [
     fhir:index 0 ;
     fhir:link <https://emahealth.io/fhir/core/Practitioner/EjemploEmaCorePractitionerLab> ;
     fhir:Reference.reference [ fhir:value "Practitioner/EjemploEmaCorePractitionerLab" ]
  ] ;
  fhir:Observation.valueQuantity [
     fhir:Quantity.value [ fhir:value "8.2"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "%" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "%" ]
  ] ;
  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" ]
     ]
  ] ;
  fhir:Observation.specimen [
     fhir:link <https://emahealth.io/fhir/core/Specimen/EjemploEmaCoreSpecimen> ;
     fhir:Reference.reference [ fhir:value "Specimen/EjemploEmaCoreSpecimen" ]
  ] ;
  fhir:Observation.referenceRange [
     fhir:index 0 ;
     fhir:Observation.referenceRange.low [
       fhir:Quantity.value [ fhir:value "4"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "%" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "%" ]
     ] ;
     fhir:Observation.referenceRange.high [
       fhir:Quantity.value [ fhir:value "5.6"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "%" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "%" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://emahealth.io/fhir/core/Observation/EjemploEmaCoreObservationLab.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

