SRTPRLU1 ;BIR/SJA - PRINT LUNG-PREOPERATIVE RISK ASSESSMENT ;07/12/2011
;;3.0;Surgery;**167,176**;24 Jun 93;Build 8
K DR,II,SRAO,SRX,Y
W:$E(IOST)="P" ! W !,?28,"PREOPERATIVE RISK ASSESSMENT",!
S:SRNOVA SRDR="200;201;59;60;71;108;61;75;113;114;131;115;90;83;109;110;145;132;146;80"
S:'SRNOVA SRDR="59;60;71;108;61;75;113;114;80;115;90;83;109;110"
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:",?22,$P(SRAO(1),"^"),?40,"H/O Pre-Trans Malignancy:",?71,$P(SRAO(9),"^")
.W !,"Diabetic Neuropathy:",?22,$P(SRAO(2),"^"),?40,"Active Infection Immediately"
.W !,"Elevated PAP:",?22,$P(SRAO(3),"^"),?43,"Pre-Trans Req. Antibiotics:",?71,$P(SRAO(10),"^")
.W !,"HIV + (positive):",?22,$P(SRAO(4),"^"),?40,"Non-Compliance:",?71,$P(SRAO(11),"^")
.W !,"Cardiac Disease:",?22,$P(SRAO(5),"^"),?40,"Recipient Substance Abuse:",?71,$P(SRAO(12),"^")
.W !,"Liver Disease:",?22,$P(SRAO(6),"^"),?40,"Post Transplant Prophylaxis for"
.W !,"Lung Disease:",?22,$P(SRAO(7),"^"),?40," - CMV/Antiviral Treatment:",?71,$P(SRAO(13),"^")
.W !,"Renal impairment:",?22,$P(SRAO(8),"^"),?40," - PCP/Antibiotic Treatment:",?71,$P(SRAO(14),"^")
NONVA I SRNOVA D
.W !,"Diabetes - Long Term:",?25,$P(SRAO(1),"^"),?40,"Hypertension Requiring Meds:",?71,$P(SRAO(17),"^")
.W !,"Diabetes - 2 Wks Preop:",?25,$P(SRAO(2),"^"),?40,"Peripheral Vascular Disease:",?71,$P(SRAO(18),"^")
.W !,"Diabetic Retinopathy:",?25,$P(SRAO(3),"^"),?40,"Transfusion >4 RBC Units:",?71,$P(SRAO(19),"^")
.W !,"Diabetic Neuropathy:",?25,$P(SRAO(4),"^"),?40,"Pre-Trans Malignancy:",?71,$P(SRAO(20),"^")
.W !,"Elevated PAP:",?25,$P(SRAO(5),"^")
.W !,"HIV + (positive):",?25,$P(SRAO(6),"^")
.W !,"Cardiac Disease:",?25,$P(SRAO(7),"^")
.W !,"Liver Disease:",?25,$P(SRAO(8),"^")
.W !,"Lung Disease:",?25,$P(SRAO(9),"^")
.W !,"Renal impairment:",?25,$P(SRAO(10),"^")
.W !,"Preop Functional Status:",?25,$P(SRAO(11),"^")
.W !,"Active Infection Immediately Pre-Trans Req. Antibiotics:",?71,$P(SRAO(12),"^")
.W !,"Non-Compliance (Med and Diet):",?71,$P(SRAO(13),"^")
.W !,"Recipient Substance Abuse:",?71,$P(SRAO(14),"^")
.W !,"Post Transplant Prophylaxis for CMV/Antiviral Treatment:",?71,$P(SRAO(15),"^")
.W !,"Post Transplant Prophylaxis for PCP/Antibiotic Treatment:",?71,$P(SRAO(16),"^")
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 ^SRTPRLU2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSRTPRLU1 2637 printed Dec 13, 2024@02:48:51 Page 2
SRTPRLU1 ;BIR/SJA - PRINT LUNG-PREOPERATIVE RISK ASSESSMENT ;07/12/2011
+1 ;;3.0;Surgery;**167,176**;24 Jun 93;Build 8
+2 KILL DR,II,SRAO,SRX,Y
+3 if $EXTRACT(IOST)="P"
WRITE !
WRITE !,?28,"PREOPERATIVE RISK ASSESSMENT",!
+4 if SRNOVA
SET SRDR="200;201;59;60;71;108;61;75;113;114;131;115;90;83;109;110;145;132;146;80"
+5 if 'SRNOVA
SET SRDR="59;60;71;108;61;75;113;114;80;115;90;83;109;110"
+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
SET SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
VA IF 'SRNOVA
Begin DoDot:1
+1 WRITE !,"Diabetic Retinopathy:",?22,$PIECE(SRAO(1),"^"),?40,"H/O Pre-Trans Malignancy:",?71,$PIECE(SRAO(9),"^")
+2 WRITE !,"Diabetic Neuropathy:",?22,$PIECE(SRAO(2),"^"),?40,"Active Infection Immediately"
+3 WRITE !,"Elevated PAP:",?22,$PIECE(SRAO(3),"^"),?43,"Pre-Trans Req. Antibiotics:",?71,$PIECE(SRAO(10),"^")
+4 WRITE !,"HIV + (positive):",?22,$PIECE(SRAO(4),"^"),?40,"Non-Compliance:",?71,$PIECE(SRAO(11),"^")
+5 WRITE !,"Cardiac Disease:",?22,$PIECE(SRAO(5),"^"),?40,"Recipient Substance Abuse:",?71,$PIECE(SRAO(12),"^")
+6 WRITE !,"Liver Disease:",?22,$PIECE(SRAO(6),"^"),?40,"Post Transplant Prophylaxis for"
+7 WRITE !,"Lung Disease:",?22,$PIECE(SRAO(7),"^"),?40," - CMV/Antiviral Treatment:",?71,$PIECE(SRAO(13),"^")
+8 WRITE !,"Renal impairment:",?22,$PIECE(SRAO(8),"^"),?40," - PCP/Antibiotic Treatment:",?71,$PIECE(SRAO(14),"^")
End DoDot:1
NONVA IF SRNOVA
Begin DoDot:1
+1 WRITE !,"Diabetes - Long Term:",?25,$PIECE(SRAO(1),"^"),?40,"Hypertension Requiring Meds:",?71,$PIECE(SRAO(17),"^")
+2 WRITE !,"Diabetes - 2 Wks Preop:",?25,$PIECE(SRAO(2),"^"),?40,"Peripheral Vascular Disease:",?71,$PIECE(SRAO(18),"^")
+3 WRITE !,"Diabetic Retinopathy:",?25,$PIECE(SRAO(3),"^"),?40,"Transfusion >4 RBC Units:",?71,$PIECE(SRAO(19),"^")
+4 WRITE !,"Diabetic Neuropathy:",?25,$PIECE(SRAO(4),"^"),?40,"Pre-Trans Malignancy:",?71,$PIECE(SRAO(20),"^")
+5 WRITE !,"Elevated PAP:",?25,$PIECE(SRAO(5),"^")
+6 WRITE !,"HIV + (positive):",?25,$PIECE(SRAO(6),"^")
+7 WRITE !,"Cardiac Disease:",?25,$PIECE(SRAO(7),"^")
+8 WRITE !,"Liver Disease:",?25,$PIECE(SRAO(8),"^")
+9 WRITE !,"Lung Disease:",?25,$PIECE(SRAO(9),"^")
+10 WRITE !,"Renal impairment:",?25,$PIECE(SRAO(10),"^")
+11 WRITE !,"Preop Functional Status:",?25,$PIECE(SRAO(11),"^")
+12 WRITE !,"Active Infection Immediately Pre-Trans Req. Antibiotics:",?71,$PIECE(SRAO(12),"^")
+13 WRITE !,"Non-Compliance (Med and Diet):",?71,$PIECE(SRAO(13),"^")
+14 WRITE !,"Recipient Substance Abuse:",?71,$PIECE(SRAO(14),"^")
+15 WRITE !,"Post Transplant Prophylaxis for CMV/Antiviral Treatment:",?71,$PIECE(SRAO(15),"^")
+16 WRITE !,"Post Transplant Prophylaxis for PCP/Antibiotic Treatment:",?71,$PIECE(SRAO(16),"^")
End DoDot:1
+17 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+18 IF $EXTRACT(IOST)="P"
if SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+19 GOTO ^SRTPRLU2