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

AVAP10.m

Go to the documentation of this file.
  1. AVAP10 ;IHS/ASDST/GTH - CORRECT GIHS XREF FROM 200 TO 6 ; [ 02/24/1999 1:45 PM ]
  1. ;;93.2;VA SUPPORT FILES;**10**;JUL 01, 1993;Build 12
  1. ;
  1. S U="^"
  1. W !!!,"This is Patch 10 to AVA 93.2."
  1. W !!,"A correction will be made to the File 200 dd, Field 9999999.09,"
  1. W !,"which does not correctly set the GIHS x-ref on File 6."
  1. W !!,"Then, the x-ref will be fired for all entries in File 200, which"
  1. W !,"will correctly set the GIHS x-ref on File 6."
  1. W !!,"Based on your ",$P(^VA(200,0),U,4)," entries in File 200,"
  1. W !,"this should take about ",$FN($P(^VA(200,0),U,4)/100/60,"",2)," minutes."
  1. W !!,"Re-running this patch causes no harm."
  1. W !!
  1. NEW DIR
  1. S DIR(0)="YO",DIR("B")="NO"
  1. S DIR("A")="OKAY to run Patch 10"
  1. D ^DIR
  1. KILL DIR
  1. G:Y'=1 EOJ
  1. D WAIT^DICD
  1. ;
  1. UPDATEDD ;
  1. W !,"Updating dd..."
  1. NEW DA
  1. F %=1:1 Q:'$D(^DD(200,9999999.09,1,%)) I $P(^(%,0),"^",2)="ACXIHS09" S DA=% Q
  1. I '$D(DA) W !,"X-REF 'ACXIHS09' not found in File 200, Field 9999999.09.",!,"Abnormal end of Patch 10!" G EOJ
  1. ;
  1. I '(^DD(200,9999999.09,1,DA,1)=$P($T(OLDSET),";",3)) W !,"You don't have the standard SET of the ACXIHS09 x-ref.",!,"Ending Patch 10 without updating." G EOJ
  1. ;
  1. I '(^DD(200,9999999.09,1,DA,2)=$P($T(OLDKILL),";",3)) W !,"You don't have the standard KILL of the ACXIHS09 x-ref.",!,"Ending Patch 10 without updating." G EOJ
  1. ;
  1. W !,"Updating SET of x-ref 'ACXIHS09'..."
  1. S ^DD(200,9999999.09,1,DA,1)=$P($T(SET),";",3)
  1. W "Done updating SET."
  1. ;
  1. W !,"Updating KILL of x-ref 'ACXIHS09'..."
  1. S ^DD(200,9999999.09,1,DA,2)=$P($T(KILL),";",3)
  1. W "Done updating KILL."
  1. ;
  1. S ^DD(200,9999999.09,"DT")=$$DT^XLFDT
  1. KILL DA
  1. ;
  1. W !,"dd update complete."
  1. ;
  1. XREF ;
  1. W !!,"Beginning re-index of File 200, Field 9999999.09, x-ref 'ACXIHS09'..."
  1. NEW DIK
  1. S DIK="^VA(200,",DIK(1)="9999999.09^ACXIHS09"
  1. D ENALL^DIK
  1. KILL DIK
  1. W !,"Re-index complete."
  1. ;
  1. W !!,"Patch 10 to AVA 93.2 is complete.",!
  1. ;
  1. EOJ ;
  1. KILL DIC,DIR,DIE,DA,DR,X,Y
  1. Q
  1. ;
  1. SET ;;N % S %=$P(^DIC(3,DA,0),U,16) I %]"" S:'$D(^DIC(6,%,9999999)) ^DIC(6,%,9999999)="" S $P(^(9999999),U,9)=X,^DIC(6,"GIHS",X,%)=""
  1. ;
  1. KILL ;;N % S %=$P(^DIC(3,DA,0),U,16) I %]"",$D(^DIC(6,%,9999999)) S $P(^(9999999),U,9)="" K ^DIC(6,"GIHS",X,%)
  1. ;
  1. OLDSET ;;N % S %=$P(^DIC(3,DA,0),U,16) I %]"" S:'$D(^DIC(6,%,9999999)) ^DIC(6,%,9999999)="" S $P(^(9999999),U,9)=X
  1. ;
  1. OLDKILL ;;N % S %=$P(^DIC(3,DA,0),U,16) I %]"",$D(^DIC(6,%,9999999)) S $P(^(9999999),U,9)=""
  1. ;