source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCMPC1.m@ 1456

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

initial load of FOIAVistA 6/30/08 version

File size: 4.4 KB
Line 
1ONCMPC1 ;Hines OIFO/GWB - 1999 Melanoma Study ;01/07/99
2 ;;2.11;ONCOLOGY;**22,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. SEX")="SEX"
13 S TABLE("9. PRIMARY PAYER AT DIAGNOSIS")="PPAD"
14 S TABLE("10. PERSONAL HISTORY OF MELANOMA")="PHOM"
15 S TABLE("11. PERSONAL HISTORY OF OTHER CANCER")="PHOOC"
16 S TABLE("12. PREGNANCY AT INITIAL DX")="PAID"
17 S TABLE("13. EXOGENOUS HORMONES")="EH"
18 S HTABLE(1)=" 1. INSTITUTION ID NUMBER"
19 S HTABLE(2)=" 2. ACCESSION NUMBER"
20 S HTABLE(3)=" 3. SEQUENCE NUMBER"
21 S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
22 S HTABLE(5)=" 5. DATE OF BIRTH"
23 S HTABLE(6)=" 6. RACE"
24 S HTABLE(7)=" 7. SPANISH ORIGIN"
25 S HTABLE(8)=" 8. SEX"
26 S HTABLE(9)=" 9. PRIMARY PAYER AT DIAGNOSIS"
27 S HTABLE(10)="10. PERSONAL HISTORY OF MELANOMA"
28 S HTABLE(11)="11. PERSONAL HISTORY OF OTHER CANCER"
29 S HTABLE(12)="12. PREGNANCY AT INITIAL DX"
30 S HTABLE(13)="13. EXOGENOUS HORMONES"
31 S CHOICES=13
32 K DIQ S DIC="^ONCO(165.5,",DR=".04;.05;.06",DA=ONCONUM,DIQ="ONC"
33 D EN^DIQ1
34 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
35 W @IOF D HEAD^ONCMPC0
36IIN W !," 1. INSTITUTION ID NUMBER........: ",$$IIN^ONCFUNC
37 W !!," TABLE I - GENERAL INFORMATION"
38 W !," -----------------------------"
39ACC W !," 2. ACCESSION NUMBER.............: ",ONC(165.5,ONCONUM,.05)
40SEQ W !," 3. SEQUENCE NUMBER..............: ",ONC(165.5,ONCONUM,.06)
41PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
42 S DR="9 4. POSTAL CODE AT DIAGNOSIS....." D ^DIE G:$D(Y) JUMP
43DOB W !," 5. DATE OF BIRTH................: ",DOB
44RACE S DIE="^ONCO(160,",DA=ONCOPA
45 S DR="8 6. RACE........................." D ^DIE G:$D(Y) JUMP
46SO S DIE="^ONCO(160,",DA=ONCOPA
47 S DR="9 7. SPANISH ORIGIN..............." D ^DIE G:$D(Y) JUMP
48SEX S DIE="^ONCO(160,",DA=ONCOPA
49 S DR="10 8. SEX.........................." D ^DIE G:$D(Y) JUMP
50PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
51 S DR="18 9. PRIMARY PAYER AT DIAGNOSIS..." D ^DIE G:$D(Y) JUMP
52 S DIE="^ONCO(165.5,",DA=ONCONUM
53PHOM S DR="1100 10. PERSONAL HISTORY OF MELANOMA." D ^DIE G:$D(Y) JUMP
54PHOOC D FSC^ONCOMNI S FSCDEF=X,FDDDEF=FSDX
55 D SSC^ONCOMNI S SSCDEF=X,SDDDEF=SSDX
56 S DIE="^ONCO(165.5,",DA=ONCONUM
57 S DF=$S(X'="C88.8":"Yes",1:"No")
58 S DR="1101 11. PERSONAL HISTORY OF OTHER CA.//"_DF D ^DIE G:$D(Y) JUMP
59 I X=0 D G PAH
60 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,3)=67888
61 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,4)=8888888
62 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,5)=67888
63 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,6)=8888888
64 .W !!," 1ST SITE CODE...............: C88.8"
65 .W !," DATE DIAGNOSED..............: 88/8888"
66 .W !!," 2ND SITE CODE...............: C88.8"
67 .W !," DATE DIAGNOSED..............: 88/8888"
68 I X=9 D G PAH
69 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,3)=67999
70 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,4)=9999999
71 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,5)=67999
72 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,6)=9999999
73 .W !!," 1ST SITE CODE...............: C99.9"
74 .W !," DATE DIAGNOSED..............: 99/9999"
75 .W !!," 2ND SITE CODE...............: C99.9"
76 .W !," DATE DIAGNOSED..............: 99/9999"
77 W !
78 S DR="1102 1ST SITE CODE...............//"_FSCDEF D ^DIE G:$D(Y) JUMP
79 S DR="1103 DATE DIAGNOSED..............//"_FDDDEF D ^DIE G:$D(Y) JUMP
80 W !
81 S DR="1104 2ND SITE CODE...............//"_SSCDEF D ^DIE G:$D(Y) JUMP
82 S DR="1105 DATE DIAGNOSED..............//"_SDDDEF D ^DIE G:$D(Y) JUMP
83PAH W !!," PREGNANCY AND HORMONES",!
84 I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D W ! G PRTC
85 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,7)=8
86 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,8)=8
87 .W !," 12. PREGNANCY AT INITIAL DX......: NA, male"
88 .W !," 13. EXOGENOUS HORMONES...........: NA, male patient"
89PAID S DR="1106 12. PREGNANCY AT INITIAL DX......" D ^DIE G:$D(Y) JUMP
90EH S DR="1107 13. EXOGENOUS HORMONES..........." D ^DIE G:$D(Y) JUMP
91PRTC K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
92 G EXIT
93JUMP ;Jump to prompts
94 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
95 I (X="")!(X[U) S OUT="Y" G EXIT
96 I X["?" D G JUMP
97 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
98 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
99 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
100 S X=TABLE(X)
101 G @X
102EXIT K HTABLE,TABLE,CHOICES,ONC,DOB,OSP,IIN
103 K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
104 Q
Note: See TracBrowser for help on using the repository browser.