ONCHPC1 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/06/00
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Patient Information
K TABLE,HTABLE
S TABLE("1. FACILITY ID NUMBER (FIN)")="FIN"
S TABLE("2. ACCESSION NUMBER")="ACC"
S TABLE("3. SEQUENCE NUMBER")="SEQ"
S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCD"
S TABLE("5. PLACE OF BIRTH")="POB"
S TABLE("6. DATE OF BIRTH")="DOB"
S TABLE("7. RACE")="RACE"
S TABLE("8. SPANISH ORIGIN")="SO"
S TABLE("9. SEX")="SEX"
S TABLE("10. PRIMARY PAYER AT DIAGNOSIS")="PPD"
S HTABLE(1)=" 1. FACILITY ID NUMBER (FIN)"
S HTABLE(2)=" 2. ACCESSION NUMBER"
S HTABLE(3)=" 3. SEQUENCE NUMBER"
S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
S HTABLE(5)=" 5. PLACE OF BIRTH"
S HTABLE(6)=" 6. DATE OF BIRTH"
S HTABLE(7)=" 7. RACE"
S HTABLE(8)=" 8. SPANISH ORIGIN"
S HTABLE(9)=" 9. SEX"
S HTABLE(10)="10. PRIMARY PAYER AT DIAGNOSIS"
S CHOICES=10
S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
S IE=ONCONUM
W @IOF D HEAD^ONCHPC0
W !," PATIENT INFORMATION"
W !," -------------------"
FIN W !," 1. FACILITY ID NUMBER (FIN)......: ",$$IIN^ONCFUNC
ACC W !," 2. ACCESSION NUMBER..............: ",$$GET1^DIQ(165.5,IE,.05)
SEQ W !," 3. SEQUENCE NUMBER...............: ",$$GET1^DIQ(165.5,IE,.06)
PCD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="9 4. POSTAL CODE AT DIAGNOSIS......" D ^DIE G:$D(Y) JUMP
POB S DIE="^ONCO(160,",DA=ONCOPA
S DR="7 5. PLACE OF BIRTH................" D ^DIE G:$D(Y) JUMP
DOB W !," 6. DATE OF BIRTH.................: ",DOB
RACE S DIE="^ONCO(160,",DA=ONCOPA
S DR="8 7. RACE.........................." D ^DIE G:$D(Y) JUMP
SO S DIE="^ONCO(160,",DA=ONCOPA
S DR="9 8. SPANISH ORIGIN................" D ^DIE G:$D(Y) JUMP
SEX S DIE="^ONCO(160,",DA=ONCOPA
S DR="10 9. SEX..........................." D ^DIE G:$D(Y) JUMP
PPD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="18 10. PRIMARY PAYER AT DIAGNOSIS...." D ^DIE G:$D(Y) JUMP
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 HTABLE,TABLE,CHOICES,DOB,IE
K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCHPC1 2467 printed Dec 13, 2024@02:23:05 Page 2
ONCHPC1 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/06/00
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Patient Information
+3 KILL TABLE,HTABLE
+4 SET TABLE("1. FACILITY ID NUMBER (FIN)")="FIN"
+5 SET TABLE("2. ACCESSION NUMBER")="ACC"
+6 SET TABLE("3. SEQUENCE NUMBER")="SEQ"
+7 SET TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCD"
+8 SET TABLE("5. PLACE OF BIRTH")="POB"
+9 SET TABLE("6. DATE OF BIRTH")="DOB"
+10 SET TABLE("7. RACE")="RACE"
+11 SET TABLE("8. SPANISH ORIGIN")="SO"
+12 SET TABLE("9. SEX")="SEX"
+13 SET TABLE("10. PRIMARY PAYER AT DIAGNOSIS")="PPD"
+14 SET HTABLE(1)=" 1. FACILITY ID NUMBER (FIN)"
+15 SET HTABLE(2)=" 2. ACCESSION NUMBER"
+16 SET HTABLE(3)=" 3. SEQUENCE NUMBER"
+17 SET HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
+18 SET HTABLE(5)=" 5. PLACE OF BIRTH"
+19 SET HTABLE(6)=" 6. DATE OF BIRTH"
+20 SET HTABLE(7)=" 7. RACE"
+21 SET HTABLE(8)=" 8. SPANISH ORIGIN"
+22 SET HTABLE(9)=" 9. SEX"
+23 SET HTABLE(10)="10. PRIMARY PAYER AT DIAGNOSIS"
+24 SET CHOICES=10
+25 SET D0=ONCOPA
DO DOB1^ONCOES
SET Y=X
DO DATEOT^ONCOPCE
SET DOB=Y
+26 SET IE=ONCONUM
+27 WRITE @IOF
DO HEAD^ONCHPC0
+28 WRITE !," PATIENT INFORMATION"
+29 WRITE !," -------------------"
FIN WRITE !," 1. FACILITY ID NUMBER (FIN)......: ",$$IIN^ONCFUNC
ACC WRITE !," 2. ACCESSION NUMBER..............: ",$$GET1^DIQ(165.5,IE,.05)
SEQ WRITE !," 3. SEQUENCE NUMBER...............: ",$$GET1^DIQ(165.5,IE,.06)
PCD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="9 4. POSTAL CODE AT DIAGNOSIS......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
POB SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="7 5. PLACE OF BIRTH................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
DOB WRITE !," 6. DATE OF BIRTH.................: ",DOB
RACE SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="8 7. RACE.........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
SO SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="9 8. SPANISH ORIGIN................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
SEX SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="10 9. SEX..........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
PPD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="18 10. PRIMARY PAYER AT DIAGNOSIS...."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+2 WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+3 GOTO EXIT
JUMP ;Jump to prompts
+1 SET XX=""
READ !!," GO TO ITEM NUMBER: ",X:DTIME
+2 IF (X="")!(X[U)
SET OUT="Y"
GOTO EXIT
+3 IF X["?"
Begin DoDot:1
+4 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+5 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
+6 WRITE !," CHOOSE FROM:"
FOR I=1:1:CHOICES
WRITE !,?5,HTABLE(I)
End DoDot:1
GOTO JUMP
+7 SET X=TABLE(X)
+8 GOTO @X
EXIT KILL HTABLE,TABLE,CHOICES,DOB,IE
+1 KILL DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
+2 QUIT