Auto document upload

sdeitsch wrote on Monday, August 24, 2009:

I’m trying to automate the process of adding a document to a patient record.  What I would like is  a "watch’ folder wherein documents are dropped and then imported into openemr.  The filename can be a patient id or similar so the system knows where to attach it.  Is there a simple script, template or cron job I could do to accomplish this.  Any help at all is greatly appreciated.

sdeitsch wrote on Thursday, August 27, 2009:

nobody? after three days?  hmmmmmm. 
So I went ahead and deployed clearhealth instead which ‘claimed’ to have a programmable document manager, but it does not work, so I created a custom scripting solution that puts the document in the correct folder and some tsql in a script that updates the db and done.
I still would have preferred to use openemr, but without a single reply it was a pointless endeavour.
thanks anyway, and should anyone in the future read this, I’m still interested in a solution that uses OpenEMR.
thank you

aperezcrespo wrote on Thursday, August 27, 2009:

HI
  Don’t be so hard on the group.  They’ ve been real busy getting the new version out and doing a great job at it.
Try it out and give it another crack.

sdeitsch wrote on Friday, August 28, 2009:

I have to say, that was a GREAT response, ABSOLUTELY I will give you another chance. After all, you ASKED me to. :slight_smile:
The truth is that I am much calmer having satisfied this client’s immediate needs with clearhealth, but I hate clearhealth, it is flawed and buggy and the guy on their forum was kind of snotty to me, and I STILL had to create my own solution unaided.
I hope you don’t hold my previous tone against me and I hope to become an OpenEMR master, donate and maybe even help develop.
Thank you for your response, it is just nice to hear a voice now and again.

ideaman911 wrote on Wednesday, September 02, 2009:

Stephen;

I am not yet aware of an "auto" document loader which handles more than a single document at a time, unless all pages of a type are part of the same filename (ie a multi-page pdf for example).  Version 3.0.1 under windows works fine for one document at a time.  Assuming you have a folder created where you have documents placed, ideally named with purpose and patient ID of some kind (we use LastFirst-purp-date.typ) you have only to have that patient open, select "Documents" and then click the specific section you want to store it (eg Intake, Ins Card, etc.) and browse to that folder and click on that document.  BUT you must THEN click the "Upload" button, which works like the "Save" throughout the rest of OpenEMR.

The only "glitch" is that identical filenames will have a ".number" added at right for the second + such file uploaded, which will interfere with the browser viewer launches.  Otherwise, if you have defined a viewer, or "app", for the browser for that file type, it will launch from the browser directly from within OpenEMR.

PS:  I hope for both of you that you are not jumping between EMR systems too much, or you will be bound to confuse (read overlook) something ;-)  Hope that helps.

Joe Holzer    Idea Man
http://www.holzerent.com

omo66 wrote on Sunday, September 06, 2009:

please see this link.

http://sourceforge.net/forum/message.php?msg_id=7434229

cfapress wrote on Friday, September 11, 2009:

Hi Stephen,

I’ve fully automated the attachment of a document to a patient. Omar provided a link to a prior message that I posted that detailed the code I created.

I’d be happy to answer any questions you have.

Jason