source: FOIAVistA/trunk/r/NURSING_SERVICE-NUR/NURCVED1.m@ 1730

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1NURCVED1 ;HIRMFO/YH-LIST & SELECT VITAL MEASUREMENTS ;9/27/90
2 ;;4.0;NURSING SERVICE;;Apr 25, 1997
3EN1 ;SELECT VITALS AND CREATE STRING OF VITALS IN FORMAT, E.G., "T;P;R;"
4 ;OUTPUT VARIABLE: GMRVSTR = STRING OF VITALS SELECTED
5 W !! S NSET=0,NCOL=5,NVTAL="" F N(1)=0:0 S NVTAL=$O(^GMRD(120.51,"C",NVTAL)) Q:NVTAL="" S NN=$O(^GMRD(120.51,"C",NVTAL,0)) W ?NCOL,NVTAL,?NCOL+5,$P(^GMRD(120.51,NN,0),"^") S NSET=NSET+1,NCOL=40 I NSET=2 W ! S NSET=0,NCOL=5
6SEL W !,"Select vitals to be entered (e.g., T;P;R;BP , ENTER RETURN FOR ALL) : "
7 R NVTAL:DTIME I NVTAL["^"!('$T) S NURQUIT=1 G Q1
8 I NVTAL="" S GMRSTR="T;P;R;BP;WT;HT;" G Q1
9 I NVTAL?1"?".E W !,?5,"Type in the abbreviation of vital measurements you want separated by",!,?5,""";"" if there is more than one selected",!,?5,"e.g., T;P;R;BP",! G SEL
10 I '(NVTAL?.A!(NVTAL?.AP&(NVTAL[";"))) G SEL
11 D STRCHK I NURQUIT=1 S NURQUIT=0 G SEL
12Q1 K N,NVTAL,NSET,NCOL Q
13STRCHK ;
14 S GMRSTR="" F NN=1:1 S N(1)=$P(NVTAL,";",NN) Q:N(1)="" D SCREEN
15 Q
16SCREEN S N(2)=$S(N(1)["HT"!(N(1)["ht"):"HT;",N(1)["BP"!(N(1)["bp"):"BP;",N(1)["R"!(N(1)["r"):"R;",N(1)?1A&(N(1)["P"!(N(1)["p")):"P;",N(1)["WT"!(N(1)["wt"):"WT;",N(1)?1A&(N(1)["T"!(N(1)["t")):"T;",1:"") I N(1)'="" S GMRSTR=GMRSTR_N(2)
17 Q
Note: See TracBrowser for help on using the repository browser.