Audit logs
How to audit access to patient data in the logs
- The patient UUID
In the Heap UI, go to
Events
and in the list of custom events, select Viewed Patient X
.
Select Viewed Patient Event
In the event definition section, scroll down to the
Edit Event Criteria
section, update the patientId
filter with the patient ID and click on "UPDATE EVENT".
Update Event Criteria
In the
Reports/Auditing
section, select the Users who have viewed patient X in last three months
report.
Select report
In the report page that opens up, click on "RUN QUERY" to generate the report and get all the User IDs that have viewed a particular patient.

Run Query
- The user UUID
In the Heap UI, go to the
Reports/Auditing
section, and select the All patients viewed by user Y in 3 months
report.
Select Report
In the report detail page, update the
userId
filter with the UUID of the user to search for and click on "RUN QUERY".
Select Viewed Patient Event
Click on the "SHOW RAW EVENTS" button to view the detailed list of events.

Show Raw Events
In the list of raw events that shows up, look for the event
ViewedPatient
. Clicking on it will show detailed properties of that particular event. It should contain a property patientId
which indicates the patient whose details this user looked at. Looking over all the events (Don't forget to click on "Show More" to load pages of raw events), the patient IDs viewed by this user can be extracted.

Last modified 4yr ago