1 | GMVBP1 ;HIOFO/YH,FT-CALCULATE KYOCERA B/P GRAPH DATA ;9/30/02 14:55
|
---|
2 | ;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
|
---|
3 | ;
|
---|
4 | ; This routine uses the following IAs:
|
---|
5 | ; #10061 - ^VADPT calls (supported)
|
---|
6 | ;
|
---|
7 | GRAPH ;CONTINUTATION OF GMVBP0
|
---|
8 | D DEM^VADPT,INP^VADPT,SETV^GMVGR1
|
---|
9 | 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)=""
|
---|
10 | S GTNM=0 F X=0:0 S X=$O(^TMP($J,"GDT",X)) Q:X'>0 S GTNM=GTNM+1
|
---|
11 | S GPG=$S(GTNM=0:1,1:GTNM\10+''(GTNM#10)),GDT1=0
|
---|
12 | F GPGS=1:1:GPG D
|
---|
13 | . K GMRQUAL
|
---|
14 | . S ^TMP($J,"GMRK","G199")="Page "_GPGS D SETP,DATE S ^TMP($J,"GMRK","G200")=GMRRMBD D PAGE,EN1^GMVBP2,EN2^GMVBP3,EN3^GMVBP4 D
|
---|
15 | . . S ^TMP($J,"GMRK","G82M")=0.6,^TMP($J,"GMRK","G210M")=0.6,^TMP($J,"GMRK","G226M")=0.6
|
---|
16 | D KVAR^VADPT K VA Q
|
---|
17 | PAGE ;
|
---|
18 | I ^TMP($J,"GMRK","G82")="" F GI=83:1:92 S ^TMP($J,"GMRK","G82")=^TMP($J,"GMRK","G"_GI),^TMP($J,"GMRK","G82M")=0.6+(1.6*(GI-82)) Q:^TMP($J,"GMRK","G82")'=""
|
---|
19 | I ^TMP($J,"GMRK","G210")="" F GI=211:1:219 S ^TMP($J,"GMRK","G210")=^TMP($J,"GMRK","G"_GI),^TMP($J,"GMRK","G210M")=0.6+(1.6*(GI-210)) Q:^TMP($J,"GMRK","G210")'=""
|
---|
20 | I ^TMP($J,"GMRK","G226")="" F GI=227:1:236 S ^TMP($J,"GMRK","G226")=^TMP($J,"GMRK","G"_GI),^TMP($J,"GMRK","G226M")=0.6+(1.6*(GI-226)) Q:^TMP($J,"GMRK","G226")'=""
|
---|
21 | I $D(GMRQUAL) D LEGEND^GMVLGQU
|
---|
22 | K GG,I,J,GSYNO Q
|
---|
23 | SETV S ^TMP($J,"GMRK","G194")=$S(VADM(1)'="":VADM(1),1:" ")_" "_$S(VADM(2)'="":$P(VADM(2),"^",2),1:" "),GDOB=$S($D(VADM(3)):$P(VADM(3),"^",2),1:" "),GAGE=$S($D(VADM(4)):VADM(4),1:" ")
|
---|
24 | S ^TMP($J,"GMRK","G197")=$S($D(VADM(5)):$P(VADM(5),"^",2),1:" "),^TMP($J,"GMRK","G198")=$S($D(GMRWARD(1)):"Unit: "_GMRWARD(1),1:"Unit: ")
|
---|
25 | S GMRRMBD=$S('(VAIN(5)=""):"Room: "_VAIN(5),1:"Room: "),^TMP($J,"GMRK","G196")=$S($D(GDOB)&($D(GAGE)):GDOB_" ("_GAGE_")",1:" ")
|
---|
26 | I '$D(GMRVHLOC) S GMRVHLOC=$$HOSPLOC^GMVUTL1(+$G(VAIN(4)))
|
---|
27 | S GMRDIV="Division: "_$$DIVISION^GMVUTL1(+GMRVHLOC)
|
---|
28 | Q
|
---|
29 | DATE 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
|
---|
30 | Q
|
---|
31 | DATE1 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
|
---|
32 | Q
|
---|
33 | SETD 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^GMVBP5
|
---|
34 | S GI="M",GJ=0,GK=$S($L(GDT1):$O(^TMP($J,"GMRVG",GI,GDT1,"")),1:"") D SETA^GMVBP5
|
---|
35 | Q
|
---|
36 | SETP ;INITIALIZE ^TMP FOR V/M QUALIFIERS
|
---|
37 | ;1120+I - PULSE QUALIFIER
|
---|
38 | ;450+I - BP QUALIFIER
|
---|
39 | ;1240+I - THE THIRD PIECE OF BP
|
---|
40 | ;1220+I - MEAN ARTERIAL PRESSURE
|
---|
41 | F I=1:1:10 S (^TMP($J,"GMRK","G"_(430+I)),^("G"_(450+I)),^("G"_(1120+I)),^("G"_(1220+I)),^("G"_(1240+I)),^("G"_(1100+I)),^("G"_(1200+I)),^("G"_(210+I)),^("G"_(226+I)))=""
|
---|
42 | Q
|
---|