source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCBRP1.m@ 1578

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

initial load of WorldVistAEHR

File size: 5.9 KB
Line 
1ONCBRP1 ;Hines OIFO/GWB - 1998 Breast Cancer Study ;6/1/98
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. SEX")="SEX"
13 S TABLE("9. PRIMARY PAYER AT DIAGNOSIS")="PPAD"
14 S TABLE("10. FAMILY HISTORY OF BREAST CANCER")="FHOBC"
15 S TABLE("11. (F) PERSONAL HISTORY OF BREAST CANCER")="PHOBC"
16 S TABLE("12. SYNCHRONOUS BREAST CANCER")="SBC"
17 S TABLE("13. PERSONAL HISTORY OF OTHER CANCER")="PHOC"
18 S TABLE("14. (F) HORMONE REPLACEMENT THERAPY")="HRT"
19 S TABLE("15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY")="HMYHRT"
20 S HTABLE(1)=" 1. INSTITUTION ID NUMBER"
21 S HTABLE(2)=" 2. ACCESSION NUMBER"
22 S HTABLE(3)=" 3. SEQUENCE NUMBER"
23 S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
24 S HTABLE(5)=" 5. DATE OF BIRTH"
25 S HTABLE(6)=" 6. RACE"
26 S HTABLE(7)=" 7. SPANISH ORIGIN"
27 S HTABLE(8)=" 8. SEX"
28 S HTABLE(9)=" 9. PRIMARY PAYER AT DIAGNOSIS"
29 S HTABLE(10)="10. FAMILY HISTORY OF BREAST CANCER"
30 S HTABLE(11)="11. (F) PERSONAL HISTORY OF BREAST CANCER"
31 S HTABLE(12)="12. SYNCHRONOUS BREAST CANCER"
32 S HTABLE(13)="13. PERSONAL HISTORY OF OTHER CANCER"
33 S HTABLE(14)="14. (F) HORMONE REPLACEMENT THERAPY"
34 S HTABLE(15)="15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY"
35 S CHOICES=15
36 K DIQ S DIC="^ONCO(165.5,",DR=".04;.05;.06",DA=ONCONUM,DIQ="ONC"
37 D EN^DIQ1
38 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
39 W @IOF D HEAD^ONCBRP0
40IIN W !," 1. INSTITUTION ID NUMBER..........: H6",$$IIN^ONCFUNC
41 W !!," TABLE I - GENERAL INFORMATION"
42 W !," -----------------------------"
43ACC W !," 2. ACCESSION NUMBER...............: ",ONC(165.5,ONCONUM,.05)
44SEQ W !," 3. SEQUENCE NUMBER................: ",ONC(165.5,ONCONUM,.06)
45PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
46 S DR="9 4. POSTAL CODE AT DIAGNOSIS......." D ^DIE G:$D(Y) JUMP
47DOB W !," 5. DATE OF BIRTH..................: ",DOB
48RACE S DIE="^ONCO(160,",DA=ONCOPA
49 S DR="8 6. RACE..........................." D ^DIE G:$D(Y) JUMP
50SO S DIE="^ONCO(160,",DA=ONCOPA
51 S DR="9 7. SPANISH ORIGIN................." D ^DIE G:$D(Y) JUMP
52SEX S DIE="^ONCO(160,",DA=ONCOPA
53 S DR="10 8. SEX............................" D ^DIE G:$D(Y) JUMP
54PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
55 S DR="18 9. PRIMARY PAYER AT DIAGNOSIS....." D ^DIE G:$D(Y) JUMP
56FHOBC S DIE="^ONCO(165.5,",DA=ONCONUM
57 W !!," 10. FAMILY HISTORY OF BREAST CANCER:",!
58 S DR="900 DAUGHTER......................." D ^DIE G:$D(Y) JUMP
59 S DR="901 MATERNAL AUNT.................." D ^DIE G:$D(Y) JUMP
60 S DR="902 MATERNAL GRANDMOTHER..........." D ^DIE G:$D(Y) JUMP
61 S DR="903 MOTHER........................." D ^DIE G:$D(Y) JUMP
62 S DR="904 ONE SISTER ONLY................" D ^DIE G:$D(Y) JUMP
63 S DR="905 MORE THAN ONE SISTER..........." D ^DIE G:$D(Y) JUMP
64 S DR="906 FATHER........................." D ^DIE G:$D(Y) JUMP
65 S DR="907 BROTHER........................" D ^DIE G:$D(Y) JUMP
66 S DR="908 POSITIVE FAMILY HISTORY, NOS..." D ^DIE G:$D(Y) JUMP
67 W !
68PHOBC I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D W ! G SBC
69 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,10)=""
70 .W !," 11. (F) PERSONAL HISTORY OF BREAST"
71 .W !," CANCER.........................: (Data Item for Females Only)"
72 S DIE="^ONCO(165.5,",DA=ONCONUM
73 S DR="909 11. (F) PERSONAL HISTORY OF BREAST CANCER........................." D ^DIE G:$D(Y) JUMP
74 W !
75SBC S DIE="^ONCO(165.5,",DA=ONCONUM
76 S DR="910 12. SYNCHRONOUS BREAST CANCER......" D ^DIE G:$D(Y) JUMP
77PHOC S DIE="^ONCO(165.5,",DA=ONCONUM
78 W !!," 13. PERSONAL HISTORY OF OTHER CANCER:",!
79 S DR="911 COLON.........................." D ^DIE G:$D(Y) JUMP
80 I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D G P
81 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,13)=""
82 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,14)=""
83 .W !," OVARY (F)......................: (Data Item for Females Only)"
84 .W !," UTERUS (F).....................: (Data Item for Females Only)"
85 S DR="912 OVARY (F)......................" D ^DIE G:$D(Y) JUMP
86 S DR="913 UTERUS (F)....................." D ^DIE G:$D(Y) JUMP
87P I $$GET1^DIQ(160,ONCOPA,10,"I")=2 D G O
88 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,15)=""
89 .W !," PROSTATE (M)...................: (Data Item for Males Only)"
90 S DR="914 PROSTATE (M)..................." D ^DIE G:$D(Y) JUMP
91O S DR="915 OTHER.........................." D ^DIE G:$D(Y) JUMP
92 W !
93HRT I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D G HMYHRT
94 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,17)=""
95 .W !," 14. (F) HORMONE REPLACEMENT THERAPY: (Data Item for Females Only)"
96 S DIE="^ONCO(165.5,",DA=ONCONUM
97 S DR="916 14. (F) HORMONE REPLACEMENT THERAPY" D ^DIE G:$D(Y) JUMP
98 I X=0 D G PRTC
99 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=8
100 .W !," 15. (F) HOW MANY YEARS OF HORMONE"
101 .W !," REPLACEMENT THERAPY............: NA"
102 I X=9 D G PRTC
103 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=9
104 .W !," 15. (F) HOW MANY YEARS OF HORMONE"
105 .W !," REPLACEMENT THERAPY............: Unknown"
106HMYHRT I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D G PRTC
107 .S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=""
108 .W !," 15. (F) HOW MANY YEARS OF HORMONE"
109 .W !," REPLACEMENT THERAPY............: (Data Item for Females Only)"
110 S DIE="^ONCO(165.5,",DA=ONCONUM
111 S DR="917 15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY............" D ^DIE G:$D(Y) JUMP
112PRTC W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
113 G EXIT
114JUMP ;Jump to prompts
115 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME
116 I (X="")!(X[U) S OUT="Y" G EXIT
117 I X["?" D G JUMP
118 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
119 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
120 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
121 S X=TABLE(X)
122 G @X
123EXIT K HTABLE,TABLE,CHOICES,ONC,DOB,OSP,IIN
124 K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
125 Q
Note: See TracBrowser for help on using the repository browser.