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

APCDDIC.m

Go to the documentation of this file.
APCDDIC ; IHS/CMI/LAB - FIND ENTRY IN FILE ;
 ;;2.0;IHS PCC SUITE;;MAY 14, 2009
 ;
 ;
FIND1(APCDFN,APCDVAL,APCDMODE,APCDDICS) ;PEP - RETURN IEN
 N APCDVALI
 S APCDVALI=""
 I '$D(APCDMODE) S APCDMODE=""
 D EN^XBNEW("DIC^APCDDIC","APCDFN;APCDVAL;APCDVALI;APCDMODE")
 Q APCDVALI
 ;
DIC ;EP
 N X S X=APCDVAL
 I APCDMODE["I" S X="`"_X
 S DIC=$$DIC^XBDIQ1(APCDFN)
 Q:'$L(DIC)
 S DIC(0)="XM"
 I APCDMODE="I" S DIC(0)="XMI"
 I $D(APCDDICS) S DIC("S")=APCDDICS
 D ^DIC
 S:+Y>0 APCDVALI=+Y
 Q