All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Hi everyone,

This is just a little information on how to find the correct code for launching 
a Meditech NPR Procedure.  Meditech uses a procedure called Z.get.menu.logic to 
calculate the code necessary for launching a procedure.  The attached NPR 
report uses that procedure to display the code for you.  In the below example, 
I entered the procedure PHA.RX.profile, with no arguments, but I did enter in 
the application NUR.  It returned the following:

                        
IF{%Z.switch.appl("PHA");%["PHA.RX.profile"]("")X,%Z.switch.appl("")}

This is the code necessary for launching that Procedure from NUR.

Thanks,

Brian Schmit
Sr. Programmer, Picis
Direct: 781 557 3315
Fax: 781 557 3140
100 Quannapowitt Parkway
Suite 405
Wakefield, MA 01880
[EMAIL PROTECTED]
www.picis.com

Please visit http://www.picis.com/services/technical/npr.asp# for additional 
information about our NPR Report Writing Trainings.

The information in this email is confidential and may be legally privileged. It 
is intended solely for the addressee. Access or use by any other person to this 
internet email is not authorized and may be unlawful. If you are not the 
intended recipient, please delete or destroy this email. If you do not wish to 
receive future emails from the sender, please reply directly to this email 
requesting you be removed from any mailing list.


-----Original Message-----
From: Brian Schmit 
Sent: Tuesday, August 08, 2006 1:51 PM
To: Brenda Wiley; MediTech Users Group
Subject: RE: [MEDITECH-L] Attribute to jump to PHA routine


Hi Brenda,

If you are using that attribute from an application other than PHA, you will 
need to do something like this:

[EMAIL 
PROTECTED]'="Y";%Z.switch.appl("PHA");%PHA.RX.profile("")X,%Z.switch.appl("")}

I have never tried running that routine myself from a CDS, but the code using 
Z.switch.appl has to be involved to connect your prefixes to the correct data.

Thanks,

Brian Schmit
Sr. Programmer, Picis
Direct: 781 557 3315
Fax: 781 557 3140
100 Quannapowitt Parkway
Suite 405
Wakefield, MA 01880
[EMAIL PROTECTED]
www.picis.com

Please visit http://www.picis.com/services/technical/npr.asp# for additional 
information about our NPR Report Writing Trainings.

The information in this email is confidential and may be legally privileged. It 
is intended solely for the addressee. Access or use by any other person to this 
internet email is not authorized and may be unlawful. If you are not the 
intended recipient, please delete or destroy this email. If you do not wish to 
receive future emails from the sender, please reply directly to this email 
requesting you be removed from any mailing list.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brenda Wiley
Sent: Monday, August 07, 2006 3:46 PM
To: MediTech Users Group
Subject: [MEDITECH-L] Attribute to jump to PHA routine

All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Hi folks,

I have this attribute entered on a query:

[EMAIL PROTECTED]"Y" %PHA.RX.profile("")}

the intent being that if the user enters 'Y', the
system will take them to the Print Profile routine in
PHA to print a patient's profile.

In testing, I am brought to the Print Profile routine,
but doing a lookup on the FORMAT query brings up no
profile formats (there are half a dozen or so defined
in our TEST PHA profile dictionary)

Even more curious, when I move down to the patient
field, there are no patients to be found.

Is this the correct syntax?  I tried entering 

[EMAIL PROTECTED]"Y" %PHA.RX.profile("PROFILE2")}

    (with PROFILE2 being the name of the PHA profile
format I want), but then the system totally ignores
the attribute ...

Thanks!

Brenda Wiley, RN
Transylvania Community Hospital, Inc.




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l
MEDITECH.CUST.RPTS^Newton-Wellesley 
Hospital^NEW5.4^TEST.5.4.MIS^MSM.BMS^20060808^A^Menu Logic report by Brian 
Schmit of Picis
@@VERSION:1
NPR.PROC.zcus.picis.bms.get.menu.logic
@@PROC
NPR.PROC.zcus.picis.bms.get.menu.logic
[EMAIL PROTECTED]
D1
This report was created by Brian Schmit of Picis
D2
 
D3
Contact Information: Brian Schmit
D4
                     Sr. Programmer, Picis
D5
                     Direct: 781 557 3315
D6
                     Fax: 781 557 3140
D7
                     100 Quannapowitt Parkway
D8
                     Suite 405
D9
                     Wakefield, MA 01880
D10
                     [EMAIL PROTECTED]
