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

ACKQTE6.m

Go to the documentation of this file.
ACKQTE6 ; ;11/10/10
 D DE G BEGIN
DE S DIE="^ACK(509850.6,",DIC=DIE,DP=509850.6,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^ACK(509850.6,DA,""))=""
 I $D(^(2)) S %Z=^(2) S %=$P(%Z,U,2) S:%]"" DE(16)=% S %=$P(%Z,U,9) S:%]"" DE(13)=%
 I $D(^(4)) S %Z=^(4) S %=$P(%Z,U,1) S:%]"" DE(27)=% S %=$P(%Z,U,2) S:%]"" DE(30)=% S %=$P(%Z,U,3) S:%]"" DE(33)=% S %=$P(%Z,U,4) S:%]"" DE(36)=% S %=$P(%Z,U,5) S:%]"" DE(39)=% S %=$P(%Z,U,7) S:%]"" DE(42)=% S %=$P(%Z,U,8) S:%]"" DE(45)=%
 I  S %=$P(%Z,U,9) S:%]"" DE(48)=% S %=$P(%Z,U,10) S:%]"" DE(51)=% S %=$P(%Z,U,11) S:%]"" DE(54)=% S %=$P(%Z,U,13) S:%]"" DE(57)=% S %=$P(%Z,U,14) S:%]"" DE(60)=% S %=$P(%Z,U,15) S:%]"" DE(63)=% S %=$P(%Z,U,16) S:%]"" DE(66)=%
 I  S %=$P(%Z,U,23) S:%]"" DE(68)=%
 I $D(^(5)) S %Z=^(5) S %=$P(%Z,U,6) S:%]"" DE(1)=% S %=$P(%Z,U,9) S:%]"" DE(5)=% S %=$P(%Z,U,10) S:%]"" DE(9)=%
 K %Z Q
 ;
W W !?DL+DL-2,DLB_": "
 Q
