source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCP2P1.m@ 1540

Last change on this file since 1540 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.3 KB
Line 
1ONCP2P1 ;Hines OIFO/GWB - 1998 Prostate Cancer Study ;05/30/00
2 ;;2.11;ONCOLOGY;**18,24,26**;Mar 07, 1995
3 ;Table I
4 K TABLE,HTABLE
5 S TABLE("1. INSTITUTION ID NUMBER")="IIN"
6 S TABLE("2. ACCESSION NUMBER")="ACC"
7 S TABLE("3. SEQUENCE NUMBER")="SEQ"
8 S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCAD"
9 S TABLE("5. DATE OF BIRTH")="DOB"
10 S TABLE("6. RACE")="RACE"
11 S TABLE("7. SPANISH ORIGIN")="SO"
12 S TABLE("8. PRIMARY PAYER AT DIAGNOSIS")="PPAD"
13 S TABLE("9. FAMILY HISTORY OF PROSTATE CANCER")="FHOPC"
14 S HTABLE(1)=" 1. INSTITUTION ID NUMBER"
15 S HTABLE(2)=" 2. ACCESSION NUMBER"
16 S HTABLE(3)=" 3. SEQUENCE NUMBER"
17 S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
18 S HTABLE(5)=" 5. DATE OF BIRTH"
19 S HTABLE(6)=" 6. RACE"
20 S HTABLE(7)=" 7. SPANISH ORIGIN"
21 S HTABLE(8)=" 8. PRIMARY PAYER AT DIAGNOSIS"
22 S HTABLE(9)=" 9. FAMILY HISTORY OF PROSTATE CANCER"
23 S CHOICES=9
24 K DIQ S DIC="^ONCO(165.5,",DR=".05;.06",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
25 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
26 W @IOF D HEAD^ONCP2P0
27IIN W !," 1. INSTITUTION ID NUMBER............: H6",$$IIN^ONCFUNC
28 W !!," TABLE I - GENERAL INFORMATION"
29 W !," -----------------------------"
30ACC W !," 2. ACCESSION NUMBER.................: ",ONC(165.5,ONCONUM,.05)
31SEQ W !," 3. SEQUENCE NUMBER..................: ",ONC(165.5,ONCONUM,.06)
32PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
33 S DR="9 4. POSTAL CODE AT DIAGNOSIS........." D ^DIE G:$D(Y) JUMP
34DOB W !," 5. DATE OF BIRTH....................: ",DOB
35RACE S DIE="^ONCO(160,",DA=ONCOPA
36 S DR="8 6. RACE............................." D ^DIE G:$D(Y) JUMP
37SO S DIE="^ONCO(160,",DA=ONCOPA
38 S DR="9 7. SPANISH ORIGIN..................." D ^DIE G:$D(Y) JUMP
39PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
40 S DR="18 8. PRIMARY PAYER AT DIAGNOSIS......." D ^DIE G:$D(Y) JUMP
41FHOPC S DIE="^ONCO(165.5,",DA=ONCONUM
42 S DR="657 9. FAMILY HISTORY OF PROSTATE CANCER" D ^DIE G:$D(Y) JUMP
43 W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
44 G EXIT
45JUMP ;Jump to prompts
46 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
47 I (X="")!(X[U) S OUT="Y" G EXIT
48 I X["?" D G JUMP
49 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
50 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
51 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
52 S X=TABLE(X)
53 G @X
54EXIT K TABLE,HTABLE,CHOICES,ONC
55 K DIQ,DIC,DR,DA,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,XX,X,Y
56 K DOB,OSP,IIN
57 Q
Note: See TracBrowser for help on using the repository browser.