AMC Report/NewCrop Issue

bgregg wrote on Tuesday, October 09, 2012:

This is a bug I noticed for those with NewCrop eRx:

The prescriptions are not coming across to the Issues box at the Encounter level, which is the reason the “Maintain active medication list. ( AMC:170.302(d) )” rule is not being updated with a denominator/numerator.

After doing a little digging, I think I see the fix:
Prescriptions in the ‘prescriptions’ table marked as active need to be carried over to the ‘lists’ table as a medication-type and matched up to a pid.

Anyone else run into this issue?

anonymous wrote on Friday, October 12, 2012:

Yup. We’re having the same exact issue.

vambati wrote on Thursday, October 25, 2012:

Please help us. Prescriptions are not showing up under Issues box at the encounter level. We tried looking into this but we need the experts help here. Any help to fix this issue is greatly appreciated.

enqueteur wrote on Monday, December 17, 2012:

I am having the same problem.  Does anyone know if it is being addressed or how to deal with reporting for MU?

tmccormi wrote on Monday, December 17, 2012:

It has not been addressed at this time.

Tony
www.mi-squared.com / @tonymi2
oemr.org / @OEMR_org

bradymiller wrote on Wednesday, December 19, 2012:

Hi,

I just committed a contribution to sourceforge by ZH Healthcare that fixes this issue. It will be in the next 4.1.1 patch. Thank you ZH for the contribution:
http://github.com/openemr/openemr/commit/82827045d23fa3d5ec04a1cbfa954bcdce2e435d

It is important to note that this is a propective fix, meaning that it will fix the calculations for patients that get medications/prescriptions adjusted after the fix. It will not go back and retrospectively fix patients that had medications/prescriptions adjusted before the fix.

-brady
OpenEMR

tmccormi wrote on Wednesday, December 19, 2012:

We will be looking at writing a retrospective data fix, assuming ZH doesn’t get to it first.
Tony
www.mi-squared.com / @tonymi2
oemr.org / @OEMR_org

bgregg wrote on Friday, December 21, 2012:

Here is the query to use after applying the patch. Please note, you may need to remove your “prescription_erx” records from the lists_touch table to prevent duplicates.

INSERT INTO lists_touch (pid, type, date)
SELECT patient_id,"prescription_erx", max(date_added)
FROM prescriptions
WHERE active ='1'
GROUP BY patient_id;

Brad Gregg
MI-Squared