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

PRCHUPT.m

Go to the documentation of this file.
PRCHUPT ;WISC/AKS-Unposted Dietetic cost report ;
 ;;5.1;IFCAP;;Oct 20, 2000
 ;Per VHA Directive 10-93-142, this routine should not be modified.
 N PRCHFR,PRCHTO,FR,TO,L,DIC,BY,FLDS,Y,FROM,LASTTO,DIS,PRCF
 S PRCF("X")="S" D ^PRCFSITE Q:'$D(PRC("SITE"))
 S DIR(0)="F",DIR("?")="This is the valid Fund Control Point."
 S DIR("A")="START WITH FCP",DIR("B")="FIRST" D ^DIR Q:X["^"
 S (FROM,PRCHFR)=Y I Y?1.N S PRCHFR=Y_" "
 I Y="FIRST" S PRCHFR="" K DIR,X
 S (PRCHTO,LASTTO)="" I $G(Y)'="FIRST" D LAST Q:X["^"
PRINT I FROM]LASTTO S PRCHTO=LASTTO
 S FR=","_PRCHFR_",?",TO=","_PRCHTO_",?"
 S L=0,DIC=442,BY="[PRCH UNPOSTED DIETETIC SORT]"
 S DIS(0)="I PRC(""SITE"")=$P($P(^PRC(442,D0,0),U),""-"")&('$P($G(^PRC(442,D0,18)),U,8))"
 S FLDS="[PRCH UNPOSTED DIETETIC PRINT]" D EN1^DIP
 I PRCHFR]"",PRCHTO]"",FROM]LASTTO D LAST Q:X["^"  G PRINT
 QUIT
LAST S DIR(0)="F",DIR("?")="This is the valid Fund Control Point."
 S DIR("A")="GO TO FCP",DIR("B")="LAST" D ^DIR Q:X["^"
 S (LASTTO,PRCHTO)=Y
 I Y?1.N S PRCHTO=Y_"z"
 I Y="LAST" S PRCHTO="" K DIR
 Q