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

BIPCC.m

Go to the documentation of this file.
BIPCC ;IHS/CMI/MWR - DISPLAY PCC LINK INFO; MAY 10, 2010
 ;;8.5;IMMUNIZATION;;SEP 01,2011
 ;;* MICHAEL REMILLARD, DDS * CIMARRON MEDICAL INFORMATICS, FOR IHS *
 ;;  DISPLAY PCC LINK DIAGNOSTIC INFO.
 ;
 ;---> *** THIS IS ONLY CALLED IF SET BITEST=1 AT VISIT+64^BIVISIT
 ;---> *** AND VFILE+40.
 ;---> *** PROGRAMMER USE ONLY.
 ;
 ;
 ;----------
DISPLAY1 ;EP
 ;---> DISPLAY VISIT IEN.
 I $D(APCDALVR("APCDVSIT")) D
 .W !,"APCDVSIT DEFINED: ",APCDALVR("APCDVSIT")
 I $D(APCDALVR("APCDVSIT","NEW")) D
 .W !,"NEW VISIT: ",APCDALVR("APCDVSIT","NEW")
 ;---> SHOW FLAG IF VISIT WAS NOT CREATED.
 I $D(APCDALVR("APCDAFLG")) D
 .W !,"APCDAFLG DEFINED, FAILED: ",APCDALVR("APCDAFLG")
 D DIRZ^BIUTL3()
 Q
 ;
 ;
 ;----------
DISPLAY2 ;EP
 ;---> DISPLAY V FILE IEN.
 I $D(APCDALVR("APCDADFN")) D
 .W !,"APCDADFN DEFINED: ",APCDALVR("APCDADFN")
 ;---> SHOW FLAG IF VISIT WAS NOT CREATED.
 I $D(APCDALVR("APCDAFLG")) D
 .W !,"APCDAFLG DEFINED, FAILED: ",APCDALVR("APCDAFLG")
 D DIRZ^BIUTL3()
 Q
 ;
 ;
 ;----------
DISPLAY3 ;EP
 ;---> DISPLAY VISIT AND V FILE GLOBAL NODES AND FILE#70 IENS.
 W !!,"VISIT FILE: "
 S N=APCDALVR("APCDVSIT")-3 S:N<0 N=0
 F  S N=$O(^AUPNVSIT(N)) Q:'N  D
 .W !,N,": ",^AUPNVSIT(N,0)
 ;
 W !!,"V FILE: "
 S BIVGBL=^DIC(BIVFIL,0,"GL")
 S N=APCDALVR("APCDADFN")-3,M=N+10 S:N<0 N=0
 F  S N=$O(@(BIVGBL_"N)")) Q:'N  Q:N>M  D
 .W !,N,": ",@(BIVGBL_"N,0)")
 D DIRZ^BIUTL3()
 Q