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

BTIUXREF.m

Go to the documentation of this file.
  1. BTIUXREF ; IHS/ITSC/LJF - IHS XREFERENCE CODE ;
  1. ;;1.0;TEXT INTEGRATION UTILITIES;;NOV 04, 2004
  1. ;
  1. AIHS1A ;EP; add code for AIHS xref on Patient field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U),$P(TIU,U,3),$P(TIU,U,5) D
  1. . S ^TIU(8925,"AIHS1",+X,+$P(TIU,U),+$P(TIU,U,5),(9999999-$P($G(^AUPNVSIT(+$P(TIU,U,3),0)),".")),+DA)=""
  1. Q
  1. ;
  1. AIHS1K ;EP; kill code for AIHS xref on Patient field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U),$P(TIU,U,3),$P(TIU,U,5) D
  1. . K ^TIU(8925,"AIHS1",+X,+$P(TIU,U),+$P(TIU,U,5),(9999999-$P($G(^AUPNVSIT(+$P(TIU,U,3),0)),".")),+DA)
  1. Q
  1. ;
  1. AIHS11A ;EP; add code for AIHS xref on Visit field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U),$P(TIU,U,2),$P(TIU,U,5) D
  1. . S ^TIU(8925,"AIHS1",+$P(TIU,U,2),+$P(TIU,U),+$P(TIU,U,5),(9999999-$P($G(^AUPNVSIT(X,0)),".")),+DA)=""
  1. Q
  1. ;
  1. AIHS11K ;EP; kill code for AIHS xref on Visit field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U),$P(TIU,U,2),$P(TIU,U,5) D
  1. . K ^TIU(8925,"AIHS1",+$P(TIU,U,2),+$P(TIU,U),+$P(TIU,U,5),(9999999-$P($G(^AUPNVSIT(X,0)),".")),+DA)
  1. Q
  1. ;
  1. AIHS12A ;EP; add code for AIHS xref on Doc Type field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U,2),$P(TIU,U,3),$P(TIU,U,5) D
  1. . S ^TIU(8925,"AIHS1",+$P(TIU,U,2),+X,+$P(TIU,U,5),(9999999-$P($G(^AUPNVSIT(+$P(TIU,U,3),0)),".")),+DA)=""
  1. Q
  1. ;
  1. AIHS12K ;EP; kill code for AIHS xref on Doc Type field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U,2),$P(TIU,U,3),$P(TIU,U,5) D
  1. . K ^TIU(8925,"AIHS1",+$P(TIU,U,2),+X,+$P(TIU,U,5),(9999999-$P($G(^AUPNVSIT(+$P(TIU,U,3),0)),".")),+DA)
  1. Q
  1. ;
  1. AIHS13A ;EP; add code for AIHS xref on Status field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U),$P(TIU,U,2),$P(TIU,U,3) D
  1. . S ^TIU(8925,"AIHS1",+$P(TIU,U,2),+$P(TIU,U),+X,(9999999-$P($G(^AUPNVSIT(+$P(TIU,U,3),0)),".")),+DA)=""
  1. Q
  1. ;
  1. AIHS13K ;EP; kill code for AIHS xref on Status field
  1. NEW TIU S TIU=$G(^TIU(8925,+DA,0)) Q:TIU=""
  1. I $P(TIU,U),$P(TIU,U,2),$P(TIU,U,3) D
  1. . K ^TIU(8925,"AIHS1",+$P(TIU,U,2),+$P(TIU,U),+X,(9999999-$P($G(^AUPNVSIT(+$P(TIU,U,3),0)),".")),+DA)
  1. Q