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

ONCTPC1.m

Go to the documentation of this file.
  1. ONCTPC1 ;Hines OIFO/GWB - PCE Study of Thyroid Cancer ;05/30/00
  1. ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
  1. ;Table I
  1. K TABLE,HTABLE
  1. S TABLE("ACCESSION NUMBER")="AN"
  1. S TABLE("SEQUENCE NUMBER")="SN"
  1. S TABLE("POSTAL CODE AT DIAGNOSIS")="PCAD"
  1. S TABLE("DATE OF BIRTH")="DOB"
  1. S TABLE("RACE")="R"
  1. S TABLE("SPANISH ORIGIN")="SO"
  1. S TABLE("SEX")="S"
  1. S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
  1. S TABLE("FAMILY HISTORY OF THYROID CANCER")="FHOTC"
  1. S TABLE("PERSONAL HISTORY OF NON-THYROID CANCER")="PHONC"
  1. S TABLE("PRIOR EXPOSURE TO RADIATION")="PETR"
  1. S TABLE("PERSONAL HISTORY OF GOITER")="PHOG"
  1. S TABLE("FAMILY HISTORY OF THYROID DISEASE")="FHOGOOT"
  1. S TABLE("PERSONAL HISTORY OF GRAVES DISEASE")="PHOGD"
  1. S TABLE("PERSONAL HISTORY OF THYROIDITIS")="PHOT"
  1. S HTABLE(1)="ACCESSION NUMBER"
  1. S HTABLE(2)="SEQUENCE NUMBER"
  1. S HTABLE(3)="POSTAL CODE AT DIAGNOSIS"
  1. S HTABLE(4)="DATE OF BIRTH"
  1. S HTABLE(5)="RACE"
  1. S HTABLE(6)="SPANISH ORIGIN"
  1. S HTABLE(7)="SEX"
  1. S HTABLE(8)="PRIMARY PAYER AT DIAGNOSIS"
  1. S HTABLE(9)="FAMILY HISTORY OF THYROID CANCER"
  1. S HTABLE(10)="PERSONAL HISTORY OF NON-THYROID CANCER"
  1. S HTABLE(11)="PRIOR EXPOSURE TO RADIATION"
  1. S HTABLE(12)="PERSONAL HISTORY OF GOITER"
  1. S HTABLE(13)="FAMILY HISTORY OF GOITER OR OTHER THYROID DISEASE"
  1. S HTABLE(14)="PERSONAL HISTORY OF GRAVES DISEASE"
  1. S HTABLE(15)="PERSONAL HISTORY OF THYROIDITIS"
  1. S CHOICES=15
  1. K DIQ S DIC="^ONCO(165.5,",DR=".05;.06",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
  1. S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
  1. W @IOF D HEAD^ONCTPC0 W !?25,"TABLE I - GENERAL INFORMATION",!
  1. AN W !,"ACCESSION NUMBER..................: ",ONC(165.5,ONCONUM,.05)
  1. SN W !,"SEQUENCE NUMBER...................: ",ONC(165.5,ONCONUM,.06)
  1. PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="9POSTAL CODE AT DIAGNOSIS.........." D ^DIE G:$D(Y) JUMP
  1. DOB W !,"DATE OF BIRTH.....................: ",DOB
  1. R S DIE="^ONCO(160,",DA=ONCOPA
  1. S DR="8RACE.............................." D ^DIE G:$D(Y) JUMP
  1. SO S DIE="^ONCO(160,",DA=ONCOPA
  1. S DR="9SPANISH ORIGIN...................." D ^DIE G:$D(Y) JUMP
  1. S S DIE="^ONCO(160,",DA=ONCOPA
  1. S DR="10SEX..............................." D ^DIE G:$D(Y) JUMP
  1. PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="18PRIMARY PAYER AT DIAGNOSIS........" D ^DIE G:$D(Y) JUMP
  1. FHOTC S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="400FAMILY HISTORY OF THYROID CANCER.." D ^DIE G:$D(Y) JUMP
  1. PHONC W !!,"PERSONAL HISTORY OF NON-THYROID CANCER:",!
  1. S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="401 LYMPHOMA........................" D ^DIE G:$D(Y) JUMP
  1. S DR="402 CHILDHOOD MALIGNANCY............" D ^DIE G:$D(Y) JUMP
  1. S DR="308 OTHER..........................." D ^DIE G:$D(Y) JUMP
  1. W !
  1. PETR S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="403PRIOR EXPOSURE TO RADIATION......." D ^DIE G:$D(Y) JUMP
  1. PHOG S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="404PERSONAL HISTORY OF GOITER........" D ^DIE G:$D(Y) JUMP
  1. FHOGOOT S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="405FAMILY HISTORY THYROID DISEASE...." D ^DIE G:$D(Y) JUMP
  1. PHOGD S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="406PERSONAL HISTORY OF GRAVES DISEASE" D ^DIE G:$D(Y) JUMP
  1. PHOT S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="407PERSONAL HISTORY OF THYROIDITIS..." D ^DIE G:$D(Y) JUMP
  1. W ! K DIR S DIR(0)="E" D ^DIR
  1. G EXIT
  1. JUMP ;Jump to prompts
  1. S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
  1. I X["?" D G JUMP
  1. .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
  1. I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
  1. .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
  1. S X=TABLE(X)
  1. G @X
  1. EXIT K HTABLE,TABLE,CHOICES
  1. K DOB
  1. K DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
  1. Q