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

AZHWTEST.m

Go to the documentation of this file.
  1. AZHWTEST ; IHS/SD/EFG - TEST ROUTINE at 7/17/2003 11:13:08 AM
  1. ;
  1. ;Q
  1. PRVT ; FIND ANY PRIVATE ELIG MISSING INSURER POINTER
  1. W !,"If you answer ""NO"" or ""YES"" to ""Deleting"" the records, you will "
  1. W !," see the records displayed on the screen.",!!
  1. K DIR,ANSWER
  1. S DIR(0)="Y"
  1. S DIR("A")="DO YOU WANT TO DELETE THE BAD RECORDS IN AUPNPRVT "
  1. S DIR("B")="NO"
  1. D ^DIR S ANSWER=Y
  1. Q:$D(DIRUT)
  1. S RECNO=0
  1. F S RECNO=$O(^AUPNPRVT(RECNO)) Q:'RECNO D
  1. . S D1=0
  1. . F S D1=$O(^AUPNPRVT(RECNO,11,D1)) Q:'D1 D
  1. .. I $P($G(^AUPNPRVT(RECNO,11,D1,0)),U,1)="" D
  1. ... W !,"NO INSURER POINTER AT ","^AUPNPRVT(",RECNO,",11,",D1,",0)=",$G(^AUPNPRVT(RECNO,11,D1,0))
  1. ... I ANSWER=1 K ^AUPNPRVT(RECNO,11,D1,0)
  1. Q
  1. INS ; FIND INSURER RECORDS MISSING ZERO NODE
  1. W !,"If you answer ""NO"" or ""YES"" to ""Deleting"" the records, you will "
  1. W !," see the records displayed on the screen.",!!
  1. K DIR,ANSWER
  1. S DIR(0)="Y"
  1. S DIR("A")="DO YOU WANT TO DELETE THE BAD RECORDS IN AUTNINS "
  1. S DIR("B")="NO"
  1. D ^DIR S ANSWER=Y
  1. Q:$D(DIRUT)
  1. S RECNO=0
  1. F S RECNO=$O(^AUTNINS(RECNO)) Q:'RECNO D
  1. . I '$D(^AUTNINS(RECNO,0)) D
  1. .. W !,"AUTNINS ENTRY MISSING ZERO NODE = ",RECNO
  1. .. I ANSWER=1 S DIK="^AUTNINS(",DA=RECNO D ^DIK
  1. .. S BNAME=""
  1. .. F S BNAME=$O(^AUTNINS("B",BNAME)) Q:BNAME="" D
  1. ... I $D(^AUTNINS("B",BNAME,RECNO)) D
  1. .... I ANSWER=1 K ^AUTNINS("B",BNAME,RECNO)
  1. Q