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

LRAPQACD.m

Go to the documentation of this file.
  1. LRAPQACD ; IHS/DIR/AAB - ENTER TC/QA CODES 06:37 ; [ 2/5/97 ]
  1. ;;5.2;LR;**1006**;SEP 01, 1998
  1. ;
  1. ;;5.2;LAB SERVICE;**72,85,155**;Sep 27, 1994
  1. D ^LRAP G:'$D(Y) END
  1. S DR=$S(LRSS="AU":"99",1:".99;.14;9") D ^LRAPDA Q
  1. ;
  1. EN D ^LRAP G:'$D(Y) END
  1. W !!?10,"Delete Tissue committee/QA codes from ",LRO(68),!! D B^LRU G:Y<0 END
  1. S LRSDT=LRSDT-.01,LRLDT=LRLDT+.99
  1. W !!?16,"OK to DELETE TC/QA codes",!?21,"from one date thru another " S %=2 D YN^LRU I %'=1 W !!?32,"OK, forget it !" G END
  1. D XR^LRU
  1. W ! F X=0:0 S LRSDT=$O(^LR(LRXR,LRSDT)) Q:'LRSDT!(LRSDT>LRLDT) W "." D LRDFN
  1. OUT W $C(7),!,"OK DONE !" G END
  1. LRDFN F LRDFN=0:0 S LRDFN=$O(^LR(LRXR,LRSDT,LRDFN)) Q:'LRDFN D @($S("CYEMSP"[LRSS:"I",1:"A"))
  1. Q
  1. I F LRI=0:0 S LRI=$O(^LR(LRXR,LRSDT,LRDFN,LRI)) Q:'LRI I $P($P($G(^LR(LRDFN,LRSS,LRI,0)),U,6)," ")=LRABV K ^(9) S $P(^(0),"^",14)=""
  1. Q
  1. A K:$P($P($G(^LR(LRDFN,"AU")),U,6)," ")=LRABV ^(99) Q
  1. ;
  1. END D V^LRU Q