[613] | 1 | ONCSPC0 ;HIRMFO/GWB - PCE Study of Soft Tissue Sarcoma ;8/23/96
|
---|
| 2 | ;;2.11;ONCOLOGY;**6,7,15**;Mar 07, 1995
|
---|
| 3 | ;Check PCE eligibility
|
---|
| 4 | ;Check if ACCESSION YEAR = 1996
|
---|
| 5 | I $P(^ONCO(165.5,ONCONUM,0),U,7)'=1996 S MSG="The Accession Year is not 1996." D ERRMSG G EXIT
|
---|
| 6 | ;Check if microscopically confirmed
|
---|
| 7 | S DC=$P($G(^ONCO(165.5,ONCONUM,2)),U,6) I (DC'=1)&(DC'=2)&(DC'=4) S MSG="The Diagnostic Confirmation code is not 1, 2 or 4." D ERRMSG G EXIT
|
---|
| 8 | ;Check if Class of Case is either 1 or 2.
|
---|
| 9 | S COC=$P($G(^ONCO(165.5,ONCONUM,0)),U,4) I (COC'=1)&(COC'=2) S MSG="The Class of Case code is not 1 or 2." D ERRMSG G EXIT
|
---|
| 10 | ;Check if HISTOLOGY is eligible
|
---|
| 11 | S HIST=$P($G(^ONCO(165.5,ONCONUM,2)),U,3),HIST123=$E(HIST,1,3)
|
---|
| 12 | I HIST="" S MSG="There is no HISTOLOGY for this primary." D ERRMSG G EXIT
|
---|
| 13 | S HIST(868)=""
|
---|
| 14 | S HIST(869)=""
|
---|
| 15 | S HIST(870)=""
|
---|
| 16 | S HIST(871)=""
|
---|
| 17 | S HIST(880)=""
|
---|
| 18 | S HIST(881)=""
|
---|
| 19 | S HIST(882)=""
|
---|
| 20 | S HIST(883)=""
|
---|
| 21 | S HIST(884)=""
|
---|
| 22 | S HIST(885)=""
|
---|
| 23 | S HIST(886)=""
|
---|
| 24 | S HIST(887)=""
|
---|
| 25 | S HIST(888)=""
|
---|
| 26 | S HIST(889)=""
|
---|
| 27 | S HIST(890)=""
|
---|
| 28 | S HIST(891)=""
|
---|
| 29 | S HIST(892)=""
|
---|
| 30 | S HIST(899)=""
|
---|
| 31 | S HIST(904)=""
|
---|
| 32 | S HIST(905)=""
|
---|
| 33 | S HIST(912)=""
|
---|
| 34 | S HIST(913)=""
|
---|
| 35 | S HIST(915)=""
|
---|
| 36 | S HIST(916)=""
|
---|
| 37 | S HIST(917)=""
|
---|
| 38 | S HIST(918)=""
|
---|
| 39 | S HIST(919)=""
|
---|
| 40 | S HIST(920)=""
|
---|
| 41 | S HIST(921)=""
|
---|
| 42 | S HIST(922)=""
|
---|
| 43 | S HIST(923)=""
|
---|
| 44 | S HIST(924)=""
|
---|
| 45 | S HIST(925)=""
|
---|
| 46 | S HIST(926)=""
|
---|
| 47 | S HIST(927)=""
|
---|
| 48 | S HIST(928)=""
|
---|
| 49 | S HIST(929)=""
|
---|
| 50 | S HIST(930)=""
|
---|
| 51 | S HIST(931)=""
|
---|
| 52 | S HIST(932)=""
|
---|
| 53 | S HIST(933)=""
|
---|
| 54 | S HIST(934)=""
|
---|
| 55 | S HIST(937)=""
|
---|
| 56 | S HIST(949)=""
|
---|
| 57 | S HIST(950)=""
|
---|
| 58 | S HIST(954)=""
|
---|
| 59 | S HIST(955)=""
|
---|
| 60 | S HIST(956)=""
|
---|
| 61 | S HIST(957)=""
|
---|
| 62 | S HIST(958)=""
|
---|
| 63 | I $E(ICDO,2,3)=44,$E(HIST,1,4)'=8832 S MSG="Skin sites are only allowed for patients with dermatofibrosarcoma." D ERRMSG G EXIT
|
---|
| 64 | I ('$D(HIST(HIST123)))!($E(HIST,5)'=3) S MSG="The Histology of "_$E(HIST,1,4)_"/"_$E(HIST,5)_" is not eligible." D ERRMSG G EXIT
|
---|
| 65 | MENU ;Soft Tissue Sarcoma PCE menu
|
---|
| 66 | S $P(^ONCO(165.5,ONCONUM,7),U,15)="STS"
|
---|
| 67 | S ^ONCO(165.5,"APCE","STS",ONCONUM)=""
|
---|
| 68 | K DIR D HEAD
|
---|
| 69 | S DIR(0)="SO^1:General Information;2:Initial Diagnosis/Cancer Identification;3:Extent of Disease and AJCC Stage;4:First Course of Therapy;5:First Recurrence and Subsequent Treatment;6:Status at Last Contact;7:All;"
|
---|
| 70 | S DIR(0)=DIR(0)_"8:Print Soft Tissue Sarcoma PCE"
|
---|
| 71 | S DIR("A")="Select Table" D ^DIR
|
---|
| 72 | G:$D(DIRUT)!($D(DIROUT)) EXIT
|
---|
| 73 | I Y=7 S OUT="" D G MENU
|
---|
| 74 | .D ^ONCSPC1 Q:$G(OUT)="Y"
|
---|
| 75 | .D ^ONCSPC2 Q:$G(OUT)="Y"
|
---|
| 76 | .D ^ONCSPC3 Q:$G(OUT)="Y"
|
---|
| 77 | .D ^ONCSPC4 Q:$G(OUT)="Y"
|
---|
| 78 | .D ^ONCSPC5 Q:$G(OUT)="Y"
|
---|
| 79 | .D ^ONCSPC6 Q:$G(OUT)="Y"
|
---|
| 80 | I Y=8 D ^ONCSPC8 G MENU
|
---|
| 81 | S SUB="^ONCSPC"_Y D @SUB G MENU
|
---|
| 82 | ERRMSG ;Error message
|
---|
| 83 | I ONCOANS=5 W !!,?10,"This primary does not satisfy the PCE eligibility criteria:",!,?10,MSG R Z:10
|
---|
| 84 | K MSG Q
|
---|
| 85 | HEAD ;Soft Tissue Sarcoma PCE header
|
---|
| 86 | W @IOF,!,?1,PATNAM,?SITTAB,SITEGP,!,?1,SSN,?TOPTAB,TOPNAM," ",TOPCOD,!,DASHES
|
---|
| 87 | S HDL=$L("Patient Care Evaluation Study of Soft Tissue Sarcoma"),TAB=(80-HDL)\2,TAB=TAB-1
|
---|
| 88 | W !,?TAB,"Patient Care Evaluation Study of Soft Tissue Sarcoma",!,DASHES
|
---|
| 89 | Q
|
---|
| 90 | EXIT ;Kill variables and exit
|
---|
| 91 | K COC,DC,HDL,HIST,MSG,ONCONUM,ONCOPA,OUT,SUB,TAB
|
---|
| 92 | K DIC,DIQ,DIR,DIROUT,DIRUT,DLAYGO,DTOUT,DUOUT,X,Y
|
---|
| 93 | Q
|
---|