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

APCDFOS2.m

Go to the documentation of this file.
APCDFOS2 ; IHS/CMI/LAB - PRINT FORMS TRACKING SUMMARY ;
 ;;2.0;IHS PCC SUITE;;MAY 14, 2009
AMB ;EP
 I $Y>(IOSL-8) D HEAD^APCDFOSP Q:APCDQUIT
 W !!!,"AMBULATORY CARE VISITS (non-chs, excludes events, hospitalizations,in-hosp)",!
 W !,"There were ",$S($G(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","TOTAL")):^("TOTAL"),1:" 0")," ambulatory documents during this period."
 G:'$G(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","TOTAL")) DEP
 D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 W !!?2,"By TYPE:"
 S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","TYPE",X)) Q:X=""!(APCDQUIT)  D
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 .W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","TYPE",X),8)
 .Q
 Q:APCDQUIT
 D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"By LOCATION:"
 S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","LOC",X)) Q:X=""!(APCDQUIT)  D
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 .W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","LOC",X),8)
 .Q
 D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"By SERVICE CATEGORY:"
 S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","CAT",X)) Q:X=""!(APCDQUIT)  D
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 .W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","CAT",X),8)
 .Q
 D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"By CLINIC Type:"
 S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","CLN",X)) Q:X=""!(APCDQUIT)  D
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 .W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","CLN",X),8)
 .Q
 D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"By PROVIDER DISCIPLINE (Primary and Secondary Providers):"
 S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","PROV",X)) Q:X=""!(APCDQUIT)  D
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 .W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"AMB","PROV",X),8)
 .Q
DEP ;
 I $Y>(IOSL-9) D HEAD^APCDFOSP Q:APCDQUIT
 W !!,"DEPENDENT ENTRY COUNT",!
 W !,"There were ",$S($G(^XTMP("APCDFOS",APCDJ,APCDBT,"DEP","TOTAL")):^("TOTAL"),1:" 0")," visit related data items entered during",!,"this period.  They are broken down below by data type.  Labs, Medications,",!
 W "Dental and Radiology data items are excluded because in general, these are",!,"entered through the ancillary package.",!
 S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"DEP","FILE",X)) Q:X=""!(APCDQUIT)  D
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 .W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"DEP","FILE",X),8)
 .Q
OPER ;
 I $Y>(IOSL-8) D HEAD^APCDFOSP Q:APCDQUIT
 W !!!!?20,"FORMS PROCESSED BY EACH OPERATOR"
 S O="" F  S O=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O)) Q:O=""!(APCDQUIT)  D
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"OPERATOR:  ",O
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !?2,"TOTAL Number of Forms Processed: ",$J(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O,"TOTAL"),8)
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"By TYPE:"
 .S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O,"TYPE",X)) Q:X=""!(APCDQUIT)  D
 ..D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 ..W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O,"TYPE",X),8)
 ..Q
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"By LOCATION:"
 .S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O,"LOC",X)) Q:X=""!(APCDQUIT)  D
 ..D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 ..W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O,"LOC",X),8)
 ..Q
 .D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT  W !!?2,"By SERVICE CATEGORY:"
 .S X="" F  S X=$O(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O,"CAT",X)) Q:X=""!(APCDQUIT)  D
 ..D:$Y>(IOSL-6) HEAD^APCDFOSP Q:APCDQUIT
 ..W !,?5,$E(X,1,30),?35,$J(^XTMP("APCDFOS",APCDJ,APCDBT,"OPER",O,"CAT",X),8)
 ..Q
LOC ;
 D LOC^APCDFOS3
 Q