{
  "resourceType" : "Bundle",
  "id" : "BundleHbA1cSeguimientoEBAISExample",
  "meta" : {
    "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-bundle-laboratory-result|0.1.0"],
    "security" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
      "code" : "N"
    }]
  },
  "language" : "es",
  "identifier" : {
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:uuid:00000000-0000-4000-8000-000000000003"
  },
  "type" : "document",
  "timestamp" : "2026-04-08T09:45:00-06:00",
  "entry" : [{
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Composition/CompositionHbA1cSeguimientoEBAISExample",
    "resource" : {
      "resourceType" : "Composition",
      "id" : "CompositionHbA1cSeguimientoEBAISExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-composition-laboratory-result|0.1.0"],
        "security" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
          "code" : "N"
        }]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Composition_CompositionHbA1cSeguimientoEBAISExample\"> </a><p>Documento clínico de seguimiento HbA1c en primer nivel de atención.</p></div>"
      },
      "identifier" : [{
        "system" : "https://hl7.or.cr/fhir/sid/documento/cj-3101000200",
        "value" : "DOC-HBA1CSEGUIMIENTOEBAIS"
      }],
      "version" : "1",
      "status" : "final",
      "type" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "11502-2"
        }]
      },
      "subject" : [{
        "reference" : "Patient/PatientHbA1cSeguimientoEBAISExample"
      }],
      "date" : "2026-04-08T09:45:00-06:00",
      "author" : [{
        "reference" : "Organization/OrganizationEBAISGoicoechea2LabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
      }],
      "title" : "Reporte de laboratorio HbA1c - Seguimiento en EBAIS",
      "attester" : [{
        "mode" : {
          "coding" : [{
            "system" : "http://hl7.org/fhir/composition-attestation-mode",
            "code" : "legal"
          }]
        },
        "time" : "2026-04-08T09:45:00-06:00",
        "party" : {
          "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
        }
      }],
      "custodian" : {
        "reference" : "Organization/OrganizationEBAISGoicoechea2Example"
      },
      "section" : [{
        "title" : "Resultados de seguimiento crónico",
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><p>Resultado HbA1c de seguimiento crónico.</p></div>"
        },
        "entry" : [{
          "reference" : "https://hl7.or.cr/fhir/labresult/DiagnosticReport/DiagnosticReportHbA1cSeguimientoEBAISExample"
        }]
      }]
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/DiagnosticReport/DiagnosticReportHbA1cSeguimientoEBAISExample",
    "resource" : {
      "resourceType" : "DiagnosticReport",
      "id" : "DiagnosticReportHbA1cSeguimientoEBAISExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-diagnostic-report-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"DiagnosticReport_DiagnosticReportHbA1cSeguimientoEBAISExample\"> </a><p>Reporte de HbA1c para seguimiento en EBAIS con resultado elevado.</p></div>"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v2-0074",
          "code" : "LAB"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "4548-4"
        }]
      },
      "subject" : {
        "reference" : "Patient/PatientHbA1cSeguimientoEBAISExample"
      },
      "effectiveDateTime" : "2026-04-08T09:10:00-06:00",
      "issued" : "2026-04-08T09:40:00-06:00",
      "performer" : [{
        "reference" : "Organization/OrganizationEBAISGoicoechea2LabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
      }],
      "specimen" : [{
        "reference" : "Specimen/SpecimenHbA1cSeguimientoEBAISExample"
      }],
      "result" : [{
        "reference" : "https://hl7.or.cr/fhir/labresult/Observation/ObservationHbA1cSeguimientoEBAISExample"
      }],
      "note" : [{
        "text" : "Escenario pensado para control longitudinal en red de atención primaria CCSS."
      }],
      "conclusion" : "Resultado HbA1c elevado respecto al rango general; requiere correlación con el plan de seguimiento ambulatorio."
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Observation/ObservationHbA1cSeguimientoEBAISExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "ObservationHbA1cSeguimientoEBAISExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-observation-laboratory-result|0.1.0"],
        "security" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
          "code" : "N"
        }]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Observation_ObservationHbA1cSeguimientoEBAISExample\"> </a><p>Resultado de HbA1c en seguimiento ambulatorio en EBAIS: 6.3%.</p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "system" : "https://hl7.or.cr/fhir/sid/observacion/cj-3101000200",
        "value" : "OBS-HBA1C-002"
      }],
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "4548-4"
        }]
      },
      "subject" : {
        "reference" : "Patient/PatientHbA1cSeguimientoEBAISExample"
      },
      "effectiveDateTime" : "2026-04-08T09:10:00-06:00",
      "issued" : "2026-04-08T09:40:00-06:00",
      "performer" : [{
        "reference" : "Organization/OrganizationEBAISGoicoechea2LabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
      }],
      "valueQuantity" : {
        "value" : 6.3,
        "unit" : "%",
        "system" : "http://unitsofmeasure.org",
        "code" : "%"
      },
      "interpretation" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
          "code" : "H"
        }]
      }],
      "note" : [{
        "text" : "Escenario de control ambulatorio de paciente en seguimiento por alteración glucémica en red CCSS."
      }],
      "method" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "726449005"
        }]
      },
      "specimen" : {
        "reference" : "Specimen/SpecimenHbA1cSeguimientoEBAISExample"
      },
      "referenceRange" : [{
        "low" : {
          "value" : 4,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        },
        "high" : {
          "value" : 5.6,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        },
        "text" : "Resultado por encima del rango general de referencia; correlacionar con contexto clínico y seguimiento en primer nivel."
      }]
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Specimen/SpecimenHbA1cSeguimientoEBAISExample",
    "resource" : {
      "resourceType" : "Specimen",
      "id" : "SpecimenHbA1cSeguimientoEBAISExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-specimen-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Specimen_SpecimenHbA1cSeguimientoEBAISExample\"> </a><p>Muestra de sangre venosa para seguimiento de HbA1c en EBAIS.</p></div>"
      },
      "status" : "available",
      "type" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "122555007"
        }]
      },
      "subject" : {
        "reference" : "Patient/PatientHbA1cSeguimientoEBAISExample"
      },
      "receivedTime" : "2026-04-08T08:50:00-06:00",
      "collection" : {
        "collectedDateTime" : "2026-04-08T08:20:00-06:00"
      }
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Patient/PatientHbA1cSeguimientoEBAISExample",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "PatientHbA1cSeguimientoEBAISExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-patient-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Patient_PatientHbA1cSeguimientoEBAISExample\"> </a><p>Paciente en seguimiento longitudinal de control glucémico en EBAIS.</p></div>"
      },
      "extension" : [{
        "extension" : [{
          "url" : "type",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "76689-9"
            }]
          }
        },
        {
          "url" : "value",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://hl7.org/fhir/administrative-gender",
              "code" : "male"
            }]
          }
        }],
        "url" : "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
      }],
      "identifier" : [{
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
            "code" : "cedula-nacional",
            "display" : "Cédula Nacional"
          }]
        },
        "system" : "https://hl7.or.cr/fhir/sid/cedula-nacional",
        "value" : "108760543"
      }],
      "name" : [{
        "use" : "official",
        "family" : "Jiménez Solano",
        "_family" : {
          "extension" : [{
            "extension" : [{
              "url" : "valor",
              "valueString" : "Jiménez"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-primer-apellido"
          },
          {
            "extension" : [{
              "url" : "valor",
              "valueString" : "Solano"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-segundo-apellido"
          }]
        },
        "given" : ["Carlos",
        "Andrés"]
      }],
      "gender" : "male",
      "birthDate" : "1975-10-09"
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Organization/OrganizationEBAISGoicoechea2LabExample",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "OrganizationEBAISGoicoechea2LabExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-organization-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Organization_OrganizationEBAISGoicoechea2LabExample\"> </a><p>Laboratorio de primer nivel del EBAIS Goicoechea 2.</p></div>"
      },
      "active" : true,
      "name" : "Laboratorio EBAIS Goicoechea 2",
      "partOf" : {
        "reference" : "Organization/OrganizationEBAISGoicoechea2Example"
      }
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Organization/OrganizationEBAISGoicoechea2Example",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "OrganizationEBAISGoicoechea2Example",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-organization-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Organization_OrganizationEBAISGoicoechea2Example\"> </a><p>EBAIS de la CCSS para atención primaria y seguimiento clínico.</p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion-organizacion",
            "code" : "codigo-establecimiento",
            "display" : "Código de establecimiento"
          }]
        },
        "system" : "https://hl7.or.cr/fhir/sid/establecimiento",
        "value" : "cj-3101000200"
      }],
      "active" : true,
      "name" : "EBAIS Goicoechea 2",
      "partOf" : {
        "reference" : "Organization/OrganizationCCSSExample"
      }
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Organization/OrganizationCCSSExample",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "OrganizationCCSSExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-organization-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Organization_OrganizationCCSSExample\"> </a><p>Organización principal de la CCSS para escenarios de laboratorio.</p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion-organizacion",
            "code" : "cedula-juridica",
            "display" : "Cédula Jurídica"
          }]
        },
        "system" : "https://hl7.or.cr/fhir/sid/cedula-juridica",
        "value" : "4000042147"
      }],
      "active" : true,
      "name" : "Caja Costarricense de Seguro Social (CCSS)"
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Practitioner/PractitionerLaboratoryResultExample",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "PractitionerLaboratoryResultExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-practitioner-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"Practitioner_PractitionerLaboratoryResultExample\"> </a><p>Profesional de salud responsable de la validación y reporte de laboratorio.</p></div>"
      },
      "extension" : [{
        "extension" : [{
          "url" : "type",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "76689-9"
            }]
          }
        },
        {
          "url" : "value",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://hl7.org/fhir/administrative-gender",
              "code" : "female"
            }]
          }
        }],
        "url" : "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
      }],
      "identifier" : [{
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
            "code" : "cedula-nacional",
            "display" : "Cédula Nacional"
          }]
        },
        "system" : "https://hl7.or.cr/fhir/sid/cedula-nacional",
        "value" : "123456789"
      },
      {
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-tipo-identificacion",
            "code" : "codigo-colegiado",
            "display" : "Código de colegiado"
          }]
        },
        "system" : "https://hl7.or.cr/fhir/sid/colegiado/cmc",
        "value" : "123456"
      }],
      "active" : true,
      "name" : [{
        "use" : "official",
        "family" : "Ramírez López",
        "_family" : {
          "extension" : [{
            "extension" : [{
              "url" : "valor",
              "valueString" : "Ramírez"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-primer-apellido"
          },
          {
            "extension" : [{
              "url" : "valor",
              "valueString" : "López"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-segundo-apellido"
          }]
        },
        "given" : ["María",
        "José"]
      }],
      "gender" : "female",
      "qualification" : [{
        "identifier" : [{
          "system" : "https://hl7.or.cr/fhir/sid/colegiado/cmc",
          "value" : "123456"
        }],
        "code" : {
          "coding" : [{
            "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-profesion-salud",
            "code" : "medicina",
            "display" : "Medicina"
          }]
        },
        "period" : {
          "start" : "2010-01-01"
        },
        "issuer" : {
          "reference" : "Organization/OrganizationColegioMedicosExample"
        }
      }]
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "PractitionerRoleEBAISGoicoechea2LabExample",
      "meta" : {
        "profile" : ["https://hl7.or.cr/fhir/labresult/StructureDefinition/cr-practitioner-role-laboratory-result|0.1.0"]
      },
      "language" : "es",
      "text" : {
        "status" : "generated",
        "div" : "<div xml:lang=\"es\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><a name=\"PractitionerRole_PractitionerRoleEBAISGoicoechea2LabExample\"> </a><p>Rol del profesional responsable del reporte de HbA1c en laboratorio EBAIS.</p></div>"
      },
      "active" : true,
      "practitioner" : {
        "reference" : "Practitioner/PractitionerLaboratoryResultExample"
      },
      "organization" : {
        "reference" : "Organization/OrganizationEBAISGoicoechea2LabExample"
      },
      "code" : [{
        "coding" : [{
          "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-profesion-salud",
          "code" : "medicina",
          "display" : "Medicina"
        }]
      }]
    }
  }]
}