<?xml version="1.0" encoding="UTF-8"?>

<AuditEvent xmlns="http://hl7.org/fhir">
  <id value="ejemplo-auditoria-busqueda-documentos"/>
  <meta>
    <profile value="https://hl7.or.cr/fhir/core/StructureDefinition/cr-auditevent"/>
  </meta>
  <language value="es"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Narrativa generada: AuditEvent ejemplo-auditoria-busqueda-documentos</b></p><a name="ejemplo-auditoria-busqueda-documentos"> </a><a name="hcejemplo-auditoria-busqueda-documentos"> </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">Perfil: <a href="StructureDefinition-cr-auditevent.html">Evento de auditoría</a></p></div><p><b>category</b>: <span title="Códigos:{http://terminology.hl7.org/CodeSystem/audit-event-type rest}">RESTful Operation</span></p><p><b>code</b>: <span title="Códigos:{http://hl7.org/fhir/restful-interaction search-type}">search-type</span></p><p><b>action</b>: Read</p><p><b>occurred</b>: 2026-10-01 10:20:00-0600</p><p><b>recorded</b>: 2026-10-01 10:20:01-0600</p><h3>Outcomes</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Code</b></td></tr><tr><td style="display: none">*</td><td><a href="http://hl7.org/fhir/R5/codesystem-issue-severity.html#issue-severity-success">Issue Severity: success</a> (Operation Successful)</td></tr></table><p><b>authorization</b>: <span title="Códigos:{http://terminology.hl7.org/CodeSystem/v3-ActReason TREAT}">treatment</span></p><p><b>patient</b>: <a href="Patient-ejemplo-paciente-nacional.html">Laura Patricia Solís Araya</a></p><blockquote><p><b>agent</b></p><p><b>type</b>: <span title="Códigos:{http://dicom.nema.org/resources/ontology/DCM 110152}">Destination Role ID</span></p><p><b>who</b>: <a href="Device-ejemplo-sistema-hce-hospital.html">Expediente electrónico del Hospital Privado de Ejemplo</a></p><p><b>requestor</b>: false</p><p><b>network</b>: CR/COM/3101123456/hce</p></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: <span title="Códigos:{http://dicom.nema.org/resources/ontology/DCM 110153}">Source Role ID</span></p><p><b>who</b>: <a href="Device-ejemplo-sistema-repositorio.html">Repositorio de documentos del HIE</a></p><p><b>requestor</b>: false</p><p><b>network</b>: <a href="https://hie.example.cr/fhir">https://hie.example.cr/fhir</a></p></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: <span title="Códigos:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType IRCP}">information recipient</span></p><p><b>who</b>: <a href="PractitionerRole-ejemplo-rol-medicina-interna.html">Ricardo Castro Brenes</a></p><p><b>requestor</b>: true</p></blockquote><h3>Sources</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Observer</b></td><td><b>Type</b></td></tr><tr><td style="display: none">*</td><td><a href="Device-ejemplo-sistema-repositorio.html">Repositorio de documentos del HIE</a></td><td><span title="Códigos:{http://terminology.hl7.org/CodeSystem/security-source-type 4}">Application Server</span></td></tr></table><blockquote><p><b>entity</b></p><p><b>what</b>: <a href="Patient-ejemplo-paciente-nacional.html">Laura Patricia Solís Araya</a></p><p><b>role</b>: <span title="Códigos:{http://terminology.hl7.org/CodeSystem/object-role 1}">Patient</span></p></blockquote><blockquote><p><b>entity</b></p><p><b>role</b>: <span title="Códigos:{http://terminology.hl7.org/CodeSystem/object-role 24}">Query</span></p><p><b>query</b>: <code>RG9jdW1lbnRSZWZlcmVuY2U/cGF0aWVudD1QYXRpZW50L2VqZW1wbG8tcGFjaWVudGUtbmFjaW9uYWw=</code></p></blockquote></div>
  </text>
  <category>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/audit-event-type"/>
      <code value="rest"/>
      <display value="RESTful Operation"/>
    </coding>
  </category>
  <code>
    <coding>
      <system value="http://hl7.org/fhir/restful-interaction"/>
      <code value="search-type"/>
      <display value="search-type"/>
    </coding>
  </code>
  <action value="R"/>
  <occurredDateTime value="2026-10-01T10:20:00-06:00"/>
  <recorded value="2026-10-01T10:20:01-06:00"/>
  <outcome>
    <code>
      <system value="http://hl7.org/fhir/issue-severity"/>
      <code value="success"/>
      <display value="Operation Successful"/>
    </code>
  </outcome>
  <authorization>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
      <code value="TREAT"/>
      <display value="treatment"/>
    </coding>
  </authorization>
  <patient>
    <reference value="Patient/ejemplo-paciente-nacional"/>
    <display value="Laura Patricia Solís Araya"/>
  </patient>
  <agent>
    <type>
      <coding>
        <system value="http://dicom.nema.org/resources/ontology/DCM"/>
        <code value="110152"/>
        <display value="Destination Role ID"/>
      </coding>
    </type>
    <who>
      <reference value="Device/ejemplo-sistema-hce-hospital"/>
      <display value="Expediente electrónico del Hospital Privado de Ejemplo"/>
    </who>
    <requestor value="false"/>
    <networkString value="CR/COM/3101123456/hce"/>
  </agent>
  <agent>
    <type>
      <coding>
        <system value="http://dicom.nema.org/resources/ontology/DCM"/>
        <code value="110153"/>
        <display value="Source Role ID"/>
      </coding>
    </type>
    <who>
      <reference value="Device/ejemplo-sistema-repositorio"/>
      <display value="Repositorio de documentos del HIE"/>
    </who>
    <requestor value="false"/>
    <networkUri value="https://hie.example.cr/fhir"/>
  </agent>
  <agent>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
        <code value="IRCP"/>
        <display value="information recipient"/>
      </coding>
    </type>
    <who>
      <reference value="PractitionerRole/ejemplo-rol-medicina-interna"/>
      <display value="Ricardo Castro Brenes"/>
    </who>
    <requestor value="true"/>
  </agent>
  <source>
    <observer>
      <reference value="Device/ejemplo-sistema-repositorio"/>
      <display value="Repositorio de documentos del HIE"/>
    </observer>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/security-source-type"/>
        <code value="4"/>
        <display value="Application Server"/>
      </coding>
    </type>
  </source>
  <entity>
    <what>
      <reference value="Patient/ejemplo-paciente-nacional"/>
      <display value="Laura Patricia Solís Araya"/>
    </what>
    <role>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/object-role"/>
        <code value="1"/>
        <display value="Patient"/>
      </coding>
    </role>
  </entity>
  <entity>
    <role>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/object-role"/>
        <code value="24"/>
        <display value="Query"/>
      </coding>
    </role>
    <query value="RG9jdW1lbnRSZWZlcmVuY2U/cGF0aWVudD1QYXRpZW50L2VqZW1wbG8tcGFjaWVudGUtbmFjaW9uYWw="/>
  </entity>
</AuditEvent>