source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LRUQ.m@ 1211

Last change on this file since 1211 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 913 bytes
Line 
1LRUQ ;AVAMC/REG - CHECK FOR BAD POINTERS TO LAB FILE ;2/18/93 13:13
2 ;;5.2;LAB SERVICE;**242**;Sep 27, 1994
3 D END W !!,"Check parent file for bad pointers to lab file."
4 S X="?" D FILE^LRDPA G:Y<1 END S LRF=+Y,LRN=$P(Y,U,2),LR=^DIC(LRF,0,"GL")
5 D BEG^LRUTL G:POP!($D(ZTSK)) END
6QUE U IO D L^LRU,S^LRU,H S LR("F")=1
7 F DFN=0:0 S DFN=$O(@(LR_DFN_")")) Q:'DFN!(LR("Q")) D
8 .S LRDFN=$$LRDFN^LR7OR1(DFN) Q:LRDFN="" D LR
9 D END^LRUTL,END Q
10LR S X=$S($D(^LR(LRDFN,0)):^(0),1:"") I X="" D:$Y>(IOSL-6) H Q:LR("Q") W !,DFN,?15,LRDFN," no entry in lab data file" Q
11 S LR(2)=$P(X,"^",2),LR(3)=$P(X,"^",3) I DFN'=LR(3)!(LR(2)'=LRF) D:$Y>(IOSL-6) H Q:LR("Q") W !,DFN,?15,LRDFN,?30,LR(3),?45,LR(2)
12 Q
13 ;
14H I $D(LR("F")),IOST?1"C".E D M^LRU Q
15 D F^LRU W !,"Bad lab pointers from ",LRN," file (global ",LR," )"
16 W !,"Parent DFN",?15,"Parent LRDFN",?30,"Lab DFN",?45,"Lab pointer to parent file",!,LR("%") Q
17 ;
18END D V^LRU Q
Note: See TracBrowser for help on using the repository browser.