source: FOIAVistA/trunk/r/GEN_MED_OTHER-GMV/GMVUT0.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 759 bytes
Line 
1GMVUT0 ;HIOFO/RM,YH,FT-INPUT TRANSFORMS FOR VITAL TYPES ;2/5/02 14:54
2 ;;5.0;GEN. MED. REC. - VITALS;;Oct 31, 2002
3 ;
4 ; This routine uses the following IAs:
5 ; <None>
6 ;
7EN3 ; INPUT TRANSFORM FOR HEIGHT RATES
8 ; Called from ^GMRD(120.51,8,1)
9 N GMR
10 S GMR=$P(X,+X,2,10) I GMR="" S X=0 Q
11 I $E(GMR)="C"!($E(GMR)="c")&("CMCmcMcm"[GMR) S X=$J(.3937*(+X),0,2) Q
12 I $E(GMR)="I"!($E(GMR)="i")!($E(GMR)="""") S X=+X Q
13 I $E(GMR)="F"!($E(GMR)="f")!($E(GMR)="'") D FTIN Q
14 S X=0
15 Q
16FTIN ; Feet and Inches
17 N GMRF,GMRIN,GMRXX,GMRYY
18 S GMRF=$E(GMR),GMR=$E(GMR,2,$L(GMR)) F GMRXX=1:0 S GMRYY=$E(GMR) Q:GMRYY?1N!(GMRYY="") S GMRF=GMRF_GMRYY,GMR=$E(GMR,2,$L(GMR))
19 I "FTFtfTft'"'[GMRF Q
20 S GMRIN=$P(GMR,+GMR,2) I "INIniNin""''"'[GMRIN!(GMRIN="'") Q
21 S X=+X*12+(+GMR)
22 Q
Note: See TracBrowser for help on using the repository browser.