I know there are two different MEL codes for "removed medications"
{'{MED_LIST_CHANGES()}'}
{'{MEDS_REMOVED("list", "dat")}'}
Which somewhat works but I'm looking to see how to bring in the REASON the medication was removed
Looks like either of the 2 functions will return a reason when using the 'delimited' parameter...
description
List all medications and refills entered, changed, or removed during the current update. type Data symbol function syntax MED_LIST_CHANGES(delimited) arguments delimited - Optional. Returns a delimited list of all medication information, with pipes (|) between medication records and carets (^) between fields. Note. Arguments cannot be used when the symbol is set to evaluate continuously. when to evaluate When inserted in the chart note or continuously returns Information returned is in the following table. If the argument is not present the medication information is returned in list format.
comment This data symbol function provides a listing of changes made during the current update. example 1 {MED_LIST_CHANGES()} returns Added new medication of FUROSEMIDE 20 MG TABS (FUROSEMIDE) 1 po qd; Indications: Ankle edema – Signed; Removed medication of NITROSTAT SUB 04MG (NITROGLYCERIN) 1 sI pm c/p, max of 3 in 15 mm; Indications: HYPERCHOLESTEROLEMIA; Risk of CORONARY ARTERY DISEASE Rx of FUROSEMIDE 20 MG TABS (FUROSEMIDE) 1 po qd; #30 x 3; Signed; Entered by: Harry S Winston MD; Authorized by: Harry S Winston MD; Method used: Print then Give to Patient; example 2 {MED_LIST_CHANGES('delimited')} returns ADD^DIOVAN HCT 160-25 MG TABS^take one tablet daily^01/24/2010^^^76501^36994002700350^90^3^^^^^^^^^^UNSIGNED^BMN^^prt HTN^^P^^^^| PRESCRIB^DIOVAN HCT 160-25 MG TABS^take one tablet daily^01/24/2010^^^76501^36994002700350^90^3^^^^^^^^^^UNSIGNED^BMN^^prt HTN^^P^^^^ where used Chart: text components, chart notes, and quick text Encounter Form Editor: Data Display items with a Clinical Function connection and MEL expressions
*****************************************************************************
|
Nothing I seem to be doing with either MED_LIST_CHANGES or MEDS_REMOVED seems to be working ... it indeed tells me the med was removed but I NEED the reason the med was removed to show as well
When I go into "Update Medications" and I "remove" a medication, the "Remove Medication" window allows me to give a "Reason for Removal" as well as a "Removal Comment" ... NONE of that is printing in text on the note
Getting frustrated as this is an important feature to us
where are you trying to use this? form? handout?
I'm trying to make a text component ... if it won't work there, will it work w/in a VFE form?
doc says text, form, quick text...so should work. do you have an example of the code?
{'{cfmt(MED_LIST_CHANGES(), "", "Medications Added / Removed This Encounter:
", "B,1", "")}'}
Note. Arguments cannot be used when the symbol is set to evaluate continuously.
If the argument is not present the medication information is returned in list format.
You are evaluating continuously in the text component, so you can't use 'delimited' and I'm guessing that the default 'list' format doesn't include the reason/comments.
You can try calling the function from a form with the 'delimited' format and string together the pieces you want using GETFIELD.
Alright i'm going to try that ... a little more complicated than I can understand but I'll work through it
Do you personally know of a way to incorporate the Removed or as we use to call it "inactive" meds in the note text EACH time .
we are a cardiology office and might discontinue a patient's coumadin for said reason and we want it documented EACH office visit note so other physicians who might be on call or might get a copy of teh note don't try and represcribe that
I don't know of any workflow here that shows removed meds. We usually show all meds. I guess if a provider wants others to know a reason for removing a med, he'll just enter the needed text in a comment field or at the end of the note.
One last thing ... when you say "all meds" does that include ones that have been removed or just active
active...usually we save the active meds at the beginning of the update (pmh) and then the active after changes have been made.
Try this to see if it pulls what you need: you can then call the function on a form to a datadisplay...
{!fn fnLoopALLMeds(){
local returnMS = "Inactive Medications: " + HRET
local i =
getRowCount("_MasterMed")
for x = 0, x < i, x = x+1
do local MIDx =
getRow("_MasterMed",x,"MID")
local XIDx =
find("_MasterMed","XID","MID",MIDx)
local RSNx = find("_MasterMed","StopReason","MID",MIDx)
local Reason = "Due to " + cond
case RSNx == "A" "Adverse Reaction "
case RSNx == "C" "Changed Medication "
case RSNx == "D" "Removed Medication "
casecRSNx == "E" "Other Reason "
case RSNx == "N" "Not Effective "
case RSNx == "O" "Other Reason "
case RSNx == "P" "Patient Request "
case RSNx == "R" "Regimen Completed "
case RSNx == "S" "Side Effects "
case RSNx == "T" "Cost "
else "Other Reason "
endcond
returnMS = returnMS +
if XIDx = 1000000000000000000.00 then ""
else
Reason + ": " + find("_MasterMed","Description","MID",MIDx) + " " +
"Started: " + find("_MasterMed","StartDate","MID",MIDx) + " " +
if find("_MasterMed","StopDate","MID",MIDx) == "12/31/4700" then "" else
"Stopped: " + find("_MasterMed","StopDate","MID",MIDx) endif + " " +
if find("_MasterMed","Comments","MID",MIDx) == "" then "" else
"Comment: " + find("_MasterMed","Comments","MID",MIDx) endif + HRET
endif
endfor
returnMS}}
{fnLoopALLMeds()}
Okay so this fnloop is somewhat working ... I'm really dull to this extreme coding even though I took the intermediate VFE course ...
I put it in to a data display which works but three things:
1) I can figure the format to actually get it into text
2) in the data display it shows "Due to Other Reason" and "Due to Adverse Reaction" for each med ... so it duplicates it
3) it's not showing my "comment"
If you send me your email, I will forward a form to you that has all the code. As for comments, I cannot find a way to pulls those in... If you do, let me know!