Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: LRBLTA1

LRBLTA1.m

Go to the documentation of this file.
LRBLTA1 ; IHS/DIR/FJE - TRANSFUSION REACTION COUNTS 10/7/90 10:54 ;
 ;;5.2;LR;;NOV 01, 1997
 ;
 ;;5.2;LAB SERVICE;;Sep 27, 1994
 K ^TMP($J) D H Q:LR("Q")
 F LRDFN=0:0 S LRDFN=$O(^LR("AR",LRDFN)) Q:'LRDFN  F LRR=0:0 S LRR=$O(^LR("AR",LRDFN,LRR)) Q:'LRR  F LRI=LRLDT:0 S LRI=$O(^LR("AR",LRDFN,LRR,LRI)) Q:'LRI!(LRI>LRSDT)  D S
 F LRR=0:0 S LRR=$O(^TMP($J,LRR)) Q:'LRR!(LR("Q"))  D:$Y>(IOSL-6) H Q:LR("Q")  S LRR(1)=$P(^LAB(65.4,LRR,0),U) W !!,LRR(1),?31,$J(^TMP($J,LRR),4) D:LRF B
 D END^LRUTL,END Q
S S:'$D(^TMP($J,LRR)) ^(LRR)=0 S ^(LRR)=^(LRR)+1 S:LRF ^(LRR,LRDFN,LRI)="" Q
B S LRDFN=0 F  S LRDFN=$O(^TMP($J,LRR,LRDFN)) Q:'LRDFN!(LR("Q"))  D N^LRBLTA,C
 Q
C ;S LRI=0 F  S LRI=$O(^TMP($J,LRR,LRDFN,LRI)) Q:'LRI!(LR("Q"))  D:$Y>(IOSL-6) H1 Q:LR("Q")  W !,SSN,?5,LRP,?36 S Y=+$G(^LR(LRDFN,1.9,LRI,0)) D DT^LRU W Y
 S LRI=0 F  S LRI=$O(^TMP($J,LRR,LRDFN,LRI)) Q:'LRI!(LR("Q"))  D:$Y>(IOSL-6) H1 Q:LR("Q")  W !,HRCN,?5,LRP,?36 S Y=+$G(^LR(LRDFN,1.9,LRI,0)) D DT^LRU W Y  ;IHS/ANMC/CLS 11/1/95
 Q
 ;
END D V^LRU Q
 ;
H I $D(LR("F")),IOST?1"C".E D M^LRU Q:LR("Q")
 ;D F^LRU W !,"TRANSFUSION REACTION COUNTS NOT ASSOCIATE WITH SPECIFIC UNITS",!,"FROM ",LRSTR," TO ",LRLST,!,"REACTION",?31,"COUNT" W:LRF !,"SSN",?5,"Patient",?36,"Transfusion Reaction Date" W !,LR("%") Q
 D F^LRU W !,"TRANSFUSION REACTION COUNTS NOT ASSOCIATE WITH SPECIFIC UNITS",!,"FROM ",LRSTR," TO ",LRLST,!,"REACTION",?31,"COUNT" W:LRF !,"HRCN",?10,"Patient",?36,"Transfusion Reaction Date" W !,LR("%") Q  ;IHS/ANMC/CLS 11/1/95
H1 D H Q:LR("Q")  W !,LRR(1) Q