LRZABG ;SLC/RWF- PULMONARY LAB DATA DISPLAY ; 8/25/87 08:27 ; [ 09/03/90 8:32 AM ]
;;V~4.08~
;
PR ;PRINT
K LRIDT,DIC("S") S LRIDT=0,%DT="",DIC="^LAB(61,",DIC("A")="Select SITE/SPECIMEN: ",DIC(0)="AEMOQ" D ^DIC S LRTOP=+Y,LRTST="1125^48^49^51^52^53^280^54^55^47" D ^LRNORMAL
R !!,"STARTING DATE TO DISPLAY: TODAY//",X:10 IF X]"" D ^%DT S LRIDT=3009999-Y-.1
K %IS D ^%ZIS Q:POP U IO
PALL S LRDPF=$P(^LR(LRDFN,0),U,2),DFN=$P(^(0),U,3) D PT^LRX
D HEAD^LRZABG1 S U="^",LRLDT=0,LREND=0
S LRPQ="11^17^24^31^37^45^52^59^66^74",LRPJ="1^1^1^1^2^1^1^1^1^"
S LRXW="IF $L(LRZZ) W ?$P(LRPQ,U,I),$S(I=1:$J(LRZZ,3,$P(LRPJ,U,I)),LRZZ#1:$J(LRZZ,5,$P(LRPJ,U,I)),1:$J(LRZZ,5))"
G ^LRZABG1 ;IHS/ANMC/CLS 08/31/90
LRZABG ;SLC/RWF- PULMONARY LAB DATA DISPLAY ; 8/25/87 08:27 ; [ 09/03/90 8:32 AM ]
+1 ;;V~4.08~
+2 ;
PR ;PRINT
+1 KILL LRIDT,DIC("S")
SET LRIDT=0
SET %DT=""
SET DIC="^LAB(61,"
SET DIC("A")="Select SITE/SPECIMEN: "
SET DIC(0)="AEMOQ"
DO ^DIC
SET LRTOP=+Y
SET LRTST="1125^48^49^51^52^53^280^54^55^47"
DO ^LRNORMAL
+2 READ !!,"STARTING DATE TO DISPLAY: TODAY//",X:10
IF X]""
DO ^%DT
SET LRIDT=3009999-Y-.1
+3 KILL %IS
DO ^%ZIS
IF POP
QUIT
USE IO
PALL SET LRDPF=$PIECE(^LR(LRDFN,0),U,2)
SET DFN=$PIECE(^(0),U,3)
DO PT^LRX
+1 DO HEAD^LRZABG1
SET U="^"
SET LRLDT=0
SET LREND=0
+2 SET LRPQ="11^17^24^31^37^45^52^59^66^74"
SET LRPJ="1^1^1^1^2^1^1^1^1^"
+3 SET LRXW="IF $L(LRZZ) W ?$P(LRPQ,U,I),$S(I=1:$J(LRZZ,3,$P(LRPJ,U,I)),LRZZ#1:$J(LRZZ,5,$P(LRPJ,U,I)),1:$J(LRZZ,5))"
+4 ;IHS/ANMC/CLS 08/31/90
GOTO ^LRZABG1