Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: BRNPTRQ

BRNPTRQ.m

Go to the documentation of this file.
BRNPTRQ ; IHS/PHXAO/TMJ - ROI REQUESTING PARTY (BY DATE RANGE) ;  
 ;;2.0;RELEASE OF INFO SYSTEM;*1*;APR 10, 2003
 ;IHS/OIT/LJF 01/24/2008 PATCH 1 Added limit to date range
 ;                               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/24/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/24/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 Requesting Party
 S BRNUSE=1,BRNUSE1=10000
 W ! S DIR(0)="Y0",DIR("A")="Want to INCLUDE a particular Party Who Requested the Disclosure",DIR("B")="NO"
 S DIR("?")="To RESTRICT to a particular Requesting Party  - Answer Yes."
 D ^DIR K DIR
 G:$D(DIRUT) BD
 I 'Y G PRINT
USER ;ROI Disclosure USER
 S DIC=90264.1,DIC(0)="AEMQ",DIC("A")="Enter Requesting Party Name: "
 D ^DIC K DIC
 ;
 Q:$D(DIRUT)
 G:Y=0 ASK
 S BRNUSE=+Y,BRNUSE1=+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 DISCLOSURE INFO]",BY(0)="^BRNREC(""AP""," S L(0)=3,DIC="^BRNREC(",L=0
 S FR(0,1)=BRNUSE,TO(0,1)=BRNUSE1
 S FR(0,2)=BRNBD,TO(0,2)=BRNED
 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,BRNUSE,BRNUSE1,X,DD0,B Q