{
  "resourceType" : "Bundle",
  "id" : "BundleHbA1cLaboratoryResultDocumentExample",
  "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-000000000005"
  },
  "type" : "document",
  "timestamp" : "2026-04-07T09:35:00-06:00",
  "entry" : [{
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Composition/CompositionHbA1cLaboratoryResultExample",
    "resource" : {
      "resourceType" : "Composition",
      "id" : "CompositionHbA1cLaboratoryResultExample",
      "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_CompositionHbA1cLaboratoryResultExample\"> </a><p>Documento clínico de resultados de laboratorio para prueba HbA1c.</p></div>"
      },
      "identifier" : [{
        "system" : "https://hl7.or.cr/fhir/sid/documento/cj-3101000100",
        "value" : "DOC-HBA1C"
      }],
      "version" : "1",
      "status" : "final",
      "type" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "11502-2"
        }]
      },
      "subject" : [{
        "reference" : "Patient/PatientLaboratoryResultExample"
      }],
      "date" : "2026-04-07T09:35:00-06:00",
      "author" : [{
        "reference" : "Organization/OrganizationHospitalMexicoLabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleHospitalMexicoLabExample"
      }],
      "title" : "Reporte de laboratorio HbA1c",
      "attester" : [{
        "mode" : {
          "coding" : [{
            "system" : "http://hl7.org/fhir/composition-attestation-mode",
            "code" : "legal"
          }]
        },
        "time" : "2026-04-07T09:35:00-06:00",
        "party" : {
          "reference" : "PractitionerRole/PractitionerRoleHospitalMexicoLabExample"
        }
      }],
      "custodian" : {
        "reference" : "Organization/OrganizationHospitalMexicoExample"
      },
      "section" : [{
        "title" : "Resultados de laboratorio",
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\"><p>Resultado de HbA1c del paciente.</p></div>"
        },
        "entry" : [{
          "reference" : "https://hl7.or.cr/fhir/labresult/DiagnosticReport/DiagnosticReportHbA1cLaboratoryResultExample"
        }]
      }]
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/DiagnosticReport/DiagnosticReportHbA1cLaboratoryResultExample",
    "resource" : {
      "resourceType" : "DiagnosticReport",
      "id" : "DiagnosticReportHbA1cLaboratoryResultExample",
      "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_DiagnosticReportHbA1cLaboratoryResultExample\"> </a><p>Reporte de laboratorio de HbA1c con resultado superior al rango esperado.</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/PatientLaboratoryResultExample"
      },
      "effectiveDateTime" : "2026-04-07T09:00:00-06:00",
      "issued" : "2026-04-07T09:30:00-06:00",
      "performer" : [{
        "reference" : "Organization/OrganizationHospitalMexicoLabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleHospitalMexicoLabExample"
      }],
      "specimen" : [{
        "reference" : "Specimen/SpecimenHbA1cLaboratoryResultExample"
      }],
      "result" : [{
        "reference" : "https://hl7.or.cr/fhir/labresult/Observation/ObservationHbA1cLaboratoryResultExample"
      }],
      "conclusion" : "Resultado de HbA1c por encima del rango esperado para control glucémico normal."
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Observation/ObservationHbA1cLaboratoryResultExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "ObservationHbA1cLaboratoryResultExample",
      "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_ObservationHbA1cLaboratoryResultExample\"> </a><p>Resultado de HbA1c en sangre venosa: 7.1%.</p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "system" : "https://hl7.or.cr/fhir/sid/observacion/cj-3101000100",
        "value" : "OBS-HBA1C-004"
      }],
      "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/PatientLaboratoryResultExample"
      },
      "effectiveDateTime" : "2026-04-07T09:00:00-06:00",
      "issued" : "2026-04-07T09:30:00-06:00",
      "performer" : [{
        "reference" : "Organization/OrganizationHospitalMexicoLabExample"
      },
      {
        "reference" : "PractitionerRole/PractitionerRoleHospitalMexicoLabExample"
      }],
      "valueQuantity" : {
        "value" : 7.1,
        "unit" : "%",
        "system" : "http://unitsofmeasure.org",
        "code" : "%"
      },
      "interpretation" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
          "code" : "H"
        }]
      }],
      "method" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "726449005"
        }]
      },
      "specimen" : {
        "reference" : "Specimen/SpecimenHbA1cLaboratoryResultExample"
      },
      "referenceRange" : [{
        "text" : "Rango de referencia para adulto: 4.0% - 5.6%"
      }]
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Specimen/SpecimenHbA1cLaboratoryResultExample",
    "resource" : {
      "resourceType" : "Specimen",
      "id" : "SpecimenHbA1cLaboratoryResultExample",
      "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_SpecimenHbA1cLaboratoryResultExample\"> </a><p>Muestra de sangre venosa para análisis de HbA1c.</p></div>"
      },
      "status" : "available",
      "type" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "122555007"
        }]
      },
      "subject" : {
        "reference" : "Patient/PatientLaboratoryResultExample"
      },
      "receivedTime" : "2026-04-07T08:45:00-06:00",
      "collection" : {
        "collectedDateTime" : "2026-04-07T08:15:00-06:00"
      }
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Patient/PatientLaboratoryResultExample",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "PatientLaboratoryResultExample",
      "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_PatientLaboratoryResultExample\"> </a><p>Paciente de referencia para ejemplos de resultados 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" : "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" : "123456789"
      }],
      "name" : [{
        "use" : "official",
        "family" : "Alvarado de la O",
        "_family" : {
          "extension" : [{
            "extension" : [{
              "url" : "valor",
              "valueString" : "Alvarado"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-primer-apellido"
          },
          {
            "extension" : [{
              "url" : "valor",
              "valueString" : "de la O"
            }],
            "url" : "https://hl7.or.cr/fhir/core/StructureDefinition/cr-segundo-apellido"
          }]
        },
        "given" : ["Esteba",
        "Francisco"]
      }],
      "gender" : "male",
      "birthDate" : "1980-05-15"
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Organization/OrganizationHospitalMexicoLabExample",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "OrganizationHospitalMexicoLabExample",
      "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_OrganizationHospitalMexicoLabExample\"> </a><p>Laboratorio clínico del Hospital México para procesamiento de HbA1c.</p></div>"
      },
      "active" : true,
      "name" : "Laboratorio Clínico Hospital México",
      "partOf" : {
        "reference" : "Organization/OrganizationHospitalMexicoExample"
      }
    }
  },
  {
    "fullUrl" : "https://hl7.or.cr/fhir/labresult/Organization/OrganizationHospitalMexicoExample",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "OrganizationHospitalMexicoExample",
      "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_OrganizationHospitalMexicoExample\"> </a><p>Hospital público de la CCSS que participa en reportes 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" : "3101000100"
      }],
      "active" : true,
      "name" : "Hospital México",
      "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/PractitionerRoleHospitalMexicoLabExample",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "PractitionerRoleHospitalMexicoLabExample",
      "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_PractitionerRoleHospitalMexicoLabExample\"> </a><p>Rol profesional del laboratorio del Hospital México para reporte de HbA1c.</p></div>"
      },
      "active" : true,
      "practitioner" : {
        "reference" : "Practitioner/PractitionerLaboratoryResultExample"
      },
      "organization" : {
        "reference" : "Organization/OrganizationHospitalMexicoLabExample"
      },
      "code" : [{
        "coding" : [{
          "system" : "https://hl7.or.cr/fhir/terminology/CodeSystem/cr-profesion-salud",
          "code" : "medicina",
          "display" : "Medicina"
        }]
      }]
    }
  }]
}