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

LRMIXALL.m

Go to the documentation of this file.
  1. LRMIXALL ;DALISC/FHS - RE INDEX "AI" "AJ" "AS" FOR ^LAB(62.06
  1. ;;5.2;LAB SERVICE;;Sep 27, 1994
  1. EN ;Also called from the ^DD(62.06,1 X-ref indexes by FM
  1. N X
  1. Q:'$G(DA)!('$D(^LAB(62.06,+$G(DA),0))#2) S X=^(0)
  1. Q:+$P(X,U,2)<2
  1. W:$G(LRMAN) !,$P(X,U,2),?10,$P(X,U) S X=+$P(X,U,2)
  1. W:$G(LRMAN) !?5," X-REF THE 'AJ' Entries " D BUGNODE^LRMIXR1
  1. W:$G(LRMAN) !?5," X-REF THE 'AS' Entries " D BUGNODE^LRMIXR2
  1. W:$G(LRMAN) !?5," X-REF THE 'AI' Entries " D BUGNODE^LRMIXR3
  1. W:$G(LRMAN) !,"Done",!
  1. Q
  1. MAN F I=0:1 S L=$P($T(TAG+I),";;",2) Q:L="END" W !,L
  1. G ASK
  1. TAG ;; This routine will re-cross reference a drug with a single call
  1. ;;for "AI", "AJ" and "AS" in ANTIMICROBIAL SUSECPTIBILITY file (#62.06).
  1. ;; This process can be done via FileMan re-index function.
  1. ;;Not all LIMs have access to the re-index options. This routine
  1. ;;can be used for these specific cross references only.
  1. ;; It removes the entire X-Ref to clean up any errors and the
  1. ;;performs the set logic. It does not harm anything to do it more than once.
  1. ;;
  1. ;;END
  1. Q
  1. ASK ;
  1. K DIC,DA
  1. W ! S LRMAN=1 S DIC=62.06,DIC(0)="AQEZM",DIC("S")="I $P(^(0),U,2)>2" D ^DIC G:Y<1 END
  1. S DA=+Y S XX=+$P(Y(0),U,2) K ^LAB(62.06,"AJ",XX),^LAB(62.06,"AS",XX),^LAB(62.06,"AI",XX)
  1. D EN G ASK
  1. END ;
  1. K DA,X,XX,DIC,I,L,LRMAN D ^%ZISC Q