O D W W Y W:$X>45 !?9
 I $L(Y)>19,'DV,DV'["I",(DV["F"!(DV["K")) G RW^DIR2
 W:Y]"" "// " I 'DV,DV["I",$D(DE(DQ))#2 S X="" W "  (No Editing)" Q
TR R X:DTIME E  S (DTOUT,X)=U W $C(7)
 Q
A K DQ(DQ) S DQ=DQ+1
B G @DQ
RE G PR:$D(DE(DQ)) D W,TR
N I X="" G NKEY:$D(^DD("KEY","F",DP,DIFLD)),A:DV'["R",X:'DV,X:D'>0,A
RD G QS:X?."?" I X["^" D D G ^DIE17
 I X="@" D D G Z^DIE2
 I X=" ",DV["d",DV'["P",$D(^DISV(DUZ,"DIE",DLB)) S X=^(DLB) I DV'["D",DV'["S" W "  "_X
T G M^DIE17:DV,^DIE3:DV["V",P:DV'["S" X:$D(^DD(DP,DIFLD,12.1)) ^(12.1) I X?.ANP D SET I 'DDER X:$D(DIC("S")) DIC("S") I  W:'$D(DB(DQ)) "  "_% G V
 K DDER G X
P I DV["P" S DIC=U_DU,DIC(0)=$E("EN",$D(DB(DQ))+1)_"M"_$E("L",DV'["'") S:DIC(0)["L" DLAYGO=+$P(DV,"P",2) G:DV["*" AST^DIED D NOSCR^DIED S X=+Y,DIC=DIE G X:X<0
 G V:DV'["N" D D I $L($P(X,"."))>24 K X G Z
 I $P(DQ(DQ),U,5)'["$",X?.1"-".N.1".".N,$P(DQ(DQ),U,5,99)["+X'=X" S X=+X
V D @("X"_DQ) K YS
Z K DIC("S"),DLAYGO I $D(X),X'=U D:$G(DE(DW,"INDEX")) SAVEVALS G:'$$KEYCHK UNIQFERR^DIE17 S DG(DW)=X S:DV["d" ^DISV(DUZ,"DIE",DLB)=X G A
X W:'$D(ZTQUEUED) $C(7),"??" I $D(DB(DQ)) G Z^DIE17
 S X="?BAD"
QS S DZ=X D D,QQ^DIEQ G B
D S D=DIFLD,DQ(DQ)=DLB_U_DV_U_DU_U_DW_U_$P($T(@("X"_DQ))," ",2,99) Q
Y I '$D(DE(DQ)) D O G RD:"@"'[X,A:DV'["R"&(X="@"),X:X="@" S X=Y G N
PR S DG=DV,Y=DE(DQ),X=DU I $D(DQ(DQ,2)) X DQ(DQ,2) G RP
R I DG["P",@("$D(^"_X_"0))") S X=+$P(^(0),U,2) G RP:'$D(^(Y,0)) S Y=$P(^(0),U),X=$P(^DD(X,.01,0),U,3),DG=$P(^(0),U,2) G R
 I DG["V",+Y,$P(Y,";",2)["(",$D(@(U_$P(Y,";",2)_"0)")) S X=+$P(^(0),U,2) G RP:'$D(^(+Y,0)) S Y=$P(^(0),U) I $D(^DD(+X,.01,0)) S DG=$P(^(0),U,2),X=$P(^(0),U,3) G R
 X:DG["D" ^DD("DD") I DG["S" S %=$P($P(";"_X,";"_Y_":",2),";") S:%]"" Y=%
RP D O I X="" S X=DE(DQ) G A:'DV,A:DC<2,N^DIE17
I I DV'["I",DV'["#" G RD
 D E^DIE0 G RD:$D(X),PR
 Q
SET N DIR S DIR(0)="SV"_$E("o",$D(DB(DQ)))_U_DU,DIR("V")=1
 I $D(DB(DQ)),'$D(DIQUIET) N DIQUIET S DIQUIET=1
 D ^DIR I 'DDER S %=Y(0),X=Y
 Q
SAVEVALS S @DIEZTMP@("V",DP,DIIENS,DIFLD,"O")=$G(DE(DQ)) S:$D(^("F"))[0 ^("F")=$G(DE(DQ))
 I $D(DE(DW,"4/")) S @DIEZTMP@("V",DP,DIIENS,DIFLD,"4/")=""
 E  K @DIEZTMP@("V",DP,DIIENS,DIFLD,"4/")
 Q
NKEY W:'$D(ZTQUEUED) "??  Required key field" S X="?BAD" G QS
KEYCHK() Q:$G(DE(DW,"KEY"))="" 1 Q @DE(DW,"KEY")
BEGIN S DNM="ACKQTE6",DQ=1
1 D:$D(DG)>9 F^DIE17,DE S DQ=1,DW="5;6",DV="RS",DU="",DLB="Was care related to EC Exposure ?",DIFLD=35
 S DE(DW)="C1^ACKQTE6"
 S DU="0:NO;1:YES;"
 S X=""
 S Y=X
 G Y
C1 G C1S:$D(DE(1))[0 K DB
 S X=DE(1),DIC=DIE
 X "D SEND^ACKQUTL5(DA)"
C1S S X="" G:DG(DQ)=X C1F1 K DB
 S X=DG(DQ),DIC=DIE
 X "D SEND^ACKQUTL5(DA)"
C1F1 Q
X1 Q
2 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=2 D X2 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X2 S ACKENV=$S(ACKENV=0:0,ACKSC'=1:ACKENV,X=1:2,1:1)
 Q
3 S DQ=4 ;@90
4 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=4 D X4 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X4 I ACKHNC=0 S Y="@95"
 Q
5 D:$D(DG)>9 F^DIE17,DE S DQ=5,DW="5;9",DV="RS",DU="",DLB="Was care related to Head and/or Neck Cancer ?",DIFLD=40
 S DU="0:NO;1:YES;"
 S X=""
 S Y=X
 G Y
X5 Q
6 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=6 D X6 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X6 S ACKHNC=$S(ACKHNC=0:0,ACKSC'=1:ACKHNC,X=1:2,1:1)
 Q
7 S DQ=8 ;@95
8 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=8 D X8 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X8 I ACKCV=0 S Y="@100"
 Q
9 S DW="5;10",DV="RS",DU="",DLB="Was care related to COMBAT ?",DIFLD=45
 S DU="0:NO;1:YES;"
 S X="YES"
 S Y=X
 G Y
X9 Q
10 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=10 D X10 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X10 S ACKCV=$S(ACKCV=0:0,ACKSC'=1:ACKCV,X=1:2,1:1)
 Q
11 S DQ=12 ;@100
12 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=12 D X12 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X12 I '$$MST^ACKQUTL4(ACKPCE,ACKVD,ACKPAT) S Y="@105"
 Q
13 S DW="2;9",DV="RS",DU="",DLB="Was care related to MST ?",DIFLD=90
 S DE(DW)="C13^ACKQTE6"
 S DU="1:YES;0:NO;"
 S X=""
 S Y=X
 G Y
C13 G C13S:$D(DE(13))[0 K DB
 S X=DE(13),DIC=DIE
 X "D SEND^ACKQUTL5(DA)"
C13S S X="" G:DG(DQ)=X C13F1 K DB
 S X=DG(DQ),DIC=DIE
 X "D SEND^ACKQUTL5(DA)"
C13F1 Q
X13 Q
14 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=14 D X14 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X14 I '$$MST^ACKQUTL4(ACKPCE,ACKVD,ACKPAT) D CLEAR^ACKQUTL4(ACKVIEN,"90")
 Q
15 S DQ=16 ;@105
16 D:$D(DG)>9 F^DIE17,DE S DQ=16,DW="2;2",DV="*P509850'",DU="",DLB="CDR ACCOUNT",DIFLD=5
 S DE(DW)="C16^ACKQTE6"
 S DU="ACK(509850,"
 S X=$$CDR^ACKQUTL6()
 S Y=X
 G Y
C16 G C16S:$D(DE(16))[0 K DB
 S X=DE(16),DIC=DIE
 S ACKCAT=$E(^ACK(509850,X,0),1,2),ACKMO=$E(^ACK(509850.6,DA,0),1,5)_"00" S:$D(^ACK(509850.6,"ATCAT",ACKMO,ACKCAT)) $P(^(ACKCAT),U)=^(ACKCAT)-1 K:$S($D(^(ACKCAT)):'^(ACKCAT),1:0) ^(ACKCAT) K ACKCAT,ACKMO
 S X=DE(16),DIC=DIE
 S ACKCDR=+^ACK(509850,X,0),ACKMO=$E(^ACK(509850.6,DA,0),1,5)_"00" S:$D(^ACK(509850.6,"ATCDR",ACKMO,ACKCDR)) $P(^(ACKCDR),U)=^(ACKCDR)-1 K:$S($D(^(ACKCDR)):'^(ACKCDR),1:0) ^(ACKCDR) K ACKMO,ACKCDR
 S X=DE(16),DIC=DIE
 K ^ACK(509850.6,"ADCI",$E($P(^ACK(509850.6,DA,0),U),1,5)_"00",X,DA)
C16S S X="" G:DG(DQ)=X C16F1 K DB
 S X=DG(DQ),DIC=DIE
 S ACKCAT=$E(^ACK(509850,X,0),1,2),ACKMO=$E(^ACK(509850.6,DA,0),1,5)_"00",$P(^(ACKCAT),U)=$S($D(^ACK(509850.6,"ATCAT",ACKMO,ACKCAT)):^(ACKCAT)+1,1:1)
 S X=DG(DQ),DIC=DIE
 S ACKCDR=+^ACK(509850,X,0),ACKMO=$E(^ACK(509850.6,DA,0),1,5)_"00",$P(^(ACKCDR),U)=$S($D(^ACK(509850.6,"ATCDR",ACKMO,ACKCDR)):^(ACKCDR)+1,1:1) K ACKMO,ACKCDR
 S X=DG(DQ),DIC=DIE
 S ^ACK(509850.6,"ADCI",$E($P(^ACK(509850.6,DA,0),U),1,5)_"00",X,DA)=""
C16F1 Q
X16 S DIC("S")="I $P(^(0),U,5)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
 Q
 ;
17 S DQ=18 ;@110
18 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=18 D X18 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X18 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO S Y="@270"
 Q
19 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=19 D X19 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X19 I 'ACKATS S Y="@120"
 Q
20 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=20 D X20 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X20 S ACKLAMD=$$LAMD^ACKQAS1(DFN)
 Q
21 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=21 D X21 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X21 I $D(DIRUT) S Y="@999"
 Q
22 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=22 D X22 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X22 I ACKLAMD S Y="@265"
 Q
23 S DQ=24 ;@120
24 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=24 D X24 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X24 S ACKLAMD=ACKVD
 Q
25 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=25 D X25 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X25 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
26 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=26 D X26 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X26 W !!,"Enter Audiometrics :",!
 Q
27 D:$D(DG)>9 F^DIE17,DE S DQ=27,DW="4;1",DV="RNJ3,0",DU="",DLB="TONE R500",DIFLD=4.01
 S DE(DW)="C27^ACKQTE6"
 G RE
C27 G C27S:$D(DE(27))[0 K DB
 S X=DE(27),DIC=DIE
 S X1=^ACK(509850.6,DA,0) K ^ACK(509850.6,"AMD",+$P(X1,U,2),9999999-$P(X1,U),DA),X1
C27S S X="" G:DG(DQ)=X C27F1 K DB
 S X=DG(DQ),DIC=DIE
 S X1=^ACK(509850.6,DA,0) S:'$D(ACKNAMD) ^ACK(509850.6,"AMD",+$P(X1,U,2),9999999-$P(X1,U),DA)="" K X1
C27F1 Q
X27 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
28 S DQ=29 ;@130
29 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=29 D X29 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X29 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
30 D:$D(DG)>9 F^DIE17,DE S DQ=30,DW="4;2",DV="RNJ3,0",DU="",DLB="TONE R1000",DIFLD=4.02
 G RE
X30 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
31 S DQ=32 ;@140
32 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=32 D X32 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X32 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
33 S DW="4;3",DV="RNJ3,0",DU="",DLB="TONE R2000",DIFLD=4.03
 G RE
X33 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
34 S DQ=35 ;@150
35 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=35 D X35 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X35 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
36 S DW="4;4",DV="RNJ3,0",DU="",DLB="TONE R3000",DIFLD=4.04
 G RE
X36 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
37 S DQ=38 ;@160
38 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=38 D X38 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X38 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
39 S DW="4;5",DV="RNJ3,0",DU="",DLB="TONE R4000",DIFLD=4.05
 G RE
X39 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
40 S DQ=41 ;@170
41 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=41 D X41 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X41 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
42 S DW="4;7",DV="RNJ3,0",DU="",DLB="TONE L500",DIFLD=4.07
 G RE
X42 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
43 S DQ=44 ;@180
44 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=44 D X44 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X44 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
45 S DW="4;8",DV="RNJ3,0",DU="",DLB="TONE L1000",DIFLD=4.08
 G RE
X45 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
46 S DQ=47 ;@190
47 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=47 D X47 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X47 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
48 S DW="4;9",DV="RNJ3,0",DU="",DLB="TONE L2000",DIFLD=4.09
 G RE
X48 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
49 S DQ=50 ;@200
50 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=50 D X50 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X50 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
51 S DW="4;10",DV="RNJ3,0",DU="",DLB="TONE L3000",DIFLD=4.1
 G RE
X51 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
52 S DQ=53 ;@210
53 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=53 D X53 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X53 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
54 S DW="4;11",DV="RNJ3,0",DU="",DLB="TONE L4000",DIFLD=4.11
 G RE
X54 K:+X'=X!(X>105)!(X<-10)!(X?.E1"."1N.N) X
 Q
 ;
55 S DQ=56 ;@230
56 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=56 D X56 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X56 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
57 S DW="4;13",DV="NJ3,0",DU="",DLB="CNC R",DIFLD=4.13
 G RE
X57 K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
 Q
 ;
58 S DQ=59 ;@240
59 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=59 D X59 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X59 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
60 S DW="4;14",DV="NJ3,0",DU="",DLB="CNC L",DIFLD=4.14
 G RE
X60 K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
 Q
 ;
61 S DQ=62 ;@250
62 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=62 D X62 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X62 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
63 S DW="4;15",DV="NJ3,0",DU="",DLB="W22 R",DIFLD=4.15
 G RE
X63 K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
 Q
 ;
64 S DQ=65 ;@260
65 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=65 D X65 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X65 S ACKAUDIO=$$AUDIO^ACKQUTL4 I 'ACKAUDIO!($L(ACKLAMD)>7) S Y="@270"
 Q
66 S DW="4;16",DV="NJ3,0",DU="",DLB="W22 L",DIFLD=4.16
 G RE
X66 K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X
 Q
 ;
67 S DQ=68 ;@265
68 S DW="4;23",DV="D",DU="",DLB="DATE OF AUDIOMETRIC TESTING",DIFLD=4.23
 G RE
X68 S %DT="EX" D ^%DT S X=Y K:Y<1 X
 Q
 ;
69 S DQ=70 ;@270
70 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=70 D X70 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X70 I ACKCP'=1 S Y="@320"
 Q
71 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=71 D X71 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X71 S ACKQHLP="^509850.6^100" D ^ACKQHLP
 Q
72 S D=0 K DE(1) ;100
 S Y="REVIEW OF MEDICAL RECORDS^W^^0;1^Q",DG="100",DC="^509850.62" D DIEN^DIWE K DE(1) G A
 ;
73 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=73 D X73 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X73 I $D(DIRUT) S Y="@999"
 Q
74 S DQ=75 ;@280
75 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=75 D X75 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X75 I ACKCP'=1 S Y="@320"
 Q
76 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=76 D X76 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
X76 S ACKQHLP="^509850.6^101" D ^ACKQHLP
 Q
77 D:$D(DG)>9 F^DIE17 G ^ACKQTE7