How to connect wordpress with openemr

It works as written. I have been using it for a long time now. I did make some useful changes to the interface and I have documented them here:

And here:

Psychobabbletools:
The psychobabbletools mods change things on the OpenEMR end as well as the webserve.php end. On the OpenEMR side, I have added multiple changes to make the interface more usable. The webserve.php was significantly modified to work with cartpaujpm and CFDB. You do not have to use this modified webserve.php. CFCB was a great interface that worked with multiple other forms databases including the free CF7 forms application (as well as Ninja Forms and Gravity Forms). Unfortunately CFDB is no longer being updated and so little by little it is not functioning with some of the forms it was designed to work with, CF7 most notably. It still works with Gravity Forms and Ninja. But, I do not know for how long. Also cartpauj PM is written in an older style of html and is not a responsive design for mobile application. I also had some difficulty with cartpauj PM and download limits. I was never able to fish out where the issues was. It was a minor thing. But the non responsive design is becoming a bigger thing.

Sunset-Patient-Portal-with-FrontendPM
I made some modifications in the code to webserve.php to work with FrontendPM as a replacement for cartpauj PM. Frontend PM was modeled on cartpauj PM but has many more features. I have documented those modifications here.

More needs to be done. I am very disappointed that CFDB is not being maintained. So, specific interfaces for specific forms applications are needed. For myself, I really do not like Ninja but I do really like Gravity Forms and CF7. So I will be working on an interface that will work with those two. It would be great if someone else would just pick up CFDB and maintain it but that does not look like it will happen at all.

Craig- Im getting ready to connect wordpress to openemr- I have forms built in gravityforms - were you successful in connecting wordpress/gravityforms to openemr?

Yes I have it working on 5.0.0 using my modifications. I need to make some updates for 5.0.1. I am not done with that. It should be simple. I will do that this week and get the modifications posted on Github.

In order to use the Gravity Forms you will need to add the CFDB plugin:

I am also using a different messaging plug in. It is a paid plugin but much better than the cartpauj-pm plugin:
https://www.shamimsplugins.com/products/front-end-pm-pro/

I will try to get all that up as soon as possible.

–Craig

Awesome! I was dreading having to recreate the litany of forms that are required for this medical cannabis clinic. Thank you for replying. Looking forward to being part of the community as well. This is my first go round with OpenEMR, but looks like this is a solid community and I look forward to giving back

Can anyone point out what I’m doing wrong in connecting a wordpress page that submits something to openemr 5.0.1?

Put my wordpress sitename, admin login and password in openemr setup.

Added a page to my wordpress site, using the ninja demographics one from sunset as a test. It has a button at the bottom called ‘Send’, which looks like it does a ‘store submission’.

When I try that, then go back to openemr and check the cms portal, there’s nothing. Should I login to the wordpress site as a non-admin user when I try this? What else could I be missing?

Ok, found the problem (for now) on this post:

I’m running my own server, so the ssl cert is self-signed. Is there any way around this?

If you’re running a test, and the problem is that your browser isn’t loading the untrusted content, you could simply choose to trust the self-signed certificate. If it’s more complicated than that, though, I’d recommend looking into Let’s Encrypt.

These are my updates for using CFDB plugin with the CMS portal.

With CFDB you can use Gravity Forms, Ninja Forms, CF7 (free), and many form applications. The author was out of commission for a while but he is back and CFDB is continuing to be developped.

My webserve modifications also allow the use of Fronntend PM Pro instead of Cartpauj PM. Cartpauj is not responsive design so very old school. Frontend PM Pro is responsive and much much more powerful.

I have also upgraded the CMS dashboard in OpenEMR to be more useful, automatically switching to the patient that belongs to the form or message and adding more information in the dashboard about the message or form so you know better about what you are clicking into.
I hope this helps.

Craig

Hi @Craig_Tucker ,
Looks like some very nice stuff you have. Would it make sense to get your work into the main codebase?
-brady

Hi Brady,

Thanks. I think what I am doing is fantastic but I do not see others jumping in here. If what I was doing seemed well liked by the community it may be worthwhile to add it in. But I am not seeing anyone really jumping in. So I am not sure if what I am doing is really any good in anyone else’s eyes. If you added it for me, it sure would make my life easier!

