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

AUPNXFRC.m

Go to the documentation of this file.
  1. AUPNXFRC ; IHS/CMI/LAB - XREF TRIGGER FROM #1117 (RESIDENCE COMMUNITY PT) TO LAST PREVIOUS COMMUNITY ;
  1. ;;99.1;IHS DICTIONARIES (PATIENT);;MAR 09, 1999
  1. ; This routine is triggered from the AH Mumps trigger on the residence
  1. ; community field (#1117) of the IHS patient file. It will update the
  1. ; Previous Community:community of Residence if Current Community #1118
  1. ; does not already equal the residence community
  1. ; This trigger and routine are to be removed when Previous Community
  1. ; goes away.
  1. ; data node is Date Entered^Date Moved^Community
  1. S ;
  1. S AUPNXRC=$P(^AUPNPAT(D0,11),U,17),AUPNXCC=$P(^(11),U,18),AUPNXRCN=$P(^AUTTCOM(AUPNXRC,0),U)
  1. ;W !,^AUPNPAT(D0,11),!,AUPNXRCN
  1. I AUPNXCC=AUPNXRCN G END
  1. S:'$D(^AUPNPAT(D0,51,0)) ^(0)="^9000001.51^^0"
  1. S:'$D(^AUPNPAT(D0,51,DT,0)) $P(^(0),U,4)=$P(^AUPNPAT(D0,51,0),U,4)+1
  1. ;W !,$ZR,"=",@$ZR
  1. S ^AUPNPAT(D0,51,DT,0)=DT_U_DT_U_AUPNXRC ;HARD SET DATA - NO TRIGGERS ARE TO EXECUTE
  1. ;W !,$ZR,"=",@$ZR
  1. END K AUPNXRC,AUPNXCC,AUPNXRCN
  1. Q