Weno integration, error starting eRx

I’m getting the error “Email Address Missing” when I try to start eRx from the patient dashboard, with an encounter open. I just finished the Weno EZ integration setup, and haven’t written my first prescription yet.

I’m using OpenEMR version 6.0.0 (1), the browser is Iridium (Chrome), the OS is Ubuntu 20.04. I did not see anything relevant in logs.

I checked the integration setup, including my user info in the OpenEMR address book - the email address there matches what I am using with Weno.

In src/Rx/Weno/TransmitProperties, I found that the error message may relate to a missing patient email address. When I add a temporary, valid email address, I then get a more extensive error message, but still no clues in the log (it just notes that records were imported from a prescription log). The error starts with:

Exception Details: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: z. Path ‘’, line 0, position 0.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Any ideas?

1 Like

Does it specify which patient email needs to be provided? For some reason ‘trusted email’ seems to be a fave, distinct from ‘contact email’, and in some applications both need to be given. I usually just put both in there.
@juggernautsei is the weno expert here, maybe he has some advice?
Good luck- HT

1 Like

Please copy all of the file updates from the repository. These updates should clear up the issues you have mentioned.


1 Like

To clarify trusted vs contact email. Trusted email is/was meant to be used with a secured transport like Direct secure email. Contact email is used otherwise. I think for portal use, I first check trusted then use contact if trusted is not populated.

Trusted email is one of the ONC/MU requirements for sending document and such.

Agree with @htuck to be safe, populate both.

Thanks. The updates fixed the problem. Only issue now is that it’s saying “Please select a pharmacy” before I can complete the eRx, and I don’t see a way to select it. I entered the patient’s pharmacy info in Demographics, including the NPI and NCPDP numbers I found at Weno online. I’ll search around some more, I think I saw something about using local vs. Weno pharmacy info. Not sure if it matters that I was using Weno online before and didn’t have this new patient and pharmacy in there.

It seems like things are not getting deleted as they should. UUUUUGGGGGGHHHHHHH!!!
Apply this to your install and let me know what happens. You can drop this in your opener webroot and unzip it. It should overwrite the files that are there. The pharmacy selection should go away.
remove_encounter_requirement_and_logsync_patch.zip (5.3 KB)

three files were replaced, but same issue - “Please select a pharmacy.” When I go to the Prescription log to try to complete an existing prescription, it also errors.

Please post a list of files that you have in the interface/weno folder and in the src/Rx/Weno folder.

Also, open the TranmitProperties.php file. See if you can find Please select Pharmacy in that file.

sjcadmin@servus:/var/www/html/openemr/interface/weno$ ls -al

    total 76

    drwxr-xr-x  2 www-data www-data 4096 Jun 17 16:31 .

    drwxr-xr-x 34 www-data www-data 4096 Jan  5 22:53 ..

    -rw-r--r--  1 www-data www-data 4575 Jan  5 22:53 admin.php

    -rw-r--r--  1 www-data www-data 4035 Jan  5 22:53

ajax_sample_code.php

    -rw-r--r--  1 www-data www-data 8709 Jan  5 22:53 confirm.php

    -rw-r--r--  1 www-data www-data 1446 Jan  5 22:53

drugDataInsert.php

    -rw-r--r--  1 www-data www-data 2458 Jun 17 15:32 facilities.php

    -rw-r--r--  1 www-data www-data 1362 Jun 17 15:35 indexrx.php

    -rw-r--r--  1 www-data www-data 4791 Jan  5 22:53 jsonScript.php

    -rw-r--r--  1 www-data www-data 2424 Jan  5 22:53 markTx.php

    -rw-r--r--  1 www-data www-data  861 Jan  5 22:53

pharmacyHelper.php

    -rw-r--r--  1 www-data www-data 1141 Jun 17 15:36

rxlogmanager.php

    -rw-r--r--  1 www-data www-data 3336 Jan  5 22:53 validate.php

    -rw-r--r--  1 www-data www-data  885 Jun 17 15:36 weno.js

    -rw-r--r--  1 www-data www-data  800 Jun 17 15:36

wenoconnected.php

    sjcadmin@servus:/var/www/html/openemr/src/Rx/Weno$ ls -al

    total 56

    drwxr-xr-x 2 www-data www-data 4096 Jun 17 16:31 .

    drwxr-xr-x 3 www-data www-data 4096 Jan  5 22:53 ..

    -rw-r--r-- 1 www-data www-data 1171 Jan  5 22:53

AdminProperties.php

    -rw-r--r-- 1 www-data www-data 1459 Jun 17 15:37 Container.php

    -rw-r--r-- 1 www-data www-data 1096 Jun 17 15:37

FacilityProperties.php

    -rw-r--r-- 1 www-data www-data 1694 Jun 17 15:37

LogDataInsert.php

    -rw-r--r-- 1 www-data www-data 4214 Jun 17 15:37

LogImportBuild.php

    -rw-r--r-- 1 www-data www-data 5962 Jun 17 15:44

LogProperties.php

    -rw-r--r-- 1 www-data www-data 3584 Jan  5 22:53

TransmitData.php

    -rw-r--r-- 1 www-data www-data 7007 Jun 17 15:44

TransmitProperties.php

    -rw-r--r-- 1 www-data www-data 2036 Jun 17 15:37

wenoPharmaciesImport.php

    I suspect there's something wrong in files or database after I

upgraded to 6.0 and patch 1, because I’ve also had an issue with
the Prescription list in the Dashboard tab displaying a number,
instead of a drug name after I enter them (this since January).
For example, albuterol inhaler became Drug “25” on the
Prescription section of the Patient Dashboard, even though when
I selected the drug originally, the name looked fine.

    The 'Please select a pharmacy' is appearing in red in the Weno

window inside OpenEMR, below their ad banner; I don’t find it in
TransmitProperties.php. I spoke with Kevin at Weno and he
confirmed the message is coming from Weno, and thought it might
be occurring because of incorrect or missing data in the
transmission, and suggested I speak with Tina or you.

    Finally - does it matter whether "Print" or "eRx" is selected in

the Pharmacies list (Practice Settings)? I have the patient’s
pharmacy set to eRx. Also, just to be sure - I have an encounter
open when writing the script on the integrated Weno screen, but
there was no pharmacy set at the time of the encounter (I did
this later). Would that matter for queries?

    Thanks,

    Bernadette

In the TransportProperties.php file remove these two lines including the comma.

           ,
               "PrimaryPharmacyNCPCP" => $this->ncpdp,
         "AlternativePharmacyNCPCP" => $this->ncpdp

If those lines are not there, please contact Weno support. They were suppose to remove the requirement so select a pharmacy in the application. The pharmacy is to be selected in their interface. The practice should not be passing that information to Weno. Per my understanding.

Removing those two lines took care of the error, and I was able to transmit the prescription.
Still having an issue with numbers appearing instead of drug names on the medication list and prescription list (dashboard tab), will have to look into that further. Not sure if a database update failed - were there changes to the drug database related to the weno integration?

Those two lines were a weno decision to not require the pharmacy to be selected on the EHR side since it can be selected in their interface. No need to send that information.