[613] | 1 | ONCHPC1 ;Hines OIFO/GWB - 2000 Hepatocellular Cancers PCE Study ;01/06/00
|
---|
| 2 | ;;2.11;ONCOLOGY;**26**;Mar 07, 1995
|
---|
| 3 | ;Patient Information
|
---|
| 4 | K TABLE,HTABLE
|
---|
| 5 | S TABLE("1. FACILITY ID NUMBER (FIN)")="FIN"
|
---|
| 6 | S TABLE("2. ACCESSION NUMBER")="ACC"
|
---|
| 7 | S TABLE("3. SEQUENCE NUMBER")="SEQ"
|
---|
| 8 | S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCD"
|
---|
| 9 | S TABLE("5. PLACE OF BIRTH")="POB"
|
---|
| 10 | S TABLE("6. DATE OF BIRTH")="DOB"
|
---|
| 11 | S TABLE("7. RACE")="RACE"
|
---|
| 12 | S TABLE("8. SPANISH ORIGIN")="SO"
|
---|
| 13 | S TABLE("9. SEX")="SEX"
|
---|
| 14 | S TABLE("10. PRIMARY PAYER AT DIAGNOSIS")="PPD"
|
---|
| 15 | S HTABLE(1)=" 1. FACILITY ID NUMBER (FIN)"
|
---|
| 16 | S HTABLE(2)=" 2. ACCESSION NUMBER"
|
---|
| 17 | S HTABLE(3)=" 3. SEQUENCE NUMBER"
|
---|
| 18 | S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
|
---|
| 19 | S HTABLE(5)=" 5. PLACE OF BIRTH"
|
---|
| 20 | S HTABLE(6)=" 6. DATE OF BIRTH"
|
---|
| 21 | S HTABLE(7)=" 7. RACE"
|
---|
| 22 | S HTABLE(8)=" 8. SPANISH ORIGIN"
|
---|
| 23 | S HTABLE(9)=" 9. SEX"
|
---|
| 24 | S HTABLE(10)="10. PRIMARY PAYER AT DIAGNOSIS"
|
---|
| 25 | S CHOICES=10
|
---|
| 26 | S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
|
---|
| 27 | S IE=ONCONUM
|
---|
| 28 | W @IOF D HEAD^ONCHPC0
|
---|
| 29 | W !," PATIENT INFORMATION"
|
---|
| 30 | W !," -------------------"
|
---|
| 31 | FIN W !," 1. FACILITY ID NUMBER (FIN)......: ",$$IIN^ONCFUNC
|
---|
| 32 | ACC W !," 2. ACCESSION NUMBER..............: ",$$GET1^DIQ(165.5,IE,.05)
|
---|
| 33 | SEQ W !," 3. SEQUENCE NUMBER...............: ",$$GET1^DIQ(165.5,IE,.06)
|
---|
| 34 | PCD S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
| 35 | S DR="9 4. POSTAL CODE AT DIAGNOSIS......" D ^DIE G:$D(Y) JUMP
|
---|
| 36 | POB S DIE="^ONCO(160,",DA=ONCOPA
|
---|
| 37 | S DR="7 5. PLACE OF BIRTH................" D ^DIE G:$D(Y) JUMP
|
---|
| 38 | DOB W !," 6. DATE OF BIRTH.................: ",DOB
|
---|
| 39 | RACE S DIE="^ONCO(160,",DA=ONCOPA
|
---|
| 40 | S DR="8 7. RACE.........................." D ^DIE G:$D(Y) JUMP
|
---|
| 41 | SO S DIE="^ONCO(160,",DA=ONCOPA
|
---|
| 42 | S DR="9 8. SPANISH ORIGIN................" D ^DIE G:$D(Y) JUMP
|
---|
| 43 | SEX S DIE="^ONCO(160,",DA=ONCOPA
|
---|
| 44 | S DR="10 9. SEX..........................." D ^DIE G:$D(Y) JUMP
|
---|
| 45 | PPD S DIE="^ONCO(165.5,",DA=ONCONUM
|
---|
| 46 | S DR="18 10. PRIMARY PAYER AT DIAGNOSIS...." D ^DIE G:$D(Y) JUMP
|
---|
| 47 | W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
|
---|
| 48 | G EXIT
|
---|
| 49 | JUMP ;Jump to prompts
|
---|
| 50 | S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
|
---|
| 51 | I (X="")!(X[U) S OUT="Y" G EXIT
|
---|
| 52 | I X["?" D G JUMP
|
---|
| 53 | .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
| 54 | 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
|
---|
| 55 | .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
|
---|
| 56 | S X=TABLE(X)
|
---|
| 57 | G @X
|
---|
| 58 | EXIT K HTABLE,TABLE,CHOICES,DOB,IE
|
---|
| 59 | K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
|
---|
| 60 | Q
|
---|