BRNDTST ; IHS/PHXAO/TMJ - ROI SELECTED REQUEST STATUS AND (BY DATE RANGE) ;
;;2.0;RELEASE OF INFO SYSTEM;*1*;APR 10, 2003
;IHS/OIT/LJF 01/23/2008 PATCH 1 Added date range limits
; 01/24/2008 Added choice of facility
;
;
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
W !! S DIR(0)="D^:"_DT_":EP",DIR("A")="Enter beginning ROI Initiated Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1 ;IHS/OIT/LJF 01/23/2008 PATCH 1
I $D(DIRUT) G END
S BRNBD=Y
ED ;get ending date
;W ! S DIR(0)="D^"_BRNBD_"::EP",DIR("A")="Enter ending ROI Initiation Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
W ! S DIR(0)="D^"_BRNBD_":"_DT_":EP",DIR("A")="Enter ending ROI Initiation Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1 ;IHS/OIT/LJF 01/23/2008 PATCH 1
I $D(DIRUT) G BD
S BRNED=Y
S X1=BRNBD,X2=-1 D C^%DTC S BRNSD=X
W !
;
;
ASK ;Ask if a particular Status
S BRNSTBD="C",BRNSTED="ZZ"
W ! S DIR(0)="Y0",DIR("A")="Would you like to INCLUDE ONLY a particular ROI Disclosure Status",DIR("B")="NO"
S DIR("?")="To RESTRICT to a particular ROI Disclosure Status - Answer Yes."
D ^DIR K DIR
G:$D(DIRUT) BD
I 'Y G PRINT
;
STATUS ;ROI Disclosure STATUS
S DIR(0)="90264,.08",DIR("A")="Enter the Status"
K DA D ^DIR K DIR
G:$D(DIRUT) ASK
G:Y=0 ASK
S BRNSTBD=Y,BRNSTED=Y
;
;
PRINT ;PRINT CLOSED DISCLOSURES BY DATE
;
;select facility
NEW BRNFAC D ASKFAC^BRNU(.BRNFAC) I BRNFAC="" D END Q ;IHS/OIT/LJF 01/24/2008 PATCH 1
;
;set up print
S FLDS="[BRN PRIORITY REQUEST]",BY(0)="^BRNREC(""AC""," S L(0)=3,DIC="^BRNREC(",L=0
S FR(0,1)=BRNSD,TO(0,1)=BRNED
S FR(0,2)=BRNSTBD,TO(0,2)=BRNSTED
I BRNFAC>0 S DIS(0)="I $P(^BRNREC(D0,0),U,22)=BRNFAC" ;IHS/OIT/LJF 01/24/2008 PATCH 1
K DHIT,DIOEND,DIOBEG
D EN1^DIP
END ;
K BRNBD,BRNED,BRNSD,BRNSTBD,BRNSTED,X,DD0,B Q
BRNDTST ; IHS/PHXAO/TMJ - ROI SELECTED REQUEST STATUS AND (BY DATE RANGE) ;
+1 ;;2.0;RELEASE OF INFO SYSTEM;*1*;APR 10, 2003
+2 ;IHS/OIT/LJF 01/23/2008 PATCH 1 Added date range limits
+3 ; 01/24/2008 Added choice of facility
+4 ;
+5 ;
BD ;get beginning date
+1 ;W !! S DIR(0)="D^::EP",DIR("A")="Enter beginning ROI Initiated Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
+2 ;IHS/OIT/LJF 01/23/2008 PATCH 1
WRITE !!
SET DIR(0)="D^:"_DT_":EP"
SET DIR("A")="Enter beginning ROI Initiated Date"
DO ^DIR
KILL DIR
IF $DATA(DUOUT)
SET DIRUT=1
+3 IF $DATA(DIRUT)
GOTO END
+4 SET BRNBD=Y
ED ;get ending date
+1 ;W ! S DIR(0)="D^"_BRNBD_"::EP",DIR("A")="Enter ending ROI Initiation Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
+2 ;IHS/OIT/LJF 01/23/2008 PATCH 1
WRITE !
SET DIR(0)="D^"_BRNBD_":"_DT_":EP"
SET DIR("A")="Enter ending ROI Initiation Date"
DO ^DIR
KILL DIR
IF $DATA(DUOUT)
SET DIRUT=1
+3 IF $DATA(DIRUT)
GOTO BD
+4 SET BRNED=Y
+5 SET X1=BRNBD
SET X2=-1
DO C^%DTC
SET BRNSD=X
+6 WRITE !
+7 ;
+8 ;
ASK ;Ask if a particular Status
+1 SET BRNSTBD="C"
SET BRNSTED="ZZ"
+2 WRITE !
SET DIR(0)="Y0"
SET DIR("A")="Would you like to INCLUDE ONLY a particular ROI Disclosure Status"
SET DIR("B")="NO"
+3 SET DIR("?")="To RESTRICT to a particular ROI Disclosure Status - Answer Yes."
+4 DO ^DIR
KILL DIR
+5 IF $DATA(DIRUT)
GOTO BD
+6 IF 'Y
GOTO PRINT
+7 ;
STATUS ;ROI Disclosure STATUS
+1 SET DIR(0)="90264,.08"
SET DIR("A")="Enter the Status"
+2 KILL DA
DO ^DIR
KILL DIR
+3 IF $DATA(DIRUT)
GOTO ASK
+4 IF Y=0
GOTO ASK
+5 SET BRNSTBD=Y
SET BRNSTED=Y
+6 ;
+7 ;
PRINT ;PRINT CLOSED DISCLOSURES BY DATE
+1 ;
+2 ;select facility
+3 ;IHS/OIT/LJF 01/24/2008 PATCH 1
NEW BRNFAC
DO ASKFAC^BRNU(.BRNFAC)
IF BRNFAC=""
DO END
QUIT
+4 ;
+5 ;set up print
+6 SET FLDS="[BRN PRIORITY REQUEST]"
SET BY(0)="^BRNREC(""AC"","
SET L(0)=3
SET DIC="^BRNREC("
SET L=0
+7 SET FR(0,1)=BRNSD
SET TO(0,1)=BRNED
+8 SET FR(0,2)=BRNSTBD
SET TO(0,2)=BRNSTED
+9 ;IHS/OIT/LJF 01/24/2008 PATCH 1
IF BRNFAC>0
SET DIS(0)="I $P(^BRNREC(D0,0),U,22)=BRNFAC"
+10 KILL DHIT,DIOEND,DIOBEG
+11 DO EN1^DIP
END ;
+1 KILL BRNBD,BRNED,BRNSD,BRNSTBD,BRNSTED,X,DD0,B
QUIT