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

BLRAPPH.m

Go to the documentation of this file.
  1. BLRAPPH ;DAOU/ALA-Find Primary Menus for Providers [ 11/18/2002 1:39 PM ]
  1. ;;5.2;LR;**1013,1015**;NOV 18, 2002
  1. ;
  1. ;**Program Description**
  1. ; This program can be run to find the primary menu
  1. ; options for potential participating providers
  1. ;
  1. EN ; Starting point
  1. S PNM="" D ^%ZIS Q:POP
  1. ;
  1. ; Go through the provider cross-reference
  1. PNAM S PNM=$O(^VA(200,"AK.PROVIDER",PNM)) G EXIT:PNM=""
  1. S IEN=""
  1. IEN S IEN=$O(^VA(200,"AK.PROVIDER",PNM,IEN)) G PNAM:IEN=""
  1. ;
  1. ; Check for termination date
  1. I $P($G(^VA(200,IEN,0)),U,11)'="" G IEN
  1. ;
  1. ; Get the primary menu pointer
  1. S PMEN=$G(^VA(200,IEN,201)) G IEN:PMEN=""
  1. S PMENU=$S($G(^DIC(19,PMEN,0))="":PMEN,1:$P($G(^DIC(19,PMEN,0)),U,1)) W !,IEN,?6,PNM,?40,PMENU,?60,$P($G(^(0)),U,2)
  1. G IEN
  1. EXIT D ^%ZISC
  1. Q