source: WorldVistAEHR/trunk/r/GEN_MED_OTHER-GMV/GMVLWT2.m@ 1078

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

initial load of WorldVistAEHR

File size: 942 bytes
Line 
1GMVLWT2 ;HIOFO/YH,FT-DOT MATRIX WEIGHT GRAPH - 3 ;11/6/01 15:32
2 ;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
3 ;
4 ; This routine uses the following IAs:
5 ; <None>
6 ;
7SETHD ;
8 ;GMRWT = WEIGHT VALUE WHEN $Y=1
9 ;GMRWT(1) = $Y
10 ;GMRWT(2) = GWT LOCAL GLOBAL COUNT
11 S GMRWHI=GMRWT-(($Y-1)*1.666),GMRWLO=GMRWHI-1.666
12 S GMR3=(($Y/3)=($Y\3))
13 S GMRHDR10=$S($Y>5&GMR3&($Y<57)&($Y'=GMRWT(1)):" 5",$Y=GMRWT(1)&(GMRWT(2)<9):GWT(GMRWT(2)),1:"")
14 I $Y=GMRWT(1) S GMRWT(1)=GMRWT(1)+6,GMRWT(2)=GMRWT(2)+1
15 Q
16DATAPRT ;
17 S GMRLINE=GMRX1
18 S GMRNM=0 F GMRDT=0:0 S GMRDT=$O(^TMP($J,"GMRDT",GMRDT)) Q:GMRDT'>0 D SETLINE Q:GMRNM=10
19 W GMRLINE
20 Q
21SETLINE ;
22 S GMRNM=GMRNM+1,GMROLD=$P(GMRLINE,"|",GMRNM),GMRW=$O(^TMP($J,"GMRVG","W",GMRDT,""))
23 S GMRWOFF=($Y=6&(+GMRW>(GWT(1)+5)))!($Y=56&(+GMRW<(GWT(8)-7)))
24 S GMROLD=$E($S(+GMRW>0&(+GMRW'<GMRWLO&(+GMRW'>GMRWHI)!GMRWOFF):"W"_$S('GMRWOFF:" ",1:"**"),1:"")_" ",1,10)
25 S $P(GMRLINE,"|",GMRNM)=GMROLD
26 Q
Note: See TracBrowser for help on using the repository browser.