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

BPSOS2B.m

Go to the documentation of this file.
  1. BPSOS2B ;BHAM ISC/FCS/DRS/DLF - BPSOS2 continuation ;06/01/2004
  1. ;;1.0;E CLAIMS MGMT ENGINE;**1,5,10**;JUN 2004;Build 27
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. Q
  1. VALUES ;EP - from BPSOS2
  1. ; note! This must correspond with the LABELS code in BPSOS2C
  1. N I,R,C,X,X2,X3
  1. ;
  1. ; Display In Progress Stats
  1. S R=1,C=29
  1. F I=0,10,30,40,50,60,70,90 D
  1. . S R=R+1,X=+$G(CHG("STAT",I)),X2=0,X3=3 D COM
  1. ;
  1. ; Display Completed Stats
  1. S R=1,C=65
  1. F I=203,202,208,204,205,206,207,209,210,201 D
  1. . S R=R+1,X=+$G(CHG("COMM",I)),X2=0,X3=7 D COM
  1. Q
  1. ;
  1. COM ; Copied from COMMA^%DTC with NEWs added
  1. ; Input X=value to format
  1. ; X2=# decimal digits opt. followed by "$"
  1. ; X3=len of desired output
  1. N %,D,L
  1. I $D(X3) S X3=X3+1 ; make room for the trailing space we'll get rid of
  1. S D=X<0 S:D X=-X S %=$S($D(X2):+X2,1:2),X=$J(X,1,%),%=$L(X)-3-$E(23456789,%),L=$S($D(X3):X3,1:12)
  1. F %=%:-3 Q:$E(X,%)="" S X=$E(X,1,%)_","_$E(X,%+1,99)
  1. S:$D(X2) X=$E("$",X2["$")_X S X=$J($E("(",D)_X_$E(" )",D+1),L)
  1. I $E(X,$L(X))=" " S X=$E(X,1,$L(X)-1)
  1. ;
  1. ; given R=row,C=col,X=string
  1. D SET^VALM10(R,$$SETSTR^VALM1(X,$G(@VALMAR@(R,0)),C,$L(X)))
  1. I $$VISIBLE(R) D WRITE^VALM10(R)
  1. Q
  1. ;
  1. VISIBLE(R) ;EP -
  1. I $G(NODISPLY) Q 0
  1. I '$G(VALMBG) Q 0
  1. I R<VALMBG Q 0
  1. I R>(VALMBG+(18-3)) Q 0
  1. Q 1