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

APCDCHP1.m

Go to the documentation of this file.
APCDCHP1 ; IHS/CMI/LAB - CONT. PRINT LINK ;
 ;;2.0;IHS PCC SUITE;**11**;MAY 14, 2009;Build 58
 ;
 ;
PROC ; ENTRY POINT;print deleted procedures
 S APCDT="PROC"
 Q:'$D(^TMP("ILINK",$J,"PROC ERROR"))
 D HEAD^APCDCHKP S APCDI="" F  S APCDI=$O(^TMP("ILINK",$J,"PROC ERROR",APCDI)) Q:APCDI=""  S APCDPDFN=^TMP("ILINK",$J,"PROC ERROR",APCDI) D:$Y>(IOSL-6) HEAD^APCDCHKP D PRNP
 Q
PRNP ;
 S APCDIV=^AUPNVSIT($P(APCDPDFN,U,3),0) S:'$P(APCDIV,U,6) $P(APCDIV,U,6)=0
 S Y=+APCDIV X ^DD("DD") S APCDRD=Y
 W !,"IN-HOSP:  DATE: [",APCDRD,"] NAME: [",$P(^DPT($P(APCDIV,U,5),0),U),"]  TYPE: [",$P(APCDIV,U,3),"]"
 W !,"          LOCATION: [",$S($D(^DIC(4,$P(APCDIV,U,6),0)):$P(^(0),U),1:"UNKNOWN"),"] DEPENDENT ENTRY CNT: [",$P(APCDIV,U,9),"]"
 W !?10,"Procedure: ",$P($$ICDOP^ICDEX($P(APCDPDFN,U),$$VD^APCLV($P(APCDPDFN,U,3)),,"I"),U,2),?30,"Provider Narr: ",$P(^AUTNPOV($P(APCDPDFN,U,4),0),U)
 Q