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

ABMDVDSP.m

Go to the documentation of this file.
  1. ABMDVDSP ; IHS/ASDST/DMJ - DISPLAY A PCC VISIT ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;;Y2K/OK - IHS/ADC/JLG 12-18-97
  1. ;Original;TMD;
  1. ;
  1. Q:'$D(ABMDVDSP)
  1. Q:'ABMDVDSP
  1. Q:'$D(^AUPNVSIT(ABMDVDSP,0))
  1. S APCDVDSP=ABMDVDSP
  1. D ^APCDVDSP
  1. K ABMDVDSP,APCDVDSP
  1. Q
  1. ;
  1. D DSPLY
  1. D EOJ
  1. Q
  1. ;
  1. DSPLY ;
  1. W $$EN^ABMVDF("IOF") K S,DR
  1. S ABMDVDSH="-----------------------------"
  1. S X="",$P(X,"~",80)="" W !,X,!!,ABMDVDSH," VISIT FILE ",ABMDVDSH
  1. S DIC="^AUPNVSIT(",DA=ABMDVDSP D EN^DIQ
  1. S ABMDVFLE=9000010 F ABMDVL=0:0 S ABMDVFLE=$O(^DIC(ABMDVFLE)) Q:ABMDVFLE>9000010.99!(ABMDVFLE'=+ABMDVFLE) D DSPLY2 Q:$D(DTOUT)!$D(DUOUT)
  1. S X="",$P(X,"~",80)="" W !,X
  1. Q
  1. ;
  1. DSPLY2 S ABMDVNM=$P(^DIC(ABMDVFLE,0),U,1)
  1. S ABMDVDG=^DIC(ABMDVFLE,0,"GL"),ABMDVIGR=ABMDVDG_"""AD"",ABMDVDSP,ABMDVDFN)"
  1. S ABMDVDFN="" F ABMDVI=1:1 S ABMDVDFN=$O(@ABMDVIGR) Q:ABMDVDFN="" D DSPLY3 Q:$D(DTOUT)!$D(DUOUT)
  1. Q
  1. ;
  1. DSPLY3 I $Y>(IOSL-7) K DIR S DIR(0)="E" D ^DIR K DIR,S Q:$D(DTOUT)!$D(DUOUT) W $$EN^ABMVDF("IOF")
  1. I ABMDVI<2 S X=20-$L(ABMDVNM),Y=X\2,Z=X-Y W !,ABMDVDSH,$J("",Z),ABMDVNM,$J("",Y),ABMDVDSH
  1. ;LAB SET S=0 BELOW TO DISABLE THE "^" TO HALT PROMPTS
  1. S DIC=ABMDVDG,DA=ABMDVDFN,DIQ(0)="C" D EN^DIQ
  1. Q
  1. ;
  1. EOJ ; EOJ CLEANUP
  1. I '$D(DTOUT),'$D(DUOUT) K DIR S DIR(0)="E" D ^DIR K DIR
  1. K X,Y
  1. K ABMDVDFN,ABMDVDG,ABMDVDSH,ABMDVDSP,ABMDVFLE,ABMDVI,ABMDVIGR,ABMDVL,ABMDVNM
  1. Q