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

BDWSR1.m

Go to the documentation of this file.
BDWSR1 ; IHS/CMI/LAB - DW REPORT 1 ;
 ;;1.0;IHS DATA WAREHOUSE;;JAN 23, 2006
V ;EP
 S BDWSR("V")=0 F  S BDWSR("V")=$O(^BDWXLOG(BDWSR("LOG"),21,BDWSR("V"))) Q:BDWSR("V")'=+BDWSR("V")  D PROC
 Q
PROC ;
 Q:'$D(^AUPNVSIT(BDWSR("V"),0))
 I '$P(^BDWXLOG(BDWSR("LOG"),21,BDWSR("V"),0),U,2) Q
 D STATDB
 Q
STATDB ;
 S BDWSR("PROC")=""""_BDWSR_""",BDWJOB,BDWBTH,"_""""_"GEN"_""""
 S BDWVAR="TYPE STATDB" D TYPE^BDWSR2 S BDWVAR="SC STATDB" D SC^BDWSR2 S BDWVAR="CLINIC STATDB" D CLINIC^BDWSR2 S BDWVAR="LOC STATDB" D LOC^BDWSR2 S BDWVAR="PROV STATDB" D PROV^BDWSR2 S BDWVAR="V DATE STATDB" D VD^BDWSR2
 Q
COUNT ;
 I '$D(@X) S @X=0
 S %=@X,%=%+1,@X=%
 Q