{
  "resourceType" : "Bundle",
  "id" : "BundleHbA1cTamizajeEBAISExample",
  "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-000000000002"
  },
  "type" : "document",
  "timestamp" : "2026-04-08T08:30:00-06:00",
  "entry" : [{
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Composition/CompositionHbA1cTamizajeEBAISExample",
    "resource" : {
      "resourceType" : "Composition",
      "id" : "CompositionHbA1cTamizajeEBAISExample",
      "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_CompositionHbA1cTamizajeEBAISExample\"> </a><p>Documento clínico de tamizaje HbA1c emitido por EBAIS.</p></div>"
      },
      "identifier" : [{
        "system" : "https://hl7.or.cr/fhir/sid/documento/cj-3101000200",
        "value" : "DOC-HBA1CTAMIZAJEEBAIS"
      }],
      "version" : "1",
      "status" : "final",
      "type" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "11502-2"
        }]
      },
      "subject" : [{
        "reference" : "Patient/PatientHbA1cTamizajeEBAISExample"
      }],
      "date" : "2026-04-08T08:30:00-06:00",
      "author" : [{
        "reference" : "Organization/OrganizationEBAISGoicoechea2LabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
      }],
      "title" : "Reporte de laboratorio HbA1c - Tamizaje en EBAIS",
      "attester" : [{
        "mode" : {
          "coding" : [{
            "system" : "http://hl7.org/fhir/composition-attestation-mode",
            "code" : "legal"
          }]
        },
        "time" : "2026-04-08T08:30:00-06:00",
        "party" : {
          "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
        }
      }],
      "custodian" : {
        "reference" : "Organization/OrganizationEBAISGoicoechea2Example"
      },
      "section" : [{
        "title" : "Resultados de tamizaje metabólico",
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><p>Resultado HbA1c de tamizaje metabólico.</p></div>"
        },
        "entry" : [{
          "reference" : "https://hl7.or.cr/fhir/labresult/DiagnosticReport/DiagnosticReportHbA1cTamizajeEBAISExample"
        }]
      }]
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/DiagnosticReport/DiagnosticReportHbA1cTamizajeEBAISExample",
    "resource" : {
      "resourceType" : "DiagnosticReport",
      "id" : "DiagnosticReportHbA1cTamizajeEBAISExample",
      "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_DiagnosticReportHbA1cTamizajeEBAISExample\"> </a><p>Reporte de HbA1c para tamizaje en EBAIS con resultado dentro de rango.</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/PatientHbA1cTamizajeEBAISExample"
      },
      "effectiveDateTime" : "2026-04-08T08:00:00-06:00",
      "issued" : "2026-04-08T08:25:00-06:00",
      "performer" : [{
        "reference" : "Organization/OrganizationEBAISGoicoechea2LabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
      }],
      "specimen" : [{
        "reference" : "Specimen/SpecimenHbA1cTamizajeEBAISExample"
      }],
      "result" : [{
        "reference" : "https://hl7.or.cr/fhir/labresult/Observation/ObservationHbA1cTamizajeEBAISExample"
      }],
      "note" : [{
        "text" : "El reporte corresponde a toma y procesamiento realizados en el primer nivel de atención."
      }],
      "conclusion" : "Resultado HbA1c dentro del rango general de referencia para tamizaje."
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Observation/ObservationHbA1cTamizajeEBAISExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "ObservationHbA1cTamizajeEBAISExample",
      "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_ObservationHbA1cTamizajeEBAISExample\"> </a><p>Resultado de HbA1c para tamizaje en EBAIS: 5.4%.</p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "system" : "https://hl7.or.cr/fhir/sid/observacion/cj-3101000200",
        "value" : "OBS-HBA1C-001"
      }],
      "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/PatientHbA1cTamizajeEBAISExample"
      },
      "effectiveDateTime" : "2026-04-08T08:00:00-06:00",
      "issued" : "2026-04-08T08:25:00-06:00",
      "performer" : [{
        "reference" : "Organization/OrganizationEBAISGoicoechea2LabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleEBAISGoicoechea2LabExample"
      }],
      "valueQuantity" : {
        "value" : 5.4,
        "unit" : "%",
        "system" : "http://unitsofmeasure.org",
        "code" : "%"
      },
      "interpretation" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
          "code" : "N"
        }]
      }],
      "note" : [{
        "text" : "Escenario de tamizaje preventivo en EBAIS para persona sin antecedente documentado de diabetes."
      }],
      "method" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "726449005"
        }]
      },
      "specimen" : {
        "reference" : "Specimen/SpecimenHbA1cTamizajeEBAISExample"
      },
      "referenceRange" : [{
        "low" : {
          "value" : 4,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        },
        "high" : {
          "value" : 5.6,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        },
        "text" : "Tamizaje ambulatorio: rango de referencia general 4.0% - 5.6%."
      }]
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Specimen/SpecimenHbA1cTamizajeEBAISExample",
    "resource" : {
      "resourceType" : "Specimen",
      "id" : "SpecimenHbA1cTamizajeEBAISExample",
      "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_SpecimenHbA1cTamizajeEBAISExample\"> </a><p>Muestra de sangre venosa para tamizaje de HbA1c en EBAIS.</p></div>"
      },
      "status" : "available",
      "type" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "122555007"
        }]
      },
      "subject" : {
        "reference" : "Patient/PatientHbA1cTamizajeEBAISExample"
      },
      "receivedTime" : "2026-04-08T07:35:00-06:00",
      "collection" : {
        "collectedDateTime" : "2026-04-08T07:10:00-06:00"
      }
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Patient/PatientHbA1cTamizajeEBAISExample",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "PatientHbA1cTamizajeEBAISExample",
      "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_PatientHbA1cTamizajeEBAISExample\"> </a><p>Paciente en escenario de tamizaje metabólico 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" : "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" : "201230456"
      }],
      "name" : [{
        "use" : "official",
        "family" : "Vargas Rojas",
        "_family" : {
          "extension" : [{
            "extension" : [{
              "url" : "valor",
              "valueString" : "Vargas"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-primer-apellido"
          },
          {
            "extension" : [{
              "url" : "valor",
              "valueString" : "Rojas"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-segundo-apellido"
          }]
        },
        "given" : ["Laura",
        "María"]
      }],
      "gender" : "female",
      "birthDate" : "1987-03-22"
    }
  },
  {
    "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"
        }]
      }]
    }
  }]
}