source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORCACT3.m@ 1195

Last change on this file since 1195 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1ORCACT3 ;SLC/MKB-Delayed Orders ; 08 May 2002 2:12 PM
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**7,45,48,79,141**;Dec 17, 1997
3EN ; -- main entry point
4 K ORVP D EN^ORQPT Q:'$G(ORVP)
5 S ORTAB="DELAY" D EN^VALM("OR DELAYED ORDERS")
6 Q
7 ;
8EN1(ORVP) ; -- entry point for use with DGPM MOVEMENT EVENTS
9 Q:'$$ACCESS^ORCHTAB ;CPRS not in user's option menu tree
10 Q:'$G(ORVP) Q:'$$REVIEW(DFN)
11 N ORTAB,DFN ;protect DFN within event protocol
12 S DFN=+ORVP,ORVP=DFN_";DPT(",ORTAB="DELAY" D SLCT1^ORQPT
13 D EN^VALM("OR DELAYED ORDERS")
14 Q
15 ;
16REVIEW(PAT) ; -- Want to review delayed orders?
17 N X,Y,DIR Q:'$D(^OR(100,"AEVNT",PAT_";DPT(")) 0
18 S DIR(0)="YA",DIR("A")="Review delayed orders? ",DIR("B")="YES"
19 S DIR("?")="Answer YES to review this patient's delayed orders"
20 D ^DIR
21 Q +Y
22 ;
23INIT ; -- init variables and list array
24 D TAB^ORCHART(ORTAB)
25 Q
26 ;
27PHDR ; -- protocol menu header code
28 N ORM,ORI,ORS,ORSYN
29 S VALMSG=$$MSG^ORCHART D SHOW^VALM
30 S ORM=+$O(^ORD(101,"B","ORC DELAY ACTIONS",0))
31 S XQORM("#")=ORM_"^1:"_+$P($G(^TMP("OR",$J,"DELAY",0)),U,2),ORI=0
32 F S ORI=+$O(^ORD(101,ORM,10,"B",ORI)) Q:ORI<1 I $D(^ORD(101,ORI,2)) D
33 . S ORS=0 F S ORS=$O(^ORD(101,ORI,2,ORS)) Q:ORS'>0 S ORSYN=$G(^(ORS,0)) S:$L(ORSYN) XQORM("KEY",ORSYN)=+ORI_"^1"
34 Q
35 ;
36HELP ; -- help code
37 N X W !!,"Enter the display numbers of the items you wish to act on; a menu of"
38 W !,"available actions will then be presented for selection."
39 W !,"Press <return> to continue ..." R X:DTIME S VALMBCK=""
40 Q
41 ;
42EXIT ; -- exit code
43 D UNLOCK^ORX2(+ORVP) K ^TMP("OR",$J),^TMP("LRRR",$J)
44 K VALMCNT,VALMHDR,VALMBG,ORQUIT,ORVP,ORSEX,ORTAB,ORPNM,ORSSN,ORL,ORDOB,ORAGE,ORPD,ORNP,ORSC,ORTS,ORWARD,ORATTEND,ORNMBR,ORACTION,OREBUILD,OREVENT
45 Q
46 ;
47DC ; -- cancel orders
48 W !!,"This action is no longer supported." H 2
49 S VALMBCK=""
50 Q
51 ;
52RELEASE ; -- Release orders to the service
53 W !!,"This action is no longer supported." H 2
54 S VALMBCK=""
55 Q
56 ;
57TS ; -- Edit treating specialty
58 W !!,"This action is no longer supported." H 2
59 S VALMBCK=""
60 Q
Note: See TracBrowser for help on using the repository browser.