ONCBRP1 ;Hines OIFO/GWB - 1998 Breast Cancer Study ;6/1/98
;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
;Table I
K TABLE,HTABLE
S TABLE("1. INSTITUTION ID NUMBER")="IIN"
S TABLE("2. ACCESSION NUMBER")="ACC"
S TABLE("3. SEQUENCE NUMBER")="SEQ"
S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCAD"
S TABLE("5. DATE OF BIRTH")="DOB"
S TABLE("6. RACE")="RACE"
S TABLE("7. SPANISH ORIGIN")="SO"
S TABLE("8. SEX")="SEX"
S TABLE("9. PRIMARY PAYER AT DIAGNOSIS")="PPAD"
S TABLE("10. FAMILY HISTORY OF BREAST CANCER")="FHOBC"
S TABLE("11. (F) PERSONAL HISTORY OF BREAST CANCER")="PHOBC"
S TABLE("12. SYNCHRONOUS BREAST CANCER")="SBC"
S TABLE("13. PERSONAL HISTORY OF OTHER CANCER")="PHOC"
S TABLE("14. (F) HORMONE REPLACEMENT THERAPY")="HRT"
S TABLE("15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY")="HMYHRT"
S HTABLE(1)=" 1. INSTITUTION ID NUMBER"
S HTABLE(2)=" 2. ACCESSION NUMBER"
S HTABLE(3)=" 3. SEQUENCE NUMBER"
S HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
S HTABLE(5)=" 5. DATE OF BIRTH"
S HTABLE(6)=" 6. RACE"
S HTABLE(7)=" 7. SPANISH ORIGIN"
S HTABLE(8)=" 8. SEX"
S HTABLE(9)=" 9. PRIMARY PAYER AT DIAGNOSIS"
S HTABLE(10)="10. FAMILY HISTORY OF BREAST CANCER"
S HTABLE(11)="11. (F) PERSONAL HISTORY OF BREAST CANCER"
S HTABLE(12)="12. SYNCHRONOUS BREAST CANCER"
S HTABLE(13)="13. PERSONAL HISTORY OF OTHER CANCER"
S HTABLE(14)="14. (F) HORMONE REPLACEMENT THERAPY"
S HTABLE(15)="15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY"
S CHOICES=15
K DIQ S DIC="^ONCO(165.5,",DR=".04;.05;.06",DA=ONCONUM,DIQ="ONC"
D EN^DIQ1
S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
W @IOF D HEAD^ONCBRP0
IIN W !," 1. INSTITUTION ID NUMBER..........: H6",$$IIN^ONCFUNC
W !!," TABLE I - GENERAL INFORMATION"
W !," -----------------------------"
ACC W !," 2. ACCESSION NUMBER...............: ",ONC(165.5,ONCONUM,.05)
SEQ W !," 3. SEQUENCE NUMBER................: ",ONC(165.5,ONCONUM,.06)
PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="9 4. POSTAL CODE AT DIAGNOSIS......." D ^DIE G:$D(Y) JUMP
DOB W !," 5. DATE OF BIRTH..................: ",DOB
RACE S DIE="^ONCO(160,",DA=ONCOPA
S DR="8 6. RACE..........................." D ^DIE G:$D(Y) JUMP
SO S DIE="^ONCO(160,",DA=ONCOPA
S DR="9 7. SPANISH ORIGIN................." D ^DIE G:$D(Y) JUMP
SEX S DIE="^ONCO(160,",DA=ONCOPA
S DR="10 8. SEX............................" D ^DIE G:$D(Y) JUMP
PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="18 9. PRIMARY PAYER AT DIAGNOSIS....." D ^DIE G:$D(Y) JUMP
FHOBC S DIE="^ONCO(165.5,",DA=ONCONUM
W !!," 10. FAMILY HISTORY OF BREAST CANCER:",!
S DR="900 DAUGHTER......................." D ^DIE G:$D(Y) JUMP
S DR="901 MATERNAL AUNT.................." D ^DIE G:$D(Y) JUMP
S DR="902 MATERNAL GRANDMOTHER..........." D ^DIE G:$D(Y) JUMP
S DR="903 MOTHER........................." D ^DIE G:$D(Y) JUMP
S DR="904 ONE SISTER ONLY................" D ^DIE G:$D(Y) JUMP
S DR="905 MORE THAN ONE SISTER..........." D ^DIE G:$D(Y) JUMP
S DR="906 FATHER........................." D ^DIE G:$D(Y) JUMP
S DR="907 BROTHER........................" D ^DIE G:$D(Y) JUMP
S DR="908 POSITIVE FAMILY HISTORY, NOS..." D ^DIE G:$D(Y) JUMP
W !
PHOBC I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D W ! G SBC
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,10)=""
.W !," 11. (F) PERSONAL HISTORY OF BREAST"
.W !," CANCER.........................: (Data Item for Females Only)"
S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="909 11. (F) PERSONAL HISTORY OF BREAST CANCER........................." D ^DIE G:$D(Y) JUMP
W !
SBC S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="910 12. SYNCHRONOUS BREAST CANCER......" D ^DIE G:$D(Y) JUMP
PHOC S DIE="^ONCO(165.5,",DA=ONCONUM
W !!," 13. PERSONAL HISTORY OF OTHER CANCER:",!
S DR="911 COLON.........................." D ^DIE G:$D(Y) JUMP
I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D G P
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,13)=""
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,14)=""
.W !," OVARY (F)......................: (Data Item for Females Only)"
.W !," UTERUS (F).....................: (Data Item for Females Only)"
S DR="912 OVARY (F)......................" D ^DIE G:$D(Y) JUMP
S DR="913 UTERUS (F)....................." D ^DIE G:$D(Y) JUMP
P I $$GET1^DIQ(160,ONCOPA,10,"I")=2 D G O
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,15)=""
.W !," PROSTATE (M)...................: (Data Item for Males Only)"
S DR="914 PROSTATE (M)..................." D ^DIE G:$D(Y) JUMP
O S DR="915 OTHER.........................." D ^DIE G:$D(Y) JUMP
W !
HRT I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D G HMYHRT
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,17)=""
.W !," 14. (F) HORMONE REPLACEMENT THERAPY: (Data Item for Females Only)"
S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="916 14. (F) HORMONE REPLACEMENT THERAPY" D ^DIE G:$D(Y) JUMP
I X=0 D G PRTC
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=8
.W !," 15. (F) HOW MANY YEARS OF HORMONE"
.W !," REPLACEMENT THERAPY............: NA"
I X=9 D G PRTC
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=9
.W !," 15. (F) HOW MANY YEARS OF HORMONE"
.W !," REPLACEMENT THERAPY............: Unknown"
HMYHRT I $$GET1^DIQ(160,ONCOPA,10,"I")=1 D G PRTC
.S $P(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=""
.W !," 15. (F) HOW MANY YEARS OF HORMONE"
.W !," REPLACEMENT THERAPY............: (Data Item for Females Only)"
S DIE="^ONCO(165.5,",DA=ONCONUM
S DR="917 15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY............" D ^DIE G:$D(Y) JUMP
PRTC 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,ONC,DOB,OSP,IIN
K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCBRP1 6174 printed Nov 22, 2024@17:32:20 Page 2
ONCBRP1 ;Hines OIFO/GWB - 1998 Breast Cancer Study ;6/1/98
+1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
+2 ;Table I
+3 KILL TABLE,HTABLE
+4 SET TABLE("1. INSTITUTION ID NUMBER")="IIN"
+5 SET TABLE("2. ACCESSION NUMBER")="ACC"
+6 SET TABLE("3. SEQUENCE NUMBER")="SEQ"
+7 SET TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCAD"
+8 SET TABLE("5. DATE OF BIRTH")="DOB"
+9 SET TABLE("6. RACE")="RACE"
+10 SET TABLE("7. SPANISH ORIGIN")="SO"
+11 SET TABLE("8. SEX")="SEX"
+12 SET TABLE("9. PRIMARY PAYER AT DIAGNOSIS")="PPAD"
+13 SET TABLE("10. FAMILY HISTORY OF BREAST CANCER")="FHOBC"
+14 SET TABLE("11. (F) PERSONAL HISTORY OF BREAST CANCER")="PHOBC"
+15 SET TABLE("12. SYNCHRONOUS BREAST CANCER")="SBC"
+16 SET TABLE("13. PERSONAL HISTORY OF OTHER CANCER")="PHOC"
+17 SET TABLE("14. (F) HORMONE REPLACEMENT THERAPY")="HRT"
+18 SET TABLE("15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY")="HMYHRT"
+19 SET HTABLE(1)=" 1. INSTITUTION ID NUMBER"
+20 SET HTABLE(2)=" 2. ACCESSION NUMBER"
+21 SET HTABLE(3)=" 3. SEQUENCE NUMBER"
+22 SET HTABLE(4)=" 4. POSTAL CODE AT DIAGNOSIS"
+23 SET HTABLE(5)=" 5. DATE OF BIRTH"
+24 SET HTABLE(6)=" 6. RACE"
+25 SET HTABLE(7)=" 7. SPANISH ORIGIN"
+26 SET HTABLE(8)=" 8. SEX"
+27 SET HTABLE(9)=" 9. PRIMARY PAYER AT DIAGNOSIS"
+28 SET HTABLE(10)="10. FAMILY HISTORY OF BREAST CANCER"
+29 SET HTABLE(11)="11. (F) PERSONAL HISTORY OF BREAST CANCER"
+30 SET HTABLE(12)="12. SYNCHRONOUS BREAST CANCER"
+31 SET HTABLE(13)="13. PERSONAL HISTORY OF OTHER CANCER"
+32 SET HTABLE(14)="14. (F) HORMONE REPLACEMENT THERAPY"
+33 SET HTABLE(15)="15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY"
+34 SET CHOICES=15
+35 KILL DIQ
SET DIC="^ONCO(165.5,"
SET DR=".04;.05;.06"
SET DA=ONCONUM
SET DIQ="ONC"
+36 DO EN^DIQ1
+37 SET D0=ONCOPA
DO DOB1^ONCOES
SET Y=X
DO DATEOT^ONCOPCE
SET DOB=Y
+38 WRITE @IOF
DO HEAD^ONCBRP0
IIN WRITE !," 1. INSTITUTION ID NUMBER..........: H6",$$IIN^ONCFUNC
+1 WRITE !!," TABLE I - GENERAL INFORMATION"
+2 WRITE !," -----------------------------"
ACC WRITE !," 2. ACCESSION NUMBER...............: ",ONC(165.5,ONCONUM,.05)
SEQ WRITE !," 3. SEQUENCE NUMBER................: ",ONC(165.5,ONCONUM,.06)
PCAD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="9 4. POSTAL CODE AT DIAGNOSIS......."
DO ^DIE
if $DATA(Y)
GOTO JUMP
DOB WRITE !," 5. DATE OF BIRTH..................: ",DOB
RACE SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="8 6. RACE..........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
SO SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="9 7. SPANISH ORIGIN................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
SEX SET DIE="^ONCO(160,"
SET DA=ONCOPA
+1 SET DR="10 8. SEX............................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
PPAD SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="18 9. PRIMARY PAYER AT DIAGNOSIS....."
DO ^DIE
if $DATA(Y)
GOTO JUMP
FHOBC SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 WRITE !!," 10. FAMILY HISTORY OF BREAST CANCER:",!
+2 SET DR="900 DAUGHTER......................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 SET DR="901 MATERNAL AUNT.................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+4 SET DR="902 MATERNAL GRANDMOTHER..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 SET DR="903 MOTHER........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 SET DR="904 ONE SISTER ONLY................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+7 SET DR="905 MORE THAN ONE SISTER..........."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+8 SET DR="906 FATHER........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 SET DR="907 BROTHER........................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+10 SET DR="908 POSITIVE FAMILY HISTORY, NOS..."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+11 WRITE !
PHOBC IF $$GET1^DIQ(160,ONCOPA,10,"I")=1
Begin DoDot:1
+1 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,10)=""
+2 WRITE !," 11. (F) PERSONAL HISTORY OF BREAST"
+3 WRITE !," CANCER.........................: (Data Item for Females Only)"
End DoDot:1
WRITE !
GOTO SBC
+4 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+5 SET DR="909 11. (F) PERSONAL HISTORY OF BREAST CANCER........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+6 WRITE !
SBC SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 SET DR="910 12. SYNCHRONOUS BREAST CANCER......"
DO ^DIE
if $DATA(Y)
GOTO JUMP
PHOC SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+1 WRITE !!," 13. PERSONAL HISTORY OF OTHER CANCER:",!
+2 SET DR="911 COLON.........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+3 IF $$GET1^DIQ(160,ONCOPA,10,"I")=1
Begin DoDot:1
+4 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,13)=""
+5 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,14)=""
+6 WRITE !," OVARY (F)......................: (Data Item for Females Only)"
+7 WRITE !," UTERUS (F).....................: (Data Item for Females Only)"
End DoDot:1
GOTO P
+8 SET DR="912 OVARY (F)......................"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+9 SET DR="913 UTERUS (F)....................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
P IF $$GET1^DIQ(160,ONCOPA,10,"I")=2
Begin DoDot:1
+1 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,15)=""
+2 WRITE !," PROSTATE (M)...................: (Data Item for Males Only)"
End DoDot:1
GOTO O
+3 SET DR="914 PROSTATE (M)..................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
O SET DR="915 OTHER.........................."
DO ^DIE
if $DATA(Y)
GOTO JUMP
+1 WRITE !
HRT IF $$GET1^DIQ(160,ONCOPA,10,"I")=1
Begin DoDot:1
+1 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,17)=""
+2 WRITE !," 14. (F) HORMONE REPLACEMENT THERAPY: (Data Item for Females Only)"
End DoDot:1
GOTO HMYHRT
+3 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+4 SET DR="916 14. (F) HORMONE REPLACEMENT THERAPY"
DO ^DIE
if $DATA(Y)
GOTO JUMP
+5 IF X=0
Begin DoDot:1
+6 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=8
+7 WRITE !," 15. (F) HOW MANY YEARS OF HORMONE"
+8 WRITE !," REPLACEMENT THERAPY............: NA"
End DoDot:1
GOTO PRTC
+9 IF X=9
Begin DoDot:1
+10 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=9
+11 WRITE !," 15. (F) HOW MANY YEARS OF HORMONE"
+12 WRITE !," REPLACEMENT THERAPY............: Unknown"
End DoDot:1
GOTO PRTC
HMYHRT IF $$GET1^DIQ(160,ONCOPA,10,"I")=1
Begin DoDot:1
+1 SET $PIECE(^ONCO(165.5,ONCONUM,"BRE1"),U,18)=""
+2 WRITE !," 15. (F) HOW MANY YEARS OF HORMONE"
+3 WRITE !," REPLACEMENT THERAPY............: (Data Item for Females Only)"
End DoDot:1
GOTO PRTC
+4 SET DIE="^ONCO(165.5,"
SET DA=ONCONUM
+5 SET DR="917 15. (F) HOW MANY YEARS OF HORMONE REPLACEMENT THERAPY............"
DO ^DIE
if $DATA(Y)
GOTO JUMP
PRTC WRITE !
KILL DIR
SET DIR(0)="E"
DO ^DIR
if $DATA(DIRUT)
SET OUT="Y"
+1 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,ONC,DOB,OSP,IIN
+1 KILL DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
+2 QUIT