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

BNIGVLP3.m

Go to the documentation of this file.
  1. BNIGVLP3 ; IHS/CMI/LAB - CONT OF BNIGVLP ;
  1. ;;1.0;BNI CPHD ACTIVITY DATASYSTEM;;DEC 20, 2006
  1. ;
  1. ;
  1. COVPAGE ;EP
  1. S BNIC=0
  1. S X="CPHAD General Retrieval Report Listing SUMMARY PAGE" D SET(X)
  1. S X="REPORT REQUESTED BY: "_U_$P(^VA(200,DUZ,0),U) D SET(X)
  1. SHOW ;
  1. S X="CPHAD Activity Record Selection Criteria" D SET(X)
  1. S X="Date range: "_U_BNIGBDD_U_" to "_U_BNIGEDD
  1. I '$D(^BNIRTMP(BNIGRPT,11)) G SHOWP
  1. S BNIGI=0 F S BNIGI=$O(^BNIRTMP(BNIGRPT,11,BNIGI)) Q:BNIGI'=+BNIGI D
  1. .S X=$P(^BNIGRI(BNIGI,0),U) D SET(X)
  1. .K BNIGQ S BNIGY="",C=0 K BNIGQ F S BNIGY=$O(^BNIRTMP(BNIGRPT,11,BNIGI,11,"B",BNIGY)) Q:BNIGY'=+BNIGY S X=BNIGY X:$D(^BNIGRI(BNIGI,2)) ^(2) S X=U_X D SET(X)
  1. K BNIGQ
  1. SHOWP ;
  1. S X="" D SET(X)
  1. S X="" D SET(X)
  1. Q
  1. SET(X) ;
  1. S BNIC=BNIC+1
  1. S ^BNIGUI(BNIIEN,12,BNIC,0)=X
  1. Q