source: WorldVistAEHR/trunk/r/TOOLKIT-AWCM-XD-XIN-XPAR-XQAB-XT-XUC-XUR-ZIN-ZTED/XDRMVFY.m@ 789

Last change on this file since 789 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.2 KB
RevLine 
[613]1XDRMVFY ;SF-IRMFO/IHS/OHPRD/JCM - VERIFY POTENTIAL DUPLICATES ;10/29/93 09:58
2 ;;7.3;TOOLKIT;**23**;Apr 25, 1995
3 ;;
4 ; Inserted DITC+4-6 IHS/OHPRD/JCM 3/26/91
5START ;
6 D DITC
7 G:XDRQFLG END
8 D VERIFY
9 G:XDRQFLG!(XDRMSTAT="") END
10 D STATUS
11END D EOJ
12 Q
13 ;
14DITC ;
15 S DIT(1)=XDRMCD,DIT(2)=XDRMCD2,DFF=XDRFL,IOP=IO(0)
16 D EN^DITC K IOP
17 I $D(DUOUT)!($D(DTOUT))!($D(DIRUT)) S XDRQFLG=1 K DIRUT,DUOUT,DTOUT
18 ;*********************************
19 ;I $G(DUZ("AG"))="I",'XDRQFLG,XDRFL=2 D ^DPTDZCH ;IHS/OHPRD/JCM 3/26/91
20 ;*********************************
21 Q
22 ;
23VERIFY ; Verifies if duplicate or not.
24 S XDRMSTAT=""
25 S DIR(0)="S^V:VERIFIED DUPLICATE;N:VERIFIED, NOT A DUPLICATE;U:UNABLE TO MAKE DETERMINATION"
26 S DIR("A")="Verification status of potential duplicate pair"
27 D ^DIR K DIR
28 I $D(DUOUT)!($D(DTOUT)) S XDRQFLG=1 G VERIFYX
29 S XDRMSTAT=$S(Y="V":"V",Y="N":"N",1:"")
30VERIFYX Q
31 ;
32STATUS ;
33 S DIE="^VA(15,",DA=XDRMPDA,DIE("NO^")=1,DR=".03///"_XDRMSTAT
34 S:XDRMSTAT="V" XDRMRG=1,DR=DR_";.04//2"
35 D ^DIE K DIE,DR,DA
36 Q
37 ;
38EOJ ;
39 K DIT,DFF,IOP,XDRMSTAT,DIRUT
40 Q
41 ;********************************************
42 ; EN entry point added specifically for APMFVFY for MFI
43EN ;
44 S XDRQFLG=0
45 D DITC
46 G:XDRQFLG ENX
47 D VERIFY
48ENX K DIT,DFF,IOP
49 Q
Note: See TracBrowser for help on using the repository browser.