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

XDRMVFY.m

Go to the documentation of this file.
  1. XDRMVFY ;SF-IRMFO/IHS/OHPRD/JCM - VERIFY POTENTIAL DUPLICATES ;09/30/2010
  1. ;;7.3;TOOLKIT;**23,126**;Apr 25, 1995;Build 2
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;;
  1. ; Inserted DITC+4-6 IHS/OHPRD/JCM 3/26/91
  1. START ;
  1. D DITC
  1. G:XDRQFLG END
  1. D VERIFY
  1. G:XDRQFLG!(XDRMSTAT="") END
  1. D STATUS
  1. END D EOJ
  1. Q
  1. ;
  1. DITC ;
  1. S DIT(1)=XDRMCD,DIT(2)=XDRMCD2,DFF=XDRFL,IOP=IO(0)
  1. D EN^DITC K IOP
  1. I $D(DUOUT)!($D(DTOUT))!($D(DIRUT)) S XDRQFLG=1 K DIRUT,DUOUT,DTOUT
  1. ;*********************************
  1. ;I $G(DUZ("AG"))="I",'XDRQFLG,XDRFL=2 D ^DPTDZCH ;IHS/OHPRD/JCM 3/26/91
  1. ;*********************************
  1. Q
  1. ;
  1. VERIFY ; Verifies if duplicate or not.
  1. S XDRMSTAT=""
  1. S DIR(0)="S^V:VERIFIED DUPLICATE;N:VERIFIED, NOT A DUPLICATE;U:UNABLE TO MAKE DETERMINATION"
  1. S DIR("A")="Verification status of potential duplicate pair"
  1. D ^DIR K DIR
  1. I $D(DUOUT)!($D(DTOUT)) S XDRQFLG=1 G VERIFYX
  1. S XDRMSTAT=$S(Y="V":"V",Y="N":"N",1:"")
  1. D:XDRMSTAT="V" VERWARN^XDRRMRG1 ;p126 REM
  1. VERIFYX Q
  1. ;
  1. STATUS ;
  1. S DIE="^VA(15,",DA=XDRMPDA,DIE("NO^")=1,DR=".03///"_XDRMSTAT
  1. S:XDRMSTAT="V" XDRMRG=1,DR=DR_";.04//2"
  1. D ^DIE K DIE,DR,DA
  1. Q
  1. ;
  1. EOJ ;
  1. K DIT,DFF,IOP,XDRMSTAT,DIRUT
  1. Q
  1. ;********************************************
  1. ; EN entry point added specifically for APMFVFY for MFI
  1. EN ;
  1. S XDRQFLG=0
  1. D DITC
  1. G:XDRQFLG ENX
  1. D VERIFY
  1. ENX K DIT,DFF,IOP
  1. Q