Audit functionality - reporting on database accesses

Hi there,

I am working on an Audit tool for recording access to personal data. I am using OpenMRS as a demo tool to help me build out my SDK.

I placed some code in the following file: openmrs-core/api/src/main/java/org/openmrs/api/db/hibernate/

As part of the onSave, onLoad and onDelete I send the name of the user and the entity to my own API.

Is the the best way to capture data accesses? When I launch the application, I see that there are millions of accesses to different rows.

Thanks in advance for your help, Mick

Is this of help?

Yes @dkayiwa, it is very helpful.

Is it normal on start-up that it can load over 1,000,000 table columns? Reading from the Intercetors produces a lot of data accesses.

Do you have some sort of log or dump for this?