AQAQPR23 ;IHS/ANMC/LJF - PROCEDURES BY PROVIDER(PCC DATA); [ 05/27/92 11:15 AM ]
;;2.2;STAFF CREDENTIALS;;01 OCT 1992
;
GETGRP ;EP;***> SUBRTN to print name of icd grouping
S AQAQG=$O(^AQACPCLS("B",+$P(AQAQICD,"."),0)) Q:AQAQG=""
S AQAQGRP=$P($G(^AQACPCLS(AQAQG,0)),U,2) ;group pointer
S AQAQGN=$G(^AQACPICD(AQAQGRP,0)),AQAQRNG=$P(AQAQGN,U)
S AQAQGRP=$P(AQAQGN,U,2)_" ("_AQAQRNG_")" ;name/range
I $Y>(IOSL-6) D NEWPG^AQAQPR22 Q:AQAQSTOP=U
W !! W ?80-$L(AQAQGRP)/2,AQAQGRP,! Q ;print name & range
;
;
SUBCNT ;EP;***> SUBRTN to print subcount of icd grouping for provider
I AQAQGCT=0 Q ;no procedures for grouping
W !,AQAQLIN2,!?27,"SUBCOUNT FOR ICD GROUP: ",AQAQGCT,!,AQAQLINE,!
S AQAQGCT=0,AQAQICDF=0 D GETGRP:AQAQICD'="" Q
;
;
PROVCNT ;EP;***> SUBRTN to print subcount for provider
I AQAQGCT>0 D SUBCNT
I $Y>(IOSL-5) D NEWPG^AQAQPR22 Q:AQAQSTOP=U
W !?20,"TOTAL PROCEDURES FOR PROVIDER: ",AQAQPCT
W !,AQAQLINE S AQAQTCT=AQAQTCT+AQAQPCT,AQAQPCT=0
Q
AQAQPR23 ;IHS/ANMC/LJF - PROCEDURES BY PROVIDER(PCC DATA); [ 05/27/92 11:15 AM ]
+1 ;;2.2;STAFF CREDENTIALS;;01 OCT 1992
+2 ;
GETGRP ;EP;***> SUBRTN to print name of icd grouping
+1 SET AQAQG=$ORDER(^AQACPCLS("B",+$PIECE(AQAQICD,"."),0))
IF AQAQG=""
QUIT
+2 ;group pointer
SET AQAQGRP=$PIECE($GET(^AQACPCLS(AQAQG,0)),U,2)
+3 SET AQAQGN=$GET(^AQACPICD(AQAQGRP,0))
SET AQAQRNG=$PIECE(AQAQGN,U)
+4 ;name/range
SET AQAQGRP=$PIECE(AQAQGN,U,2)_" ("_AQAQRNG_")"
+5 IF $Y>(IOSL-6)
DO NEWPG^AQAQPR22
IF AQAQSTOP=U
QUIT
+6 ;print name & range
WRITE !!
WRITE ?80-$LENGTH(AQAQGRP)/2,AQAQGRP,!
QUIT
+7 ;
+8 ;
SUBCNT ;EP;***> SUBRTN to print subcount of icd grouping for provider
+1 ;no procedures for grouping
IF AQAQGCT=0
QUIT
+2 WRITE !,AQAQLIN2,!?27,"SUBCOUNT FOR ICD GROUP: ",AQAQGCT,!,AQAQLINE,!
+3 SET AQAQGCT=0
SET AQAQICDF=0
IF AQAQICD'=""
DO GETGRP
QUIT
+4 ;
+5 ;
PROVCNT ;EP;***> SUBRTN to print subcount for provider
+1 IF AQAQGCT>0
DO SUBCNT
+2 IF $Y>(IOSL-5)
DO NEWPG^AQAQPR22
IF AQAQSTOP=U
QUIT
+3 WRITE !?20,"TOTAL PROCEDURES FOR PROVIDER: ",AQAQPCT
+4 WRITE !,AQAQLINE
SET AQAQTCT=AQAQTCT+AQAQPCT
SET AQAQPCT=0
+5 QUIT