Rewriting a Rx recalculates the quantitiy even when a quantity was previously set

Preconditions

an existing drug in the list of medications with non parsable instructions
eg Ativan 1mg 1 po qhs sparingly M:28 R:0

Steps to Reproduce

renew the drug
the previous quantity appears briefly (28) and then gets overwritten with the parsed quantity (in this case it will calculate 0)
Ativan 1mg 1 po qhs sparingly M:0 R:0

Expected Result

Ativan 1mg 1 po qhs sparingly M:28 R:0

Observed Result

Ativan 1mg 1 po qhs sparingly M:28 R:0

Additional Comments

if the calculated quantity from parsing the instructions is 0 please do not overwrite a non zero pre-existing quantity

Activity

Show:
Peter H-C
August 20, 2019, 3:03 PM

Luis Strauch <lstrauch@rogers.com>

10:59 (4 minutes ago)

 

 

Hi,

We just upgraded our Oscar to version 19 RC2-9~1000 and found either a change or a problem in OscarRx.

When you try to ReRx medication it used to fill in the Qty and Repeats from the previous prescription.

What we found in Oscar 19 in a small number of patients tested, that in some cases the Qty did not fill in the amount from the previous prescription, but the Repeats did. In the small testing sample, this did not happen to all ReRx attempts. However, I could not find a pattern to why some did and some didn't (or I might have missed something).

Is this a new feature of Oscar 19? If yes, what makes it appear or not.

Any information is much appreciated.

Thank you,

Luis Strauch

Peter H-C
August 20, 2019, 3:08 PM

To clarify the EXPECTED RESULT is that the existing quantity gets reperscribed and that it never gets replaced with 0. To whit lets not reparse the script and just renew.

John Wilson
October 10, 2019, 11:00 AM

This is also happening when using a favourite drug as well:

I have a simple fix I am testing and will commit today if passes testing.

Peter H-C
October 23, 2019, 6:21 PM

Better in build 1013, if you add from the prior list a single Rx renewal (or just add one at a time)

BUT its still not fixed if you add a number of Rx at the same time the recalc still triggers and gives you a 0 to replace the previous Rx’d amont

John Wilson
October 23, 2019, 6:46 PM

Ok will update

Fixed

Assignee

John Wilson

Reporter

Peter H-C

Labels

OSCAR Build Date

2019/07/10

OSCAR Build Tag

991

Client Browser

Firefox

Client OS

Windows 7

Are you or your organization planning on submitting a fix for this bug in the next 30 days?

No

Validated by Reporter

No

SourceForge Link

None

SourceForge Reporter

None

SourceForge Assigned To

None

SourceForge Date Created

None

SourceForge ID

None

Affects versions

Priority

4
Configure