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

BDMGPRPC.m

Go to the documentation of this file.
  1. BDMGPRPC ; cmi/anch/maw - BDMG Populate RPC field of Option file 1/10/2005 1:31:25 PM ;
  1. ;;2.0;BDM DIABETES MANAGEMENT SYSTEM;**1**;JAN 17, 2008
  1. ;
  1. ;
  1. ;
  1. ;
  1. MAIN ;EP - this is the main routine driver
  1. D POP
  1. Q
  1. ;
  1. POP ;-- populate the RPC field of the option file
  1. N BDMGDA,BDMGIEN
  1. S BDMGDA=0 F S BDMGDA=$O(^XWB(8994,"B",BDMGDA)) Q:BDMGDA="" D
  1. . Q:$E(BDMGDA,1,4)'="BDMG"
  1. . S BDMGIEN=0 F S BDMGIEN=$O(^XWB(8994,"B",BDMGDA,BDMGIEN)) Q:'BDMGIEN D
  1. .. K DD,DO
  1. .. S DA(1)=$O(^DIC(19,"B","BMXRPC",0))
  1. .. S DIC(0)="L"
  1. .. S DIC="^DIC(19,"_DA(1)_","_"""RPC"""_","
  1. .. S X=BDMGIEN
  1. .. D FILE^DICN
  1. Q
  1. ;