I am not getting the form to work? I have uncoded meds in my test patients chart, but the form is not picking them up? Does it only pick up ones that used to be coded but no longer are or all uncoded?
Thanks!
I am on CPS 12, wonder if that makes any difference?
It doesn't check for uncoded meds. It checks for out of date NDC's.
If you want to check for uncoded meds try this in a txt component then insert it in:
{
fn UncodedMedsPres(meds,allergies) {
local temp = getfield(meds,"|","")
local hold
local rslt =""
for i=1, i<=size(temp),i=i+1 do
hold = getfield(temp[i],"^","")
if hold[5] =="" then
if rslt <>"" then
rslt = rslt + hret
endif
rslt = rslt + hold[1] + " (" + hold[7] + ")"
endif
endfor
return rslt
}}
{if UncodedMedsPres(MEDS_AFTER("Delimited"),"") <> "" then
userok("The following medication(s) are not coded for prescribing -" + hret + hret + (UncodedMedsPres(MEDS_AFTER("Delimited"),"")) + hret + hret + "If this is a medication you are trying to fill, please remove it from the patient list and add a coded medication.")
""
else
""
endif}
Thanks! Do I need to modify the form to add that to it so it can check for both, or just add that function on the side? I'm an RN, therefore, a very novice MEL writer!!
I'm not sure about adding to the form from Joan I haven't tried that. I run/ran that text component piece by just adding it to the document template. That way you don't have to insert it and it fires ,hopefully, immediately upon starting the update, and its not an actual form. One down fall is that it will always fire if an uncoded med is in the patients med less at the start of the update, so just using it in refills, and phone notes will create a less annoyance factor.
Ahh, ok. I am only putting this in the refill encounter and nurse visit I think so that would work! Thank you1
Just wondering, I guess CPS 12 not come with a refill form that prompts a warning for uncoded or missing NDC? Because that's the root of the issue. All the uncoded and NDC warning stuff that is in 'Update Meds" can be bypass by using the Rx refill.
No, it doesn't. The nurses send refills, and about 5-10 minutes after they get an error flag that tells them 900 No NDC or Compound etc... They get so mad, why can't it just tell them. It seems pretty common sense that the system would flag the med the second it becomes outdated or uncoded, but still no improvements on that end.
We don’t have CPS 12, not even a test environment, so can’t do any testing here.
Malissa, I can explain how the form works in CPS 11 in case that helps you track down possible places it fails in CPS 12.
The form checks any rx changes using the size of the LISTRXNEW() result. If the size changes this triggers the call to the function that does all the checking and display of the warning if needed. The size of the LISTRXNEW() result changes whenever a user checks/unchecks a med on the Prescription form.
The form’s function that checks for missing NDC codes does the following:.
1. Calls MED_LIST_CHANGES and only tracks those meds that have an action of ‘PRESCRIB’ or ‘REFILL’ and a status of ‘UNSIGNED’.
In CPS 11 the relevant fields in the MED_LIST_CHANGES it checks are:
1 - Action
2 – Description
20 - Status (Signed vs. Unsigned)
2. For any med that meets this criteria (‘PRESCRIB’ or ‘REFILL’ and ‘UNSIGNED’), the list of active meds is checked for that med’s NDC code. The matching of the med between the two lists (changes vs active) is done on the description field. If the NDC field is empty but the GPI field is not the form includes the med on the list that gets displayed in the warning message.
In CPS 11 the relevant fields in the MEDS_AFTER it checks are:
1 - Description
4 – GPI code
5 – NDC code
Possible problem areas between CPS 11 an CPS 12 could be:
- Prescription form and LISTRXNEW() – is the form getting the message of a change when a med is checked/unchecked in the Prescription form?
- MED_LIST_CHANGES – have the field indexes changed between CPS 11 - CPS 12?
- MEDS_AFTER – have the field indexes changed between CPS 11 - CPS 12?
Joan
That is helpful, I have a nurse testing it out for me today. It is hard to replicate with test patients, so she will use it today to see if it catches outdated coding on real patients in real time. If not, this will help me start looking for the issue.
Thanks!
Joan,
Thanks again for the form so far today seems to be functioning properly. So far 2 Failed due to the NDC error and that was because they ignored the error. Normally about this time we have anywhere from 5-10.
mbellis said:
Thanks! Do I need to modify the form to add that to it so it can check for both, or just add that function on the side? I'm an RN, therefore, a very novice MEL writer!!
I just created a Text file and added it to my rx refill encounter.
We have been using the text file and the form in our encounters and have been catching both the uncoded meds and the outdated NDC numbers. There is quite a bit of grumbling about having to click through a pop up and another form, but I have been asking how much time they are saving by not redoing 20+ prescriptions per day..... the grumbling is diminishing!