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

AG45P7.m

Go to the documentation of this file.
AG45P7 ; IHS/ADC/PDW -REGISTRATION V4.5 PATCH #7 ;
 ;;7.0;IHS PATIENT REGISTRATION;;MAR 28, 2003
 D AGFAC,AGSET
 W ! Q
AGFAC ;MODIFIY AGFAC INPUT TEMPLATE
 S DA=$O(^DIE("B","AGFAC",0))
 I 'DA W !,"AGFAC INPUT TEMPLATE NOT FOUND",! Q
 S ^DIE(DA,"DR",1,9009061)=$P($T(TXT+1),";;",2)
 W !,"AGFAC INPUT TEMPLATE MODIFIED",!
 Q
AGSET ;MODIFY AGSETSITE OPTION
 S DA=$O(^DIC(19,"B","AGSETSITE",0))
 I 'DA W !,"AGSETSITE OPTION NOT FOUND",! Q
 S ^DIC(19,DA,20)=$P($T(TXT+2),";;",2)
 W !,"AGSETSITE OPTION MODIFIED.",!
 Q
TXT ;TEXT FOR AGFAC TEMPLATE
 ;;.01;1:20;19;I $P(^AGFAC(DUZ(2),0),U,20)'="Y" S Y="@1";99;@1;I $P(^AUTTSITE(1,0),U)'=DA S Y="@2";200;201;@2;
 ;;S X="AGSETSITE" D HDR^AG S:'$D(AGSADUZ2) AGSADUZ2=DUZ(2) D SET^XBSITE K DIC