Hi Deanna,

 

I don't know if these are selects or lists, but the thing that I am
seeing is that the variable /TEMPD is used in many areas based on how
the user answers the question when your macro is run, and it is also
encapsulated into two DO loops... One doesn't have the "/ " in front of
it or else this was just a typo...

 

I would expect that you would do an IF right before the 1^/TEMPD[D]
(where I added the <> into the sample below), but then again I don't see
the rest of your report so I don't know if where it is exactly used...
I would say that if you added that if to qualify that it should store
which is what the 1^TEMPD is doing that you could hopefully limit the
contents of your output...  You might need to do both, because the
c.xx.inc, but refer to including the referring or attending doctor to,
for example...  

 

GET.LIST.OF.DOCTORS

1^/TEMPD[c.attend.doctor],

""^D,DO{+MIS.DOC.DICT.c.menmonic[D]^D <> 1^/TEMPD[D]},

IF{c.xx.inc="Y"
@MIS.DOC.DICT.dr.group[c.attend.doctor]^MIS.DOC.GRP.mnemonic,

 
DO{+MIS.DOC.DICT.doctor.group.x[MIS.DOC.GRP.mnemonic,D]^D <> 1^TEMPD[D}}

 

Good luck and hope that my second set of eyes helped atleast a little to
your dilemma!

 

Damian A Shepard

Systems Analyst

Information Systems

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Deanna Ramirez
Sent: Friday, June 22, 2007 10:52 AM
To: meditech-l@MTUsers.com
Subject: [MEDITECH-L] help with a macro

 

I need some help modifying a macro/report that I was fortunate to get
from someone on the l many years ago.  The report is written out of
OE.PAT and is a rounds report for the doctors including their consults.

 

GET.LIST.OF.DOCTORS

1^/TEMPD[c.attend.doctor],

""^D,DO{+MIS.DOC.DICT.c.menmonic[D]^D 1^/TEMPD[D]},

IF{c.xx.inc="Y"
@MIS.DOC.DICT.dr.group[c.attend.doctor]^MIS.DOC.GRP.mnemonic,

 
DO{+MIS.DOC.DICT.doctor.group.x[MIS.DOC.GRP.mnemonic,D]^D 1^TEMPD[D}}

 

 

I have a group of physician's that internally divide their group based
on their specialties.  They would like to have a custom rounds report
that only include their sub-group of physicians.  I have added a query
on the provider cds to identify whether or not this is part of the
subgroup.  How would I evaluate that when selecting my list of doctors.

 

Here is my field

 

MIS.DOC.DICT.cd.response["MIS.PROV.R"]       if this fields equals Y I
want to include the doctor and his/her patients on the report.  How
would I modify the macro to allow this?

 

Any help would be greatly appreciated.

 

Thank you!

Dee Ramirez
DISCLAIMER: The information contained in this electronic message is legally 
privileged and confidential under applicable law and is intended for a 
particular addressee(s). If it is not clear that you are the intended 
recipient, you are hereby notified that you have received this transmittal in 
error; any review, copying or distribution or dissemination is strictly 
prohibited. If you suspect that you have received this transmittal in error, 
please notify Southwestern VT Health Care Corporation immediately by return 
email reply to ([EMAIL PROTECTED]), and immediately delete the transmittal and 
any attachments without making any copy or distribution. Thank you.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit 
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

To check the status of the meditech-l, visit MTUsers.NET

For help, email [EMAIL PROTECTED]

Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
meditech-l@MTUsers.com
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

Reply via email to