SRTPRK1 ;BIR/SJA - PRINT KIDNEY-TRANSPLANT INFO/PREOP RISK ASSESSMENT INFO ;04/21/08
;;3.0; Surgery ;**167**;24 Jun 93;Build 27
TRANS ; print page 2
W:$E(IOST)="P" ! W !,?28,"KIDNEY TRANSPLANT INFORMATION",!
K DR,SRAO,SRX,Y
S SRDR="85;87;89;68;143;144;9;197;13;14;15;17;16;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 !,"Ischemia Time for Organ (minutes)"
W !," - Warm Ischemia:",?19,$P(SRAO(1),"^"),?49,"Recipient HLA-A: ",$P(SRAO(9),"^")
W !," - Cold Ischemia:",?19,$P(SRAO(2),"^"),?49,"Recipient HLA-B: ",$P(SRAO(10),"^")
W !," - Total Ischemia:",?19,$P(SRAO(3),"^"),?49,"Recipient HLA-C: ",$P(SRAO(11),"^")
W !,"Crossmatch D/R:",?19,$P(SRAO(4),"^"),?49,"Recipient HLA-DR: ",$P(SRAO(12),"^")
W !,"PRA at Listing:",?19,$P(SRAO(5),"^"),?49,"Recipient HLA-BW: ",$P(SRAO(13),"^")
W !,"PRA at Transplant:",?19,$P(SRAO(6),"^"),?49,"Recipient HLA-DQ: ",$P(SRAO(14),"^")
W !,"IVIG Recipient:",?19,$P(SRAO(7),"^")
W !,"Plasmapheresis:",?19,$P(SRAO(8),"^"),!
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
PREOP ; print page 3
W !,?28,"RISK ASSESSMENT",!
K DR,SRAO,SRX,Y
S:SRNOVA SRDR="147;59;60;61;75;108;113;80;83;131;115;109;110;92;145;132;146;90"
S:'SRNOVA SRDR="59;60;61;75;108;113;80;115;90;83;109;110;92;133"
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
VA I 'SRNOVA D
.W !,"Diabetic Retinopathy:",?29,$P(SRAO(1),"^"),?40,"Non-Compliance (Med and Diet):",?75,$P(SRAO(9),"^")
.W !,"Diabetic Neuropathy:",?29,$P(SRAO(2),"^"),?40,"Recipient Substance Abuse:",?75,$P(SRAO(10),"^")
.W !,"Cardiac Disease:",?29,$P(SRAO(3),"^"),?40,"Post Transplant Prophylaxis for"
.W !,"Liver Disease:",?29,$P(SRAO(4),"^"),?48,"- CMV/Antiviral Treatment: ",$P(SRAO(11),"^")
.W !,"HIV + (positive):",?29,$P(SRAO(5),"^"),?47,"- PCP/Antibiotic Treatment: ",?66,$P(SRAO(12),"^")
.W !,"Lung Disease:",?29,$P(SRAO(6),"^"),?41,"- TB/Antimycobacterial Treatment: ",?68,$P(SRAO(13),"^")
.W !,"Pre-Transplant Malignancy:",?29,$P(SRAO(7),"^"),?40,"Graft Failure Date: ",?66,$P(SRAO(14),"^")
.W !,"Active Infection Immediately"
.W !," Pre-Trans Req. Antibiotics:",?29,$P(SRAO(8),"^")
NONVA I SRNOVA D
.W !,"Diabetes Mellitus:",?29,$P(SRAO(1),"^"),?40,"Hypertension Requiring Meds:",?69,$P(SRAO(15),"^")
.W !,"Diabetic Retinopathy:",?29,$P(SRAO(2),"^"),?40,"Peripheral Vascular Disease:",?69,$P(SRAO(16),"^")
.W !,"Diabetic Neuropathy:",?29,$P(SRAO(3),"^"),?40,"Transfusion >4 RBC Units:",?69,$P(SRAO(17),"^")
.W !,"Cardiac Disease:",?29,$P(SRAO(4),"^"),?40,"Non-Compliance:",?69,$P(SRAO(18),"^")
.W !,"Liver Disease:",?29,$P(SRAO(5),"^")
.W !,"HIV + (positive):",?29,$P(SRAO(6),"^")
.W !,"Lung Disease:",?29,$P(SRAO(7),"^")
.W !,"Pre-Transplant Malignancy:",?29,$P(SRAO(8),"^")
.W !,"Recipient Substance Abuse:",?29,$P(SRAO(9),"^")
.W !,"Preop Functional Status:",?29,$P(SRAO(10),"^")
.W !,"Active Infection Immediately Pre-Transplant Req. Antibiotics:",?69,$P(SRAO(11),"^")
.W !,"Post Transplant Prophylaxis for CMV/Antiviral Treatment:",?69,$P(SRAO(12),"^")
.W !,"Post Transplant Prophylaxis for PCP/Antibiotic Treatment:",?69,$P(SRAO(13),"^")
.W !,"Post Transplant Prophylaxis for TB/Antimycobacterial Treatment:",?69,$P(SRAO(14),"^")
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 ^SRTPRK2
Q
SRTPRK1 ;BIR/SJA - PRINT KIDNEY-TRANSPLANT INFO/PREOP RISK ASSESSMENT INFO ;04/21/08
+1 ;;3.0; Surgery ;**167**;24 Jun 93;Build 27
TRANS ; print page 2
+1 IF $EXTRACT(IOST)="P"
WRITE !
WRITE !,?28,"KIDNEY TRANSPLANT INFORMATION",!
+2 KILL DR,SRAO,SRX,Y
+3 SET SRDR="85;87;89;68;143;144;9;197;13;14;15;17;16;18"
+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 WRITE !,"Ischemia Time for Organ (minutes)"
+7 WRITE !," - Warm Ischemia:",?19,$PIECE(SRAO(1),"^"),?49,"Recipient HLA-A: ",$PIECE(SRAO(9),"^")
+8 WRITE !," - Cold Ischemia:",?19,$PIECE(SRAO(2),"^"),?49,"Recipient HLA-B: ",$PIECE(SRAO(10),"^")
+9 WRITE !," - Total Ischemia:",?19,$PIECE(SRAO(3),"^"),?49,"Recipient HLA-C: ",$PIECE(SRAO(11),"^")
+10 WRITE !,"Crossmatch D/R:",?19,$PIECE(SRAO(4),"^"),?49,"Recipient HLA-DR: ",$PIECE(SRAO(12),"^")
+11 WRITE !,"PRA at Listing:",?19,$PIECE(SRAO(5),"^"),?49,"Recipient HLA-BW: ",$PIECE(SRAO(13),"^")
+12 WRITE !,"PRA at Transplant:",?19,$PIECE(SRAO(6),"^"),?49,"Recipient HLA-DQ: ",$PIECE(SRAO(14),"^")
+13 WRITE !,"IVIG Recipient:",?19,$PIECE(SRAO(7),"^")
+14 WRITE !,"Plasmapheresis:",?19,$PIECE(SRAO(8),"^"),!
+15 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+16 IF $EXTRACT(IOST)="P"
IF SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
PREOP ; print page 3
+1 WRITE !,?28,"RISK ASSESSMENT",!
+2 KILL DR,SRAO,SRX,Y
+3 IF SRNOVA
SET SRDR="147;59;60;61;75;108;113;80;83;131;115;109;110;92;145;132;146;90"
+4 IF 'SRNOVA
SET SRDR="59;60;61;75;108;113;80;115;90;83;109;110;92;133"
+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
VA IF 'SRNOVA
Begin DoDot:1
+1 WRITE !,"Diabetic Retinopathy:",?29,$PIECE(SRAO(1),"^"),?40,"Non-Compliance (Med and Diet):",?75,$PIECE(SRAO(9),"^")
+2 WRITE !,"Diabetic Neuropathy:",?29,$PIECE(SRAO(2),"^"),?40,"Recipient Substance Abuse:",?75,$PIECE(SRAO(10),"^")
+3 WRITE !,"Cardiac Disease:",?29,$PIECE(SRAO(3),"^"),?40,"Post Transplant Prophylaxis for"
+4 WRITE !,"Liver Disease:",?29,$PIECE(SRAO(4),"^"),?48,"- CMV/Antiviral Treatment: ",$PIECE(SRAO(11),"^")
+5 WRITE !,"HIV + (positive):",?29,$PIECE(SRAO(5),"^"),?47,"- PCP/Antibiotic Treatment: ",?66,$PIECE(SRAO(12),"^")
+6 WRITE !,"Lung Disease:",?29,$PIECE(SRAO(6),"^"),?41,"- TB/Antimycobacterial Treatment: ",?68,$PIECE(SRAO(13),"^")
+7 WRITE !,"Pre-Transplant Malignancy:",?29,$PIECE(SRAO(7),"^"),?40,"Graft Failure Date: ",?66,$PIECE(SRAO(14),"^")
+8 WRITE !,"Active Infection Immediately"
+9 WRITE !," Pre-Trans Req. Antibiotics:",?29,$PIECE(SRAO(8),"^")
End DoDot:1
NONVA IF SRNOVA
Begin DoDot:1
+1 WRITE !,"Diabetes Mellitus:",?29,$PIECE(SRAO(1),"^"),?40,"Hypertension Requiring Meds:",?69,$PIECE(SRAO(15),"^")
+2 WRITE !,"Diabetic Retinopathy:",?29,$PIECE(SRAO(2),"^"),?40,"Peripheral Vascular Disease:",?69,$PIECE(SRAO(16),"^")
+3 WRITE !,"Diabetic Neuropathy:",?29,$PIECE(SRAO(3),"^"),?40,"Transfusion >4 RBC Units:",?69,$PIECE(SRAO(17),"^")
+4 WRITE !,"Cardiac Disease:",?29,$PIECE(SRAO(4),"^"),?40,"Non-Compliance:",?69,$PIECE(SRAO(18),"^")
+5 WRITE !,"Liver Disease:",?29,$PIECE(SRAO(5),"^")
+6 WRITE !,"HIV + (positive):",?29,$PIECE(SRAO(6),"^")
+7 WRITE !,"Lung Disease:",?29,$PIECE(SRAO(7),"^")
+8 WRITE !,"Pre-Transplant Malignancy:",?29,$PIECE(SRAO(8),"^")
+9 WRITE !,"Recipient Substance Abuse:",?29,$PIECE(SRAO(9),"^")
+10 WRITE !,"Preop Functional Status:",?29,$PIECE(SRAO(10),"^")
+11 WRITE !,"Active Infection Immediately Pre-Transplant Req. Antibiotics:",?69,$PIECE(SRAO(11),"^")
+12 WRITE !,"Post Transplant Prophylaxis for CMV/Antiviral Treatment:",?69,$PIECE(SRAO(12),"^")
+13 WRITE !,"Post Transplant Prophylaxis for PCP/Antibiotic Treatment:",?69,$PIECE(SRAO(13),"^")
+14 WRITE !,"Post Transplant Prophylaxis for TB/Antimycobacterial Treatment:",?69,$PIECE(SRAO(14),"^")
End DoDot:1
+15 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+16 IF $EXTRACT(IOST)="P"
IF SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+17 GOTO ^SRTPRK2
+18 QUIT