1 | IBQLLD2 ;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
|
---|
5 | ORDCHK ; -- 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 | ;
|
---|
22 | END ; -- 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
|
---|