Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ONCIPC1

ONCIPC1.m

Go to the documentation of this file.
ONCIPC1 ;Hines OIFO/GWB - Primary Intracranial/CNS Tumors PCE Study ;01/06/00
 ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
 ;Patient Information
 K TABLE,HTABLE
 S TABLE("1. FACILITY ID NUMBER (FIN)")="FIN"
 S TABLE("2. ACCESSION NUMBER")="ACC"
 S TABLE("3. SEQUENCE NUMBER")="SEQ"
 S TABLE("4. POSTAL CODE AT DIAGNOSIS")="PCD"
 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. HANDEDNESS")="HAND"
 S TABLE("10. PRIOR EXPOSURE TO RADIATION")="PER"
 S TABLE("11. PRIMARY PAYER AT DIAGNOSIS")="PPD"
 S TABLE("12. PRIOR MEDICAL CONDITIONS")="PMC"
 S TABLE("13. PERSONAL HISTORY OF OTHER CANCER")="PHC"
 S TABLE("14. GENETIC PREDISPOSITION")="GP"
 S TABLE("15. USUAL OCCUPATION")="UO"
 S TABLE("16. USUAL INDUSTRY")="UI"
 S HTABLE(1)=" 1. FACILITY ID NUMBER (FIN)"
 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. HANDEDNESS"
 S HTABLE(10)="10. PRIOR EXPOSURE TO RADIATION"
 S HTABLE(11)="11. PRIMARY PAYER AT DIAGNOSIS"
 S HTABLE(12)="12. PRIOR MEDICAL CONDITIONS"
 S HTABLE(13)="13. PERSONAL HISTORY OF OTHER CANCER"
 S HTABLE(14)="14. GENETIC PREDISPOSITION"
 S HTABLE(15)="15. USUAL OCCUPATION"
 S HTABLE(16)="16. USUAL INDUSTRY"
 S CHOICES=16
 S IE=ONCONUM
 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
 W @IOF D HEAD^ONCIPC0
 W !," PATIENT INFORMATION"
 W !," -------------------"
FIN W !,"  1. FACILITY ID NUMBER (FIN)......: ",$$IIN^ONCFUNC
ACC W !,"  2. ACCESSION NUMBER..............: ",$$GET1^DIQ(165.5,IE,.05)
SEQ W !,"  3. SEQUENCE NUMBER...............: ",$$GET1^DIQ(165.5,IE,.06)
PCD 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
HAND S DIE="^ONCO(165.5,",DA=ONCONUM
 S DR="1200  9. HANDEDNESS...................." D ^DIE G:$D(Y) JUMP
PER S DIE="^ONCO(165.5,",DA=ONCONUM
 S DR="403 10. PRIOR EXPOSURE TO RADIATION..." D ^DIE G:$D(Y) JUMP
PPD S DIE="^ONCO(165.5,",DA=ONCONUM
 S DR="18 11. PRIMARY PAYER AT DIAGNOSIS...." D ^DIE G:$D(Y) JUMP
PMC W !!," 12. PRIOR MEDICAL CONDITIONS:"
 S DR="1201      HYPERTENSION................." D ^DIE G:$D(Y) JUMP
 S DR="1202      MULTIPLE SCLEROSIS (MS)......" D ^DIE G:$D(Y) JUMP
 S DR="1203      DIABETES....................." D ^DIE G:$D(Y) JUMP
 S DR="354      MYOCARDIAL INFARCTION (MI)..." D ^DIE G:$D(Y) JUMP
 S DR="1204      CEREBROVASCULAR DISEASE......" D ^DIE G:$D(Y) JUMP
PHC W !!," 13. PERSONAL HISTORY OF OTHER CANCER:"
 S DR="1205      BRAIN........................" D ^DIE G:$D(Y) JUMP
 S DR="1206      BREAST......................." D ^DIE G:$D(Y) JUMP
 S DR="1207      PROSTATE....................." D ^DIE G:$D(Y) JUMP
 S DR="1208      MALIGNANT MELANOMA..........." D ^DIE G:$D(Y) JUMP
 S DR="1209      OTHER SKIN CANCER............" D ^DIE G:$D(Y) JUMP
 S DR="1210      LEUKEMIA....................." D ^DIE G:$D(Y) JUMP
 S DR="1211      COLON OR OTHER GI CANCERS...." D ^DIE G:$D(Y) JUMP
 S DR="1212      OTHER........................" D ^DIE G:$D(Y) JUMP
GP W !!," 14. GENETIC PREDISPOSITION:"
 S DR="1213      NEUROFIBROMATOSIS............" D ^DIE G:$D(Y) JUMP
 S DR="1214      VON HIPPEL-LINDAU DISEASE...." D ^DIE G:$D(Y) JUMP
 S DR="1215      TUBEROUS SCLEROSIS..........." D ^DIE G:$D(Y) JUMP
 S DR="1216      TURCOT SYNDROME.............." D ^DIE G:$D(Y) JUMP
 S DR="1217      LI-FRAUMENI SYNDROME........." D ^DIE G:$D(Y) JUMP
 S DR="1218      KOWDEN DISEASE..............." D ^DIE G:$D(Y) JUMP
 S DR="1219      NEVOID BASAL CELL CARCINOMA.." D ^DIE G:$D(Y) JUMP
UO W !!," 15. USUAL OCCUPATION..............: ",$$OCCUP^ONCACDU1(ONCOPA)
UI W !," 16. USUAL INDUSTRY................: ",$$IND^ONCACDU1(ONCOPA)
 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 DOB,CHOICES,HTABLE,IE,TABLE
 K DIC,DR,DA,DIQ,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
 Q