ONCOY53 ; GENERATED FROM 'ONCOY53' PRINT TEMPLATE (#863) ; 12/17/21 ; (FILE 165.5, MARGIN=80)
G BEGIN
N W !
T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
X ^DD("DD")
W Y Q
M D @DIXX
Q
BEGIN ;
S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
S I(0)="^ONCO(165.5,",J(0)=165.5
D T Q:'DN D N W ?0 W "* STAGE OF DISEASE AT DIAGNOSIS *"
D N:$X>2 Q:'DN W ?2 W "TNM Clinical..................:"
W ?35 N IEN S IEN=D0,STGIND="C" D TNMDSP^ONCSGA8U K DIP K:DN Y
D N:$X>2 Q:'DN W ?2 W "Stage Group Clinical..........:"
S X=$G(^ONCO(165.5,D0,"AJCC8")) D N:$X>35 Q:'DN W ?35,$E($P(X,U,5),1,15)
D N:$X>2 Q:'DN W ?2 W "Staged By (Clinical)..........:"
S X=$G(^ONCO(165.5,D0,3)) D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,32) S Y(0)=Y S:Y'="" Y=$P(^ONCO(165.7,Y,0),U,1)_" "_$P(^ONCO(165.7,Y,0),U,2) W $E(Y,1,30)
D N:$X>2 Q:'DN W ?2 W "TNM Pathologic................:"
W ?35 N IEN S IEN=D0,STGIND="P" D TNMDSP^ONCSGA8U K DIP K:DN Y
D N:$X>2 Q:'DN W ?2 W "Stage Group Pathologic........:"
S X=$G(^ONCO(165.5,D0,"AJCC8")) D N:$X>35 Q:'DN W ?35,$E($P(X,U,9),1,15)
D N:$X>2 Q:'DN W ?2 W "Staged By (Pathologic)........:"
S X=$G(^ONCO(165.5,D0,2.1)) D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,5) S Y(0)=Y S:Y'="" Y=$P(^ONCO(165.7,Y,0),U,1)_" "_$P(^ONCO(165.7,Y,0),U,2) W $E(Y,1,30)
D N:$X>2 Q:'DN W ?2 W "TNM Post-Therapy (yc).........:"
W ?35 N IEN S IEN=D0,STGIND="Y" D TNMDSP^ONCSGA8U K DIP K:DN Y
D N:$X>2 Q:'DN W ?2 W "TNM Post-Therapy (yp).........:"
W ?35 N IEN S IEN=D0,STGIND="T" D TNMDSP^ONCSGA8U K DIP K:DN Y
D N:$X>2 Q:'DN W ?2 W "Stage Group Post-Therapy (yp).:"
S X=$G(^ONCO(165.5,D0,"AJCC8")) D N:$X>35 Q:'DN W ?35,$E($P(X,U,13),1,15)
W ?52 N IEN S IEN=D0 D SSDI^ONCOPA4 K DIP K:DN Y
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCOY53 2041 printed Dec 13, 2024@02:26:44 Page 2
ONCOY53 ; GENERATED FROM 'ONCOY53' PRINT TEMPLATE (#863) ; 12/17/21 ; (FILE 165.5, MARGIN=80)
+1 GOTO BEGIN
N WRITE !
T if $X
WRITE !
IF '$DATA(DIOT(2))
IF DN
IF $DATA(IOSL)
IF $SELECT('$DATA(DIWF):1,$PIECE(DIWF,"B",2):$PIECE(DIWF,"B",2),1:1)+$Y'<IOSL
IF $DATA(^UTILITY($JOB,1))#2
IF ^(1)?1U1P1E.E
XECUTE ^(1)
+1 SET DISTP=DISTP+1
SET DILCT=DILCT+1
if '(DISTP#100)
DO CSTP^DIO2
+2 QUIT
DT IF $GET(DUZ("LANG"))>1
IF Y
WRITE $$OUT^DIALOGU(Y,"DD")
QUIT
+1 XECUTE ^DD("DD")
+2 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 if '$DATA(DN)
SET DN=1
SET DISTP=$GET(DISTP)
SET DILCT=$GET(DILCT)
+2 SET I(0)="^ONCO(165.5,"
SET J(0)=165.5
+3 DO T
if 'DN
QUIT
DO N
WRITE ?0
WRITE "* STAGE OF DISEASE AT DIAGNOSIS *"
+4 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "TNM Clinical..................:"
+5 WRITE ?35
NEW IEN
SET IEN=D0
SET STGIND="C"
DO TNMDSP^ONCSGA8U
KILL DIP
if DN
KILL Y
+6 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Stage Group Clinical..........:"
+7 SET X=$GET(^ONCO(165.5,D0,"AJCC8"))
if $X>35
DO N
if 'DN
QUIT
WRITE ?35,$EXTRACT($PIECE(X,U,5),1,15)
+8 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Staged By (Clinical)..........:"
+9 SET X=$GET(^ONCO(165.5,D0,3))
if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,32)
SET Y(0)=Y
if Y'=""
SET Y=$PIECE(^ONCO(165.7,Y,0),U,1)_" "_$PIECE(^ONCO(165.7,Y,0),U,2)
WRITE $EXTRACT(Y,1,30)
+10 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "TNM Pathologic................:"
+11 WRITE ?35
NEW IEN
SET IEN=D0
SET STGIND="P"
DO TNMDSP^ONCSGA8U
KILL DIP
if DN
KILL Y
+12 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Stage Group Pathologic........:"
+13 SET X=$GET(^ONCO(165.5,D0,"AJCC8"))
if $X>35
DO N
if 'DN
QUIT
WRITE ?35,$EXTRACT($PIECE(X,U,9),1,15)
+14 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Staged By (Pathologic)........:"
+15 SET X=$GET(^ONCO(165.5,D0,2.1))
if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,5)
SET Y(0)=Y
if Y'=""
SET Y=$PIECE(^ONCO(165.7,Y,0),U,1)_" "_$PIECE(^ONCO(165.7,Y,0),U,2)
WRITE $EXTRACT(Y,1,30)
+16 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "TNM Post-Therapy (yc).........:"
+17 WRITE ?35
NEW IEN
SET IEN=D0
SET STGIND="Y"
DO TNMDSP^ONCSGA8U
KILL DIP
if DN
KILL Y
+18 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "TNM Post-Therapy (yp).........:"
+19 WRITE ?35
NEW IEN
SET IEN=D0
SET STGIND="T"
DO TNMDSP^ONCSGA8U
KILL DIP
if DN
KILL Y
+20 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Stage Group Post-Therapy (yp).:"
+21 SET X=$GET(^ONCO(165.5,D0,"AJCC8"))
if $X>35
DO N
if 'DN
QUIT
WRITE ?35,$EXTRACT($PIECE(X,U,13),1,15)
+22 WRITE ?52
NEW IEN
SET IEN=D0
DO SSDI^ONCOPA4
KILL DIP
if DN
KILL Y
+23 KILL Y
+24 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!