source: WorldVistAEHR/trunk/r/GEN_MED_OTHER-GMV/GMVKPN1.m@ 619

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

initial load of WorldVistAEHR

File size: 2.3 KB
Line 
1GMVKPN1 ;HCIOFO/YH,FT-KYOCERA PAIN CHART MACRO-1 ;11/6/01 15:04
2 ;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
3 ;
4 ; This routine uses the following IAs:
5 ; <None>
6 ;
7EN1 W !,"!R! RES; DAM;"
8BOX W !,"MCRO BOX;"
9 W !,"UNIT C; SLM 3; STM 1; MAP 0,0; SPD 0.05; BOX 16,13;"
10 W !,"FONT 40; MAP -2,0.5; TEXT 'Date/Time';"
11 W !,"SPD 0.01; MAP -0.5,2; TEXT '10'; MAP 0,1; DAP 16,1;MAP 16,1; DAP 0,1;"
12 W !,"MAP -0.5,3; TEXT '9'; MAP 0,2; DAP 16.2,2;"
13 W !,"MAP -0.5,4; TEXT '8'; MAP 0,3; DAP 16,3;"
14 W:GTNM=0 "MAP 2,5; TEXT 'THERE IS NO DATA FOR THIS PERIOD';"
15 W !,"MAP -0.5,5; TEXT '7'; MAP 0,4; DAP 16,4;"
16 W !,"MAP -0.5,6; TEXT '6';MAP 0,5; DAP 16,5;"
17 W !,"MAP -0.5,7; TEXT '5'; MAP 0,6; DAP 16,6;"
18 W !,"MAP -0.5,8; TEXT '4'; MAP 0,7; DAP 16,7;"
19 W !,"MAP -0.5,9; TEXT '3'; MAP 0,8; DAP 16,8;"
20 W !,"MAP -0.5,10; TEXT '2'; MAP -0.5,11; TEXT '1'; MAP 0,9; DAP 16,9;"
21 W !,"MAP 0,10; DAP 16,10;"
22 W !,"MAP 0,11; DAP 16,11;"
23 W !,"MAP -1,12.7; TEXT 'Pain';"
24VERT W !,"SPD 0.05;" S I(1)="" F I=1:1:9 S I(1)=I(1)_"MAP "_(1.6*I)_",0; DAP "_(1.6*I)_",13;"
25 W !,I(1) W !,"MAP 16,12; DAP 0,12;"
26 W !,"MAP 0,13.5; TEXT '0 - No pain 10 - Worst imaginable pain 99 - Unable to respond';"
27FORM W !,"MAP 12,22.4; TEXT 'Medical Record'; MAP 12,22.8; TEXT 'Pain Chart'; MAP 12,23.2; TEXT 'SF 512';"
28 W !,"ENDM;"
29DATE W !,"MCRO DATE; FONT 56;" S J=0.4 D WRTEXT^GMVBP2
30 W !,"ENDM;"
31TIME W !,"MCRO TIME;" S J=0.8 D WRTEXT^GMVBP2
32 W !,"ENDM;"
33RPG W !,"MCRO RPG; SPD 0.03; MAP %1, %2; DAP 2, %3; DAP 3.6, %4; DAP 5.2, %5; DAP 6.8, %6; DAP 8.4, %7; DAP 10, %8; DAP 11.6, %9;"
34 W !,"DAP 13.2, %10; DAP 14.8, %11;"
35 W !,"ENDM;"
36RESP W !,"MCRO RSP;" S J=12.7 D
37 . S I(1)="" F I=1:1:5 S I(1)=I(1)_$S(I(1)="":"",1:" ")_"MAP "_(1.6*(I-1)+0.2)_","_J_"; TEXT %"_I_";"
38 . W !,I(1)
39 . S I(1)="" F I=6:1:10 S I(1)=I(1)_$S(I(1)="":"",1:" ")_"MAP "_(1.6*(I-1)+0.2)_","_J_"; TEXT %"_I_";"
40 . W !,I(1)
41 W !,"ENDM;"
42PID W !,"MCRO PID; MAP -2,21.6; TEXT %1; MAP -2,22; TEXT %2; MAP 2.5,22; TEXT %3; MAP -2,22.4; TEXT %4; MAP 6,23.2; TEXT %5; MAP 6,22.8; TEXT %6; MAP -2,22.8; TEXT %7; MAP -2,23.2; TEXT %8;"
43 W !,"ENDM;"
44RS1 W !,"MCRO RS1; MAP %1,%2; TEXT %3; MAP 2.0,%4; TEXT %5; MAP 3.6,%6; TEXT %7; MAP 5.2,%8; TEXT %9; MAP 6.8,%10; TEXT %11; MAP 8.4,%12; TEXT %13; MAP 10,%14; TEXT %15; MAP 11.6,%16; TEXT %17; MAP 13.2,%18; TEXT %19;"
45 W !,"ENDM;"
46RS2 W !,"MCRO RS2; MAP 14.8,%1; TEXT %2;"
47 W !,"ENDM;"
48 Q
Note: See TracBrowser for help on using the repository browser.