VistA-FOIAVistA/r/ONCOLOGY-ONC/ONCPDI.m

46 lines
1.9 KiB
Mathematica

ONCPDI ;Hines OIFO/GWB - Patient information; 9/24/97
;;2.11;ONCOLOGY;**18,27,33,34,37,45**;Mar 07, 1995
;
PRT N DI,DIC,DR,DA,DIQ
K ONC
S DIC="^ONCO(160,",DR="7;8;8.1;8.2;8.3;8.4;9;10;25;25.1;25.2;25.3;25.4;25.5;25.6;25.7;25.8;25.9;48;50;51;52;61;55;56"
S DA=D0,DIQ="ONC"
D EN^DIQ1
F I=7,8,8.1,8.2,8.3,8.4,9,10,48,50,51,52,61,55,56 S X=ONC(160,D0,I) D UCASE^ONCPCI S ONC(160,D0,I)=X
W !
W !," Place of birth.............: ",ONC(160,D0,7)
W !," Race 1.....................: ",ONC(160,D0,8)
W !," Race 2.....................: ",ONC(160,D0,8.1)
W !," Race 3.....................: ",ONC(160,D0,8.2)
W !," Race 4.....................: ",ONC(160,D0,8.3)
W !," Race 5.....................: ",ONC(160,D0,8.4)
W !," Spanish origin.............: ",ONC(160,D0,9)
W !," Sex........................: ",ONC(160,D0,10)
W !," Agent Orange exposure......: ",ONC(160,D0,48)
W !," Ionizing radiation exposure: ",ONC(160,D0,50)
W !," Chemical exposure..........: ",ONC(160,D0,52)
W !," Asbestos exposure..........: ",ONC(160,D0,61)
W !," Persian Gulf service.......: ",ONC(160,D0,51)
W !," Middle East service........: ",ONC(160,D0,55)
W !," Somalia service............: ",ONC(160,D0,56)
Q
;
PH ;Patient History
K ONC S IEN=D0_","
D GETS^DIQ(160,IEN,"38;39;42*;43;44*","","ONC")
F I=38,39,43 S X=ONC(160,D0_",",I) D UCASE^ONCPCI S ONC(160,D0_",",I)=X
W @IOF
S SUB=0 F S SUB=$O(ONC(160.042,SUB)) Q:SUB'>0 D
.W !," Usual Occupation...........: ",ONC(160.042,SUB,.01)
.W !," Usual Industry.............: ",ONC(160.042,SUB,3)
.W !
W !," Tobacco History............: ",ONC(160,IEN,38)
W !," Alcohol History............: ",ONC(160,IEN,39)
W !
W !," Family History of Cancer...: ",ONC(160,IEN,43)
S SUB=0 F S SUB=$O(ONC(160.044,SUB)) Q:SUB'>0 D
.W !," Family Member with Cancer..: ",ONC(160.044,SUB,.01),?50,"(",ONC(160.044,SUB,1),")"
W !
K ONC,IEN,SUB
Q