source: WorldVistAEHR/trunk/r/GEN_MED_OTHER-GMV/GMVHPO1.m@ 931

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

initial load of WorldVistAEHR

File size: 2.3 KB
Line 
1GMVHPO1 ;HIOFO/YH,FT-HP LASER PULSE OXIMETRY/RESP. GRAPH - FORM ;11/6/01 15:20
2 ;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
3 ;
4 ; This routine uses the following IAs:
5 ; <None>
6 ;
7EN1 ;RESET PRINTER, SET PAGE SIZE (PORTRAIT) AND PCL PICTURE FRAME 8 1/2"*11"
8 W !,$CHAR(27),"E",$CHAR(27),"&l1E",$CHAR(27),"*c5952x7920Y",$CHAR(27),"%0B"
9 W !,"IN;SP1;IP;SC-3,18,-8,20,1;PW.3;PA0,0;FT3,1;RR16,20;PW.3;PA0,-2.8;EA16,20;PA-3,-2.8;EA16,0;PW.15;"
10 S I(1)="" F I=1:1:5 S I(1)=I(1)_"PU"_(1.6*I)_",20;PD"_(1.6*I)_",-2.8;"
11 W !,I(1)
12 S I(1)="" F I=6:1:9 S I(1)=I(1)_"PU"_(1.6*I)_",20;PD"_(1.6*I)_",-2.8;"
13 W !,I(1) K I
14 W !,"PU16,-0.4;PD-3,-0.4;PU-3,-0.8;PD16,-0.8;PU16,-1.2;PD-3,-1.2;PU-3.-1.6;PD16,-1.6;PU16,-2.0;PD-3,-2.0;PU-3,-2.4;PD16,-2.4;PU;"
15 ;PRINT LABEL
16 W !,"DT#,1;"
17 W !,"SD1,277,2,1,4,10,5,1,6,5,7,4;SS;LO12;PA-2,19.5;LBDate/Time#;PA-2.5,18.8;LBPulse Ox. Resp.#;PA-2,18;LB100 40#;"
18 W !,"PA-2,17;LB 98 38#;" W !,"PA-2,16;LB 96 36#;PA-2,15;LB 94 34#;PA-2,14;LB 92 32#;PA-2,13;LB 90 30#;"
19 W !,"PA-2,12;LB 88 28#;PA-2,11;LB 86 26#;"
20 W !,"PA-2,10;LB 84 24#;PA-2,9;LB 82 22#;PA-2,8;LB 80 20#;PA-2,7;LB 78 18#;"
21 W !,"PA-2,6;LB 76 16#;PA-2,5;LB 74 14#;PA-2,4;LB 72 12#;PA-2,3;LB 70 10#;PA-2,2;LB 68 8#;PA-2,1;LB 66 6#;"
22 ;LABEL THE LOWER BOX
23 W !,"SD1,277,2,1,4,8,5,1,6,5,7,4;SS;LO11;PA-3,-0.4;LBRespiration#;PA-3,-0.8;LBPulse Oximetry#;"
24 W !,"PA-2.5,-1.2;LBL/Min#;PA-2.5,-1.6;LB%#;PA-2.5,-2;LBMethod#;"
25 W !,"PA-3,-2.4;LBPulse#;"
26 W !,"PA-3,-3.2;LBR: Respiration POx: Pulse Oximetry * - Abnormal value ** - Abnormal value off of graph#;"
27 W !,"PA-3,-3.6;LB"_$E($G(GLINE(1)),1,100)_"#;" W !,"LB"_$E($G(GLINE(1)),101,180)_"#;"
28 W !,"PA-3,-3.9;LB"_$E($G(GLINE(2)),1,100)_"#;" W !,"LB"_$E($G(GLINE(2)),101,180)_"#;"
29 W !,"SD1,277,2,1,4,9,5,1,6,5,7,4;SS;PA10,-4.9;LBPulse Oximetry/Respiration Graph#;"
30 W !,"SD1,277,2,1,4,9,5,1,6,5,7,4;SS;PA10,-4.5;LBMedical Record#;PA10,-5.3;LBSF 512#;"
31 I GTNM=0 W !,"PA3,10;LBTHERE IS NO DATA FOR THIS PERIOD#;"
32 W "PW.3;SD1,277,2,1,4,8,5,1,6,5,7,4;SS;LO7;PU;" S I=0 F S I=$O(GRAPHR(I)) Q:I'>0 W !,GRAPHR(I)
33 W "PU;" S I=0 F S I=$O(GRAPHP(I)) Q:I'>0 W !,GRAPHP(I)
34 W !,"PU;LO1;" D EN1^GMVHPO2
35 D PTID^GMVHPO3
36 ;ENTER PCL MODE, RESET PRINTER AND EJECT PAGE
37Q1 ;
38 W !,"PA-3,22;",$CHAR(27),"&r0F",$CHAR(27),"%0A" K I Q
Note: See TracBrowser for help on using the repository browser.