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

USRPROV.m

Go to the documentation of this file.
  1. USRPROV ; SLC/DJP - Auto-populate PROVIDER CLASS ;05/05/98
  1. ;;1.0;AUTHORIZATION/SUBSCRIPTION;**7**;Jun 20, 1997
  1. MAIN ; Main loop
  1. N USRDFN,USRNOW
  1. S USRDFN=0
  1. I +$G(^USR(8930.3,"USRPROV")) D Q
  1. . W !!,"This option has already been run...Aborting option.",!
  1. W !!,"Initializing the PROVIDER Class"
  1. F S USRDFN=$O(^XUSEC("PROVIDER",USRDFN)) Q:+USRDFN'>0 D
  1. . S USRNOW=$$NOW^XLFDT
  1. . ; Exclude terminated users
  1. . I +$P($G(^VA(200,USRDFN,0)),U,11)>0,(+$P($G(^(0)),U,11)<USRNOW) Q
  1. . S USRNM=$P($G(^VA(200,USRDFN,0)),U)
  1. . ; Exclude users w/o names or "ZZ" users
  1. . I (USRNM']"")!($E(USRNM,1,2)="ZZ") Q
  1. . D PUT^USRLM(USRDFN,"PROVIDER") W "."
  1. S ^USR(8930.3,"USRPROV")=1
  1. Q