source: FOIAVistA/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRP6EF.m@ 677

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

initial load of FOIAVistA 6/30/08 version

File size: 3.5 KB
Line 
1DGRP6EF ;ALB/TMK,EG - REGISTRATION SCREEN 6 FIELDS FOR EXPOSURE FACTORS; 07/20/2006
2 ;;5.3;Registration;**689,659,737**;Aug 13, 1993;Build 8
3 ;
4EN(DFN,QUIT) ; Display Environmental exposure factors/allow to edit
5 N I,IND,DG321,DG322,DGCT,DIR,Z,X,Y,DIE,DR,DA,DGNONT
6 ; Returns QUIT=1 if ^ entered
7 ;
8EN1 D CLEAR^VALM1
9 N DTOUT,DUOUT
10 S DG321=$G(^DPT(DFN,.321)),DG322=$G(^DPT(DFN,.322))
11 ;
12 S DIR(0)="SA^",DGCT=0
13 S DGCT=DGCT+1,DIR("A",DGCT)=$$SSNNM^DGRPU(DFN)
14 S DGCT=DGCT+1,DIR("A",DGCT)="",$P(DIR("A",DGCT),"=",81)=""
15 S DGCT=DGCT+1,DIR("A",DGCT)=$J("",23)_"**** ENVIRONMENTAL FACTORS ****",DGCT=DGCT+1,DIR("A",DGCT)=" "
16 S IND=$S('$G(DGRPV):"[]",1:"<>")
17 S DGCT=DGCT+1
18 S Z=$E(IND)_"1"_$E(IND,2)
19 S DIR("A",DGCT)=$J("",2)_Z_" A/O Exp.: "_$$YN^DGRP6CL(DG321,2)_$S($P(DG321,U,13)="K":" (DMZ) ",$P(DG321,U,13)="V":" (VIET)",1:$J("",7))_" Reg: "_$$DAT^DGRP6CL(DG321,7,12)_" Exam: "_$$DAT^DGRP6CL(DG321,9,12)_"A/O#: "_$P(DG321,U,10)
20 S Z=$E(IND)_"2"_$E(IND,2)
21 S DGCT=DGCT+1,DIR("A",DGCT)=$J("",2)_Z_" ION Rad.: "_$$YN^DGRP6CL(DG321,3)_$J("",8)_"Reg: "_$$DAT^DGRP6CL(DG321,11,12)_"Method: "
22 S:$P(DG321,U,12)>7 $P(DG321,U,12)="" S DIR("A",DGCT)=DIR("A",DGCT)_$P($T(SELTBL+$P(DG321,U,12)),";;",2)
23 S Z=$E(IND)_"3"_$E(IND,2)
24 S DGCT=DGCT+1,DIR("A",DGCT)=$J("",2)_Z_" Env Contam: "_$$YN^DGRP6CL(DG322,13)_$J("",8)_"Reg: "_$$DAT^DGRP6CL(DG322,14,12)_" Exam: "_$$DAT^DGRP6CL(DG322,15,11)
25 S DGNONT=0 I $$GETSTAT^DGNTAPI1(DFN)>2,'$D(^XUSEC("DGNT VERIFY",DUZ)) S DGNONT=1
26 I $G(DGRPV) S DGNONT=1
27 S DGCT=DGCT+1,DIR("A",DGCT)=$J("",2)_$S(DGNONT:"<",1:"[")_"4"_$S(DGNONT:">",1:"]")_" N/T Radium: " N DGNT S DGRPX=$$GETCUR^DGNTAPI(DFN,"DGNT") S DIR("A",DGCT)=DIR("A",DGCT)_$G(DGNT("INTRP"))
28 ;
29 S DGCT=DGCT+1,DIR("A",DGCT)=" "
30 S DIR("A")=$S('$G(DGRPV):"SELECT AN ENVIRONMENTAL FACTOR (1-"_(4-DGNONT)_") OR (Q)UIT: ",1:"PRESS RETURN TO CONTINUE ")
31 S DIR(0)=$S('$G(DGRPV):"SA^1:A/O Exp;2:ION Rad;3:Env Contam;"_$S(DGNONT:"",1:"4:N/T Radium;")_"Q:QUIT",1:"EA")
32 I '$G(DGRPV) S DIR("B")="QUIT"
33 D ^DIR K DIR
34 I $G(DGRPV)!$D(DUOUT)!$D(DTOUT)!(Y="Q") S:Y'="Q" QUIT=1 G QUIT
35 S Z="603"_$E("0",2-$L(+Y))_+Y
36 S DIE=2,DA=DFN,DR=$P($T(@Z),";;",2) D:DR'="" ^DIE
37 K DIE,DA,DR
38 G EN1
39 ;
40QUIT Q
41 ;
42EF(DFN,LIN) ;
43 N DG321,DG322,LENGTH,Z,SEQ
44 K LIN S (LENGTH,LIN)=0
45 S DG321=$G(^DPT(DFN,.321)),DG322=$G(^(.322))
46 I $P(DG321,U,2)="Y" D
47 . S Z="A/O Exp.",SEQ=1
48 . ;S:'$P(DG321,U,7)!'$P(DG321,U,9)!($P(DG321,U,10)="") Z=Z_"(Incomplete)"
49 . S:'$P(DG321,U,7)!('$P(DG321,U,9))="" Z=Z_"(Incomplete)"
50 . D SETLNEX^DGRP6(Z,SEQ,.LIN,.LENGTH)
51 ;
52 I $P(DG321,U,3)="Y" D
53 . S Z="Ion Rad.",SEQ=2
54 . S:'$P(DG321,U,11)!($P(DG321,U,12)="") Z=Z_"(Incomplete)"
55 . D SETLNEX^DGRP6(Z,SEQ,.LIN,.LENGTH)
56 ;
57 I $P(DG322,U,13)="Y" D
58 . I 'LIN S LIN=LIN+1,LIN(LIN)=""
59 . S Z="Env Contam.",SEQ=3
60 . S:'$P(DG322,U,14)!'$P(DG322,U,15) Z=Z_"(Incomplete)"
61 . D SETLNEX^DGRP6(Z,SEQ,.LIN,.LENGTH)
62 ; N/T Radium Exposure
63 N DGNT,DGRPX S DGRPX=$$GETCUR^DGNTAPI(DFN,"DGNT")
64 I "NO"'[$G(DGNT("INTRP")) D
65 . I 'LIN S LIN=LIN+1,LIN(LIN)=""
66 . S SEQ=4 D SETLNEX^DGRP6("N/T Radium ("_$P(DGNT("INTRP"),"YES,",2)_")",SEQ,.LIN,.LENGTH)
67 Q
68 ; The following tag is a table of values. Do not change location of values including null at SELTBL+0
69SELTBL ;;
70 ;;NO VALUE
71 ;;HIROSHIMA/NAGASAKI
72 ;;ATMOSPHERIC NUCLEAR TEST
73 ;;H/N AND ATMOSPHERIC TEST
74 ;;UNDERGROUND NUCLEAR TEST
75 ;;EXP. AT NUCLEAR FACILITY
76 ;;OTHER
7760301 ;;.32102//NO;S:X'="Y" Y="@65";.3213;.32107;.32109;.3211;@65;
7860302 ;;.32103//NO;S:X'="Y" Y="@66";.3212;.32111;@66;
7960303 ;;.322013//NO;S:X'="Y" Y="@612";.322014;Q;.322015;@612;
8060304 ;;D REG^DGNTQ(DFN)
81 ;;
Note: See TracBrowser for help on using the repository browser.