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

ABPVDG02.m

Go to the documentation of this file.
ABPVDG02 ;TALLY PRIVATE INSURANCE ELIG I/P ADMIT REPORT; [ 06/02/91  12:44 PM ]
 ;;2.0;FACILITY PVT-INS TRACKING;*0*;IHS-OKC/KJR;AUGUST 7, 1991
START D INIT,XTRACT,ZTLOAD
 Q
 ;
INIT S ABPV("TOTAL")=0,ABPV("HITS")=0,ABPV("TASK")=ZTSK Q
 ;
XTRACT S A("ADOS")=ABPV("BEG")-1
A S A("ADOS")=$O(^DPT("AA",A("ADOS")))
 Q:+A("ADOS")=0!(A("ADOS")>ABPV("END"))
 S A("ADFN")=0
A1 S A("ADFN")=$O(^DPT("AA",A("ADOS"),A("ADFN"))) G A:+A("ADFN")=0
 S ABPV("TOTAL")=ABPV("TOTAL")+1
 I $D(^AUPNPRVT(A("ADFN"),0))=0 G A1
 S ABPV("HITS")=ABPV("HITS")+1
 S ^%ZTSK(ZTSK,ABPV("SITE"),A("ADOS"),A("ADFN"))=""
 G A1
 ;
ZTLOAD S ZTRTN="^ABPVDG03",ZTDTH=$H,ZTIO=ABPV("IO"),ZTSAVE("ABPV(")=""
 S ZTDESC="PRINT PVT INS ELIGIBLE IN-PATIENT ADMISSIONS"
 D ^%ZTLOAD
ZTLEND K ABPV,%ZIS,%IS,ZRTN,ZTDTH,ZTDESC,ZTSAVE,ZTSK,A,X,Y,DIC,DIE,DA
 K DR,ZTIO,R,I
 Q