- SRTPRH ;BIR/SJA - PRINT HEART RECIPIENT/DIAGNOSIS INFORMATION ;04/21/08
- ;;3.0; Surgery ;**167**;24 Jun 93;Build 27
- K DR,SRAO,SRX,Y
- S SRDR=$S(SRNOVA:"11;58;57;4;5;10;12;167;168;163;164;165;89;166;68;19",1:"11;58;57;163;164;165;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,"Total Ischemia time:",?66,$P(SRAO(7),"^")
- .W !,"UNOS at Time of Listing:",?25,$P(SRAO(2),"^"),?40,"PRA %:",?66,$P(SRAO(8),"^")
- .W !,"UNOS at Time of TX:",?25,$P(SRAO(3),"^"),?40,"Crossmatch D/R:",?66,$P(SRAO(9),"^")
- .W !,"PVR Before Vasodilation:",?25,$P(SRAO(4),"^"),?40,"Recipient ABO Blood Type:",?66,$P(SRAO(10),"^")
- .W !,"PVR After Vasodilation:",?25,$P(SRAO(5),"^"),?40,"Recipient CMV:",?66,$P(SRAO(11),"^")
- .W !,"LVEF %:",?25,$P(SRAO(6),"^")
- .W !!,"Transplant Comments: " S SREXT=$P(SRAO(12),"^") 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,"Total Isch. Time:",?65,$P(SRAO(13),"^")
- .W !,"ABO Blood Type:",?25,$P(SRAO(6),"^"),?40,"PRA %:",?65,$P(SRAO(14),"^")
- .W !,"Recipient CMV:",?25,$P(SRAO(7),"^"),?40,"Crossmatch D/R:",?65,$P(SRAO(15),"^")
- .W !,"PA Systolic Pressure:",?25,$P(SRAO(8),"^")
- .W !!,"Transplant Comments: " S SREXT=$P(SRAO(16),"^") 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),"^"),?45,"Recipient HLA-A: ",$P(SRAO(12),"^")
- W !,"Ischemic Cardiomyopathy:",?27,$P(SRAO(3),"^"),?45,"Recipient HLA-B: ",$P(SRAO(13),"^")
- W !,"Alcoholic Cardiomyopathy:",?27,$P(SRAO(4),"^"),?45,"Recipient HLA-C: ",$P(SRAO(14),"^")
- W !,"Valvular Cardiomyopathy:",?27,$P(SRAO(5),"^"),?45,"Recipient HLA-BW: ",$P(SRAO(15),"^")
- W !,"Sarcoidosis:",?27,$P(SRAO(6),"^"),?45,"Recipient HLA-DR: ",$P(SRAO(16),"^")
- W !,"Idiopathic Cardiomyopathy:",?27,$P(SRAO(7),"^"),?45,"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
- SRTPRH ;BIR/SJA - PRINT HEART RECIPIENT/DIAGNOSIS INFORMATION ;04/21/08
- +1 ;;3.0; Surgery ;**167**;24 Jun 93;Build 27
- +2 KILL DR,SRAO,SRX,Y
- +3 SET SRDR=$SELECT(SRNOVA:"11;58;57;4;5;10;12;167;168;163;164;165;89;166;68;19",1:"11;58;57;163;164;165;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,"Total Ischemia time:",?66,$PIECE(SRAO(7),"^")
- +8 WRITE !,"UNOS at Time of Listing:",?25,$PIECE(SRAO(2),"^"),?40,"PRA %:",?66,$PIECE(SRAO(8),"^")
- +9 WRITE !,"UNOS at Time of TX:",?25,$PIECE(SRAO(3),"^"),?40,"Crossmatch D/R:",?66,$PIECE(SRAO(9),"^")
- +10 WRITE !,"PVR Before Vasodilation:",?25,$PIECE(SRAO(4),"^"),?40,"Recipient ABO Blood Type:",?66,$PIECE(SRAO(10),"^")
- +11 WRITE !,"PVR After Vasodilation:",?25,$PIECE(SRAO(5),"^"),?40,"Recipient CMV:",?66,$PIECE(SRAO(11),"^")
- +12 WRITE !,"LVEF %:",?25,$PIECE(SRAO(6),"^")
- +13 WRITE !!,"Transplant Comments: "
- SET SREXT=$PIECE(SRAO(12),"^")
- DO COMM^SRTPLIV1
- End DoDot:1
- +14 IF SRNOVA
- Begin DoDot:1
- +15 WRITE !,"Date Listed with UNOS:",?25,$PIECE(SRAO(1),"^"),?40,"PAW Mean Pressure:",?65,$PIECE(SRAO(9),"^")
- +16 WRITE !,"UNOS at Time of Listing:",?25,$PIECE(SRAO(2),"^"),?40,"PVR Before Vasodilation:",?65,$PIECE(SRAO(10),"^")
- +17 WRITE !,"UNOS at Time of TX:",?25,$PIECE(SRAO(3),"^"),?40,"PVR After Vasodilation:",?65,$PIECE(SRAO(11),"^")
- +18 DO HW^SRTPUTL
- +19 SET SRAO(4)=$$OUT^SRTPLUN1(4,$PIECE(^SRT(SRTPP,0),"^",4))_"^4"
- +20 WRITE !,"Recipient Height:",?25,$PIECE(SRAO(4),"^"),?40,"LVEF %:",?65,$PIECE(SRAO(12),"^")
- +21 SET SRAO(5)=$$OUT^SRTPLUN1(5,$PIECE(^SRT(SRTPP,0),"^",5))_"^5"
- +22 WRITE !,"Recipient Weight:",?25,$PIECE(SRAO(5),"^"),?40,"Total Isch. Time:",?65,$PIECE(SRAO(13),"^")
- +23 WRITE !,"ABO Blood Type:",?25,$PIECE(SRAO(6),"^"),?40,"PRA %:",?65,$PIECE(SRAO(14),"^")
- +24 WRITE !,"Recipient CMV:",?25,$PIECE(SRAO(7),"^"),?40,"Crossmatch D/R:",?65,$PIECE(SRAO(15),"^")
- +25 WRITE !,"PA Systolic Pressure:",?25,$PIECE(SRAO(8),"^")
- +26 WRITE !!,"Transplant Comments: "
- SET SREXT=$PIECE(SRAO(16),"^")
- DO COMM^SRTPLIV1
- End DoDot:1
- +27 IF $EXTRACT(IOST)'="P"
- DO PAGE^SRTPPAS
- IF SRSOUT
- GOTO END^SRTPPAS
- +28 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),"^"),?45,"Recipient HLA-A: ",$PIECE(SRAO(12),"^")
- +7 WRITE !,"Ischemic Cardiomyopathy:",?27,$PIECE(SRAO(3),"^"),?45,"Recipient HLA-B: ",$PIECE(SRAO(13),"^")
- +8 WRITE !,"Alcoholic Cardiomyopathy:",?27,$PIECE(SRAO(4),"^"),?45,"Recipient HLA-C: ",$PIECE(SRAO(14),"^")
- +9 WRITE !,"Valvular Cardiomyopathy:",?27,$PIECE(SRAO(5),"^"),?45,"Recipient HLA-BW: ",$PIECE(SRAO(15),"^")
- +10 WRITE !,"Sarcoidosis:",?27,$PIECE(SRAO(6),"^"),?45,"Recipient HLA-DR: ",$PIECE(SRAO(16),"^")
- +11 WRITE !,"Idiopathic Cardiomyopathy:",?27,$PIECE(SRAO(7),"^"),?45,"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