source: WorldVistAEHR/trunk/r/GEN_MED_OTHER-GMV/GMVHB0.m@ 1211

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

initial load of WorldVistAEHR

File size: 2.0 KB
RevLine 
[613]1GMVHB0 ;HIOFO/YH,FT-HP LASER B/P GRAPH - DATA ARRAY ;11/6/01 15:36
2 ;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
3 ;
4 ; This routine uses the following IAs:
5 ; #10061 - ^VADPT calls (supported)
6 ;
7EN1 ;
8 K ^TMP($J,"GMR"),^TMP($J,"GMRK"),^TMP($J,"GDT"),^TMP($J,"GMRVG"),^TMP($J,"GTNM") F GI=1:1:200 S ^TMP($J,"GMRK","G"_GI)=""
9 S GMROUT=0,GSTART1=(9999999-GMRFIN)-.0001,GEND1=9999999-GMRSTRT
10 F GTYPE="B","P" D SETT^GMVBP0
11 U IO D GRAPH
12Q1 D Q1^GMVGR0
13 Q
14GRAPH D DEM^VADPT,INP^VADPT,SETV^GMVWT1
15 F GK="P","B" S ^TMP($J,"GTNM",GK)=0 F GI=0:0 S GI=$O(^TMP($J,"GMRVG",GK,GI)) Q:GI'>0 S GJ="" F X=0:0 S GJ=$O(^TMP($J,"GMRVG",GK,GI,GJ)) Q:GJ="" S ^TMP($J,"GTNM",GK)=^TMP($J,"GTNM",GK)+1,^TMP($J,"GDT",GI)=""
16 S GTNM=0 F X=0:0 S X=$O(^TMP($J,"GDT",X)) Q:X'>0 S GTNM=GTNM+1
17 S GPG=$S(GTNM=0:1,1:GTNM\10+''(GTNM#10)),GDT1=0
18 F GPGS=1:1:GPG D
19 . K GMRQUAL
20 . S ^TMP($J,"GMRK","G199")="Page "_GPGS D SETP^GMVBP1,DATE,PAGE,^GMVHB1
21 D Q1^GMVHG0,KVAR^VADPT K VA,GRAPHS,GRAPHD Q
22PAGE ;
23 ;DATA FOR SYSTOLIC GRAPH
24 K GRAPHS S GRAPHS=0,I=1,J=1201,GPA=0 F GI=226:1:235 S GRAPHS=0.6+(1.6*(I-1)) D:^TMP($J,"GMRK","G"_GI)'="" S I=I+1,J=J+1
25 .S GRAPHS(I)=$S(GPA=0:"PA",1:"PD")_GRAPHS_","_^TMP($J,"GMRK","G"_GI)_";LB"_^TMP($J,"GMRK","G"_J)_"#;",GPA=1
26 K GRAPHD S GRAPHD=0,I=1,J=1101,GPA=0 F GI=210:1:219 S GRAPHD=0.6+(1.6*(I-1)) D:^TMP($J,"GMRK","G"_GI)'="" S I=I+1,J=J+1
27 .S GRAPHD(I)=$S(GPA=0:"PA",1:"PD")_GRAPHD_","_^TMP($J,"GMRK","G"_GI)_";LB"_^TMP($J,"GMRK","G"_J)_"#;",GPA=1
28 I $D(GMRQUAL) D LEGEND^GMVLGQU
29 K GG,GSYNO Q
30DATE F GCNTD=1:1:10 S:$L(GDT1) GDT1=$O(^TMP($J,"GDT",GDT1)) S ^TMP($J,"GMRK","G"_GCNTD)=$S($L(GDT1):$E(GDT1,4,5)_"-"_$E(GDT1,6,7)_"-"_$E(GDT1,2,3),1:"") D DATE1
31 Q
32DATE1 S Y=$E($P(GDT1,".",2)_"0000",1,4),^TMP($J,"GMRK","G"_(GCNTD+16))=$S($L(GDT1):$E(Y,1,2)_":"_$E(Y,3,4),1:"") D SETD
33 Q
34SETD F GI="P","B","C","D","S" S GJ=$F("WTXPXRBIOCHDS",GI),GK=$S($L(GDT1):$O(^TMP($J,"GMRVG",GI,GDT1,"")),1:"") D SETA^GMVHB4
35 S GI="M",GJ=0,GK=$S($L(GDT1):$O(^TMP($J,"GMRVG",GI,GDT1,"")),1:"") D SETA^GMVHB4
36 Q
Note: See TracBrowser for help on using the repository browser.