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

ABPAOP2.m

Go to the documentation of this file.
  1. ABPAOP2 ;BUILD INSURER MAILING LABEL FILE; [ 06/04/91 1:30 PM ]
  1. ;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
  1. ;CALLED BY A12I+8^ABPAOP1 DURING RECORD POSTING FUNCTION
  1. A0 G ABORT
  1. ;
  1. A1 I $D(ABPAMLBL("DFN"))'=1 D
  1. .K DIC,DIE,DA,DR S DIC="^ABPAMLBL(",DIC(0)="LZ"
  1. .S X=DT D ^DIC S ABPAMLBL("DFN")=+Y
  1. .S ^ABPAMLBL(ABPAMLBL("DFN"),"L",0)="^9002270.51PA^^0"
  1. ;
  1. A2 I $D(^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,0))'=1 D
  1. .S ^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,0)=LOCCD
  1. .S ^ABPAMLBL(ABPAMLBL("DFN"),"L","B",LOCCD,LOCCD)=""
  1. .S $P(^ABPAMLBL(ABPAMLBL("DFN"),"L",0),"^",3)=LOCCD
  1. .S $P(^ABPAMLBL(ABPAMLBL("DFN"),"L",0),"^",4)=$P(^ABPAMLBL(ABPAMLBL("DFN"),"L",0),"^",4)+1
  1. .S ^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I",0)="^9002270.511PA^^0"
  1. ;
  1. A3 S ABPAMLBL("NAME")=$P(^AUTNINS(INSDFN,0),"^")
  1. I $D(^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I",INSDFN,0))=0 D Q
  1. .S ^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I",INSDFN,0)=INSDFN_"^"_ABPAMLBL("NAME")
  1. .S ^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I","AC",ABPAMLBL("NAME"),INSDFN)=""
  1. .S ^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I","B",INSDFN,INSDFN)=""
  1. .S $P(^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I",0),"^",3)=INSDFN
  1. .S $P(^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I",0),"^",4)=$P(^ABPAMLBL(ABPAMLBL("DFN"),"L",LOCCD,"I",0),"^",4)+1
  1. Q
  1. ;
  1. ABORT W !!,"ACCESS DENIED!!!" Q