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

BMCRRDEL.m

Go to the documentation of this file.
  1. BMCRRDEL ; IHS/PHXAO/TMJ - delete Routine Referral Templates ;
  1. ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
  1. ;
  1. ;This routine will do a DIC lookup into the Routine Referral
  1. ;file and delete the entry
  1. ;
  1. EN ;EP - called from an option
  1. W !!,"This option enables the user to delete a Routine Referral Template.",!!
  1. D GETRPT
  1. G:'BMCRRPT XIT ;no report selected
  1. D DELETE
  1. D XIT
  1. Q
  1. GETRPT ;get Rourtine Referral entry - Any Routine Referral May be Deleted
  1. S BMCRRPT=""
  1. S DIC="^BMCRTNRF(" S DIC(0)="AEQ",DIC("A")="ROUTINE REFERRAL TEMPLATE NAME: " D ^DIC K DIC,DA,DR
  1. Q:Y=-1
  1. S BMCRRPT=+Y
  1. Q
  1. DELETE ;
  1. S DIR(0)="Y",DIR("A")="Are you sure you want to delete the "_$P(^BMCRTNRF(BMCRRPT,0),U)_" Routine Referral",DIR("B")="N" K DA D ^DIR K DIR
  1. Q:$D(DIRUT)
  1. Q:'Y
  1. W !,"Routine Referral ",$P(^BMCRTNRF(BMCRRPT,0),U)," deleted.",!
  1. S DA=BMCRRPT,DIK="^BMCRTNRF(" D ^DIK
  1. Q
  1. XIT ;
  1. K BMCRRPT
  1. K DA,DIK,D0
  1. Q