Please review the code for ability to upload multiple files at one time to document tree categories.
The functionality is implemented at “Patient Demographics > Documents” with a provision to upload multiple files from the local disk using the browse button to the selected tree category in a single click.
One simple fix was required (to get uploading encrypted docs to word with couchdb), which I just did since simple. Otherwise, code tested well and looks good. I committed your code (and my fix) to sourceforge.