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

AZHDPATC.m

Go to the documentation of this file.
AZHDPATC ;COMPARES IHS/VA PAT FILES, TO DEFINE UNEQUAL DFN'S [ 06/11/91  9:35 AM ]
 ;;2.0;UTILITY;CMB/RFD
 ;THIS ROUTINE WILL $O THRU THE PATIENT AND 3RD PARTY GLOBALS LOOKING FOR MISSNG ENTRIES
ST W !,"I WILL $O THRU THE PATIENT GLOBALS LOOKING FOR UNEQUAL DFN"
 W !,"AS UNEQUAL DFN ARE FOUND THE DFN WILL BE DISPLAYED"
 W !,"YOU SHOULD USE A SLAVE PRINTER FOR THIS RUN, AS THE SCREEN WILL SCROLL AND YOU WILL LOSE NEEDED INFORMATION",!
 S CNT=0,CNT1=0,CNT2=0,U="^"
 W !,"LOOPING THROUGH THE IHS PATIENT GLOBAL",!
LOOP S DFN=0 F AZHDNUM=1:1 S DFN=$O(^AUPNPAT(DFN)) G:DFN?.A LOOP1 W "I" D:'$D(^DPT(DFN)) PRT
LOOP1 ;
 W !,"LOOPING THROUGH THE VA PATIENT GLOBAL",!
 S DFN=0 F AZHDNUM=1:1 S DFN=$O(^DPT(DFN)) G:DFN?.A LOOP2 W "V" D:'$D(^AUPNPAT(DFN)) PRT1
LOOP2 ;
 W !,"LOOPING THROUGH THE MEDICARE GLOBAL",!
 S DFN=0 F AZHDNUM=1:1 S DFN=$O(^AUPNMCR(DFN)) G:DFN?.A LOOP3 W "M" D:'$D(^AUPNPAT(DFN)) PRT2
LOOP3 ;
 W !,"LOOPING THROUGH THE MEDICAID GLOBAL",!
 S DFN=0,DA=0 F AZHDNUM=1:1 S DA=$O(^AUPNMCD(DA)) G:DA?.A LOOP4 S DFN=$P(^AUPNMCD(DA,0),U,1) W "D" D:'$D(^AUPNPAT(DFN)) PRT2
LOOP4 ;
 W !,"LOOPING THROUGH THE RAILROAD GLOBAL",!
 S DFN=0 F AZHDNUM=1:1 S DFN=$O(^AUPNRRE(DFN)) G:DFN?.A LOOP5 W "R" D:'$D(^AUPNPAT(DFN)) PRT2
LOOP5 ;
 W !,"LOOPING THROUGH THE PRIVATE INSURANCE GLOBAL",!
 S DFN=0 F AZHDNUM=1:1 S DFN=$O(^AUPNPRVT(DFN)) G:DFN?.A EXIT W "P" D:'$D(^AUPNPAT(DFN)) PRT2
PRT ;PRINT FOR ENTRIES IN AUPNPAT NOT IN DPT
 W !!,"ENTRY IN AUPNPAT NOT IN DPT, DFN=",DFN S CNT=CNT+1  Q
PRT1 ;PRINT FOR ENTRIES IN DPT NOT IN AUPNPAT
 W !!,"ENTRY IN DPT NOT IN AUPNPAT, DFN=",DFN S CNT1=CNT1+1  Q
PRT2 ;PRINT FOR ENTRIES IN 3RD PARTY FILES BUT NOT IN AUPNPAT
 W !!,"ENTRY IN 3RD PARTY FILE NOT IN AUPNPAT, DFN=",DFN S CNT2=CNT2+1  Q
EXIT W !!,"**E N D  O F  R U N **"
 W !,"NUMBER OF DFN NOT IN DPT=",CNT
 W !,"NUMBER OF DFN NOT IN AUPNPAT=",CNT1
 W !,"NUMBER OF 3RD PARTY DFN's NOT IN AUPNPAT=",CNT2
 K CNT,CNT1,CNT2,AZHDNUM
 Q