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