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

LRMIUT.m

Go to the documentation of this file.
  1. LRMIUT ;SLC/CJS/BA/AVAMC/REG - MICROBIOLOGY UTILITIES ; 10/9/87 16:19 ;
  1. ;;5.2T9;LR;**1018**;Nov 17, 2004
  1. ;;5.2;LAB SERVICE;**254,266**;Sep 27, 1994
  1. ;
  1. ; Reference to ^DIC(42 supported by IA #10039
  1. ; Reference to ^%ZTLOAD supported by DBIA #10063
  1. ; Reference to ^DIC supported by DBIA #10006
  1. ; Reference to IN5^VADPT supported by DBIA #10061
  1. ;
  1. STF ;from LRMIEDZ2, LRMISTF1
  1. I $D(LRSB),$L(LRSB),$D(^LR(LRDFN,"MI",LRIDT,LRSB)) S D=$P(^(LRSB),U),^LRO(68,LRAA,1,LRAD,"AC",LRSB,LRAN)=DUZ_U_D
  1. S:'$D(D) D=0 D TSKM:$P(LRPARAM,U,5)&D
  1. ; CareVue supported ward - now tasking routine for CareVue-PWC-10/00
  1. I $G(D)>0 D
  1. . N I,LR7DLOC D IN5^VADPT S LR7DLOC=$G(^DIC(42,+$P($G(VAIP(5)),"^"),44))
  1. . Q:'LR7DLOC D:$D(^LAB(62.487,"C",LR7DLOC)) ;good ward location
  1. .. S LRH="",LRSS="MI",ZTRTN="^LA7DLOC",ZTIO="",ZTDTH=$H
  1. .. S ZTSAVE("L*")="",ZTDESC="LAB AUTOMATION CAREVUE SUPPORTED WARDS"
  1. .. D ^%ZTLOAD
  1. .. K ZTRTN,ZTDTH,ZTSAVE,ZTIO,ZTSK,ZTDESC,ZTQUEUED,ZTREQ
  1. Q
  1. TSKM ;from LRMINEW1
  1. S LRH="",LRSS="MI",LRWRDVEW="",ZTRTN="DQ^LRTP",ZTIO="",ZTDTH=$H,ZTSAVE("L*")="" D ^%ZTLOAD
  1. K LRH,LRWRDVEW,ZTSK,ZTRTN,ZTIO,ZTDTH,ZTSAVE
  1. Q
  1. LRAA ;from LRMINEW, LRMIPLOG, LRMISEZ, LRMISTF, LRMIVER
  1. K DIC S DIC=68,DIC(0)="AEMOQ",DIC("S")="I $P(^(0),U,2)=""MI""" D ^DIC
  1. S LRAA=+Y K DIC
  1. Q
  1. LRAN ;from LRMINEW1, LRMIPLOG, LRMISTF1, LRMIVER1
  1. K LRAN F I=0:0 R !,"Enter #'s: ",X:DTIME D:X'="?" NUMS Q:X=""!(X=U) I X="?" W !,"Enter a string of numbers separated with , . ^ or space,",!,"or a range of numbers, e.g. 50-75. You may enter more than one line."
  1. Q
  1. NUMS S D=$S(X[",":",",X[".":".",X[U:U,1:" ") F I=1:1 S LRAN=$P(X,D,I) D:LRAN["-" RANGE Q:LRAN="" S LRAN(+LRAN)=""
  1. Q
  1. RANGE F R=$P(LRAN,"-"):1:$P(LRAN,"-",2) S LRAN(R)=""
  1. K R Q