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

ACRFDHR3.m

Go to the documentation of this file.
ACRFDHR3 ;IHS/OIRM/DSD/THL,AEF - UTILITY TO SET X-REFS IN DHR FILE;  [ 11/01/2001   9:44 AM ]
 ;;2.1;ADMIN RESOURCE MGT SYSTEM;;NOV 05, 2001
 ;;CALL BY FILEMAN X-REFS
 Q
SFYLOC(DA) ;EP;TO SET FY/LOCATION CODE XREF
 Q:'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U)=""
 S ^ACRDHRI("FYLOC",$P(ACR1,U,11),$P(ACR10,U),DA)=""
 Q
KFYLOC(DA,X) ;EP;TO KILL FY/LOCATION CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR10,U)=""
 K ^ACRDHRI("FYLOC",X,$P(ACR10,U),DA)
 Q
KFYLOC2(DA,X) ;EP;TO KILL FY/LOCATION CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 K ^ACRDHRI("FYLOC",$P(ACR1,U,11),X,DA)
 Q
SFYSSA(DA) ;EP;TO SET FY/SSA XREF
 Q:'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U,2)=""
 S ^ACRDHRI("FYSSA",$P(ACR1,U,11),$P(ACR10,U,2),DA)=""
 Q
KFYSSA(DA,X) ;EP;TO KILL FY/SSA XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR10,U,2)=""
 K ^ACRDHRI("FYSSA",X,$P(ACR10,U,2),DA)
 Q
KFYSSA2(DA,X) ;EP;TO KILL FY/SSA XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 K ^ACRDHRI("FYSSA",$P(ACR1,U,11),X,DA)
 Q
SFYCAN(DA) ;EP;TO SET FY/CAN XREF
 Q:'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR1,U,12)=""
 S ^ACRDHRI("FYCAN",$P(ACR1,U,11),$P(ACR1,U,12),DA)=""
 Q
KFYCAN(DA,X) ;EP;TO KILL FY/CAN XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,12)=""
 K ^ACRDHRI("FYCAN",X,$P(ACR1,U,12),DA)
 Q
KFYCAN2(DA,X) ;EP;TO KILL FY/CAN XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 K ^ACRDHRI("FYCAN",$P(ACR1,U,11),X,DA)
 Q
SFYVND(DA) ;EP;TO SET FY/VND XREF
 Q:'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR1,U,16)=""
 S ^ACRDHRI("FYVND",$P(ACR1,U,11),$P(ACR1,U,16),DA)=""
 Q
KFYVND(DA,X) ;EP;TO KILL FY/VND XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,16)=""
 K ^ACRDHRI("FYVND",X,$P(ACR1,U,16),DA)
 Q
KFYVND2(DA,X) ;EP;TO KILL FY/VND XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 K ^ACRDHRI("FYVND",$P(ACR1,U,11),X,DA)
 Q
SFYOCC(DA) ;EP;TO SET FY/OCC XREF
 Q:'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR1,U,13)=""
 S ^ACRDHRI("FYOCC",$P(ACR1,U,11),$P(ACR1,U,13),DA)=""
 Q
KFYOCC(DA,X) ;EP;TO KILL FY/OCC XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,13)=""
 K ^ACRDHRI("FYOCC",X,$P(ACR1,U,13),DA)
 Q
KFYOCC2(DA,X) ;EP;TO KILL FY/OCC XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 K ^ACRDHRI("FYOCC",$P(ACR1,U,11),X,DA)
 Q
S S ACR0=$G(^ACRDHRI(DA,0))
 S ACR1=$G(^ACRDHRI(DA,1))
 S ACR10=$G(^ACRDHRI(DA,10))
 Q
SFYLOCS(DA) ;EP;TO SET FY/LOCATION/SSA CODE XREF
 Q:'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U)=""
 Q:$P(ACR10,U,2)=""
 S ^ACRDHRI("FYLOCSSA",$P(ACR1,U,11),$P(ACR10,U),$P(ACR10,U,2),DA)=""
 Q
KFYLOCS(DA,X) ;EP;TO KILL FY/LOCATION/SSA CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR10,U)=""
 Q:$P(ACR10,U,2)=""
 K ^ACRDHRI("FYLOCSSA",X,$P(ACR10,U),$P(ACR10,U,2),DA)
 Q
KFYLOCS2(DA,X) ;EP;TO KILL FY/LOCATION/SSA CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U,2)=""
 K ^ACRDHRI("FYLOCSSA",$P(ACR1,U,11),X,$P(ACR10,U,2),DA)
 Q
KFYLOCS3(DA,X) ;EP;TO KILL FY/LOCATION/SSA CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U)=""
 K ^ACRDHRI("FYLOCSSA",$P(ACR1,U,11),$P(ACR10,U),X,DA)
 Q
SFYSSAL(DA) ;EP;TO SET FY/LOCATION/SSA CODE XREF
 Q:'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U)=""
 Q:$P(ACR10,U,2)=""
 S ^ACRDHRI("FYSSALOC",$P(ACR1,U,11),$P(ACR10,U,2),$P(ACR10,U),DA)=""
 Q
KFYSSAL(DA,X) ;EP;TO KILL FY/LOCATION/SSA CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR10,U)=""
 Q:$P(ACR10,U,2)=""
 K ^ACRDHRI("FYSSALOC",X,$P(ACR10,U,2),$P(ACR10,U),DA)
 Q
KFYSSAL2(DA,X) ;EP;TO KILL FY/LOCATION/SSA CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U)=""
 K ^ACRDHRI("FYSSALOC",$P(ACR1,U,11),X,$P(ACR10,U),DA)
 Q
KFYSSAL3(DA,X) ;EP;TO KILL FY/LOCATION/SSA CODE XREF
 Q:X=""!'DA
 D S
 Q:$P(ACR1,U,11)=""
 Q:$P(ACR10,U,2)=""
 K ^ACRDHRI("FYSSALOC",$P(ACR1,U,11),$P(ACR10,U,2),X,DA)
 Q