ONCBRP3 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table III ;6/1/98
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
K TABLE,HTABLE
S TABLE("35. (M) DNA INDEX/PLOIDY")="DIP"
S TABLE("36. ESTROGEN RECEPTOR PROTEIN")="ERP"
S TABLE("37. PROGESTERONE RECEPTOR PROTEIN")="PRP"
S TABLE("38. (M) ANDROGEN RECEPTOR PROTEIN")="ARP"
S TABLE("39. TYPE OF TEST")="TT"
S HTABLE(1)="35. (M) DNA INDEX/PLOIDY"
S HTABLE(2)="36. ESTROGEN RECEPTOR PROTEIN"
S HTABLE(3)="37. PROGESTERONE RECEPTOR PROTEIN"
S HTABLE(4)="38. (M) ANDROGEN RECEPTOR PROTEIN"
S HTABLE(5)="39. TYPE OF TEST"
S CHOICES=5
K DIQ S DIC="^ONCO(165.5,",DR="25.1;25.2",DA=ONCONUM,DIQ="ONC"
S DIQ(0)="IE" D EN^DIQ1
S DIE="^ONCO(165.5,",DA=ONCONUM
W @IOF D HEAD^ONCBRP0
W !," TABLE III - TUMOR MARKERS AND PROGNOSTIC TESTS"
W !," ----------------------------------------------"
DIP I $$GET1^DIQ(160,ONCOPA,10,"I")=2 D G ERP
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,38)=""
.W !," 35. (M) DNA INDEX/PLOIDY.........: (Data Item for Males Only)"
S DR="937 35. (M) DNA INDEX PLOIDY........." D ^DIE G:$D(Y) JUMP
ERP W !," 36. ESTROGEN RECEPTOR PROTEIN....: ",ONC(165.5,ONCONUM,25.1,"E")
PRP W !," 37. PROGESTERONE RECEPTOR PROTEIN: ",ONC(165.5,ONCONUM,25.2,"E")
ARP I $$GET1^DIQ(160,ONCOPA,10,"I")=2 D G TT
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,41)=""
.W !," 38. (M) ANDROGEN RECEPTOR PROTEIN: (Data Item for Males Only)"
S DR="940 38. (M) ANDROGEN RECEPTOR PROTEIN" D ^DIE G:$D(Y) JUMP
TT S ERA=$P($G(^ONCO(165.5,ONCONUM,"BRE1")),U,39)
S PRA=$P($G(^ONCO(165.5,ONCONUM,"BRE1")),U,40)
I ERA=0,PRA=0 D G PRTC
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,42)=0
.W !," 39. TYPE OF TEST.................: Neither ERA nor PRA was done"
I ERA=9,PRA=9 D G PRTC
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,42)=9
.W !," 39. TYPE OF TEST.................: Unknown if ERA/PRA was done"
S DR="941 39. TYPE OF TEST................." D ^DIE G:$D(Y) JUMP
PRTC W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
G EXIT
JUMP ;Jump to prompts
S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
I X["?" D G JUMP
.W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
I '$D(TABLE(X)) S:X?1.2N X=X_"." S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
.W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
S X=TABLE(X)
G @X
EXIT K CHOICES,HTABLE,TABLE
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCBRP3 2438 printed Nov 22, 2024@17:32:22 Page 2
ONCBRP3 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table III ;6/1/98
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 KILL TABLE,HTABLE
+3 SET TABLE("35. (M) DNA INDEX/PLOIDY")="DIP"
+4 SET TABLE("36. ESTROGEN RECEPTOR PROTEIN")="ERP"
+5 SET TABLE("37. PROGESTERONE RECEPTOR PROTEIN")="PRP"
+6 SET TABLE("38. (M) ANDROGEN RECEPTOR PROTEIN")="ARP"
+7 SET TABLE("39. TYPE OF TEST")="TT"
+8 SET HTABLE(1)="35. (M) DNA INDEX/PLOIDY"
+9 SET HTABLE(2)="36. ESTROGEN RECEPTOR PROTEIN"
+10 SET HTABLE(3)="37. PROGESTERONE RECEPTOR PROTEIN"
+11 SET HTABLE(4)="38. (M) ANDROGEN RECEPTOR PROTEIN"
+12 SET HTABLE(5)="39. TYPE OF TEST"
+13 SET CHOICES=5
+14 KILL DIQ
SET DIC="^ONCO(165.5,"
SET DR="25.1;25.2"
SET DA=ONCONUM
SET DIQ="ONC"
+15 SET DIQ(0)="IE"
DO EN^DIQ1
+16 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+17 WRITE @IOF
DO HEAD^ONCBRP0
+18 WRITE !," TABLE III - TUMOR MARKERS AND PROGNOSTIC TESTS"
+19 WRITE !," ----------------------------------------------"
DIP IF $$GET1^DIQ(160,ONCOPA,10,"I")=2
Begin DoDot:1
+1 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,38)=""
+2 WRITE !," 35. (M) DNA INDEX/PLOIDY.........: (Data Item for Males Only)"
End DoDot:1
GOTO ERP
+3 SET DR="937 35. (M) DNA INDEX PLOIDY........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
ERP WRITE !," 36. ESTROGEN RECEPTOR PROTEIN....: ",ONC(165.5,ONCONUM,25.1,"E")
PRP WRITE !," 37. PROGESTERONE RECEPTOR PROTEIN: ",ONC(165.5,ONCONUM,25.2,"E")
ARP IF $$GET1^DIQ(160,ONCOPA,10,"I")=2
Begin DoDot:1
+1 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,41)=""
+2 WRITE !," 38. (M) ANDROGEN RECEPTOR PROTEIN: (Data Item for Males Only)"
End DoDot:1
GOTO TT
+3 SET DR="940 38. (M) ANDROGEN RECEPTOR PROTEIN"
DO ^DIE
if $DATA(Y)
GOTO JUMP
TT SET ERA=$PIECE($GET(^ONCO(165.5,ONCONUM,"BRE1")),U,39)
+1 SET PRA=$PIECE($GET(^ONCO(165.5,ONCONUM,"BRE1")),U,40)
+2 IF ERA=0
IF PRA=0
Begin DoDot:1
+3 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,42)=0
+4 WRITE !," 39. TYPE OF TEST.................: Neither ERA nor PRA was done"
End DoDot:1
GOTO PRTC
+5 IF ERA=9
IF PRA=9
Begin DoDot:1
+6 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,42)=9
+7 WRITE !," 39. TYPE OF TEST.................: Unknown if ERA/PRA was done"
End DoDot:1
GOTO PRTC
+8 SET DR="941 39. TYPE OF TEST................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PRTC WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+1 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!," GO TO ITEM NUMBER: ",X:DTIME
IF (X="")!(X[U)
SET OUT="Y"
GOTO EXIT
+2 IF X["?"
Begin DoDot:1
+3 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+4 IF '$DATA(TABLE(X))
if X?1.2N
SET X=X_"."
SET XX=X
SET X=$ORDER(TABLE(X))
IF ($PIECE(X,XX,1)'="")!(X="")
WRITE *7,"??"
Begin DoDot:1
+5 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+6 SET X=TABLE(X)
+7 GOTO @X
EXIT KILL CHOICES,HTABLE,TABLE
+1 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+2 QUIT