D11
                     www.picis.com
D12
 
D13
Picis provides trainings for NPR Report Writer, Customer-Defined Screens, and
D14
Rules. Picis also provides NPR Reports, CDS attributes, and custom application
D15
programming both on-site and remotely.
D16
 
D17
Please visit http://www.picis.com/services/technical/npr.asp# for more
D18
information on what Picis can do for your Meditech facility.
@@MACRO
NPR.PROC.zcus.picis.bms.get.menu.logic.M.display
0
%Z.get.menu.logic(c.procedure.urn,c.xx.arguments,A)^TEMP,
1
@W.return(TEMP),
2
TEMP;
@@RPT
Yzcus.picis.bms.get.menu.logicNPR.PROCmain'GET THE MENU LOGIC FOR AN NPR 
PROCEDUREREG1220066066
proceduresNNNYN011Y
AT      831574947
MSM.BMSE
AT      834330146
MSM.BMSE
CI

DC1
This report was created by Brian Schmit of Picis
DC2
 
DC3
Contact Information: Brian Schmit
DC4
                     Sr. Programmer, Picis
DC5
                     Direct: 781 557 3315
DC6
                     Fax: 781 557 3140
DC7
                     100 Quannapowitt Parkway
DC8
                     Suite 405
DC9
                     Wakefield, MA 01880
DC10
                     [EMAIL PROTECTED]
DC11
                     www.picis.com
DC12
 
DC13
Picis provides trainings for NPR Report Writer, Customer-Defined Screens, and 
Rules.
DC14
Picis also provides NPR Reports, CDS attributes, and custom application 
programming
DC15
both on-site and remotely.
DC16
 
DC17
Please visit http://www.picis.com/services/technical/npr.asp# for more 
information on
DC18
what Picis can do for your Meditech facility.
F1

procedure.urn
procedure.urn65L
F1SE1
EQc.procedure.urnPLEASE SELECT AN NPR PROCEDURE
F2
xx.argumentsxx.arguments2L
F2CDAT
FREE
F2CJFY
L
F2CLEN
60
F2CVAL
c.xx.arguments
F2SE2
IGc.xx.argumentsPLEASE ENTER ANY ARGUMENTS
F3
xx.applxx.appl2L
F3CDAT
FREE
F3CJFY
L
F3CLEN
11
F3CVAL
c.xx.appl
F3SE3
IG     c.xx.applPLEASE ENTER THE APPLICATION
F4

xx.menu.logic
xx.menu.logic2L
F4CDAT
FREE
F4CJFY
L
F4CLEN
199
F4CVAL
%Z.get.menu.logic(c.procedure.urn,c.xx.arguments,c.xx.appl)
FI113
651
FI313
602
FI513
113
FI70
1994
L1
D
L2
D
L3
D
L4
D
L5
D
L6
D
L7
D
P1
  Procedure: procedure.urn____________________________________________________
P2
 
P3
  Arguments: xx.arguments________________________________________________
P4
 
P5
Application: xx.appl____
P6
 
P7
xx.menu.logic__________________________________________________________________________________________________________________________________________________________________________________________
T1

procedure.urnNONENASC
@@SCRN
Yzcus.picis.bms.get.menu.logicNPR.PROC&NPR.PROC.zcus.picis.bms.get.menu.logic2NN
CS
8210759
P1
'GET THE MENU LOGIC FOR AN NPR PROCEDURE%Z.on.device
P1F1
c.procedure.urn12069131214
P1F1CID.ARG
BR
P1F1CIFE
1
P1F1CREQI
1
P1F2
c.xx.arguments150651311210
P1F2CDAT
FREE
P1F2CID.ARG
BR
P1F2CIFE
1
P1F2CLEN
60
P1F2CREQ
""
P1F3
        c.xx.appl180719693
P1F3CDAT
FREE
P1F3CID
%Z.id.dict.color(^&IA,A,"Mnemonic":11L_("Name":47L),"CD:11L_&IA[CD]|1")
P1F3CID.ARG
BR
P1F3CIFE
1
P1F3CLEN
11
P1F3CREQ
1
P1F3CREQI
1
P1P1
PLEASE SELECT AN NPR PROCEDURE
P1P2
@1
P1P3
 
P1P4
PLEASE ENTER ANY ARGUMENTS
P1P5
@2
P1P6
 
P1P7
PLEASE ENTER THE APPLICATION
P1P8
@3
P1S1
N,1,2,3
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to