SRTPRLI ;BIR/SJA - PRINT LIVER-RECIPIENT/DIAGNOSIS INFORMATION ;04/21/08
;;3.0; Surgery ;**167**;24 Jun 93;Build 27
K DR,SRAO,SRX,Y
S SRDR=$S(SRNOVA:"1;11;4;5;10;12;52;53;54;55;19",1:"11;10;12;52;53;54;55;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
VA I 'SRNOVA D
.W !,"Date on Waiting List:",?32,$P(SRAO(1),"^")
.W !,"Recipient ABO Blood Type:",?32,$P(SRAO(2),"^")
.W !,"Recipient CMV:",?32,$P(SRAO(3),"^")
.W !,"MELD Score at Listing:",?32,$P(SRAO(4),"^")
.W !,"Biologic MELD Score at Listing:",?32,$P(SRAO(5),"^")
.W !,"Meld Score at Transplant:",?32,$P(SRAO(6),"^")
.W !,"Biologic MELD Score at TX:",?32,$P(SRAO(7),"^")
.W !!,"Transplant Comments: " S SREXT=$P(SRAO(8),"^") D COMM^SRTPLIV1
NONVA I SRNOVA D
.W !,"Date on Waiting List:",?32,$P(SRAO(2),"^")
.D HW^SRTPUTL
.S SRAO(3)=$$OUT^SRTPLUN1(4,$P(^SRT(SRTPP,0),"^",4))_"^4"
.W !,"Recipient Height:",?32,$P(SRAO(3),"^")
.S SRAO(4)=$$OUT^SRTPLUN1(5,$P(^SRT(SRTPP,0),"^",5))_"^5"
.W !,"Recipient Weight:",?32,$P(SRAO(4),"^")
.W !,"Recipient ABO Blood Type:",?32,$P(SRAO(5),"^")
.W !,"Recipient CMV:",?32,$P(SRAO(6),"^")
.W !,"MELD Score at Listing:",?32,$P(SRAO(7),"^")
.W !,"Biologic MELD Score at Listing:",?32,$P(SRAO(8),"^")
.W !,"Meld Score at Transplant:",?32,$P(SRAO(9),"^")
.W !,"Biologic MELD Score at TX:",?32,$P(SRAO(10),"^")
.W !!,"Transplant Comments: " S SREXT=$P(SRAO(11),"^") D COMM^SRTPLIV1
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
DIAG K DR,SRAO,SRX,Y W:$E(IOST)="P" ! W !,?28,"DIAGNOSIS INFORMATION",!
S (DR,SRDR)="21;20;23;99;100;101;27;28;29;30;102;34;35;38;105;39;106;107;47;56;111;120;127;94"
K DA,DIC,DIQ,SRX,SRY,SRZ 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 !,"Acute Liver Failure:",?29,$P(SRAO(1),"^"),?39,"Primary Biliary Cholangitis:",?71,$P(SRAO(14),"^")
W !,"Acetaminophen Toxicity:",?29,$P(SRAO(2),"^"),?39,"Primary Non-Function:",?71,$P(SRAO(15),"^")
W !,"Alcoholic Cirrhosis:",?29,$P(SRAO(3),"^"),?39,"Primary Sclerosing Cholangitis:",?71,$P(SRAO(16),"^")
W !,"Autoimmune Hepatitis:",?29,$P(SRAO(4),"^"),?39,"Second Sclerosing Cholangitis:",?71,$P(SRAO(17),"^")
W !,"Cryptogenic Cirrhosis:",?29,$P(SRAO(5),"^"),?39,"Toxic Exposure:",?71,$P(SRAO(18),"^")
W !,"Chronic Rejection:",?29,$P(SRAO(6),"^"),?39,"Biliary Stricture:",?71,$P(SRAO(19),"^")
W !,"Graft Failure:",?29,$P(SRAO(7),"^"),?39,"Bile Leak:",?71,$P(SRAO(20),"^")
W !,"HBV Cirrhosis (Hepatitis B):",?29,$P(SRAO(8),"^"),?39,"Portal Vein Thrombosis:",?71,$P(SRAO(21),"^")
W !,"HCC (Hepatocellular CA):",?29,$P(SRAO(9),"^"),?39,"Psychosis:",?71,$P(SRAO(22),"^")
W !,"HCV Cirrhosis (Hepatitis C):",?29,$P(SRAO(10),"^"),?39,"Seizures:",?71,$P(SRAO(23),"^")
W !,"Hepatic Artery Thrombosis:",?29,$P(SRAO(11),"^"),?39,"Rejection:",?71,$P(SRAO(24),"^")
W !,"Metabolic:",?29,$P(SRAO(12),"^")
W !,"NASH:",?29,$P(SRAO(13),"^")
G:SRSOUT END^SRTPPAS I $Y+20>IOSL 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 ^SRTPRLI1
Q
SRTPRLI ;BIR/SJA - PRINT LIVER-RECIPIENT/DIAGNOSIS INFORMATION ;04/21/08
+1 ;;3.0; Surgery ;**167**;24 Jun 93;Build 27
+2 KILL DR,SRAO,SRX,Y
+3 SET SRDR=$SELECT(SRNOVA:"1;11;4;5;10;12;52;53;54;55;19",1:"11;10;12;52;53;54;55;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
VA IF 'SRNOVA
Begin DoDot:1
+1 WRITE !,"Date on Waiting List:",?32,$PIECE(SRAO(1),"^")
+2 WRITE !,"Recipient ABO Blood Type:",?32,$PIECE(SRAO(2),"^")
+3 WRITE !,"Recipient CMV:",?32,$PIECE(SRAO(3),"^")
+4 WRITE !,"MELD Score at Listing:",?32,$PIECE(SRAO(4),"^")
+5 WRITE !,"Biologic MELD Score at Listing:",?32,$PIECE(SRAO(5),"^")
+6 WRITE !,"Meld Score at Transplant:",?32,$PIECE(SRAO(6),"^")
+7 WRITE !,"Biologic MELD Score at TX:",?32,$PIECE(SRAO(7),"^")
+8 WRITE !!,"Transplant Comments: "
SET SREXT=$PIECE(SRAO(8),"^")
DO COMM^SRTPLIV1
End DoDot:1
NONVA IF SRNOVA
Begin DoDot:1
+1 WRITE !,"Date on Waiting List:",?32,$PIECE(SRAO(2),"^")
+2 DO HW^SRTPUTL
+3 SET SRAO(3)=$$OUT^SRTPLUN1(4,$PIECE(^SRT(SRTPP,0),"^",4))_"^4"
+4 WRITE !,"Recipient Height:",?32,$PIECE(SRAO(3),"^")
+5 SET SRAO(4)=$$OUT^SRTPLUN1(5,$PIECE(^SRT(SRTPP,0),"^",5))_"^5"
+6 WRITE !,"Recipient Weight:",?32,$PIECE(SRAO(4),"^")
+7 WRITE !,"Recipient ABO Blood Type:",?32,$PIECE(SRAO(5),"^")
+8 WRITE !,"Recipient CMV:",?32,$PIECE(SRAO(6),"^")
+9 WRITE !,"MELD Score at Listing:",?32,$PIECE(SRAO(7),"^")
+10 WRITE !,"Biologic MELD Score at Listing:",?32,$PIECE(SRAO(8),"^")
+11 WRITE !,"Meld Score at Transplant:",?32,$PIECE(SRAO(9),"^")
+12 WRITE !,"Biologic MELD Score at TX:",?32,$PIECE(SRAO(10),"^")
+13 WRITE !!,"Transplant Comments: "
SET SREXT=$PIECE(SRAO(11),"^")
DO COMM^SRTPLIV1
End DoDot:1
+14 IF $EXTRACT(IOST)'="P"
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
+15 IF $EXTRACT(IOST)="P"
IF SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
DO PAGE^SRTPPAS
IF SRSOUT
GOTO END^SRTPPAS
DIAG KILL DR,SRAO,SRX,Y
IF $EXTRACT(IOST)="P"
WRITE !
WRITE !,?28,"DIAGNOSIS INFORMATION",!
+1 SET (DR,SRDR)="21;20;23;99;100;101;27;28;29;30;102;34;35;38;105;39;106;107;47;56;111;120;127;94"
+2 KILL DA,DIC,DIQ,SRX,SRY,SRZ
SET DIC="^SRT("
SET DA=SRTPP
SET DIQ="SRY"
SET DIQ(0)="E"
SET DR=SRDR
DO EN^DIQ1
KILL DA,DIC,DIQ,DR
+3 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
+4 WRITE !,"Acute Liver Failure:",?29,$PIECE(SRAO(1),"^"),?39,"Primary Biliary Cholangitis:",?71,$PIECE(SRAO(14),"^")
+5 WRITE !,"Acetaminophen Toxicity:",?29,$PIECE(SRAO(2),"^"),?39,"Primary Non-Function:",?71,$PIECE(SRAO(15),"^")
+6 WRITE !,"Alcoholic Cirrhosis:",?29,$PIECE(SRAO(3),"^"),?39,"Primary Sclerosing Cholangitis:",?71,$PIECE(SRAO(16),"^")
+7 WRITE !,"Autoimmune Hepatitis:",?29,$PIECE(SRAO(4),"^"),?39,"Second Sclerosing Cholangitis:",?71,$PIECE(SRAO(17),"^")
+8 WRITE !,"Cryptogenic Cirrhosis:",?29,$PIECE(SRAO(5),"^"),?39,"Toxic Exposure:",?71,$PIECE(SRAO(18),"^")
+9 WRITE !,"Chronic Rejection:",?29,$PIECE(SRAO(6),"^"),?39,"Biliary Stricture:",?71,$PIECE(SRAO(19),"^")
+10 WRITE !,"Graft Failure:",?29,$PIECE(SRAO(7),"^"),?39,"Bile Leak:",?71,$PIECE(SRAO(20),"^")
+11 WRITE !,"HBV Cirrhosis (Hepatitis B):",?29,$PIECE(SRAO(8),"^"),?39,"Portal Vein Thrombosis:",?71,$PIECE(SRAO(21),"^")
+12 WRITE !,"HCC (Hepatocellular CA):",?29,$PIECE(SRAO(9),"^"),?39,"Psychosis:",?71,$PIECE(SRAO(22),"^")
+13 WRITE !,"HCV Cirrhosis (Hepatitis C):",?29,$PIECE(SRAO(10),"^"),?39,"Seizures:",?71,$PIECE(SRAO(23),"^")
+14 WRITE !,"Hepatic Artery Thrombosis:",?29,$PIECE(SRAO(11),"^"),?39,"Rejection:",?71,$PIECE(SRAO(24),"^")
+15 WRITE !,"Metabolic:",?29,$PIECE(SRAO(12),"^")
+16 WRITE !,"NASH:",?29,$PIECE(SRAO(13),"^")
+17 IF SRSOUT
GOTO END^SRTPPAS
IF $Y+20>IOSL
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 ^SRTPRLI1
+20 QUIT