SRTPHRT3 ;BIR/SJA - HEART-RISK ASSESSMENT INFO ;09/10/08
;;3.0; Surgery ;**167**;24 Jun 93;Build 27
I '$D(SRTPP) W !!,"A Transplant Assessment must be selected prior to using this option.",!!,"Press <RET> to continue " R X:DTIME G END
START Q:SRSOUT D DISP
W !!,"Select Transplant Information to Edit: " R X:DTIME I '$T!(X["^") S SRSOUT=1 G END
I X="",SRNOVA D ^SRTPHRT4 G END
I X="",'SRNOVA D ^SRTPHRT6 D:'SRSOUT ^SRTPCOM G END
S:X="a" X="A" I '$D(SRAO(X)),(X'?.N1":".N),(X'="A") D HELP G:SRSOUT END G START
I X?1.2N1":"1.2N S Y=$P(X,":"),Z=$P(X,":",2) I Y<1!(Z>SRX)!(Y>Z) D HELP G:SRSOUT END G START
I X="A" S X="1:"_SRX
D HDR^SRTPUTL
I X?.N1":".N D RANGE G START
I $D(SRAO(X)) S SREMIL=X W !! D ONE G START
END W @IOF
Q
HELP W @IOF,!!!!,"Enter the number or range of numbers you want to edit. Examples of proper",!,"responses are listed below."
W !!,"1. Enter 'A' to update all information.",!!,"2. Enter a number (1-"_SRX_") to update the information in that field. (For",!," example, enter '1' to update "_$S(SRNOVA:"COPD",1:"Inotrope Dependent Pre-TX")_")"
W !!,"3. Enter a range of numbers (1-"_SRX_") separated by a ':' to enter a range",!," of items. (For example, enter '1:4' to update items 1, 2, 3 and 4.)",!
W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1
Q
RANGE ; range of numbers
W !! S SRNOMORE=0,SRSHEMP=$P(X,":"),SRCURL=$P(X,":",2) F SREMIL=SRSHEMP:1:SRCURL Q:SRNOMORE D ONE
Q
ONE ; edit one item
K DR,DIE S DA=SRTPP,DR=$S($P(SRAO(SREMIL),"^",2)=145:"145Hypertension",1:$P(SRAO(SREMIL),"^",2)_"T"),DIE=139.5 D ^DIE K DR I $D(Y) S SRNOMORE=1
Q
DISP ; display fields
S SRPAGE="PAGE: 3 OF "_$S(SRNOVA:6,1:4),SRHPG="RISK ASSESSMENT INFORMATION" D HDR^SRTPUTL
K SRAO,DR S SRQ=0
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;174;175;62;176;74;152;171;172;179;178;132;145;150;151;147;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,SRAO(I)=SRY(139.5,SRTPP,SRZ,"E")_"^"_SRZ
VA I 'SRNOVA D
.W !,"1. Inotrope Dependent Pre-TX:",?31,$P(SRAO(1),"^"),?40,"16. Non-Compliance(Med/Diet):",?71,$P(SRAO(16),"^")
.W !,"2. Amiodarone Use:",?31,$P(SRAO(2),"^"),?40,"17. Recipient Substance Abuse:",?71,$P(SRAO(17),"^")
.W !,"3. Heparin Sensitivity:",?31,$P(SRAO(3),"^"),?40,"18. Liver Disease:",?71,$P(SRAO(18),"^")
.W !,"4. Hyperlipidemia History:",?31,$P(SRAO(4),"^"),?40,"19. Creatinine on Day of TX:",?71,$P(SRAO(19),"^")
.W !,"5. Diabetic Retinopathy:",?31,$P(SRAO(5),"^")
.W !,"6. Diabetic Neuropathy:",?31,$P(SRAO(6),"^")
.W !,"7. Ventricular Tachycardia:",?31,$P(SRAO(7),"^")
.W !,"8. HIV+ (Positive):",?31,$P(SRAO(8),"^")
.W !,"9. Prior Blood Transfusion:",?31,$P(SRAO(9),"^")
.W !,"10. Pulmonary Hypertension/Elevated PAP not reversible:",?71,$P(SRAO(10),"^")
.W !,"11. Active Infection Immediately Pre-Transplant Req. Antibiotics:",?71,$P(SRAO(11),"^")
.W !,"12. History of Pre-Transplant Skin Malignancy:",?71,$P(SRAO(12),"^")
.W !,"13. History of Pre-Transplant Other Malignancy:",?71,$P(SRAO(13),"^")
.W !,"14. Post-Transplant Prophylaxis for CMV/Anti-Viral Treatment:",?71,$P(SRAO(14),"^")
.W !,"15. Post-Transplant Prophylaxis for PCP/Antibiotic Treatment:",?71,$P(SRAO(15),"^")
NONVA I SRNOVA D
.W !,"1. COPD:",?34,$P(SRAO(1),"^"),?44,"17. Hypertension:",?72,$P(SRAO(17),"^")
.W !,"2. FEV1:",?34,$P(SRAO(2),"^"),?44,"18. Heparin Sensitivity:",?72,$P(SRAO(18),"^")
.W !,"3. Current Digoxin Use:",?34,$P(SRAO(3),"^"),?44,"19. Hyperlipidemia History:",?72,$P(SRAO(19),"^")
.W !,"4. Amiodarone Use:",?34,$P(SRAO(4),"^"),?44,"20. Diabetes:",?72,$P(SRAO(20),"^")
.W !,"5. Number prior heart surgeries:",?34,$P(SRAO(5),"^"),?44,"21. Diabetes Retinopathy:",?72,$P(SRAO(21),"^")
.W !,"6. Cerebral Vascular Disease:",?34,$P(SRAO(6),"^"),?44,"22. Diabetes Neuropathy:",?72,$P(SRAO(22),"^")
.W !,"7. CHF (NYHA Functional Class):",?34,$P(SRAO(7),"^")
.W !,"8. Inotrope Dependent Pre-TX:",?34,$P(SRAO(8),"^")
.W !,"9. IV NTG within 48 hours:",?34,$P(SRAO(9),"^")
.W !,"10. Pulmonary Hypertension/Elevated PAP: ",$P(SRAO(10),"^")
.W !,"11. Ventricular Tachycardia:",?34,$P(SRAO(11),"^")
.W !,"12. Current Smoker:",?34,$P(SRAO(12),"^")
.W !,"13. Prior MI:",?34,$P(SRAO(13),"^")
.W !,"14. Preop Circulatory Device:",?34,$P(SRAO(14),"^")
.W !,"15. Current Diuretic Use:",?34,$P(SRAO(15),"^")
.W !,"16. Peripheral Vascular Disease:",?34,$P(SRAO(16),"^")
W !,SRLINE
Q
SRTPHRT3 ;BIR/SJA - HEART-RISK ASSESSMENT INFO ;09/10/08
+1 ;;3.0; Surgery ;**167**;24 Jun 93;Build 27
+2 IF '$DATA(SRTPP)
WRITE !!,"A Transplant Assessment must be selected prior to using this option.",!!,"Press <RET> to continue "
READ X:DTIME
GOTO END
START IF SRSOUT
QUIT
DO DISP
+1 WRITE !!,"Select Transplant Information to Edit: "
READ X:DTIME
IF '$TEST!(X["^")
SET SRSOUT=1
GOTO END
+2 IF X=""
IF SRNOVA
DO ^SRTPHRT4
GOTO END
+3 IF X=""
IF 'SRNOVA
DO ^SRTPHRT6
IF 'SRSOUT
DO ^SRTPCOM
GOTO END
+4 IF X="a"
SET X="A"
IF '$DATA(SRAO(X))
IF (X'?.N1":".N)
IF (X'="A")
DO HELP
IF SRSOUT
GOTO END
GOTO START
+5 IF X?1.2N1":"1.2N
SET Y=$PIECE(X,":")
SET Z=$PIECE(X,":",2)
IF Y<1!(Z>SRX)!(Y>Z)
DO HELP
IF SRSOUT
GOTO END
GOTO START
+6 IF X="A"
SET X="1:"_SRX
+7 DO HDR^SRTPUTL
+8 IF X?.N1":".N
DO RANGE
GOTO START
+9 IF $DATA(SRAO(X))
SET SREMIL=X
WRITE !!
DO ONE
GOTO START
END WRITE @IOF
+1 QUIT
HELP WRITE @IOF,!!!!,"Enter the number or range of numbers you want to edit. Examples of proper",!,"responses are listed below."
+1 WRITE !!,"1. Enter 'A' to update all information.",!!,"2. Enter a number (1-"_SRX_") to update the information in that field. (For",!," example, enter '1' to update "_$SELECT(SRNOVA:"COPD",1:"Inotrope Dependent Pre-TX")_")"
+2 WRITE !!,"3. Enter a range of numbers (1-"_SRX_") separated by a ':' to enter a range",!," of items. (For example, enter '1:4' to update items 1, 2, 3 and 4.)",!
+3 WRITE !!,"Press <RET> to continue, or '^' to quit "
READ X:DTIME
IF '$TEST!(X["^")
SET SRSOUT=1
+4 QUIT
RANGE ; range of numbers
+1 WRITE !!
SET SRNOMORE=0
SET SRSHEMP=$PIECE(X,":")
SET SRCURL=$PIECE(X,":",2)
FOR SREMIL=SRSHEMP:1:SRCURL
IF SRNOMORE
QUIT
DO ONE
+2 QUIT
ONE ; edit one item
+1 KILL DR,DIE
SET DA=SRTPP
SET DR=$SELECT($PIECE(SRAO(SREMIL),"^",2)=145:"145Hypertension",1:$PIECE(SRAO(SREMIL),"^",2)_"T")
SET DIE=139.5
DO ^DIE
KILL DR
IF $DATA(Y)
SET SRNOMORE=1
+2 QUIT
DISP ; display fields
+1 SET SRPAGE="PAGE: 3 OF "_$SELECT(SRNOVA:6,1:4)
SET SRHPG="RISK ASSESSMENT INFORMATION"
DO HDR^SRTPUTL
+2 KILL SRAO,DR
SET SRQ=0
+3 IF 'SRNOVA
SET SRDR="62;149;150;151;59;60;152;108;153;74;115;81;82;109;110;90;83;75;154"
+4 IF SRNOVA
SET SRDR="76;169;177;149;173;174;175;62;176;74;152;171;172;179;178;132;145;150;151;147;59;60"
+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 !,"1. Inotrope Dependent Pre-TX:",?31,$PIECE(SRAO(1),"^"),?40,"16. Non-Compliance(Med/Diet):",?71,$PIECE(SRAO(16),"^")
+2 WRITE !,"2. Amiodarone Use:",?31,$PIECE(SRAO(2),"^"),?40,"17. Recipient Substance Abuse:",?71,$PIECE(SRAO(17),"^")
+3 WRITE !,"3. Heparin Sensitivity:",?31,$PIECE(SRAO(3),"^"),?40,"18. Liver Disease:",?71,$PIECE(SRAO(18),"^")
+4 WRITE !,"4. Hyperlipidemia History:",?31,$PIECE(SRAO(4),"^"),?40,"19. Creatinine on Day of TX:",?71,$PIECE(SRAO(19),"^")
+5 WRITE !,"5. Diabetic Retinopathy:",?31,$PIECE(SRAO(5),"^")
+6 WRITE !,"6. Diabetic Neuropathy:",?31,$PIECE(SRAO(6),"^")
+7 WRITE !,"7. Ventricular Tachycardia:",?31,$PIECE(SRAO(7),"^")
+8 WRITE !,"8. HIV+ (Positive):",?31,$PIECE(SRAO(8),"^")
+9 WRITE !,"9. Prior Blood Transfusion:",?31,$PIECE(SRAO(9),"^")
+10 WRITE !,"10. Pulmonary Hypertension/Elevated PAP not reversible:",?71,$PIECE(SRAO(10),"^")
+11 WRITE !,"11. Active Infection Immediately Pre-Transplant Req. Antibiotics:",?71,$PIECE(SRAO(11),"^")
+12 WRITE !,"12. History of Pre-Transplant Skin Malignancy:",?71,$PIECE(SRAO(12),"^")
+13 WRITE !,"13. History of Pre-Transplant Other Malignancy:",?71,$PIECE(SRAO(13),"^")
+14 WRITE !,"14. Post-Transplant Prophylaxis for CMV/Anti-Viral Treatment:",?71,$PIECE(SRAO(14),"^")
+15 WRITE !,"15. Post-Transplant Prophylaxis for PCP/Antibiotic Treatment:",?71,$PIECE(SRAO(15),"^")
End DoDot:1
NONVA IF SRNOVA
Begin DoDot:1
+1 WRITE !,"1. COPD:",?34,$PIECE(SRAO(1),"^"),?44,"17. Hypertension:",?72,$PIECE(SRAO(17),"^")
+2 WRITE !,"2. FEV1:",?34,$PIECE(SRAO(2),"^"),?44,"18. Heparin Sensitivity:",?72,$PIECE(SRAO(18),"^")
+3 WRITE !,"3. Current Digoxin Use:",?34,$PIECE(SRAO(3),"^"),?44,"19. Hyperlipidemia History:",?72,$PIECE(SRAO(19),"^")
+4 WRITE !,"4. Amiodarone Use:",?34,$PIECE(SRAO(4),"^"),?44,"20. Diabetes:",?72,$PIECE(SRAO(20),"^")
+5 WRITE !,"5. Number prior heart surgeries:",?34,$PIECE(SRAO(5),"^"),?44,"21. Diabetes Retinopathy:",?72,$PIECE(SRAO(21),"^")
+6 WRITE !,"6. Cerebral Vascular Disease:",?34,$PIECE(SRAO(6),"^"),?44,"22. Diabetes Neuropathy:",?72,$PIECE(SRAO(22),"^")
+7 WRITE !,"7. CHF (NYHA Functional Class):",?34,$PIECE(SRAO(7),"^")
+8 WRITE !,"8. Inotrope Dependent Pre-TX:",?34,$PIECE(SRAO(8),"^")
+9 WRITE !,"9. IV NTG within 48 hours:",?34,$PIECE(SRAO(9),"^")
+10 WRITE !,"10. Pulmonary Hypertension/Elevated PAP: ",$PIECE(SRAO(10),"^")
+11 WRITE !,"11. Ventricular Tachycardia:",?34,$PIECE(SRAO(11),"^")
+12 WRITE !,"12. Current Smoker:",?34,$PIECE(SRAO(12),"^")
+13 WRITE !,"13. Prior MI:",?34,$PIECE(SRAO(13),"^")
+14 WRITE !,"14. Preop Circulatory Device:",?34,$PIECE(SRAO(14),"^")
+15 WRITE !,"15. Current Diuretic Use:",?34,$PIECE(SRAO(15),"^")
+16 WRITE !,"16. Peripheral Vascular Disease:",?34,$PIECE(SRAO(16),"^")
End DoDot:1
+17 WRITE !,SRLINE
+18 QUIT