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

ACHSEOB5.m

Go to the documentation of this file.
ACHSEOB5 ; IHS/ITSC/PMF - PROCESS EOBRS (6/6) - SUMMARY/ERROR REPORT ; [ 12/06/2002  10:36 AM ]
 ;;3.1;CONTRACT HEALTH MGMT SYSTEM;**5**;JUN 11, 2001
 ;IHS/SET/GTH ACHS*3.1*5 12/06/2002 - Change to standard ^%ZISS call.
 ;                                    ;WHY DO WE
 S ACHSIO=IO,(ACHSISAO,ACHSSUM)=0     ;RESET IS AREA OFFICE FLAG TO NO
 ;D HOME^%ZIS,NOW^ACHS,LINES^ACHSFU;IHS/SET/GTH ACHS*3.1*5 12/06/2002
 D HOME^%ZIS,NOW^ACHS,LINES^ACHSFU,VIDEO^ACHS ;IHS/SET/GTH ACHS*3.1*5 12/06/2002
 S ACHSIO=IO,ACHS("R")=$O(^ACHSPCC(0)),ACHS("SITE")=$$LOC^ACHS,ACHSEOBD=$P($G(^ACHSF(DUZ(2),17,0)),U,3)
 U IO(0)
 W !
 ;D EN^XBVIDEO("IORVON");IHS/SET/GTH ACHS*3.1*5 12/06/2002
 ;W "THESE REPORTS WILL ONLY INCLUDE THOSE DOCUMENTS",!,"FROM THE LAST EOBR PROCESSING RUN.";IHS/SET/GTH ACHS*3.1*5 12/06/2002
 W IORVON,"THESE REPORTS WILL ONLY INCLUDE THOSE DOCUMENTS",!,"FROM THE LAST EOBR PROCESSING RUN.",IORVOFF ;IHS/SET/GTH ACHS*3.1*5 12/06/2002
 ;D EN^XBVIDEO("IORVOFF");IHS/SET/GTH ACHS*3.1*5 12/06/2002
 W !
MODE ;
 K DIR
 S DIR(0)="SO^1:Print EOBR Processing Summary Report;2:Print EOBR Processing Error Documents;3:Print EOBR Documents"
 S DIR("A")="          Select"
 S DIR("?",1)="Press (1) to print a summary of transactions processed"
 S DIR("?",2)="Press (2) to print EOBRs that have processing errors/warnings"
 S DIR("?")="Press (3) to print a range of EOBRs from LAST EOBR PROCESSING"
 D ^DIR
 K DIR
 G K:$D(DUOUT)!$D(DIRUT)!$D(DTOUT)!('Y)
 S ACHSRPT=+Y
 I ACHSRPT=1,'$O(^ACHSEOBR(0)) W !!,*7,"NO EOBRS OR ERRORS/WARNINGS RECORDED",!! D RTRN^ACHS G K
 I ACHSRPT=2,'$O(^ACHSEOBR("ER",0)) W !!,*7,!,"NO EOBR ERRORS/WARNINGS RECORDED.",!! D RTRN^ACHS G K
 I ACHSRPT=3 D ^ACHSEOB7 G K
DEV ;
 S %=$$PB^ACHS
 I %=U!$D(DTOUT)!$D(DUOUT) D K Q
 I %="B" D VIEWR^XBLM("START^ACHSEOB6"),EN^XBVK("VALM"),K Q
 S %ZIS="OPQ"
 D ^%ZIS
 I POP D HOME^%ZIS G K
 G:'$D(IO("Q")) START^ACHSEOB6
 K IO("Q")
 I $D(IO("S"))!($E(IOST)'="P") W *7,!,"Please queue to system printers." D ^%ZISC G DEV
 S ZTRTN="START^ACHSEOB6",ZTDESC="CHS EOBR Processing Report, for "_$$LOC^ACHS_"."
 F %="ACHSRPT","ACHSEOBD","ACHSISAO","ACHSSUM" S ZTSAVE(%)=""
 D ^%ZTLOAD
 G:'$D(ZTSK) DEV
K ;EP - Kill vars, do ERPT, quit.
 K ZTSK
 ;D ERPT^ACHS,EN^XBVK("ACHS"),^ACHSVAR;IHS/SET/GTH ACHS*3.1*5 12/06/2002
 D ERPT^ACHS,EN^XBVK("ACHS"),^ACHSVAR,KILL^%ZISS ;IHS/SET/GTH ACHS*3.1*5 12/06/2002
 Q
 ;