VistA-WorldVistAEHR/r/TOOLKIT-AWCM-XD-XIN-XPAR-XQ.../XDRMVFY.m

50 lines
1.2 KiB
Mathematica

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