ONCPPC1 ;Hines OIFO/GWB - PCE Studies of Prostate Cancer ;05/30/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Table I
S PRINODE0=^ONCO(165.5,ONCONUM,0)
K TABLE,HTABLE
S TABLE("ACCESSION/SEQUENCE NUMBER")="ACC"
S TABLE("CLASS OF CASE")="COC"
S TABLE("ZIP CODE")="ZIP"
S TABLE("BIRTHDATE")="DOB"
S TABLE("RACE")="RACE"
S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
S TABLE("DATE OF ADMISSION")="DOA"
S TABLE("DATE OF DISCHARGE")="DOD"
S HTABLE(1)="ACCESSION/SEQUENCE NUMBER"
S HTABLE(2)="CLASS OF CASE"
S HTABLE(3)="ZIP CODE"
S HTABLE(4)="BIRTHDATE"
S HTABLE(5)="RACE"
S HTABLE(6)="PRIMARY PAYER AT DIAGNOSIS"
S HTABLE(7)="DATE OF ADMISSION"
S HTABLE(8)="DATE OF DISCHARGE"
S CHOICES=8
K DIQ S DIC="^ONCO(165.5,",DR=".04;.05;.06",DA=ONCONUM,DIQ="ONC"
D EN^DIQ1
S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
S ACCSEQ=ONC(165.5,ONCONUM,.05)_"/"_ONC(165.5,ONCONUM,.06)
W @IOF D HEAD^ONCPPC0 W !?25,"TABLE I - GENERAL INFORMATION",!
ACC W !,"ACCESSION/SEQUENCE NUMBER.: ",ACCSEQ
COC W !,"CLASS OF CASE.............: ",ONC(165.5,ONCONUM,.04)
ZIP S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="9ZIP CODE.................." D ^DIE G:$D(Y) JUMP
DOB W !,"BIRTHDATE.................: ",DOB
RACE S DIE="^ONCO(160,",DA=ONCOPA
S DR="8RACE......................" D ^DIE G:$D(Y) JUMP
PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="18PRIMARY PAYER AT DIAGNOSIS" D ^DIE G:$D(Y) JUMP
DOA S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="1DATE OF ADMISSION........." D ^DIE G:$D(Y) JUMP
DOD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="1.1DATE OF DISCHARGE........." D ^DIE G:$D(Y) JUMP
W ! K DIR S DIR(0)="E" D ^DIR
G EXIT
JUMP ;Jump to prompts
S XX="" R !!,"GO TO: ",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 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,PRINODE0,TABLE
K ACCSEQ,C,COCEX,COCIN,DOB,CHOICES
K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCPPC1 2112 printed Dec 13, 2024@02:27:13 Page 2
ONCPPC1 ;Hines OIFO/GWB - PCE Studies of Prostate Cancer ;05/30/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Table I
+3 SET PRINODE0=^ONCO(165.5,ONCONUM,0)
+4 KILL TABLE,HTABLE
+5 SET TABLE("ACCESSION/SEQUENCE NUMBER")="ACC"
+6 SET TABLE("CLASS OF CASE")="COC"
+7 SET TABLE("ZIP CODE")="ZIP"
+8 SET TABLE("BIRTHDATE")="DOB"
+9 SET TABLE("RACE")="RACE"
+10 SET TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
+11 SET TABLE("DATE OF ADMISSION")="DOA"
+12 SET TABLE("DATE OF DISCHARGE")="DOD"
+13 SET HTABLE(1)="ACCESSION/SEQUENCE NUMBER"
+14 SET HTABLE(2)="CLASS OF CASE"
+15 SET HTABLE(3)="ZIP CODE"
+16 SET HTABLE(4)="BIRTHDATE"
+17 SET HTABLE(5)="RACE"
+18 SET HTABLE(6)="PRIMARY PAYER AT DIAGNOSIS"
+19 SET HTABLE(7)="DATE OF ADMISSION"
+20 SET HTABLE(8)="DATE OF DISCHARGE"
+21 SET CHOICES=8
+22 KILL DIQ
SET DIC="^ONCO(165.5,"
SET DR=".04;.05;.06"
SET DA=ONCONUM
SET DIQ="ONC"
+23 DO EN^DIQ1
+24 SET D0=ONCOPA
DO DOB1^ONCOES
SET Y=X
DO DATEOT^ONCOPCE
SET DOB=Y
+25 SET ACCSEQ=ONC(165.5,ONCONUM,.05)_"/"_ONC(165.5,ONCONUM,.06)
+26 WRITE @IOF
DO HEAD^ONCPPC0
WRITE !?25,"TABLE I - GENERAL INFORMATION",!
ACC WRITE !,"ACCESSION/SEQUENCE NUMBER.: ",ACCSEQ
COC WRITE !,"CLASS OF CASE.............: ",ONC(165.5,ONCONUM,.04)
ZIP SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="9ZIP CODE.................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
DOB WRITE !,"BIRTHDATE.................: ",DOB
RACE SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="8RACE......................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
PPAD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="18PRIMARY PAYER AT DIAGNOSIS"
DO ^DIE
if $DATA(Y)
GOTO JUMP
DOA SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="1DATE OF ADMISSION........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
DOD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="1.1DATE OF DISCHARGE........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
+3 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!,"GO TO: ",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))
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,PRINODE0,TABLE
+1 KILL ACCSEQ,C,COCEX,COCIN,DOB,CHOICES
+2 KILL DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
+3 QUIT