Can someone tell me what field the prescribing method used is? I have the following function and I want to add the prescribing method, but I don't see it listed in the help. If I use MED_LIST_CHANGES by itself, I get the method used.
{get_new_rxs(med_list_changes("delimited"))}
{fn get_new_rxs(list){
if list == "" then return "" else "" endif
local arrMeds, sMeds, n, result=""
arrMeds=getfield(list,"|", "")
sMeds=size(arrMeds)
for n=1, n<=sMeds, n=n+1 do
arrMeds[n]=getfield(arrMeds[n],"^","")
if arrMeds[n][1]=="PRESCRIB" then
if result <> "" then result=result +HRET +arrMeds[n][2]+" "+arrMeds[n][3]+" #"+arrMeds[n][9]+" X "+arrMeds[n][10] else
result= arrMeds[n][2]+" "+arrMeds[n][3]+" #"+arrMeds[n][9]+" X "+arrMeds[n][10]
endif
endif
endfor
return result}}
Looks like 25 or 26, you will need something like this too -
{fn Rx_Type(code){
cond
case (code == "W")
return "Handwritten"
case (code == "H")
return "Historical"
case (code == "F")
return "Fax to pharmacy"
case (code == "A")
return "Re-fax"
case (code == "D")
return "Pharmacy's prescribing method"
case (code == "Q")
return "Print then fax to pharmacy"
case (code == "P")
return "Print then give to patient"
case (code == "R")
return "Reprint"
case (code == "M")
return "Print then mail to patient"
case (code == "L")
return "Print then mail to pharmacy"
case (code == "S")
return "Samples given to patient"
case (code == "T")
return "Telephone"
case (code == "E")
return "Electronic"
else
return ""
endcond
return ""
}}
MED_LIST_CHANGES
description
List all medications and refills entered, changed, or removed type Data symbol function syntax MED_LIST_CHANGES(delimited) arguments delimited - Optional. Returns a delimited list of all Note. when to evaluate When inserted in the chart note or continuously returns Information returned is in the following table. If the argument
comment This data symbol function provides a listing of changes made example 1 {MED_LIST_CHANGES()} returns Added new medication of FUROSEMIDE 20 MG TABS (FUROSEMIDE) 1 po Removed medication of NITROSTAT SUB 04MG (NITROGLYCERIN) 1 sI pm Rx of FUROSEMIDE 20 MG TABS (FUROSEMIDE) 1 po qd; #30 x 3; example 2 {MED_LIST_CHANGES('delimited')} returns ADD^DIOVAN HCT 160-25 MG TABS^take one tablet PRESCRIB^DIOVAN HCT 160-25 MG TABS^take one tablet where used Chart: text components, chart notes, and quick text Encounter Form Editor: Data Display items with a Clinical |
Thanks! Where and how do I put the code you gave me into what I have to get the prescribing method to show at the end? Also what do I have to put into the translation part of my data display besides what I have:
{get_new_rxs(med_list_changes("delimited"))}
..... + "Prescribing Method: " + Rx_Type(arrMeds[n][25])
The Rx Type is stored as a single character like "E" is for Electronic, so that function translates it into an actual type. For your text translation output, you could do something like
{CFMT(get_new_rxs(med_list_changes("delimited")),"","New Prescriptions
","B,U","
")}
Thank you! That worked great. I have one more question though. We are currently using LISTRXNew and with the changes I had to use MED_LIST_CHANGES. LISTRXNEW had the signing date, and I don't see that as a field for MED_LIST_CHANGES. Is the signing date something I can add somehow?
No, but MED_LIST_CHANGES() only pulls medication changes from the current update....
I use a custom function that pulls from '_MELCurRx' (or _MasterRx) object in mldefs, it has the CLINICALDATE field, if you need the date i think youll have to go that route
Where can I find out what options are returned from the fields, like what you gave me in the first response? Is there a manual for the data symbols for this?
If you have it setup in VFE, go to the help menu and then select Data symbols reference, if that is not setup you can find the help file in the centricity client directory, it is called cps_help.chm
I have that, but it doesn't tell me what possible options are returned in the field. What I am trying to ask is how did you know what the codes were for field 25. I am now trying to find out what possible options are returned from field 1.
Oh sorry I misunderstood, I use the data dictionary here
http://centricitypractice.gehe.....rtPage.htm
I can't seem to get version 10 to open anymore (we are on 10.1.3), but I haven't had a problem using 11 as a reference
I was finally able to log in, but I am still not sure what I am looking at or where to go to get the information I need. Can you point me in the right direction?
I select complete Database -> Model from the left panel, then in the second panel drill down and select Tables in the Main Model folder, in the third panel you are probably looking for either the PRESCRIB table or the MEDICATE table depending on what exactly you are looking for, those represent the _masterrx and _mastermed objects used by those mel functions. Finally you will see defintions and descriptions of that particular table in the fourth panel, including an explanation of GE's shorthand.
I also noticed in the MelLib.txt GE provides some functions that do the same thing for other areas of the chart, I think the problems module maybe others, but you may find something useful in there so you dont have to reinvent the wheel.
Thanks, I found the RXTYPE that you gave me, but I am still having trouble finding the options for field 1.