AZXAUSER ; IHS/PHXAO/TMJ - ROI USER INITAITED WORKLOAD REPORT AND (BY DATE RANGE) ;
;;2.0;RELEASE OF INFORMATION;;FEB 21, 2002
;
;
;
;
BD ;get beginning date
W !! S DIR(0)="D^::EP",DIR("A")="Enter beginning ROI Initiated Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
I $D(DIRUT) G END
S AZXABD=Y
ED ;get ending date
W ! S DIR(0)="D^"_AZXABD_"::EP",DIR("A")="Enter ending ROI Initiation Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
I $D(DIRUT) G BD
S AZXAED=Y
S X1=AZXABD,X2=-1 D C^%DTC S AZXASD=X
W !
;
;
ASK ;Ask if a particular User
S AZXAUSE=1,AZXAUSE1=10000
W ! S DIR(0)="Y0",DIR("A")="Want to INCLUDE a particular User who Initiated the Disclosure",DIR("B")="NO"
S DIR("?")="To RESTRICT to a particular User - Answer Yes."
D ^DIR K DIR
G:$D(DIRUT) BD
I 'Y G PRINT
USER ;ROI Disclosure USER
S DIC=200,DIC(0)="AEMQ",DIC("A")="Enter User Name: "
D ^DIC K DIC
;
Q:$D(DIRUT)
G:Y=0 ASK
S AZXAUSE=+Y,AZXAUSE1=+Y
;
;
PRINT ;PRINT CLOSED DISCLOSURES BY DATE
;W !
S FLDS="[AZXA DISCLOSURE INFO]",BY(0)="^AZXAREC(""AD""," S L(0)=3,DIC="^AZXAREC(",L=0
S FR(0,1)=AZXAUSE,TO(0,1)=AZXAUSE1
S FR(0,2)=AZXABD,TO(0,2)=AZXAED
K DHIT,DIOEND,DIOBEG
D EN1^DIP
END ;
K AZXABD,AZXAED,X,DD0,B Q
AZXAUSER ; IHS/PHXAO/TMJ - ROI USER INITAITED WORKLOAD REPORT AND (BY DATE RANGE) ;
+1 ;;2.0;RELEASE OF INFORMATION;;FEB 21, 2002
+2 ;
+3 ;
+4 ;
+5 ;
BD ;get beginning date
+1 WRITE !!
SET DIR(0)="D^::EP"
SET DIR("A")="Enter beginning ROI Initiated Date"
DO ^DIR
KILL DIR
IF $DATA(DUOUT)
SET DIRUT=1
+2 IF $DATA(DIRUT)
GOTO END
+3 SET AZXABD=Y
ED ;get ending date
+1 WRITE !
SET DIR(0)="D^"_AZXABD_"::EP"
SET DIR("A")="Enter ending ROI Initiation Date"
DO ^DIR
KILL DIR
IF $DATA(DUOUT)
SET DIRUT=1
+2 IF $DATA(DIRUT)
GOTO BD
+3 SET AZXAED=Y
+4 SET X1=AZXABD
SET X2=-1
DO C^%DTC
SET AZXASD=X
+5 WRITE !
+6 ;
+7 ;
ASK ;Ask if a particular User
+1 SET AZXAUSE=1
SET AZXAUSE1=10000
+2 WRITE !
SET DIR(0)="Y0"
SET DIR("A")="Want to INCLUDE a particular User who Initiated the Disclosure"
SET DIR("B")="NO"
+3 SET DIR("?")="To RESTRICT to a particular User - Answer Yes."
+4 DO ^DIR
KILL DIR
+5 IF $DATA(DIRUT)
GOTO BD
+6 IF 'Y
GOTO PRINT
USER ;ROI Disclosure USER
+1 SET DIC=200
SET DIC(0)="AEMQ"
SET DIC("A")="Enter User Name: "
+2 DO ^DIC
KILL DIC
+3 ;
+4 IF $DATA(DIRUT)
QUIT
+5 IF Y=0
GOTO ASK
+6 SET AZXAUSE=+Y
SET AZXAUSE1=+Y
+7 ;
+8 ;
PRINT ;PRINT CLOSED DISCLOSURES BY DATE
+1 ;W !
+2 SET FLDS="[AZXA DISCLOSURE INFO]"
SET BY(0)="^AZXAREC(""AD"","
SET L(0)=3
SET DIC="^AZXAREC("
SET L=0
+3 SET FR(0,1)=AZXAUSE
SET TO(0,1)=AZXAUSE1
+4 SET FR(0,2)=AZXABD
SET TO(0,2)=AZXAED
+5 KILL DHIT,DIOEND,DIOBEG
+6 DO EN1^DIP
END ;
+1 KILL AZXABD,AZXAED,X,DD0,B
QUIT