- ONCMPC0 ;Hines CIOFO/GWB - PCE Study of Melanoma ;1/05/99
- ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
- ;Check PCE eligibility
- ;Check if Class of Case = 0, 1, 2 or 6.
- S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4) I (COC'=0)&(COC'=1)&(COC'=2)&(COC'=6) S MSG="The Class of Case is not 0, 1, 2 or 6." D ERRMSG G EXIT
- ;Check if BEHAVIOR is 2 (melanoma in situ) or 3 (malignant)
- I (BEH'=2)&(BEH'=3) S MSG="The BEHAVIOR is not 2 (melanoma in situ) or 3 (malignant)." D ERRMSG G EXIT
- S $P(^ONCO(165.5,ONCONUM,7),U,15)="MEL"
- S ^ONCO(165.5,"APCE","MEL",ONCONUM)=""
- K DIR D HEAD
- S DIR(0)="SO^1:General Information;2:Initial Diagnosis;3:Extent of Disease and AJCC Stage;4:First Course of Treatment;5:First Recurrence;6:Status at Last Contact;7:Other Information;8:All;"
- S DIR(0)=DIR(0)_"9:Print Melanoma PCE"
- S DIR("A")="Select Table" D ^DIR
- G:$D(DIRUT)!($D(DIROUT)) EXIT
- I Y=8 S OUT="" D G MENU
- .D ^ONCMPC1 Q:$G(OUT)="Y"
- .D ^ONCMPC2 Q:$G(OUT)="Y"
- .D ^ONCMPC3 Q:$G(OUT)="Y"
- .D ^ONCMPC4 Q:$G(OUT)="Y"
- .D ^ONCMPC5 Q:$G(OUT)="Y"
- .D ^ONCMPC6 Q:$G(OUT)="Y"
- .D ^ONCMPC7 Q:$G(OUT)="Y"
- I Y=9 D ^ONCMPC9 G MENU
- S SUB="^ONCMPC"_Y D @SUB G MENU
- ERRMSG ;Error message
- I ONCOANS=5 W !!,?10,"This primary does not satisfy the Melanoma PCE eligibility criteria:",!,?10,MSG R Z:10
- K MSG Q
- HEAD ;Melanoma PCE header
- W @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
- S HDL=$L("1999 Patient Care Evaluation Study of Melanoma"),TAB=(80-HDL)\2,TAB=TAB-1
- W !,?TAB,"1999 Patient Care Evaluation Study of Melanoma",!,DASHES
- Q
- EXIT ;Kill variables and exit
- K COC,DC,HDL,HIST,HIS1234,BEH,MSG,ONCONUM,ONCOPA,OUT,SUB,TAB
- K DIC,DIQ,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONCMPC0 1747 printed Mar 13, 2025@21:28:29 Page 2
- ONCMPC0 ;Hines CIOFO/GWB - PCE Study of Melanoma ;1/05/99
- +1 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
- +2 ;Check PCE eligibility
- +3 ;Check if Class of Case = 0, 1, 2 or 6.
- +4 SET COC=$PIECE($GET(^ONCO(165.5,ONCONUM,0)),U,4)
- IF (COC'=0)&(COC'=1)&(COC'=2)&(COC'=6)
- SET MSG="The Class of Case is not 0, 1, 2 or 6."
- DO ERRMSG
- GOTO EXIT
- +5 ;Check if BEHAVIOR is 2 (melanoma in situ) or 3 (malignant)
- +6 IF (BEH'=2)&(BEH'=3)
- SET MSG="The BEHAVIOR is not 2 (melanoma in situ) or 3 (malignant)."
- DO ERRMSG
- GOTO EXIT
- +1 SET $PIECE(^ONCO(165.5,ONCONUM,7),U,15)="MEL"
- +2 SET ^ONCO(165.5,"APCE","MEL",ONCONUM)=""
- +3 KILL DIR
- DO HEAD
- +4 SET DIR(0)="SO^1:General Information;2:Initial Diagnosis;3:Extent of Disease and AJCC Stage;4:First Course of Treatment;5:First Recurrence;6:Status at Last Contact;7:Other Information;8:All;"
- +5 SET DIR(0)=DIR(0)_"9:Print Melanoma PCE"
- +6 SET DIR("A")="Select Table"
- DO ^DIR
- +7 if $DATA(DIRUT)!($DATA(DIROUT))
- GOTO EXIT
- +8 IF Y=8
- SET OUT=""
- Begin DoDot:1
- +9 DO ^ONCMPC1
- if $GET(OUT)="Y"
- QUIT
- +10 DO ^ONCMPC2
- if $GET(OUT)="Y"
- QUIT
- +11 DO ^ONCMPC3
- if $GET(OUT)="Y"
- QUIT
- +12 DO ^ONCMPC4
- if $GET(OUT)="Y"
- QUIT
- +13 DO ^ONCMPC5
- if $GET(OUT)="Y"
- QUIT
- +14 DO ^ONCMPC6
- if $GET(OUT)="Y"
- QUIT
- +15 DO ^ONCMPC7
- if $GET(OUT)="Y"
- QUIT
- End DoDot:1
- GOTO MENU
- +16 IF Y=9
- DO ^ONCMPC9
- GOTO MENU
- +17 SET SUB="^ONCMPC"_Y
- DO @SUB
- GOTO MENU
- ERRMSG ;Error message
- +1 IF ONCOANS=5
- WRITE !!,?10,"This primary does not satisfy the Melanoma PCE eligibility criteria:",!,?10,MSG
- READ Z:10
- +2 KILL MSG
- QUIT
- HEAD ;Melanoma PCE header
- +1 WRITE @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
- +2 SET HDL=$LENGTH("1999 Patient Care Evaluation Study of Melanoma")
- SET TAB=(80-HDL)\2
- SET TAB=TAB-1
- +3 WRITE !,?TAB,"1999 Patient Care Evaluation Study of Melanoma",!,DASHES
- +4 QUIT
- EXIT ;Kill variables and exit
- +1 KILL COC,DC,HDL,HIST,HIS1234,BEH,MSG,ONCONUM,ONCOPA,OUT,SUB,TAB
- +2 KILL DIC,DIQ,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
- +3 QUIT