SRTPRH1 ;BIR/SJA - PRINT HEART RISK ASSESSMENT INFO ;07/20/2011
;;3.0;Surgery;**167,176**;24 Jun 93;Build 8
W:$E(IOST)="P" ! W !,?28,"RISK ASSESSMENT INFORMATION",!
K SRAO,SRX,Y,DR
S:'SRNOVA SRDR="62;149;150;151;59;60;152;108;153;74;115;81;82;109;110;90;83;75;154"
S:SRNOVA SRDR="76;169;177;149;173;202;203;175;62;176;74;152;198;199;172;179;178;132;145;150;151;200;201;59;60"
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 D
.I SRZ=202 S Y=$P(^SRT(SRTPP,.55),"^",28),SRAO(I)=$S(Y=0:"NO CVD",Y=1:"YES/NO SURG",Y=2:"YES/PRIOR SURG",1:"")_"^202" Q
.I SRZ=203 S Y=$P(^SRT(SRTPP,.55),"^",29),SRAO(I)=$S(Y=0:"NO CVD",Y=1:"HIST OF TIA'S",Y=2:"CVA W/O NEURO DEF",Y=3:"CVA W/ NEURO DEF",1:"")_"^203" Q
.S SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
VA I 'SRNOVA D
.W !,"Inotrope Dependent Pre-TX:",?27,$P(SRAO(1),"^"),?40,"Non-Compliance:",?67,$P(SRAO(16),"^")
.W !,"Amiodarone Use:",?27,$P(SRAO(2),"^"),?40,"Recipient Substance Abuse:",?67,$P(SRAO(17),"^")
.W !,"Heparin Sensitivity:",?27,$P(SRAO(3),"^"),?40,"Liver Disease:",?67,$P(SRAO(18),"^")
.W !,"Hyperlipidemia History:",?27,$P(SRAO(4),"^"),?40,"Creatinine on Day of TX:",?67,$P(SRAO(19),"^")
.W !,"Diabetic Retinopathy:",?27,$P(SRAO(5),"^")
.W !,"Diabetic Neuropathy:",?27,$P(SRAO(6),"^")
.W !,"Ventricular Tachycardia:",?27,$P(SRAO(7),"^")
.W !,"HIV+ (Positive):",?27,$P(SRAO(8),"^")
.W !,"Prior Blood Transfusion:",?27,$P(SRAO(9),"^")
.W !,"Pulmonary Hypertension/Elevated PAP not reversible:",?67,$P(SRAO(10),"^")
.W !,"Active Infection Immediately Pre-Transplant Req. Antibiotics:",?67,$P(SRAO(11),"^")
.W !,"H/O Pre-Transplant Skin Malignancy:",?67,$P(SRAO(12),"^")
.W !,"H/O Pre-Transplant Other Malignancy:",?67,$P(SRAO(13),"^")
.W !,"Post-Tx Prophylaxis for CMV/Anti-Viral Treatment:",?67,$P(SRAO(14),"^")
.W !,"Post-Tx Prophylaxis for PCP/Antibiotic Treatment:",?67,$P(SRAO(15),"^")
NONVA I SRNOVA D
.W !,"COPD:",?30,$P(SRAO(1),"^"),?42,"Current Diuretic Use:",?71,$P(SRAO(17),"^")
.W !,"FEV1:",?30,$P(SRAO(2),"^"),?42,"Peripheral Vascular Disease:",?71,$P(SRAO(18),"^")
.W !,"Current Digoxin Use:",?30,$P(SRAO(3),"^"),?42,"Hypertension:",?71,$P(SRAO(19),"^")
.W !,"Amiodarone Use:",?30,$P(SRAO(4),"^"),?42,"Heparin Sensitivity:",?71,$P(SRAO(20),"^")
.W !,"Number prior heart surgeries:",?30,$P(SRAO(5),"^"),?42,"Hyperlipidemia History:",?71,$P(SRAO(21),"^")
.W !,"CVD Repair/Obstruct:",?(39-$L($P(SRAO(6),"^"))),$P(SRAO(6),"^"),?42,"Diabetes - Long Term:",?71,$P(SRAO(22),"^")
.W !,"History of CVD:",?(39-$L($P(SRAO(7),"^"))),$P(SRAO(7),"^"),?42,"Diabetes - 2 Wks Preop:",?71,$P(SRAO(23),"^")
.W !,"CHF (NYHA Functional Class):",?30,$P(SRAO(8),"^"),?42,"Diabetes Retinopathy:",?71,$P(SRAO(24),"^")
.W !,"Inotrope Dependent Pre-TX:",?30,$P(SRAO(9),"^"),?42,"Diabetes Neuropathy:",?71,$P(SRAO(25),"^")
.W !,"IV NTG within 48 hours:",?30,$P(SRAO(10),"^")
.W !,"Pulmonary Hyper/Elevated PAP:",?30,$P(SRAO(11),"^")
.W !,"Ventricular Tachycardia:",?30,$P(SRAO(12),"^")
.W !,"Tobacco Use:",?(39-$L($P(SRAO(13),"^"))),$P(SRAO(13),"^")
.W !,"Tobacco Use Timeframe: ",?(39-$L($P(SRAO(14),"^"))),$P(SRAO(14),"^")
.W !,"Prior MI: ",?30,$E($P(SRAO(15),"^"),1,15)
.W !,"Preop Circulatory Device:",?30,$E($P(SRAO(16),"^"),1,10)
D:SRNOVA RISK
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 ^SRTPRH2
Q
RISK ;
K DR,SRAO,SRX,Y
S SRDR="75;154;108;115;81;82;90;83;153"
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 !,"Liver Disease:",?30,$P(SRAO(1),"^"),?42,"Pre-TX Other Malignancy:",?71,$P(SRAO(6),"^")
W !,"Creatinine on Day of TX:",?30,$P(SRAO(2),"^"),?42,"Non-Compliance:",?71,$P(SRAO(7),"^")
W !,"HIV+ (positive):",?30,$P(SRAO(3),"^"),?42,"Recipient Substance Abuse:",?71,$P(SRAO(8),"^")
W !,"Active Infection Pre-TX:",?30,$P(SRAO(4),"^"),?42,"Prior Blood Transfusion:",?71,$P(SRAO(9),"^")
W !,"Pre-TX Skin Malignancy:",?30,$P(SRAO(5),"^")
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSRTPRH1 4262 printed Oct 16, 2024@18:49:21 Page 2
SRTPRH1 ;BIR/SJA - PRINT HEART RISK ASSESSMENT INFO ;07/20/2011
+1 ;;3.0;Surgery;**167,176**;24 Jun 93;Build 8
+2 if $EXTRACT(IOST)="P"
WRITE !
WRITE !,?28,"RISK ASSESSMENT INFORMATION",!
+3 KILL SRAO,SRX,Y,DR
+4 if 'SRNOVA
SET SRDR="62;149;150;151;59;60;152;108;153;74;115;81;82;109;110;90;83;75;154"
+5 if SRNOVA
SET SRDR="76;169;177;149;173;202;203;175;62;176;74;152;198;199;172;179;178;132;145;150;151;200;201;59;60"
+6 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
+7 SET (SRX,SRZ)=0
FOR I=1:1
SET SRZ=$PIECE(SRDR,";",I)
if 'SRZ
QUIT
SET SRX=I
Begin DoDot:1
+8 IF SRZ=202
SET Y=$PIECE(^SRT(SRTPP,.55),"^",28)
SET SRAO(I)=$SELECT(Y=0:"NO CVD",Y=1:"YES/NO SURG",Y=2:"YES/PRIOR SURG",1:"")_"^202"
QUIT
+9 IF SRZ=203
SET Y=$PIECE(^SRT(SRTPP,.55),"^",29)
SET SRAO(I)=$SELECT(Y=0:"NO CVD",Y=1:"HIST OF TIA'S",Y=2:"CVA W/O NEURO DEF",Y=3:"CVA W/ NEURO DEF",1:"")_"^203"
QUIT
+10 SET SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
End DoDot:1
VA IF 'SRNOVA
Begin DoDot:1
+1 WRITE !,"Inotrope Dependent Pre-TX:",?27,$PIECE(SRAO(1),"^"),?40,"Non-Compliance:",?67,$PIECE(SRAO(16),"^")
+2 WRITE !,"Amiodarone Use:",?27,$PIECE(SRAO(2),"^"),?40,"Recipient Substance Abuse:",?67,$PIECE(SRAO(17),"^")
+3 WRITE !,"Heparin Sensitivity:",?27,$PIECE(SRAO(3),"^"),?40,"Liver Disease:",?67,$PIECE(SRAO(18),"^")
+4 WRITE !,"Hyperlipidemia History:",?27,$PIECE(SRAO(4),"^"),?40,"Creatinine on Day of TX:",?67,$PIECE(SRAO(19),"^")
+5 WRITE !,"Diabetic Retinopathy:",?27,$PIECE(SRAO(5),"^")
+6 WRITE !,"Diabetic Neuropathy:",?27,$PIECE(SRAO(6),"^")
+7 WRITE !,"Ventricular Tachycardia:",?27,$PIECE(SRAO(7),"^")
+8 WRITE !,"HIV+ (Positive):",?27,$PIECE(SRAO(8),"^")
+9 WRITE !,"Prior Blood Transfusion:",?27,$PIECE(SRAO(9),"^")
+10 WRITE !,"Pulmonary Hypertension/Elevated PAP not reversible:",?67,$PIECE(SRAO(10),"^")
+11 WRITE !,"Active Infection Immediately Pre-Transplant Req. Antibiotics:",?67,$PIECE(SRAO(11),"^")
+12 WRITE !,"H/O Pre-Transplant Skin Malignancy:",?67,$PIECE(SRAO(12),"^")
+13 WRITE !,"H/O Pre-Transplant Other Malignancy:",?67,$PIECE(SRAO(13),"^")
+14 WRITE !,"Post-Tx Prophylaxis for CMV/Anti-Viral Treatment:",?67,$PIECE(SRAO(14),"^")
+15 WRITE !,"Post-Tx Prophylaxis for PCP/Antibiotic Treatment:",?67,$PIECE(SRAO(15),"^")
End DoDot:1
NONVA IF SRNOVA
Begin DoDot:1
+1 WRITE !,"COPD:",?30,$PIECE(SRAO(1),"^"),?42,"Current Diuretic Use:",?71,$PIECE(SRAO(17),"^")
+2 WRITE !,"FEV1:",?30,$PIECE(SRAO(2),"^"),?42,"Peripheral Vascular Disease:",?71,$PIECE(SRAO(18),"^")
+3 WRITE !,"Current Digoxin Use:",?30,$PIECE(SRAO(3),"^"),?42,"Hypertension:",?71,$PIECE(SRAO(19),"^")
+4 WRITE !,"Amiodarone Use:",?30,$PIECE(SRAO(4),"^"),?42,"Heparin Sensitivity:",?71,$PIECE(SRAO(20),"^")
+5 WRITE !,"Number prior heart surgeries:",?30,$PIECE(SRAO(5),"^"),?42,"Hyperlipidemia History:",?71,$PIECE(SRAO(21),"^")
+6 WRITE !,"CVD Repair/Obstruct:",?(39-$LENGTH($PIECE(SRAO(6),"^"))),$PIECE(SRAO(6),"^"),?42,"Diabetes - Long Term:",?71,$PIECE(SRAO(22),"^")
+7 WRITE !,"History of CVD:",?(39-$LENGTH($PIECE(SRAO(7),"^"))),$PIECE(SRAO(7),"^"),?42,"Diabetes - 2 Wks Preop:",?71,$PIECE(SRAO(23),"^")
+8 WRITE !,"CHF (NYHA Functional Class):",?30,$PIECE(SRAO(8),"^"),?42,"Diabetes Retinopathy:",?71,$PIECE(SRAO(24),"^")
+9 WRITE !,"Inotrope Dependent Pre-TX:",?30,$PIECE(SRAO(9),"^"),?42,"Diabetes Neuropathy:",?71,$PIECE(SRAO(25),"^")
+10 WRITE !,"IV NTG within 48 hours:",?30,$PIECE(SRAO(10),"^")
+11 WRITE !,"Pulmonary Hyper/Elevated PAP:",?30,$PIECE(SRAO(11),"^")
+12 WRITE !,"Ventricular Tachycardia:",?30,$PIECE(SRAO(12),"^")
+13 WRITE !,"Tobacco Use:",?(39-$LENGTH($PIECE(SRAO(13),"^"))),$PIECE(SRAO(13),"^")
+14 WRITE !,"Tobacco Use Timeframe: ",?(39-$LENGTH($PIECE(SRAO(14),"^"))),$PIECE(SRAO(14),"^")
+15 WRITE !,"Prior MI: ",?30,$EXTRACT($PIECE(SRAO(15),"^"),1,15)
+16 WRITE !,"Preop Circulatory Device:",?30,$EXTRACT($PIECE(SRAO(16),"^"),1,10)
End DoDot:1
+17 if SRNOVA
DO RISK
+18 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+19 IF $EXTRACT(IOST)="P"
if SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+20 GOTO ^SRTPRH2
+21 QUIT
RISK ;
+1 KILL DR,SRAO,SRX,Y
+2 SET SRDR="75;154;108;115;81;82;90;83;153"
+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 !,"Liver Disease:",?30,$PIECE(SRAO(1),"^"),?42,"Pre-TX Other Malignancy:",?71,$PIECE(SRAO(6),"^")
+6 WRITE !,"Creatinine on Day of TX:",?30,$PIECE(SRAO(2),"^"),?42,"Non-Compliance:",?71,$PIECE(SRAO(7),"^")
+7 WRITE !,"HIV+ (positive):",?30,$PIECE(SRAO(3),"^"),?42,"Recipient Substance Abuse:",?71,$PIECE(SRAO(8),"^")
+8 WRITE !,"Active Infection Pre-TX:",?30,$PIECE(SRAO(4),"^"),?42,"Prior Blood Transfusion:",?71,$PIECE(SRAO(9),"^")
+9 WRITE !,"Pre-TX Skin Malignancy:",?30,$PIECE(SRAO(5),"^")
+10 QUIT