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

ECDISSUM.m

Go to the documentation of this file.
ECDISSUM ;ALB/DAN - Disabled Category & Procedure Summary Rpt ;9/27/17  11:21
 ;;2.0;EVENT CAPTURE;**131,139**;8 May 96;Build 7
 ;
EN ;
 N CNT,ECRDT,ECPG,ECI,ECL,ECLN,ECDIS,ECD,ECC,ECSCN,ECOUT
 U IO
 S CNT=1,^TMP($J,"ECRPT",CNT)="EC SCREEN STATUS^LOCATION^SERVICE^DSS UNIT^DSS UNIT IEN^DSS DEPT^SEND STATUS^DSS UNIT INACTIVE^DISABLED CATEGORY^CPT CODE^PROCEDURE CODE"
 S ^TMP($J,"ECRPT",CNT)=^TMP($J,"ECRPT",CNT)_"^PROCEDURE NAME^SYNONYM^CLINIC IEN^CLINIC^STOP CODE^CREDIT STOP CODE^CHAR4 CODE^MCA LABOR CODE" ;139
 S ECRDT=$$FMTE^XLFDT($$NOW^XLFDT),ECSCN="B",ECOUT=0
 S ECPG=1,ECDIS=1 ;Indicates we're running the disabled category report
 S ECI=0 F  S ECI=$O(ECLOC(ECI)) Q:'+ECI  D
 .S ECL=$P(ECLOC(ECI),U),ECLN=$P(ECLOC(ECI),U,2)
 .S ECD=0 F  S ECD=$O(^ECJ("AP",ECL,ECD)) Q:'+ECD  D
 ..I $P($G(^ECD(ECD,0)),U,11)=0,$O(^ECJ("AP",ECL,ECD,0)) S ECC="ALL" D SUM2^ECSUM1 ;If unit set to no categories but has event code screens with categories defined then print
 Q