It may be that people are not really developing for the Wordpress CMS due to the fact that the set up for the Wordpress integration is not as simple as just installing one plugin. Then, to do what I have done it requires making some modifications to the functions.php fie in wordpress and also making a minor modification to CFDB (adding an id column). I would guess that is too much work for most. And I am a bit of a hack so I can see that I am not the best star to hitch a wagon to in my make it work kind of projects. I would imagine that is part of it too.

But, I think the developer of CFDB would modify his application with this if there was enough of a demand. And I think the developer of Frontend PM would make a openemr/sunset portal addon for his plugin if there was a demand. That would make my modifications much easier. And then it would be wonderful to just develop an interface that works with multiple applications (like CFDB does with multiple forms applications). That is what I would love to see. I really like the webserv.php file. I see lots more of potential here. So I use it in my hacky way but I am not seeing a lot of interest otherwise.

Nevertheless, I am slowly developing a scheduling integration with a paypal feature. I have most of it done I just need to add the routines to the webserv.php file and link it to the OpenEMR calendar. The other piece is adding a link between OpenEMR and the billing plugins for wordpress. That would be nirvana. So regardless I will keep developing for me according to this vision.

1 Like

Hi Chris,

I just posted about my desire to collect member/user/patient data from my Mental Health/Cannabis FB group. It seems like there has to be an easier way. I know Wordpress well, but maybe I just need to brush up on Excel. I just want something that can collect, and then graph.

Laurie

If youre looking for a way to collect data then export and graph said data - the easiest way is to create forms (i personally use gravity forms) that store the results in the wp database. Then you can export that information and bring it into excel for manipulation.

Im using this instance of wordpress and open emr for a medical cannabis consulting clinic here in Florida- so they need a way that the operation can function after the requisite forms are filled out and have a way to document encounters. Open EMR seems to be the way to go as it can collect the forms and patient encounters all in one place for the consulting physician and staff.

1 Like

@brady.miller, @Craig_Tucker
The on site portal is not working for me, hence I am interested in the WP CMS portal. I would like to pursue it.
Therefore updating it, or a good tutorial might be a good idea. Furthermore, once I am set up, I would like to maybe organize the documentation, or start a documentation project, such that the documentation can stay on top of the programing.

For example, when something new in the programing side is added, the programmer sends me a message, and I, along with other volunteer documenters get a message, such that we get started with screenshots and tutorials. That way, by the time there is a release, there are instructions as well.
sandra

Hello Sandra,

Are you saying that you are interested in updating the WP CMS portal? I would be happy to partner up on that and share what I have done and have been using for years. I have also been using an intermediate program with the sunset patient portal, CFDB, which may not be the best solution. I have been using it because it integrates multiple forms applications including Gravity Forms which is my preferred forms application. I had Frontend PM Pro working until a couple years ago and I did not have time to re work that but it is a good replacement for Cartpauj PM. I still use Frontend PM. You have to lock it down for HIPAA compliance so only communication takes place between admin and users. I have also made adjustments to the dashboard on the OpenEMR side to make it more usable too.

The webserver model used in the sunset patient portal is likely out of date. It probably should be built on the newer Wordpress API. I worry that the code for the webserver will just stop working since it has not bee updated in since I think 2012 other than the modifications I have done for my own purposes.

If you wanted to start a project on git hub that would probably be best. We could probably use some guidance from the OpenEMR senior developers.

1 Like

Yes, that is what I am saying. I was let go from my job (ugh, I think they did me a favor actually, I did not like their EMR, now I can work 100% with OpenEMR instead) and I am trying to setup my own thing.
I would like to make it low cost, such that I need not transfer a huge markup to the patients/insurance companies (which I believe is partially causing the high cost of healthcare nowadays.) Also such that I need not turn anyone away.
I would like to connect my new practice to the portal such that most of the patients can enter as much of the data as possible (not sure how much of this can really be done). Since I am really not having much to invest up front (nothing really, other than my hard work).
I am stuck on the patient portal. I am stuck with the onsite portal with this error:

Fatal Error:

Trying to access array offset on value of type bool in translation.inc.php at line 45

Original Stack Trace:

