yehster wrote on Friday, February 22, 2013:
More work sponsored by Mi2 at Dr. Kay’s request.
https://github.com/yehster/openemr/tree/document_notes_owner
The notes for documents (under demographics>documents) were not properly setting the “owner” field in the notes table.
Thus there was no way to tell who created a given note.
This branch corrects that.
As far as I can tell, there’s no “standard way” to get a user’s Name/Username info from a user ID, so I added a function getUserIDInfo in user.inc. From what I can tell, other code typically does a join with the users table. (Which makes sense). However, if someone is aware of such method, I’ll switch.