SRTPHRT1 ;BIR/SJA - HEART-RECIPIENT INFORMATION ;03/04/08
;;3.0;Surgery;**167,175**;24 Jun 93;Build 6
I '$D(SRTPP) W !!,"A Transplant Assessment must be selected prior to using this option.",!!,"Press <RET> to continue " R X:DTIME S SRSOUT=1 G END
S SRSOUT=0,$P(SRLINE,"-",80)="" D SRHDR^SRTPUTL
START Q:SRSOUT D DISP
W !,"Select Transplant Information to Edit: " R X:DTIME I '$T!(X["^") S SRSOUT=1 G END
I X="" D ^SRTPHRT2 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 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 VACO ID.)"
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=$P(SRAO(SREMIL),"^",2)_"T",DIE=139.5 D ^DIE K DR I $D(Y) S SRNOMORE=1 Q
I $P(SRAO(SREMIL),"^",2)=1!($P(SRAO(SREMIL),"^",2)=3) D SRHDR^SRTPUTL
Q
DISP ; display fields
S SRHPG="RECIPIENT INFORMATION",SRPAGE="PAGE: 1 OF "_$S(SRNOVA:6,1:4) D HDR^SRTPUTL
K SRAO,DR S SRQ=0
S SRDR=$S(SRNOVA:"3;1;11;58;57;4;5;10;12;167;168;163;164;19;165;87;85;89;166;68",1:"3;11;58;57;163;164;165;87;85;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
; heart Transplant Assessments (VA)
VA I 'SRNOVA D
.W !,"1. VACO ID:",?29,$P(SRAO(1),"^")
.W !,"2. Date Listed with UNOS:",?29,$P(SRAO(2),"^")
.W !,"3. UNOS at Time of Listing:",?29,$P(SRAO(3),"^")
.W !,"4. UNOS at Time of Trans:",?29,$P(SRAO(4),"^")
.W !,"5. PVR Before Vasodilation:",?29,$P(SRAO(5),"^")
.W !,"6. PVR After Vasodilation:",?29,$P(SRAO(6),"^")
.W !,"7. LVEF %:",?29,$P(SRAO(7),"^")
.W !,"8. Cold Isch. Time:",?29,$P(SRAO(8),"^")
.W !,"9. Warm Isch. Time:",?29,$P(SRAO(9),"^")
.W !,"10. Total Isch. time:",?29,$P(SRAO(10),"^")
.W !,"11. PRA %:",?29,$P(SRAO(11),"^")
.W !,"12. Crossmatch D/R:",?29,$P(SRAO(12),"^")
.W !,"13. ABO Blood Type:",?29,$P(SRAO(13),"^")
.W !,"14. Recipient CMV:",?29,$P(SRAO(14),"^")
.W !!,"15. Transplant Comments: " S SREXT=$P(SRAO(15),"^") D COMM^SRTPLIV1
; heart Transplant Assessments (non-VA)
NONVA I SRNOVA D
.W !,"1. VACO ID:",?29,$P(SRAO(1),"^")
.S Y=$P(SRAO(2),"^") X ^DD("DD") W !,"2. Date of Transplant:",?29,Y
.W !,"3. Date Listed with UNOS:",?29,$P(SRAO(3),"^"),?45,"15. LVEF %:",?67,$P(SRAO(15),"^")
.W !,"4. UNOS at Time of Listing:",?29,$P(SRAO(4),"^"),?45,"16. Cold Isch. Time:",?67,$P(SRAO(16),"^")
.W !,"5. UNOS at Time of TX:",?29,$P(SRAO(5),"^"),?45,"17. Warm Isch. Time:",?67,$P(SRAO(17),"^")
.D HW^SRTPUTL
.S SRAO(6)=$$OUT^SRTPLUN1(4,$P(^SRT(SRTPP,0),"^",4))_"^4"
.W !,"6. Recipient Height:",?29,$P(SRAO(6),"^"),?45,"18. Total Isch. Time:",?67,$P(SRAO(18),"^")
.S SRAO(7)=$$OUT^SRTPLUN1(5,$P(^SRT(SRTPP,0),"^",5))_"^5"
.W !,"7. Recipient Weight:",?29,$P(SRAO(7),"^"),?45,"19. PRA %:",?67,$P(SRAO(19),"^")
.W !,"8. ABO Blood Type:",?29,$P(SRAO(8),"^"),?45,"20. Crossmatch D/R:",?67,$P(SRAO(20),"^")
.W !,"9. Recipient CMV:",?29,$P(SRAO(9),"^")
.W !,"10. PA Systolic Pressure:",?29,$P(SRAO(10),"^")
.W !,"11. PAW Mean Pressure:",?29,$P(SRAO(11),"^")
.W !,"12. PVR Before Vasodilation:",?29,$P(SRAO(12),"^")
.W !,"13. PVR After Vasodilation:",?29,$P(SRAO(13),"^")
.W !!,"14. Transplant Comments: " S SREXT=$P(SRAO(14),"^") D COMM^SRTPLIV1
W !,SRLINE
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSRTPHRT1 4204 printed Nov 22, 2024@17:58:13 Page 2
SRTPHRT1 ;BIR/SJA - HEART-RECIPIENT INFORMATION ;03/04/08
+1 ;;3.0;Surgery;**167,175**;24 Jun 93;Build 6
+2 IF '$DATA(SRTPP)
WRITE !!,"A Transplant Assessment must be selected prior to using this option.",!!,"Press <RET> to continue "
READ X:DTIME
SET SRSOUT=1
GOTO END
+3 SET SRSOUT=0
SET $PIECE(SRLINE,"-",80)=""
DO SRHDR^SRTPUTL
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=""
DO ^SRTPHRT2
GOTO END
+3 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
+4 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
+5 IF X="A"
SET X="1:"_SRX
+6 DO HDR^SRTPUTL
+7 IF X?.N1":".N
DO RANGE
GOTO START
+8 IF $DATA(SRAO(X))
SET SREMIL=X
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 VACO ID.)"
+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=$PIECE(SRAO(SREMIL),"^",2)_"T"
SET DIE=139.5
DO ^DIE
KILL DR
IF $DATA(Y)
SET SRNOMORE=1
QUIT
+2 IF $PIECE(SRAO(SREMIL),"^",2)=1!($PIECE(SRAO(SREMIL),"^",2)=3)
DO SRHDR^SRTPUTL
+3 QUIT
DISP ; display fields
+1 SET SRHPG="RECIPIENT INFORMATION"
SET SRPAGE="PAGE: 1 OF "_$SELECT(SRNOVA:6,1:4)
DO HDR^SRTPUTL
+2 KILL SRAO,DR
SET SRQ=0
+3 SET SRDR=$SELECT(SRNOVA:"3;1;11;58;57;4;5;10;12;167;168;163;164;19;165;87;85;89;166;68",1:"3;11;58;57;163;164;165;87;85;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 ; heart Transplant Assessments (VA)
VA IF 'SRNOVA
Begin DoDot:1
+1 WRITE !,"1. VACO ID:",?29,$PIECE(SRAO(1),"^")
+2 WRITE !,"2. Date Listed with UNOS:",?29,$PIECE(SRAO(2),"^")
+3 WRITE !,"3. UNOS at Time of Listing:",?29,$PIECE(SRAO(3),"^")
+4 WRITE !,"4. UNOS at Time of Trans:",?29,$PIECE(SRAO(4),"^")
+5 WRITE !,"5. PVR Before Vasodilation:",?29,$PIECE(SRAO(5),"^")
+6 WRITE !,"6. PVR After Vasodilation:",?29,$PIECE(SRAO(6),"^")
+7 WRITE !,"7. LVEF %:",?29,$PIECE(SRAO(7),"^")
+8 WRITE !,"8. Cold Isch. Time:",?29,$PIECE(SRAO(8),"^")
+9 WRITE !,"9. Warm Isch. Time:",?29,$PIECE(SRAO(9),"^")
+10 WRITE !,"10. Total Isch. time:",?29,$PIECE(SRAO(10),"^")
+11 WRITE !,"11. PRA %:",?29,$PIECE(SRAO(11),"^")
+12 WRITE !,"12. Crossmatch D/R:",?29,$PIECE(SRAO(12),"^")
+13 WRITE !,"13. ABO Blood Type:",?29,$PIECE(SRAO(13),"^")
+14 WRITE !,"14. Recipient CMV:",?29,$PIECE(SRAO(14),"^")
+15 WRITE !!,"15. Transplant Comments: "
SET SREXT=$PIECE(SRAO(15),"^")
DO COMM^SRTPLIV1
End DoDot:1
+16 ; heart Transplant Assessments (non-VA)
NONVA IF SRNOVA
Begin DoDot:1
+1 WRITE !,"1. VACO ID:",?29,$PIECE(SRAO(1),"^")
+2 SET Y=$PIECE(SRAO(2),"^")
XECUTE ^DD("DD")
WRITE !,"2. Date of Transplant:",?29,Y
+3 WRITE !,"3. Date Listed with UNOS:",?29,$PIECE(SRAO(3),"^"),?45,"15. LVEF %:",?67,$PIECE(SRAO(15),"^")
+4 WRITE !,"4. UNOS at Time of Listing:",?29,$PIECE(SRAO(4),"^"),?45,"16. Cold Isch. Time:",?67,$PIECE(SRAO(16),"^")
+5 WRITE !,"5. UNOS at Time of TX:",?29,$PIECE(SRAO(5),"^"),?45,"17. Warm Isch. Time:",?67,$PIECE(SRAO(17),"^")
+6 DO HW^SRTPUTL
+7 SET SRAO(6)=$$OUT^SRTPLUN1(4,$PIECE(^SRT(SRTPP,0),"^",4))_"^4"
+8 WRITE !,"6. Recipient Height:",?29,$PIECE(SRAO(6),"^"),?45,"18. Total Isch. Time:",?67,$PIECE(SRAO(18),"^")
+9 SET SRAO(7)=$$OUT^SRTPLUN1(5,$PIECE(^SRT(SRTPP,0),"^",5))_"^5"
+10 WRITE !,"7. Recipient Weight:",?29,$PIECE(SRAO(7),"^"),?45,"19. PRA %:",?67,$PIECE(SRAO(19),"^")
+11 WRITE !,"8. ABO Blood Type:",?29,$PIECE(SRAO(8),"^"),?45,"20. Crossmatch D/R:",?67,$PIECE(SRAO(20),"^")
+12 WRITE !,"9. Recipient CMV:",?29,$PIECE(SRAO(9),"^")
+13 WRITE !,"10. PA Systolic Pressure:",?29,$PIECE(SRAO(10),"^")
+14 WRITE !,"11. PAW Mean Pressure:",?29,$PIECE(SRAO(11),"^")
+15 WRITE !,"12. PVR Before Vasodilation:",?29,$PIECE(SRAO(12),"^")
+16 WRITE !,"13. PVR After Vasodilation:",?29,$PIECE(SRAO(13),"^")
+17 WRITE !!,"14. Transplant Comments: "
SET SREXT=$PIECE(SRAO(14),"^")
DO COMM^SRTPLIV1
End DoDot:1
+18 WRITE !,SRLINE
+19 QUIT