#0 /usr/local/www/openemr/library/translation.inc.php(45): ExceptionThrower::HandleError()
#1 /usr/local/www/openemr/library/htmlspecialchars.inc.php(138): xl()
#2 /usr/local/www/openemr/library/htmlspecialchars.inc.php(158): hsc_private_xl_or_warn()
#3 /usr/local/www/openemr/portal/patient/templates/ProviderHome.tpl.php(12): xlt()
#4 /usr/local/www/openemr/portal/patient/fwk/libs/savant/Savant3.php(1022): include(’/usr/local/www/…’)
#5 /usr/local/www/openemr/portal/patient/fwk/libs/savant/Savant3.php(958): Savant3->fetch()
#6 /usr/local/www/openemr/portal/patient/fwk/libs/savant/Savant3.php(944): Savant3->getOutput()
#7 /usr/local/www/openemr/portal/patient/fwk/libs/verysimple/Phreeze/SavantRenderEngine.php(69): Savant3->display()
#8 /usr/local/www/openemr/portal/patient/fwk/libs/verysimple/Phreeze/Controller.php(850): SavantRenderEngine->display()
#9 /usr/local/www/openemr/portal/patient/libs/Controller/ProviderController.php(51): Controller->Render()
#10 /usr/local/www/openemr/portal/patient/fwk/libs/verysimple/Phreeze/Dispatcher.php(169): ProviderController->Home()
#11 /usr/local/www/openemr/portal/patient/index.php(46): Dispatcher::Dispatch()
#12 {main}

In addition to the above error, the default error template could not be displayed:
Trying to access array offset on value of type bool in translation.inc.php at line 45
#0 /usr/local/www/openemr/library/translation.inc.php(45): ExceptionThrower::HandleError()
#1 /usr/local/www/openemr/library/htmlspecialchars.inc.php(138): xl()
#2 /usr/local/www/openemr/library/htmlspecialchars.inc.php(158): hsc_private_xl_or_warn()
#3 /usr/local/www/openemr/portal/patient/templates/DefaultErrorFatal.tpl.php(9): xlt()
#4 /usr/local/www/openemr/portal/patient/fwk/libs/savant/Savant3.php(1022): include(’/usr/local/www/…’)
#5 /usr/local/www/openemr/portal/patient/fwk/libs/savant/Savant3.php(958): Savant3->fetch()
#6 /usr/local/www/openemr/portal/patient/fwk/libs/savant/Savant3.php(944): Savant3->getOutput()
#7 /usr/local/www/openemr/portal/patient/fwk/libs/verysimple/Phreeze/SavantRenderEngine.php(69): Savant3->display()
#8 /usr/local/www/openemr/portal/patient/index.php(70): SavantRenderEngine->display()
#9 {main}

And with the wp cms portal, I am stuck because I have not been able to find a good tutorial. The old tutorial is not really working with openemr 5.0.2. The ninja forms kinda broke my installation. And some of the plugins no longer exists.

I am actually interested in updating the documentation too.

Usually any issue with running onsite portal is because of rewrite. I don’t know if portal is running on anything other than apache. If is a nginx issue then be worthwhile solving.

I’m befuddled by exception. One, are you getting this from the Portal Dashboard?
Have you tried logging into portal?

error is from misc --> portal dashboard
I use nginx

I am not able to login
I get the option to reset credentials but nothing happens. can I create a user for login in? which are the user tables? For the onsite portal? I mean, how could I login as a provider?

This is an outside view
This is the reason I wanted to play around with the Nginx dockers, but those did not work for me this time.
I would love to fix this problem.
How do I create a login for a patient?
I honestly just don’t remember how to do anything in openemr. I don’t even remember how to open a soap note.

This troubles me but more on that later. F
or now this is where the provider manages portal patient interactions such as review change audits/mail/chat and patient templates.

Much has changed since you last used.
To create a login you bring up patient chart then click create portal credentials. First you need to ensure patient has allow portal in choices and an email in both contact and secure(direct) email. Allow email will send credentials to patient email if practice has smtp setup in Notifications. I have a forum thread on this somewhere.

What I mean, is I have some test patients in the database, I can create credentials and add them to the tables via phpmyadmin to try to login from the patient portal to see if that is working.
But I would need to know where to store the information in the tables. I could also just do it from inside openemr.
If there is a working docker/nginx demo let me know. I will be happy to trouble shoot.