# Weno eRx Issues

**URL:** <https://community.open-emr.org/t/weno-erx-issues/9125>\
**Category:** OpenEMR Development\
**Created:** [October 10, 2017, 12:07pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125 "2017-10-10T12:07:41Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [October 10, 2017, 12:07pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/1 "2017-10-10T12:07:41Z")

</div>

@juggernautsei, After setup and drug import (had to do by hand btw) when trying to e-prescribe a drug I receive a drug id not found error. Am I missing a setup step? Is the NDC the drug id?

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [October 10, 2017, 12:27pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/2 "2017-10-10T12:27:07Z")

</div>

@sjpadgett where is you download the copy that you are using?

I did find a problem with the import but I fixed it. But now I can’t find it. Also, I noticed that the narcotics don’t populate and I don’t see the code to populate it either.

I’ll try to find it today and get back to you with a PR.

Could you report back anything else that is broken?

---

<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:** [October 10, 2017, 12:42pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/3 "2017-10-10T12:42:05Z")

</div>

Version I am using came for tip of master as of a week ago. Is there another version?

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [October 13, 2017, 5:19pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/4 "2017-10-13T17:19:22Z")

</div>

Not that I have noticed or know of but I know that the one that is in the master is broken in places and does not have everything that it suppose to have in it.

[http://www.open-emr.org/wiki/index.php/Development\_Demo#192.168.1.135](http://www.open-emr.org/wiki/index.php/Development_Demo#192.168.1.135)

The above link is the finished PR but it was untested as to will it work in production.

Could you verify that this is the same code that is in the tip of the master?

Far as I can tell the PR was not set up for grabs.

So, what is in the tip of the dev is not what is in the PR.

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [October 14, 2017, 8:49am UTC](https://community.open-emr.org/t/weno-erx-issues/9125/5 "2017-10-14T08:49:19Z")

</div>

Hi @juggernautsei ,

That demo no longer exists (since the project was completed, it is being used by another project). This is the code that was brought in:

> <https://github.com/openemr/openemr/pull/1017>

  
(see at the bottom for details on how it was packaged into 1 commit and a couple minor psr2 fixes and obvious bug fixes were completed on it)

Note this has all the code for this feature and underwent testing by you at that time (ie. please take ownership of what is in master and lets fix those bugs 🙂 ).

-brady

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [October 14, 2017, 8:53am UTC](https://community.open-emr.org/t/weno-erx-issues/9125/6 "2017-10-14T08:53:07Z")

</div>

To help out, here are all the weno related commits that went into the codebase:

1. [Weno eRx feature build, take 5. · openemr/openemr@049d45a · GitHub](https://github.com/openemr/openemr/commit/049d45a2f0b1cccb62c2476cf6aaa315cba79d80)

2. [minor PSR2 fixes to weno erx · openemr/openemr@cec9566 · GitHub](https://github.com/openemr/openemr/commit/cec956607581557a5a0710c10c298513e56919cb)

3. [minor adjustments to weno erx · openemr/openemr@04b6d41 · GitHub](https://github.com/openemr/openemr/commit/04b6d41e384167015c7e6aa54179796e1865f314)

4. [weno formulary import fix · openemr/openemr@639f66e · GitHub](https://github.com/openemr/openemr/commit/639f66e7936d44fad24a3f32fd56a288ccf7d526)

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [October 14, 2017, 11:14am UTC](https://community.open-emr.org/t/weno-erx-issues/9125/7 "2017-10-14T11:14:37Z")

</div>

Wouldn’t have it any other way. aye aye captain 🕶

---

<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:** [October 14, 2017, 3:25pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/8 "2017-10-14T15:25:39Z")

</div>

@juggernautsei, The pharmacy import seems to not import but from looks of it, it is not useful because most are spread across country. Are there list published somewhere for existing supported pharmacies or is this something user needs to coordinate with their local pharmacies?

---

<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:** [October 14, 2017, 6:15pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/9 "2017-10-14T18:15:25Z")

</div>

The issue with pharmacy import is that the conditional to compare for state to import is looking at address instead of state from exploded pharmacy line.  
Should I report these here or may I open a PR to update as I find issues?

Edit:  
Actually the pharmacy csv file in master doesn’t match the number of columns in import routine. So my guess is the import file format was changed and code wasn’t but, at any rate, the routine needs to be modified to trim imported field or quotes will appear in Practice/Pharmacies.

---

<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:** [October 16, 2017, 9:35pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/10 "2017-10-16T21:35:42Z")

</div>

I’m able to get to confirmation screen and the order appears queued up(at least shows in console) so once I confirm then rx is off to the set up pharmacy, correct? Guess only question is how local pharmacies are setup or if they have to be in imported list.

---

<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:** [October 22, 2017, 2:47pm UTC](https://community.open-emr.org/t/weno-erx-issues/9125/11 "2017-10-22T14:47:33Z")

</div>

This is resolved here:

> <https://github.com/openemr/openemr/pull/1139>
