source: WorldVistAEHR/trunk/r/VA_FILEMAN-ARJT-DI-DD-DM-DT-%DT-%RCR/DIAXM1.m@ 623

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

initial load of WorldVistAEHR

File size: 1.9 KB
Line 
1DIAXM1 ;SFISC/DCM-PROCESS MAPPING INFORMATION (CONT) ;7/11/95 06:33
2 ;;22.0;VA FileMan;;Mar 30, 1999
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4EN D @DIAXFTY Q:DIAXFR Q:$D(DIAXMSG)
5 I DIAXFR("TYP")'=DIAXTO("TYP"),'$D(DIAXEXT) S DIAXEXT=1
6 D:'$D(DIAR) DJ
7 Q
8 ;
9F Q:DIAXFR!($D(DIAXMSG)) I DIAXFR("TY")["C" D CF^DIAXM2 Q
10 I "FSP"[DIAXFR("TYP"),+DIAXFR("LO"),DIAXFR("LO")<DIAXTO("LO") S DIAXE2=DIAXFR("LO") D E1,E3
11 I "FSP"[DIAXFR("TYP"),DIAXFR("HI")>DIAXTO("HI") S DIAXE2=DIAXFR("HI") D E2
12 I DIAXFR("TY")["N",DIAXFR("LE")<DIAXTO("LO") S DIAXE2=DIAXFR("LE") D E1,E3
13 I DIAXFR("TY")["N",DIAXFR("LE")>DIAXTO("HI") S DIAXE2=DIAXFR("LE") D E2
14 I DIAXFR("TY")["D",DIAXTO("LO")>14 S DIAXE2=14 D E1,E3
15 I DIAXFR("TY")["D",DIAXTO("HI")<14 S DIAXE2=14 D E2
16 Q
17 ;
18N G N^DIAXM3
19 ;
20D G D^DIAXM3
21 ;
22P D XT I DIAXEXT D P^DIAXM2 Q:$D(DIAXMSG)!DIAXFR
23 D HL^DIAXM(15,1)
24 Q
25 ;
26V D XT I DIAXEXT D V^DIAXM2 Q:$D(DIAXMSG)!DIAXFR
27 D HL^DIAXM(30,3)
28 Q
29 ;
30C G C^DIAXM2
31 ;
32S I DIAXTO W:'$D(DIAR) !?DIAXTAB,$C(7),"Make sure the SET OF CODES are identical as the extract field." Q
33 D XT D S^DIAXM2
34 Q
35 ;
36W Q:DIAXFR
37 I DIAXFR("TY")["L",DIAXTO("TY")'["L" D E3 S DIAXEM=DIAXEM_"be in 'L'ine mode." D X
38 Q
39 ;
40K Q
41 ;
42E1 S DIAXE1="minimum" Q
43E2 S DIAXE1="maximum"
44E3 S DIAXEM=DIAXTO("NM")_" field in "_DIAXEF_$S($D(DIAXSB):" subfile",1:" file")_" should " Q:DIAXFTY["W"
45 S DIAXEM=DIAXEM_"have a "_DIAXE1_" length of at least "_DIAXE2_" characters."
46X D ERR^DIAXERR(DIAXEM)
47 K DIAXE1,DIAXE2
48 Q
49 ;
50DJ S DIAXDJ=DIAXDJ+1
51 S ^UTILITY("DIFG",$J,DIAXC,DIAXDJ)=DIAXS_U_U_+Y_U_$P(Y(0),U,4)_U_$G(DIAXEXT)
52 S S=DIAXS,DJ=DIAXDJ,C=DIAXC
53 Q
54 ;
55XT S DIAXEXT=+$G(DIAXEXT) I '$D(DIAR),$D(DC(DC)) S DIAXEXT=+$P(DC(DC),U,5) Q:'DINS
56 Q:$D(DIAR)
57 K DIR N Y S DIR(0)="Y",DIR("A")="Move EXTERNAL form of the data to the extract field",DIR("B")="Yes",DIR("?")="Answer YES if the RESOLVED value of data should be moved"
58 D ^DIR K DIR Q:'Y
59 S DIAXEXT=1
60 Q
Note: See TracBrowser for help on using the repository browser.