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

AGTMINQ.m

Go to the documentation of this file.
AGTMINQ ; IHS/ASDS/EFG - Inquire UTILITY ; 
 ;;7.1;PATIENT REGISTRATION;;AUG 25,2005
 ;
LOC S AG("SUB")="LOCATION" D HD S DIC="^AUTTLOC(" G DIC
CPT S AG("SUB")="CPT PROCEDURE" D HD S DIC="^ICPT(" G DIC
INS ;EP -
 S AG("SUB")="INSURER" D HD S DIC="^AUTNINS(" G DIC
PRV S AG("SUB")="PROVIDER" D HD S DIC="^VA(200,",DIC("S")="I $D(^(""PS""))" G DIC
DIC W !! S DIC("A")="Select "_AG("SUB")_": ",DIC(0)="QEAM" D ^DIC
 G XIT:X=""!$D(DUOUT)!$D(DTOUT)
 I +Y<1 G DIC
 S DA=+Y
 W $$S^AGVDF("IOF"),!?80-$L(AG("SUB"))-21\2,"*** ",AG("SUB")," FILE INQUIRY ***"
 S AG="",$P(AG,"=",80)="" W !!,AG D EN^DIQ W AG
 G DIC
XIT K AG,DIR,DIC,DIE
 Q
HD S AGM("SUB")=AG("SUB")_" FILE INQUIRE"
 K DIC,DR
 Q