# CMS Portal update and Frontend PM to replace cartpauj-pm

**URL:** <https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881>\
**Category:** OpenEMR Development\
**Created:** [August 14, 2017, 6:49pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881 "2017-08-14T18:49:16Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [September 8, 2017, 9:55pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/21 "2017-09-08T21:55:36Z")

</div>

You might try escaping the uri and file name. Maybe cartpauj-pm is escaping and Frontend PM doesn’t.

---

<div class="post-metadata">

**Author:** ![Craig\_Tucker](https://community.open-emr.org/user_avatar/community.open-emr.org/craig_tucker/32/11112_2.png) [@Craig\_Tucker](https://community.open-emr.org/u/Craig_Tucker)\
**Post date:** [September 8, 2017, 9:58pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/22 "2017-09-08T21:58:42Z")

</div>

I found the issue, I looked at the documents table and found that the mime type is not importing. That should be easy to fix. Thanks for bearing with me.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [September 8, 2017, 10:00pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/23 "2017-09-08T22:00:28Z")

</div>

Didn’t do much but glad you are on your way.

---

<div class="post-metadata">

**Author:** ![Craig\_Tucker](https://community.open-emr.org/user_avatar/community.open-emr.org/craig_tucker/32/11112_2.png) [@Craig\_Tucker](https://community.open-emr.org/u/Craig_Tucker)\
**Post date:** [September 9, 2017, 2:03am UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/24 "2017-09-09T02:03:23Z")

</div>

My working modifications are now posted at:

> <https://github.com/CraigT543/Sunset-Patient-Portal-with-FrontendPM/blob/master/FrontendPMmods.php>

My only concern now is the complexity of my queries. They work. But I probably did not write the most graceful solution. I did not post these to a full webserve.php file because they can be pasted into the standard one that is built for Ninja forms. The build I am using I designed to work with DFCB instead. CFDB was great because it worked with multiple forms application but the developer has stopped developing for it and so it is not keeping up with Wordpress changes. My next project is to write queries for the webserve.php that will work with Gravity Forms. When I am done with that I will post a full webserve.php for Frontend PM and Gravity Forms.

---

<div class="post-metadata">

**Author:** ![Craig\_Tucker](https://community.open-emr.org/user_avatar/community.open-emr.org/craig_tucker/32/11112_2.png) [@Craig\_Tucker](https://community.open-emr.org/u/Craig_Tucker)\
**Post date:** [September 11, 2017, 9:03pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/25 "2017-09-11T21:03:14Z")

</div>

I found one more issue. Cartpauj-PM only allows one administrator. Frontend PM allows multiple administrators. This is better for multiple clinicians. So, I have replaced these two variables:

```
 $adminOps = get_option('cartpaujPM_options');
 $admin_user_login = $adminOps['admin_user_login'];

```

With this:

```
$adminOps = fep_get_option('oa_admins', array());
$wpuser = get_user_by( 'email', $_REQUEST['login'] );
$userlogin = $wpuser->user_login;
$count = count($adminOps)-1;

$i = 0;
$admins = array();
while($i <= $count) {
	$admins[] = $adminOps['oa_' . $i]['username'];
	$i++;
}

if (in_array($userlogin, $admins)){
	$admin_user_login = $userlogin;
} else {
	  $out['errmsg'] = $userlogin ." is not an authorized administrator in Frontend PM Pro. Please go to Frontend PM Pro > Settings > Recipiant and add the user name to the Admins field.";
}

```

I think this does it all. I have updated my snippets file on github to reflect this.

---

<div class="post-metadata">

**Author:** ![Craig\_Tucker](https://community.open-emr.org/user_avatar/community.open-emr.org/craig_tucker/32/11112_2.png) [@Craig\_Tucker](https://community.open-emr.org/u/Craig_Tucker)\
**Post date:** [September 15, 2017, 4:36pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/26 "2017-09-15T16:36:30Z")

</div>

A full explanation of how to integrate Front End PM Pro is now posted here:

[How to Integrate Front End PM Pro with OpenEMR](https://github.com/CraigT543/Sunset-Patient-Portal-with-FrontendPM)

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [May 3, 2020, 7:47pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/27 "2020-05-03T19:47:06Z")

</div>

Hi all,  
Regarding this thread, I am currently setting up a new private practice and will be using openemr with the WP patient portal. I am using this

> [Patient Portal - OpenEMR Project Wiki](https://www.open-emr.org/wiki/index.php/Patient_Portal#Configuring_WordPress)

for the tutorial. But I notice there is no:

> Cartpauj PM (1.0.11 or greater)  
> Ninja Forms File Uploads (optional, non-free)  
> Ninja Forms Conditionals (optional, non-free)

Should I update the wiki?  
I can also add this link:

> [GitHub - CraigT543/Sunset-Patient-Portal-with-FrontendPM: Modifications of the Sunset-Patient-Portal to work with the Frontend PM messaging system](https://github.com/CraigT543/Sunset-Patient-Portal-with-FrontendPM)

Sandra

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [May 3, 2020, 8:17pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/28 "2020-05-03T20:17:33Z")

</div>

hi @gutiersa, did you check out the `Onsite Patient Portal` ? There’s been a lot of recent work on it.

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [May 3, 2020, 8:35pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/29 "2020-05-03T20:35:33Z")

</div>

No I have not, but I will then. thanks.

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [May 3, 2020, 8:37pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/30 "2020-05-03T20:37:04Z")

</div>

Do you mean the native patient portal?

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [May 3, 2020, 8:41pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/31 "2020-05-03T20:41:13Z")

</div>

yes, @sjpadgett has done a lot of work and @tywrenn as well, will serve us well in `5.0.2` and even more so when `5.0.3` comes out

 ![Screenshot from 2020-05-03 16-39-28](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/e/e05ec3c4f223309752edbab95f4ea9c22cd6addb.png)

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [May 3, 2020, 8:56pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/32 "2020-05-03T20:56:56Z")

</div>

Are these instructions accurate?

> [Patient Portal - OpenEMR Project Wiki](https://www.open-emr.org/wiki/index.php/Patient_Portal)

Also, I have a multi-site install, what should be my portal address then?, and isn’t risky to give patients access to my openemr installation?  
Regarding the portal site address, does this look correct:

> [https://mydomain.com/openemr/patients/index.php?site=mysite](https://mydomain.com/openemr/patients/index.php?site=mysite)

---

<div class="post-metadata">

**Author:** ![Craig\_Tucker](https://community.open-emr.org/user_avatar/community.open-emr.org/craig_tucker/32/11112_2.png) [@Craig\_Tucker](https://community.open-emr.org/u/Craig_Tucker)\
**Post date:** [May 3, 2020, 8:59pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/33 "2020-05-03T20:59:17Z")

</div>

My Frontend PM modifications no longer work. I have not had the time to update it. I am still using Frontend PM for private messaging but it does not import into OpenEMR. But the Cartpauj-PM integration was not really that helpful. It only let you know the message existed and you had to copy physically the message from the dashboard into your patients file. So that was easy enough for me to do if I have the wordpress site open in another window. Frontend PM works similar to Cartpauj-PM in that when both people have deleted the message the message disappears from the database. However, if a client never deletes the message it just stays there. In Frontend PM you can delete messages that are onlder than x months etc. So I let patients know that messages older than 6 months will be deleted.

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [May 3, 2020, 9:05pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/34 "2020-05-03T21:05:28Z")

</div>

it’s Version 2 in those outdated instructions

> [@gutiersa](#):
>
> [https://mydomain.com/openemr/patients/index.php?site=mysite](https://mydomain.com/openemr/patients/index.php?site=mysite)

it’s only for the patient and has been secured even more so by patch 2  
here’s [a helpful post](https://community.open-emr.org/t/notable-patient-portal-usage-changes/13021)

```auto
https://mydomain.com/portal/index.php?site=mysite
```

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [May 5, 2020, 7:27pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/35 "2020-05-05T19:27:28Z")

</div>

I can’t get into the portal!

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [May 5, 2020, 7:51pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/36 "2020-05-05T19:51:38Z")

</div>

hi @gutiersa, how so?

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [May 5, 2020, 8:05pm UTC](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881/37 "2020-05-05T20:05:23Z")

</div>

Well I am not able to find the dashboard  
I also don’t know how to send the patients a link or how to set up documents.

[Previous page](https://community.open-emr.org/t/cms-portal-update-and-frontend-pm-to-replace-cartpauj-pm/8881.md?page=1)
