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

BMCDLRR.m

Go to the documentation of this file.
  1. BMCDLRR ; IHS/PHXAO/TMJ - delete routine referral definition ;
  1. ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
  1. ;
  1. ;
  1. W !!,"This option allows the user to delete a routine referral definition.",!,"This should only be done if the routine referral is no longer valid.",!!
  1. S DIC="^BMCRTNRF(",DIC(0)="AEMQ" D ^DIC
  1. I Y=-1 W !!,"NO DEFINTION SELECTED." G XIT
  1. S BMCRR=+Y
  1. S DIR(0)="Y",DIR("A")="Are you sure you want to delete the "_$P(^BMCRTNRF(BMCRR,0),U)_" referral definition",DIR("B")="N" K DA D ^DIR K DIR
  1. G:$D(DIRUT) XIT
  1. G:'Y XIT
  1. W !!,"DELETING ",$P(^BMCRTNRF(BMCRR,0),U)
  1. S DA=BMCRR,DIK="^BMCRTNRF(" D ^DIK K DA,DIK
  1. XIT ;
  1. K BMCRR
  1. K DIR
  1. D ^XBFMK
  1. Q