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

APCLOSP4.m

Go to the documentation of this file.
APCLOSP4 ; IHS/CMI/LAB - CONT. PRINT OP SUMM ;
 ;;2.0;IHS PCC SUITE;;MAY 14, 2009
DENTAL ;ENTRY POINT
 I $Y>(IOSL-12) D HEAD^APCLOSP Q:$D(APCLQUIT)
 W !!!,"DENTAL"
 I '$D(^XTMP("APCLOS",APCLJOB,APCLBTH,"DENTPATCOUNT")) W !?10,"[ NO DENTAL VISITS TO REPORT ]",! Q
 S X=$S($D(^XTMP("APCLOS",APCLJOB,APCLBTH,"DENTPATCOUNT")):^("DENTPATCOUNT"),1:0),Y=$S($D(^XTMP("APCLOSP",APCLJOB,APCLBTH,"DENTPATCOUNT")):^("DENTPATCOUNT"),1:0) D CALC^APCLOSUT
 W !!,"There were ",X," patients (",Z,") seen for Dental Care.  They accounted for",!
 S X=$S($D(^XTMP("APCLOS",APCLJOB,APCLBTH,"DENTVCOUNT")):^("DENTVCOUNT"),1:0),Y=$S($D(^XTMP("APCLOSP",APCLJOB,APCLBTH,"DENTVCOUNT")):^("DENTVCOUNT"),1:0) D CALC^APCLOSUT
 W X," visits (",Z,").  The seven leading service categories were:"
 S APCL1="DENTPOV",APCL2="DENTPOVC",APCLMAX=7,APCLGLOB="^AUTTADA(",APCLPIEC=2
 Q