BMEMLOG ; IHS/PHXAO/TMJ - Print Logs by Date Range ;
;;1.0T1;MEDICAID ELIGIBILITY DOWNLOAD;;JUN 25, 2003
;
;
ASK ;Ask For Date Range
;
;
BD ;get beginning date
W !! S DIR(0)="D^::EP",DIR("A")="Enter beginning LOG RUN Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
I $D(DIRUT) G END
S BMEBD=Y
ED ;get ending date
W ! S DIR(0)="D^"_BMEBD_"::EP",DIR("A")="Enter ending LOG RUN Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
I $D(DIRUT) G BD
S BMEED=Y
S X1=BMEBD,X2=-1 D C^%DTC S BMESD=X
W !
;
PRINT ;PRINT CLOSED DISCLOSURES BY DATE
;W !
S FLDS="[CAPTIONED]",BY="@INTERNAL(#.01)",DIC="^BMEMLOG(",L=0
S FR=BMEBD,TO=BMEED
K DHIT,DIOEND,DIOBEG
D EN1^DIP
END ;
K BMEBD,BMEED,X,DD0,B Q
BMEMLOG ; IHS/PHXAO/TMJ - Print Logs by Date Range ;
+1 ;;1.0T1;MEDICAID ELIGIBILITY DOWNLOAD;;JUN 25, 2003
+2 ;
+3 ;
ASK ;Ask For Date Range
+1 ;
+2 ;
BD ;get beginning date
+1 WRITE !!
SET DIR(0)="D^::EP"
SET DIR("A")="Enter beginning LOG RUN Date"
DO ^DIR
KILL DIR
IF $DATA(DUOUT)
SET DIRUT=1
+2 IF $DATA(DIRUT)
GOTO END
+3 SET BMEBD=Y
ED ;get ending date
+1 WRITE !
SET DIR(0)="D^"_BMEBD_"::EP"
SET DIR("A")="Enter ending LOG RUN Date"
DO ^DIR
KILL DIR
IF $DATA(DUOUT)
SET DIRUT=1
+2 IF $DATA(DIRUT)
GOTO BD
+3 SET BMEED=Y
+4 SET X1=BMEBD
SET X2=-1
DO C^%DTC
SET BMESD=X
+5 WRITE !
+6 ;
PRINT ;PRINT CLOSED DISCLOSURES BY DATE
+1 ;W !
+2 SET FLDS="[CAPTIONED]"
SET BY="@INTERNAL(#.01)"
SET DIC="^BMEMLOG("
SET L=0
+3 SET FR=BMEBD
SET TO=BMEED
+4 KILL DHIT,DIOEND,DIOBEG
+5 DO EN1^DIP
END ;
+1 KILL BMEBD,BMEED,X,DD0,B
QUIT