| 1 | DIARR4 ;SFISC/DCM-ARCHIVING FUNCTION, FIGURE OUT FG(CONT) ;3/15/93 8:54 AM
|
---|
| 2 | ;;22.0;VA FileMan;;Mar 30, 1999
|
---|
| 3 | ;Per VHA Directive 10-93-142, this routine should not be modified.
|
---|
| 4 | CLEANUP K DIAROSF,DIAROSFN,DIAROBF,DIAROBFN,DIAROFLD,DIAROIDF,DIAROSUB,DIAROLUP
|
---|
| 5 | S (DIARTAB,DIAROIDF,DIAROFLD,DIAROLVL)=0
|
---|
| 6 | Q
|
---|
| 7 | ;
|
---|
| 8 | LKUP Q:$E(DIAROVAL)'="@"
|
---|
| 9 | S DIAROVAL=$G(DIAROAT(DIAROVAL)) I $E(DIAROVAL)="@" G LKUP
|
---|
| 10 | S DIAROXX=DIAROX,DIAROX=$P(DIAROX,"=")_"="_DIAROVAL,DIAROBCK=1
|
---|
| 11 | Q
|
---|
| 12 | ;
|
---|
| 13 | BKPTR S DIAROLNE="FILE SHIFT (Forward Pointer/Backward Pointer): " D SET^DIARR3
|
---|
| 14 | I DIAROX["=@",$G(^TMP("DIAR",$J,DIAROREQ,DIAROM,DIAROZ+1))'["BEGIN:" S DIAROLNE="FILE: "_$P(DIAROX,U)_" (#"_+$P(DIAROX,U,2)_")" D SET^DIARR3 D SFT2
|
---|
| 15 | Q
|
---|
| 16 | ;
|
---|
| 17 | SFT2 S DIAROBPT=1,DIAROXX=DIAROX,DIAROX="BEGIN:"_$P(DIAROX,":")_$P(DIAROX,"=",2)
|
---|
| 18 | D BEGIN^DIARR3
|
---|
| 19 | S DIAROBPT=0
|
---|
| 20 | S DIAROX=DIAROXX K DIAROXX
|
---|
| 21 | Q
|
---|
| 22 | ;
|
---|
| 23 | POP S DIAROLVL=DIAROLVL-1 S:DIAROLVL=0 DIAROLVL=1
|
---|
| 24 | K DIAROSUB(DIAROBFN)
|
---|
| 25 | Q
|
---|
| 26 | ;
|
---|
| 27 | BE S DIAROLVL=+$P($P(DIAROX,"=",2),"@",2)
|
---|
| 28 | I $P(DIAROX,U)=$P(DIAROSTK(DIAROLVL-1),U) S DIAROSTK(DIAROLVL)=DIAROSTK(DIAROLVL-1)
|
---|
| 29 | S DIAROZ=$O(^TMP("DIAR",$J,DIAROREQ,DIAROM,DIAROZ)),DIAROX2=^(DIAROZ)
|
---|
| 30 | S DIAROLNE="FIELD NAME: "_$P(DIAROX,U)_" (#"_+$P(DIAROX,U,2)_") = "_$P(DIAROX2,"=",2) D SET^DIARR3
|
---|
| 31 | S DIAROLNE="SUBFILE: "_$P(DIAROX,U)_" (#"_$P(DIAROSTK(DIAROLVL),U,2)_") ",DIARTAB=$P(DIAROSTK(DIAROLVL),U,3) D SET^DIARR3
|
---|
| 32 | S DIAROLNE="LOOKUP VALUE (#.01): "_$P(DIAROX2,"=",2) D SET^DIARR3
|
---|
| 33 | S DIAROLNE="FIELD NAME: "_$P(DIAROX2,U)_" (#"_+$P(DIAROX2,U,2)_") = "_$P(DIAROX2,"=",2),DIARTAB=$P(DIAROSTK(DIAROLVL),U,3)+2 D SET^DIARR3 S DIARTAB=DIARTAB-4
|
---|
| 34 | Q
|
---|