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

LRAC8.m

Go to the documentation of this file.
  1. LRAC8 ; IHS/DIR/FJE - REFORMAT ^LAC WHEN FILE 64.5 IS CHANGED 10/2/87 11:30 ;
  1. ;;5.2;LR;**1013**;JUL 15, 2002
  1. ;
  1. ;;5.2;LAB SERVICE;;Sep 27, 1994
  1. ;Routine will only go thru LAC global once instead of for each header changed.
  1. ENT S LRDFN=0
  1. F S LRDFN=$O(^LAC("LRAC",LRDFN)) Q:'LRDFN D
  1. . S LRMH=0
  1. . F S LRMH=$O(^LAB(64.5,"AZ",LRMH)) Q:'LRMH D
  1. . . S LRSH=0
  1. . . F S LRSH=$O(^LAB(64.5,"AZ",LRMH,LRSH)) Q:'LRSH I $D(^LAC("LRAC",LRDFN,1,LRMH,1,LRSH)) D
  1. . . . K ^LAC("LRAC",LRDFN,1,LRMH,1,LRSH)
  1. . . . I $O(^LAC("LRAC",LRDFN,1,LRMH,1,0))<1 K ^LAC("LRAC",LRDFN,1,LRMH) S $P(^LAC("LRAC",LRDFN,1,0),"^",3,4)=""
  1. K LRMH,LRSH,LRDFN,LRIDT,LRFDT,LRTF
  1. K ^LAB(64.5,"AZ")
  1. Q