SRTPRH ;BIR/SJA - PRINT HEART RECIPIENT/DIAGNOSIS INFORMATION ;04/21/08
;;3.0;Surgery;**167,175**;24 Jun 93;Build 6
K DR,SRAO,SRX,Y
S SRDR=$S(SRNOVA:"11;58;57;4;5;10;12;167;168;163;164;165;87;85;89;166;68;19",1:"11;58;57;163;164;165;87;85;89;166;68;10;12;19")
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
.W !,"Date Listed with UNOS:",?25,$P(SRAO(1),"^"),?40,"Cold Isch. Time:",?66,$P(SRAO(7),"^")
.W !,"UNOS at Time of Listing:",?25,$P(SRAO(2),"^"),?40,"Warm Isch. Time:",?66,$P(SRAO(8),"^")
.W !,"UNOS at Time of TX:",?25,$P(SRAO(3),"^"),?40,"Total Isch. Time:",?66,$P(SRAO(9),"^")
.W !,"PVR Before Vasodilation:",?25,$P(SRAO(4),"^"),?40,"PRA %:",?66,$P(SRAO(10),"^")
.W !,"PVR After Vasodilation:",?25,$P(SRAO(5),"^"),?40,"Crossmatch D/R:",?66,$P(SRAO(11),"^")
.W !,"LVEF %:",?25,$P(SRAO(6),"^"),?40,"Recipient ABO Blood Type:",?66,$P(SRAO(12),"^")
.W !,?40,"Recipient CMV:",?66,$P(SRAO(13),"^")
.W !,"Transplant Comments: " S SREXT=$P(SRAO(14),"^") D COMM^SRTPLIV1
I SRNOVA D
.W !,"Date Listed with UNOS:",?25,$P(SRAO(1),"^"),?40,"PAW Mean Pressure:",?65,$P(SRAO(9),"^")
.W !,"UNOS at Time of Listing:",?25,$P(SRAO(2),"^"),?40,"PVR Before Vasodilation:",?65,$P(SRAO(10),"^")
.W !,"UNOS at Time of TX:",?25,$P(SRAO(3),"^"),?40,"PVR After Vasodilation:",?65,$P(SRAO(11),"^")
.D HW^SRTPUTL
.S SRAO(4)=$$OUT^SRTPLUN1(4,$P(^SRT(SRTPP,0),"^",4))_"^4"
.W !,"Recipient Height:",?25,$P(SRAO(4),"^"),?40,"LVEF %:",?65,$P(SRAO(12),"^")
.S SRAO(5)=$$OUT^SRTPLUN1(5,$P(^SRT(SRTPP,0),"^",5))_"^5"
.W !,"Recipient Weight:",?25,$P(SRAO(5),"^"),?40,"Cold Isch. Time:",?65,$P(SRAO(13),"^")
.W !,"ABO Blood Type:",?25,$P(SRAO(6),"^"),?40,"Warm Isch. Time:",?65,$P(SRAO(14),"^")
.W !,"Recipient CMV:",?25,$P(SRAO(7),"^"),?40,"Total Isch. Time:",?65,$P(SRAO(15),"^")
.W !,"PA Systolic Pressure:",?25,$P(SRAO(8),"^"),?40,"PRA %:",?65,$P(SRAO(16),"^")
.W !,?40,"Crossmatch D/R:",?65,$P(SRAO(17),"^")
.W !,"Transplant Comments: " S SREXT=$P(SRAO(18),"^") 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
DIAG K DR,SRAO,SRX,Y
W:$E(IOST)="P" ! W !,?28,"TRANSPLANT INFORMATION",!
S SRDR="155;156;157;158;159;43;160;161;162;94;112;13;14;15;16;17;18"
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
W !,"Dilated Cardiomyopathy:",?27,$P(SRAO(1),"^")
W !,"Coronary Artery Disease:",?27,$P(SRAO(2),"^"),?43,"Recipient HLA-A: ",$P(SRAO(12),"^")
W !,"Ischemic Cardiomyopathy:",?27,$P(SRAO(3),"^"),?43,"Recipient HLA-B: ",$P(SRAO(13),"^")
W !,"Alcoholic Cardiomyopathy:",?27,$P(SRAO(4),"^"),?43,"Recipient HLA-C: ",$P(SRAO(14),"^")
W !,"Valvular Cardiomyopathy:",?27,$P(SRAO(5),"^"),?43,"Recipient HLA-BW: ",$P(SRAO(15),"^")
W !,"Sarcoidosis:",?27,$P(SRAO(6),"^"),?43,"Recipient HLA-DR: ",$P(SRAO(16),"^")
W !,"Idiopathic Cardiomyopathy:",?27,$P(SRAO(7),"^"),?43,"Recipient HLA-DQ: ",$P(SRAO(17),"^")
W !,"Viral Cardiomyopathy:",?27,$P(SRAO(8),"^")
W !,"Peripartum Cardiomyopathy:",?27,$P(SRAO(9),"^")
W !,"Rejection:",?27,$P(SRAO(10),"^")
W !,"Other Cardiomyopathy:" S SREXT=$P(SRAO(11),"^") D COMM^SRTPHRT2
I $E(IOST)'="P" D PAGE^SRTPPAS I SRSOUT G END^SRTPPAS
I $E(IOST)="P" G:SRSOUT END^SRTPPAS I $Y+25>IOSL D PAGE^SRTPPAS I SRSOUT G END^SRTPPAS
G ^SRTPRH1
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSRTPRH 3660 printed Oct 16, 2024@18:49:20 Page 2
SRTPRH ;BIR/SJA - PRINT HEART RECIPIENT/DIAGNOSIS INFORMATION ;04/21/08
+1 ;;3.0;Surgery;**167,175**;24 Jun 93;Build 6
+2 KILL DR,SRAO,SRX,Y
+3 SET SRDR=$SELECT(SRNOVA:"11;58;57;4;5;10;12;167;168;163;164;165;87;85;89;166;68;19",1:"11;58;57;163;164;165;87;85;89;166;68;10;12;19")
+4 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
+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 IF 'SRNOVA
Begin DoDot:1
+7 WRITE !,"Date Listed with UNOS:",?25,$PIECE(SRAO(1),"^"),?40,"Cold Isch. Time:",?66,$PIECE(SRAO(7),"^")
+8 WRITE !,"UNOS at Time of Listing:",?25,$PIECE(SRAO(2),"^"),?40,"Warm Isch. Time:",?66,$PIECE(SRAO(8),"^")
+9 WRITE !,"UNOS at Time of TX:",?25,$PIECE(SRAO(3),"^"),?40,"Total Isch. Time:",?66,$PIECE(SRAO(9),"^")
+10 WRITE !,"PVR Before Vasodilation:",?25,$PIECE(SRAO(4),"^"),?40,"PRA %:",?66,$PIECE(SRAO(10),"^")
+11 WRITE !,"PVR After Vasodilation:",?25,$PIECE(SRAO(5),"^"),?40,"Crossmatch D/R:",?66,$PIECE(SRAO(11),"^")
+12 WRITE !,"LVEF %:",?25,$PIECE(SRAO(6),"^"),?40,"Recipient ABO Blood Type:",?66,$PIECE(SRAO(12),"^")
+13 WRITE !,?40,"Recipient CMV:",?66,$PIECE(SRAO(13),"^")
+14 WRITE !,"Transplant Comments: "
SET SREXT=$PIECE(SRAO(14),"^")
DO COMM^SRTPLIV1
End DoDot:1
+15 IF SRNOVA
Begin DoDot:1
+16 WRITE !,"Date Listed with UNOS:",?25,$PIECE(SRAO(1),"^"),?40,"PAW Mean Pressure:",?65,$PIECE(SRAO(9),"^")
+17 WRITE !,"UNOS at Time of Listing:",?25,$PIECE(SRAO(2),"^"),?40,"PVR Before Vasodilation:",?65,$PIECE(SRAO(10),"^")
+18 WRITE !,"UNOS at Time of TX:",?25,$PIECE(SRAO(3),"^"),?40,"PVR After Vasodilation:",?65,$PIECE(SRAO(11),"^")
+19 DO HW^SRTPUTL
+20 SET SRAO(4)=$$OUT^SRTPLUN1(4,$PIECE(^SRT(SRTPP,0),"^",4))_"^4"
+21 WRITE !,"Recipient Height:",?25,$PIECE(SRAO(4),"^"),?40,"LVEF %:",?65,$PIECE(SRAO(12),"^")
+22 SET SRAO(5)=$$OUT^SRTPLUN1(5,$PIECE(^SRT(SRTPP,0),"^",5))_"^5"
+23 WRITE !,"Recipient Weight:",?25,$PIECE(SRAO(5),"^"),?40,"Cold Isch. Time:",?65,$PIECE(SRAO(13),"^")
+24 WRITE !,"ABO Blood Type:",?25,$PIECE(SRAO(6),"^"),?40,"Warm Isch. Time:",?65,$PIECE(SRAO(14),"^")
+25 WRITE !,"Recipient CMV:",?25,$PIECE(SRAO(7),"^"),?40,"Total Isch. Time:",?65,$PIECE(SRAO(15),"^")
+26 WRITE !,"PA Systolic Pressure:",?25,$PIECE(SRAO(8),"^"),?40,"PRA %:",?65,$PIECE(SRAO(16),"^")
+27 WRITE !,?40,"Crossmatch D/R:",?65,$PIECE(SRAO(17),"^")
+28 WRITE !,"Transplant Comments: "
SET SREXT=$PIECE(SRAO(18),"^")
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
DIAG KILL DR,SRAO,SRX,Y
+1 if $EXTRACT(IOST)="P"
WRITE !
WRITE !,?28,"TRANSPLANT INFORMATION",!
+2 SET SRDR="155;156;157;158;159;43;160;161;162;94;112;13;14;15;16;17;18"
+3 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
+4 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
+5 WRITE !,"Dilated Cardiomyopathy:",?27,$PIECE(SRAO(1),"^")
+6 WRITE !,"Coronary Artery Disease:",?27,$PIECE(SRAO(2),"^"),?43,"Recipient HLA-A: ",$PIECE(SRAO(12),"^")
+7 WRITE !,"Ischemic Cardiomyopathy:",?27,$PIECE(SRAO(3),"^"),?43,"Recipient HLA-B: ",$PIECE(SRAO(13),"^")
+8 WRITE !,"Alcoholic Cardiomyopathy:",?27,$PIECE(SRAO(4),"^"),?43,"Recipient HLA-C: ",$PIECE(SRAO(14),"^")
+9 WRITE !,"Valvular Cardiomyopathy:",?27,$PIECE(SRAO(5),"^"),?43,"Recipient HLA-BW: ",$PIECE(SRAO(15),"^")
+10 WRITE !,"Sarcoidosis:",?27,$PIECE(SRAO(6),"^"),?43,"Recipient HLA-DR: ",$PIECE(SRAO(16),"^")
+11 WRITE !,"Idiopathic Cardiomyopathy:",?27,$PIECE(SRAO(7),"^"),?43,"Recipient HLA-DQ: ",$PIECE(SRAO(17),"^")
+12 WRITE !,"Viral Cardiomyopathy:",?27,$PIECE(SRAO(8),"^")
+13 WRITE !,"Peripartum Cardiomyopathy:",?27,$PIECE(SRAO(9),"^")
+14 WRITE !,"Rejection:",?27,$PIECE(SRAO(10),"^")
+15 WRITE !,"Other Cardiomyopathy:"
SET SREXT=$PIECE(SRAO(11),"^")
DO COMM^SRTPHRT2
+16 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+17 IF $EXTRACT(IOST)="P"
if SRSOUT
GOTO END^SRTPPAS
IF $Y+25>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+18 GOTO ^SRTPRH1
+19 QUIT