SRTPRLU ;BIR/SJA - PRINT LUNG-RECIPIENT/TRANSPLANT INFORMATION ;04/21/08
;;3.0;Surgery;**167,175**;24 Jun 93;Build 6
K DR,SRAO,SRX,Y
S:SRNOVA SRDR="1;11;4;5;10;12;40;41;24;25;32;43;22;128;129;19;94"
S:'SRNOVA SRDR="11;10;12;40;41;24;25;32;43;22;128;129;19;94"
K DA,DIC,DIQ,SRX,SRY S DIC="^SRT(",DA=SRTPP,DIQ="SRY",DIQ(0)="E",DR=SRDR D EN^DIQ1 K DA,DIC,DIQ,DR
S (SRX,SRZ)=0 F I=1:1 S SRZ=$P(SRDR,";",I) Q:'SRZ S SRX=I,SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
I SRNOVA D
.D HW^SRTPUTL
.W !,"Date on Waiting List:",?24,$P(SRAO(2),"^"),?40,"Alpha 1 Anti-Trypsin Deficiency:",?73,$P(SRAO(9),"^")
.S SRAO(3)=$$OUT^SRTPLUN1(4,$P(^SRT(SRTPP,0),"^",4))_"^4"
.W !,"Recipient Height:",?24,$P(SRAO(3),"^"),?40,"Bronchiectasis:",?73,$P(SRAO(10),"^")
.S SRAO(4)=$$OUT^SRTPLUN1(5,$P(^SRT(SRTPP,0),"^",5))_"^5"
.W !,"Recipient Weight:",?24,$P(SRAO(4),"^"),?40,"Interstitial Lung Disease:",?73,$P(SRAO(11),"^")
.W !,"ABO Blood Type:",?24,$P(SRAO(5),"^"),?40,"Sarcoidosis:",?73,$P(SRAO(12),"^")
.W !,"Recipient CMV:",?24,$P(SRAO(6),"^"),?40,"Lung Cancer:",?73,$P(SRAO(13),"^")
.W !,"Pulmonary Fibrosis:",?24,$P(SRAO(7),"^"),?40,"Emphysema:",?73,$P(SRAO(14),"^")
.W !,"Pulmonary Hypertension:",?24,$P(SRAO(8),"^"),?40,"Rejection:",?73,$P(SRAO(17),"^")
.W !,"Other Diagnosis: ",$P(SRAO(15),"^")
.W !!,"Transplant Comments: " S SREXT=$P(SRAO(16),"^") D COMM^SRTPLIV1
I 'SRNOVA D
.W !,"Date Placed on Waiting List:",?29,$P(SRAO(1),"^"),?45,"Bronchiectasis:",?72,$P(SRAO(7),"^")
.W !,"Recipient ABO Blood Type:",?29,$P(SRAO(2),"^"),?45,"Interstitial Lung Disease:",?72,$P(SRAO(8),"^")
.W !,"Recipient CMV:",?29,$P(SRAO(3),"^"),?45,"Sarcoidosis:",?72,$P(SRAO(9),"^")
.W !,"Pulmonary Fibrosis:",?29,$P(SRAO(4),"^"),?45,"Lung Cancer:",?72,$P(SRAO(10),"^")
.W !,"Pulmonary Hypertension:",?29,$P(SRAO(5),"^"),?45,"Emphysema:",?72,$P(SRAO(11),"^")
.W !,"Alpha 1 Anti-Trypsin Deficiency: ",$P(SRAO(6),"^"),?45,"Rejection:",?72,$P(SRAO(14),"^")
.W !,"Other Diagnosis: ",$P(SRAO(12),"^")
.W !!,"Transplant Comments: " S SREXT=$P(SRAO(13),"^") D COMM^SRTPLIV1
I $E(IOST)'="P" D PAGE^SRTPPAS I SRSOUT G END^SRTPPAS
I $E(IOST)="P" G:SRSOUT END^SRTPPAS I $Y+20>IOSL D PAGE^SRTPPAS I SRSOUT G END^SRTPPAS
TRANS ;
K DR,SRAO,SRX,Y
W:$E(IOST)="P" ! W !,?28,"LUNG TRANSPLANT INFORMATION",!
S (DR,SRDR)="50;51;85;87;89;68;13;14;15;17;16;18"
K DA,DIC,DIQ,SRX,SRY,SRZ S DIC="^SRT(",DA=SRTPP,DIQ="SRY",DIQ(0)="E",DR=SRDR D EN^DIQ1 K DA,DIC,DIQ,DR
S (SRX,SRZ)=0 F I=1:1 S SRZ=$P(SRDR,";",I) Q:'SRZ S SRX=I,SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
W !,"LAS Score at Listing: ",?25,$P(SRAO(1),"^")
W !,"LAS Score at Transplant: ",?25,$P(SRAO(2),"^"),?43,"Recipient HLA-A: ",$P(SRAO(7),"^")
W !,"Ischemia Time for Organ (minutes)",?43,"Recipient HLA-B: ",$P(SRAO(8),"^")
W !," - Warm Ischemia time:",?25,$P(SRAO(3),"^"),?43,"Recipient HLA-C: ",$P(SRAO(9),"^")
W !," - Cold Ischemia time:",?25,$P(SRAO(4),"^"),?43,"Recipient HLA-DR: ",$P(SRAO(10),"^")
W !," - Total Ischemia time:",?25,$P(SRAO(5),"^"),?43,"Recipient HLA-BW: ",$P(SRAO(11),"^")
W !,"Crossmatch D/R:",?25,$P(SRAO(6),"^"),?43,"Recipient HLA-DQ: ",$P(SRAO(12),"^")
I $E(IOST)'="P" D PAGE^SRTPPAS I SRSOUT G END^SRTPPAS
I $E(IOST)="P" G:SRSOUT END^SRTPPAS I $Y+20>IOSL D PAGE^SRTPPAS I SRSOUT G END^SRTPPAS
G ^SRTPRLU1
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSRTPRLU 3332 printed Dec 13, 2024@02:48:50 Page 2
SRTPRLU ;BIR/SJA - PRINT LUNG-RECIPIENT/TRANSPLANT INFORMATION ;04/21/08
+1 ;;3.0;Surgery;**167,175**;24 Jun 93;Build 6
+2 KILL DR,SRAO,SRX,Y
+3 if SRNOVA
SET SRDR="1;11;4;5;10;12;40;41;24;25;32;43;22;128;129;19;94"
+4 if 'SRNOVA
SET SRDR="11;10;12;40;41;24;25;32;43;22;128;129;19;94"
+5 KILL DA,DIC,DIQ,SRX,SRY
SET DIC="^SRT("
SET DA=SRTPP
SET DIQ="SRY"
SET DIQ(0)="E"
SET DR=SRDR
DO EN^DIQ1
KILL DA,DIC,DIQ,DR
+6 SET (SRX,SRZ)=0
FOR I=1:1
SET SRZ=$PIECE(SRDR,";",I)
if 'SRZ
QUIT
SET SRX=I
SET SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
+7 IF SRNOVA
Begin DoDot:1
+8 DO HW^SRTPUTL
+9 WRITE !,"Date on Waiting List:",?24,$PIECE(SRAO(2),"^"),?40,"Alpha 1 Anti-Trypsin Deficiency:",?73,$PIECE(SRAO(9),"^")
+10 SET SRAO(3)=$$OUT^SRTPLUN1(4,$PIECE(^SRT(SRTPP,0),"^",4))_"^4"
+11 WRITE !,"Recipient Height:",?24,$PIECE(SRAO(3),"^"),?40,"Bronchiectasis:",?73,$PIECE(SRAO(10),"^")
+12 SET SRAO(4)=$$OUT^SRTPLUN1(5,$PIECE(^SRT(SRTPP,0),"^",5))_"^5"
+13 WRITE !,"Recipient Weight:",?24,$PIECE(SRAO(4),"^"),?40,"Interstitial Lung Disease:",?73,$PIECE(SRAO(11),"^")
+14 WRITE !,"ABO Blood Type:",?24,$PIECE(SRAO(5),"^"),?40,"Sarcoidosis:",?73,$PIECE(SRAO(12),"^")
+15 WRITE !,"Recipient CMV:",?24,$PIECE(SRAO(6),"^"),?40,"Lung Cancer:",?73,$PIECE(SRAO(13),"^")
+16 WRITE !,"Pulmonary Fibrosis:",?24,$PIECE(SRAO(7),"^"),?40,"Emphysema:",?73,$PIECE(SRAO(14),"^")
+17 WRITE !,"Pulmonary Hypertension:",?24,$PIECE(SRAO(8),"^"),?40,"Rejection:",?73,$PIECE(SRAO(17),"^")
+18 WRITE !,"Other Diagnosis: ",$PIECE(SRAO(15),"^")
+19 WRITE !!,"Transplant Comments: "
SET SREXT=$PIECE(SRAO(16),"^")
DO COMM^SRTPLIV1
End DoDot:1
+20 IF 'SRNOVA
Begin DoDot:1
+21 WRITE !,"Date Placed on Waiting List:",?29,$PIECE(SRAO(1),"^"),?45,"Bronchiectasis:",?72,$PIECE(SRAO(7),"^")
+22 WRITE !,"Recipient ABO Blood Type:",?29,$PIECE(SRAO(2),"^"),?45,"Interstitial Lung Disease:",?72,$PIECE(SRAO(8),"^")
+23 WRITE !,"Recipient CMV:",?29,$PIECE(SRAO(3),"^"),?45,"Sarcoidosis:",?72,$PIECE(SRAO(9),"^")
+24 WRITE !,"Pulmonary Fibrosis:",?29,$PIECE(SRAO(4),"^"),?45,"Lung Cancer:",?72,$PIECE(SRAO(10),"^")
+25 WRITE !,"Pulmonary Hypertension:",?29,$PIECE(SRAO(5),"^"),?45,"Emphysema:",?72,$PIECE(SRAO(11),"^")
+26 WRITE !,"Alpha 1 Anti-Trypsin Deficiency: ",$PIECE(SRAO(6),"^"),?45,"Rejection:",?72,$PIECE(SRAO(14),"^")
+27 WRITE !,"Other Diagnosis: ",$PIECE(SRAO(12),"^")
+28 WRITE !!,"Transplant Comments: "
SET SREXT=$PIECE(SRAO(13),"^")
DO COMM^SRTPLIV1
End DoDot:1
+29 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+30 IF $EXTRACT(IOST)="P"
if SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
TRANS ;
+1 KILL DR,SRAO,SRX,Y
+2 if $EXTRACT(IOST)="P"
WRITE !
WRITE !,?28,"LUNG TRANSPLANT INFORMATION",!
+3 SET (DR,SRDR)="50;51;85;87;89;68;13;14;15;17;16;18"
+4 KILL DA,DIC,DIQ,SRX,SRY,SRZ
SET DIC="^SRT("
SET DA=SRTPP
SET DIQ="SRY"
SET DIQ(0)="E"
SET DR=SRDR
DO EN^DIQ1
KILL DA,DIC,DIQ,DR
+5 SET (SRX,SRZ)=0
FOR I=1:1
SET SRZ=$PIECE(SRDR,";",I)
if 'SRZ
QUIT
SET SRX=I
SET SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
+6 WRITE !,"LAS Score at Listing: ",?25,$PIECE(SRAO(1),"^")
+7 WRITE !,"LAS Score at Transplant: ",?25,$PIECE(SRAO(2),"^"),?43,"Recipient HLA-A: ",$PIECE(SRAO(7),"^")
+8 WRITE !,"Ischemia Time for Organ (minutes)",?43,"Recipient HLA-B: ",$PIECE(SRAO(8),"^")
+9 WRITE !," - Warm Ischemia time:",?25,$PIECE(SRAO(3),"^"),?43,"Recipient HLA-C: ",$PIECE(SRAO(9),"^")
+10 WRITE !," - Cold Ischemia time:",?25,$PIECE(SRAO(4),"^"),?43,"Recipient HLA-DR: ",$PIECE(SRAO(10),"^")
+11 WRITE !," - Total Ischemia time:",?25,$PIECE(SRAO(5),"^"),?43,"Recipient HLA-BW: ",$PIECE(SRAO(11),"^")
+12 WRITE !,"Crossmatch D/R:",?25,$PIECE(SRAO(6),"^"),?43,"Recipient HLA-DQ: ",$PIECE(SRAO(12),"^")
+13 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+14 IF $EXTRACT(IOST)="P"
if SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+15 GOTO ^SRTPRLU1
+16 QUIT