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

AQAQPR33.m

Go to the documentation of this file.
AQAQPR33 ;IHS/ANMC/LJF - DISCHARGES BY PROVIDER & DX; [ 05/27/92  11:25 AM ]
 ;;2.2;STAFF CREDENTIALS;;01 OCT 1992
 ;
GETGRP ;EP;***> SUBRTN to print name of icd grouping
 S AQAQG=$O(^AQACGM("B",+$P(AQAQICD,"."),0)) Q:AQAQG=""
 S AQAQGRP=$P($G(^AQACGM(AQAQG,0)),U,2)  ;group pointer
 S AQAQGN=$G(^AQACCAT(AQAQGRP,0)),AQAQRNG=$P(AQAQGN,U)
 S AQAQGRP=$P(AQAQGN,U,2)_" ("_AQAQRNG_")"  ;name/range
 I $Y>(IOSL-6) D NEWPG^AQAQPR32 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 diagnoses 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^AQAQPR32 Q:AQAQSTOP=U
 I AQAQCDX=1 W !?20,"TOTAL DISCHARGES FOR PROVIDER:  ",AQAQPCT  ;prim
 E  W !?20,"TOTAL DIAGNOSES FOR PROVIDER:  ",AQAQPCT
 W !,AQAQLINE S AQAQTCT=AQAQTCT+AQAQPCT,AQAQPCT=0
 Q