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

ACHSTV.m

Go to the documentation of this file.
  1. ACHSTV ; IHS/ITSC/PMF - test version of routines [ 10/16/2001 8:16 AM ]
  1. ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
  1. ;;3.1T1;ACHS;;JAN 19, 2001
  1. ;
  1. ; this routine allows the user to turn test versions off
  1. ;and on. The routine must first already be defined in
  1. ; ^ACHS("TEST VERSION"). Example
  1. ;
  1. ; ^ACHS("TEST VERSION",4)="ACHSFOO^ACHSFOOX^0"
  1. ;
  1. ;If it is defined there, the user can set or clear the flag
  1. ;that says "YES, USE THE TEST VERSION"
  1. ;
  1. ;
  1. N DIR
  1. ;
  1. ;first ask which routine
  1. S DIR(0)="FO^3:32^I '$D(^ACHS(""TEST VERSION"",""B"",X)) K X"
  1. S DIR("A")="Enter the routine name for testing "
  1. S DIR("?")="Enter ?? for a list of valid testing routines"
  1. S DIR("??")="^D LIST^ACHSTV"
  1. W !! D ^DIR
  1. I Y=""!(Y["^") Q
  1. ;
  1. S ACHSNUM=$O(^ACHS("TEST VERSION","B",Y,""))
  1. I ACHSNUM="" W !!,"Entry not found. Please report this to the Support Team" Q
  1. ;
  1. S ACHSON=$P($G(^ACHS("TEST VERSION",ACHSNUM,1)),U,3)
  1. S DIR(0)="SOMB^Y:Yes;N:No"
  1. I ACHSON S DIR("A")="Test version in use. "
  1. I 'ACHSON S DIR("A")="Test version NOT in use. "
  1. S DIR("A")=DIR("A")_"Change? "
  1. W !! D ^DIR
  1. ;
  1. I Y=""!(Y="N") W !!,"No action taken ",!! D RTRN^ACHS Q
  1. S $P(^ACHS("TEST VERSION",ACHSNUM,1),U,3)='ACHSON
  1. W !!,"Change made ",!! D RTRN^ACHS
  1. Q
  1. LIST ;
  1. W !!,"These routines are presently on the test list",!
  1. S ACHSA="" F S ACHSA=$O(^ACHS("TEST VERSION","B",ACHSA)) Q:ACHSA="" W !,?5,ACHSA
  1. W !
  1. Q