source: WorldVistAEHR/trunk/r/UTILIZATION_MGMT_ROLLUP_LOCAL-IBQ/IBQLLD2.m@ 1599

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

initial load of WorldVistAEHR

File size: 1.0 KB
RevLine 
[613]1IBQLLD2 ;LEB/MRY - LOAD UMR FILE/EDIT CHECK ORDER ; 21-AUG-95
2 ;;1.0;UTILIZATION MGMT ROLLUP LOCAL;;Oct 01, 1995
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 Q
5ORDCHK ; -- edit check the UR procedure in entering reviews.
6 S IBTRV=0 K IBORDER
7 F S IBTRV=$O(^IBT(356.1,"C",IBTRN,IBTRV)) Q:'IBTRV D Q:IBQUIT
8 .; -- check for bad cross-reference in Reviews
9 .S IBTRVD=$G(^IBT(356.1,IBTRV,0)) I '+IBTRVD S IBQUIT=1 Q
10 .; -- ignore reviews that are INACTIVE
11 .I '$P(IBTRVD,"^",19)!'$P(IBTRVD,"^",21) Q
12 .; -- check for no DAY entered in Review.
13 .I '$P(IBTRVD,"^",3) S IBQUIT=1 Q
14 .; -- check for Reviews with a same DAY.
15 .I $D(IBORDER($P(IBTRVD,"^",3))) S IBQUIT=1 Q
16 .I 'IBQUIT S IBORDER($P(IBTRVD,"^",3))=IBTRV
17 G:IBQUIT END S IBDAY=0
18 ; -- check for Reviews that are not in consecutive order.
19 F IBCNT=1:1 S IBDAY=$O(IBORDER(IBDAY)) Q:'IBDAY D Q:IBQUIT
20 .I IBDAY'=IBCNT S IBQUIT=1
21 ;
22END ; -- clean up
23 Q:$D(IBQLR3)
24 I $O(^TMP("IBQLPL",$J,IB(.03),IBDDT,0)) S ^TMP("IBQLPL",$J,IB(.03),IBDDT)=IBNAM
25 K IBDAY,IBCNT
26 Q
Note: See TracBrowser for help on using the repository browser.