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

APCDR01.m

Go to the documentation of this file.
APCDR01 ; IHS/CMI/LAB - V MEASUREMENT REVIEW ; 02 Sep 2010  7:04 AM
 ;;2.0;IHS PCC SUITE;**5**;MAY 14, 2009
 ;
CODE ;CHECK CODE
 Q:$P($G(^AUPNVMSR(APCDEDFN,2)),U,1)  ;entered in error
 S APCDX=$P(^AUPNVMSR(APCDEDFN,0),U) I APCDX="" S APCDE="E011" D ERR G XIT
 I '$D(^AUTTMSR(APCDX,0)) S APCDE="E011" D ERR G XIT
 I $P(^AUTTMSR(APCDX,0),U,3)="" S APCDE="E011" D ERR G XIT
 ;
 ;
RESULTS ;
 I $P(^AUPNVMSR(APCDEDFN,0),U,4)="" S APCDE="E013" D ERR G XIT
 ;
XIT ; Clean up and exit
 K APCDX,APCDE
 Q
ERR ;
 S APCDE("FILE")=9000010.01,APCDE("ENTRY")=APCDEDFN
 D ERR^APCDRV
 Q