Mailing notifications

rdh61 wrote on Friday, July 09, 2010:

Hi, I posted the following in the “Help” forum, but no reply:-

“Hi, Is it possible with OpenEMR to use the database to set up addressed letters for patient contact by traditional mail (not email)? Thanks.”

Well, I thought it was a sensible question!  Perhaps the answer should be obvious (it ain’t to me!), or perhaps my question is unclear. Let me try again:

The database contains my patients names and addresses. I wish to use that information automatically to print addresses on a standard letter to send to all, or selected, patients. Is this possible and if so, how can it be done?

Many thanks.

visolveemr wrote on Monday, July 12, 2010:

Hi,

I suppose the option “Letter” in openemr can help you little bit for your requirement. Select a patient and click on “Letter” option in drop down of leftnav. Create a template with patient address and save it. Use the same template for the patients to whom you want to send mail.

Thanks,
Vicareplus Team,
services@vicareplus.com

rdh61 wrote on Monday, July 12, 2010:

Thanks for the reply. Unfortunately what you suggest would be unfeasible with tens or hundreds of standard letters.

I use OpenOffice Word Processor, which has a mail merge function, allowing me to connect to a data source in order to address letters. I would like to try to use it to connect to the OpenEMR DB in order to extract and use the relevant address information. In which file is this data contained?

Many thanks.

visolveemr wrote on Monday, July 12, 2010:

Hi,

Use patient_data table to retrieve the patient informations. I suppose you are asking for this.

Thanks,
Vicareplus Team,
services@vicareplus.com

rdh61 wrote on Monday, July 12, 2010:

Well, I would need to know in which file and directory on my computer the information is stored in.

Thanks.

visolveemr wrote on Tuesday, July 13, 2010:

Hi,

Which information you are talking about? Is that the patient information? If so, patient information is not stored in any file or directory. It should be retrieved from DB.

Thanks,
Vicareplus Team,
services@vicareplus.com

rdh61 wrote on Tuesday, July 13, 2010:

Yes, I am interested in retrieving names and addresses from the database automatically using the “mail merge” function of my word processing software, in order to address a standard letter to send to many patients.

I should have thought this would be a basic possibility with this kind of database. “Mail merge” is nothing strange, it has been a standard component of both Microsoft Word and OpenOffice for years, and its function is to retrieve information from databases for precisely this purpose.

In order to do this, I have to tell “mail merge” where to look for the data. So my (simple) question is: Where is the database on my computer?

I am not a computer expert, I am a clinician working as a sole practitioner, trying to get to grips with OpenEMR and to use it for what I see as a very basic and necessary function. If what I am trying to do cannot be done with OpenEMR, please tell it to me straight.

Many thanks.

bradymiller wrote on Tuesday, July 13, 2010:

rdh61,

This information is kept in the openemr database (which is a MySQL database) in the patient_data table. I’d suggest doing a google search for “mail merge” and “mysql” to find numerous tutorials such as below:
http://techrepublic.com.com/5208-7343-0.html?forumID=101&threadID=274683&messageID=2602760

Do a quick read about MySQL on wikipedia in order to gain a better understanding of what your database is.

Your openemr mysql database login information can be found in the library/sqlconf.php file.

-brady

kjs3250 wrote on Tuesday, July 13, 2010:

Hi,

Create a File DSN. The link
http://dev.mysql.com/doc/refman/4.1/en/connector-odbc-configuration-dsn-windows.html#connector-odbc-configuration-dsn-windows-3-51 describes method to create System DSN. In similar manner you can create file DSN and save the file at your preferred location on computer.

Now in open office when you have to select the data source select this file and proceed. You should be able to do it. I have myself not done it but know that it can be done this way.
Kanwaljit Singh

blankev wrote on Tuesday, July 13, 2010:

Please let us know if it works. Since this might be valuable to fill another Wiki page of  “How To”, since if this easy mail merge thing is possible many more difficult tasks and searches to mail specific clients can be done for general mailings.

An other mail problem to be solved is an automatic personal mail for clients on a certain date with different kind of problems. This would require some kind of coding search with expiring data, wiht clients e-mail addres name and problem.

rdh61 wrote on Tuesday, July 13, 2010:

Thank you for all that. I’ll certainly get back and let you know how it goes.

rdh61 wrote on Wednesday, July 14, 2010:

Hi,

The link kindly provided by kjs3250 refers to Windows OS. As I use Ubuntu 9.10, I referred to the following:
http://dev.mysql.com/doc/refman/4.1/en/connector-odbc-configuration-dsn-unix.html

My configuration file (odbc.ini) looks like this:

Driver = /usr/lib/odbc/libmyodbc.so
Description = MySQL ODBC 3.51 Driver DSN
Server = localhost
Port =
User = openemr
Password = (My password as specified in the library/sqlconf.php file)
Database = openemr
Option = 3
Socket = 3306

This is in its default folder /etc/ as System DSN and saved in my home folder as File DSN.

In Open Office mailmerge, if I try to select it as my data source, it does not allow me to proceed with the mailmerge process. The OK button remains inactive so I cannot proceed.

Can anybody see any obvious fault in my odbc.ini file?

Many thanks.

rdh61 wrote on Wednesday, July 14, 2010:

OK, I’ve got it working. I followed the instructions at:
http://wiki.services.openoffice.org/wiki/Connect_MySQL_and_Base#Debian.2FUbuntu

This works. I can now connect to OpenEMR DB with Open Office on Ubuntu for the purpose described above.

Thanks for your help.