- ONCP2P0 ;HINES CIOFO/GWB - PROSTATE PCE 1998 ;6/1/98
- ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
- CHECK ;Check PCE eligibility
- ;Check if ACCESSION YEAR = 1998
- I $P(^ONCO(165.5,ONCONUM,0),U,7)'=1998 S MSG="The Accession Year is not 1998." D ERRMSG G EXIT
- ;Check if histologically confirmed
- S DC=$P($G(^ONCO(165.5,ONCONUM,2)),U,6) I DC'=1 S MSG="The Diagnostic Confirmation code is not 1 (Positive histology)." D ERRMSG G EXIT
- ;Check if Class of Case is either 1, 2 or 6.
- S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4) I (COC'=1)&(COC'=2)&(COC'=6) S MSG="The Class of Case code is not 1, 2 or 6." D ERRMSG G EXIT
- S $P(^ONCO(165.5,ONCONUM,7),U,15)="PRO2"
- S ^ONCO(165.5,"APCE","PRO2",ONCONUM)=""
- K DIR D HEAD
- S DIR(0)="SO^1:General Information;2:Initial Diagnosis;3:Extent and Stage of Disease;4:First Course of Treatment;5:First Recurrence;6:Status at Last Contact;7:All;8:Print Prostate PCE"
- S DIR("A")="Select Table" D ^DIR
- G:$D(DIRUT)!($D(DIROUT)) EXIT
- I Y=7 S OUT="" D G MENU
- .D ^ONCP2P1 Q:$G(OUT)="Y"
- .D ^ONCP2P2 Q:$G(OUT)="Y"
- .D ^ONCP2P3 Q:$G(OUT)="Y"
- .D ^ONCP2P4 Q:$G(OUT)="Y"
- .D ^ONCP2P5 Q:$G(OUT)="Y"
- .D ^ONCP2P6 Q:$G(OUT)="Y"
- S SUB="^ONCP2P"_Y D @SUB G MENU
- ERRMSG ;Error message
- I ONCOANS=5 W !!,?10,"This primary does not satisfy the PCE eligibility criteria:",!,?10,MSG R Z:10
- K MSG Q
- HEAD ;PCE HEADER
- W @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
- S HDL=$L(" 1998 Patient Care Evaluation Study of Prostate Cancer"),TAB=(80-HDL)\2,TAB=TAB-1
- W !,?TAB,"1998 Patient Care Evaluation Study of Prostate Cancer",!,DASHES
- Q
- EXIT ;Kill Variables and Exit.
- K HDL,ONCONUM,ONCOPA,OUT,SUB,TAB
- K DIC,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCP2P0 1752 printed Mar 13, 2025@21:31:36 Page 2
- ONCP2P0 ;HINES CIOFO/GWB - PROSTATE PCE 1998 ;6/1/98
- +1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
- CHECK ;Check PCE eligibility
- +1 ;Check if ACCESSION YEAR = 1998
- +2 IF $PIECE(^ONCO(165.5,ONCONUM,0),U,7)'=1998
- SET MSG="The Accession Year is not 1998."
- DO ERRMSG
- GOTO EXIT
- +3 ;Check if histologically confirmed
- +4 SET DC=$PIECE($GET(^ONCO(165.5,ONCONUM,2)),U,6)
- IF DC'=1
- SET MSG="The Diagnostic Confirmation code is not 1 (Positive histology)."
- DO ERRMSG
- GOTO EXIT
- +5 ;Check if Class of Case is either 1, 2 or 6.
- +6 SET COC=$PIECE($GET(^ONCO(165.5,ONCONUM,0)),U,4)
- IF (COC'=1)&(COC'=2)&(COC'=6)
- SET MSG="The Class of Case code is not 1, 2 or 6."
- DO ERRMSG
- GOTO EXIT
- +1 SET $PIECE(^ONCO(165.5,ONCONUM,7),U,15)="PRO2"
- +2 SET ^ONCO(165.5,"APCE","PRO2",ONCONUM)=""
- +3 KILL DIR
- DO HEAD
- +4 SET DIR(0)="SO^1:General Information;2:Initial Diagnosis;3:Extent and Stage of Disease;4:First Course of Treatment;5:First Recurrence;6:Status at Last Contact;7:All;8:Print Prostate PCE"
- +5 SET DIR("A")="Select Table"
- DO ^DIR
- +6 if $DATA(DIRUT)!($DATA(DIROUT))
- GOTO EXIT
- +7 IF Y=7
- SET OUT=""
- Begin DoDot:1
- +8 DO ^ONCP2P1
- if $GET(OUT)="Y"
- QUIT
- +9 DO ^ONCP2P2
- if $GET(OUT)="Y"
- QUIT
- +10 DO ^ONCP2P3
- if $GET(OUT)="Y"
- QUIT
- +11 DO ^ONCP2P4
- if $GET(OUT)="Y"
- QUIT
- +12 DO ^ONCP2P5
- if $GET(OUT)="Y"
- QUIT
- +13 DO ^ONCP2P6
- if $GET(OUT)="Y"
- QUIT
- End DoDot:1
- GOTO MENU
- +14 SET SUB="^ONCP2P"_Y
- DO @SUB
- GOTO MENU
- ERRMSG ;Error message
- +1 IF ONCOANS=5
- WRITE !!,?10,"This primary does not satisfy the PCE eligibility criteria:",!,?10,MSG
- READ Z:10
- +2 KILL MSG
- QUIT
- HEAD ;PCE HEADER
- +1 WRITE @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
- +2 SET HDL=$LENGTH(" 1998 Patient Care Evaluation Study of Prostate Cancer")
- SET TAB=(80-HDL)\2
- SET TAB=TAB-1
- +3 WRITE !,?TAB,"1998 Patient Care Evaluation Study of Prostate Cancer",!,DASHES
- +4 QUIT
- EXIT ;Kill Variables and Exit.
- +1 KILL HDL,ONCONUM,ONCOPA,OUT,SUB,TAB
- +2 KILL DIC,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
- +3 QUIT