VistA Analysis » VistA Reference » RPCs » ORWDXA FLAG

ORWDXA FLAG

Flag an existing order.

Properties

Property Value
Label FLAG
MUMPS Implementation ORWDXA
Return Type ARRAY

MUMPS Method Description

Property Value
Method FLAG^ORWDXA
Method Comment Flag order
Input Parameters ORIFN, OREASON, ORNP
Code
 N ORB,ORVP,DA,ORPS
D BULLETIN
S DA=$P(ORIFN,";",2),ORVP=+$P(^OR(100,+ORIFN,0),U,2)
K ^OR(100,+ORIFN,8,DA,3) S ^(3)="1^"_$G(XMZ)_U_+$E($$NOW^XLFDT,1,12)_U_DUZ_U_OREASON_$S($G(ORNP):"^^^^"_+ORNP,1:"")
D KILL^XM,MSG^ORCFLAG(ORIFN)
S $P(^OR(100,+ORIFN,3),U)=$$NOW^XLFDT ; Last Activity
I +$G(ORNP)<1 S ORNP=+$P($G(^OR(100,+ORIFN,8,DA,0)),U,3)
S ORB=+ORVP_U_+ORIFN_U_ORNP_"^1" D EN^OCXOERR(ORB) ; notification
D GETBYIFN^ORWORR(.REC,ORIFN)

CPRS

File Type Description
Pascal File Orders/rOrders.pas


Document generated on August 31st 2022, 2:55:43 pm