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

ONCBRP7.m

Go to the documentation of this file.
  1. ONCBRP7 ;HINES CIOFO/GWB - 1998 Breast Cancer Study - Table VII ;6/1/98
  1. ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
  1. K TABLE,HTABLE
  1. S TABLE("83. DATE OF LAST CONTACT OR DEATH")="DLCOD"
  1. S TABLE("84. VITAL STATUS")="VS"
  1. S TABLE("85. CANCER STATUS")="CS"
  1. S TABLE("86. COMPLETED BY")="CB"
  1. S TABLE("87. REVIEWED BY CANCER COMMITTEE")="RBCC"
  1. S HTABLE(1)="83. DATE OF LAST CONTACT OR DEATH"
  1. S HTABLE(2)="84. VITAL STATUS"
  1. S HTABLE(3)="85. CANCER STATUS"
  1. S HTABLE(4)="86. COMPLETED BY"
  1. S HTABLE(5)="87. REVIEWED BY CANCER COMMITTEE"
  1. S CHOICES=5
  1. W @IOF D HEAD^ONCBRP0
  1. W !," TABLE VII - STATUS AT LAST CONTACT"
  1. W !," ----------------------------------"
  1. DLCOD S DLC="" I $D(^ONCO(160,ONCOPA,"F","B")) S DLC=$O(^ONCO(160,ONCOPA,"F","B",""),-1)
  1. I DLC'="" S Y=DLC D DATEOT^ONCOPCE S DLC=Y
  1. W !," 83. DATE OF LAST CONTACT OR DEATH..: ",DLC
  1. VS S DIE="^ONCO(160,",DA=ONCONUM
  1. S DR="15 84. VITAL STATUS..................." D ^DIE G:$D(Y) JUMP
  1. I X=1 S $P(^ONCO(165.5,ONCONUM,7),U,14)=0
  1. CS S CS="" I $D(^ONCO(165.5,ONCONUM,"TS","AA")) D
  1. .S CSDAT=$O(^ONCO(165.5,ONCONUM,"TS","AA",""))
  1. .S CSIEN=$O(^ONCO(165.5,ONCONUM,"TS","AA",CSDAT,""))
  1. .S CSPNT=$P(^ONCO(165.5,ONCONUM,"TS",CSIEN,0),U,2)
  1. .S CS=$P(^ONCO(164.42,CSPNT,0),U,1)
  1. W !," 85. CANCER STATUS..................: ",CS
  1. CB S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="81 86. COMPLETED BY..................." D ^DIE G:$D(Y) JUMP
  1. RBCC S DIE="^ONCO(165.5,",DA=ONCONUM
  1. S DR="82 87. REVIEWED BY CANCER COMMITTEE..." D ^DIE G:$D(Y) JUMP
  1. W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
  1. G EXIT
  1. JUMP ;Jump to prompts
  1. S XX="" R !!," GO TO ITEM NUMBER: ",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:X?1.2N X=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 CHOICES,HTABLE,TABLE
  1. K CS,CSDAT,CSIEN,CSPNT,DLC
  1. K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
  1. Q