Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: GMRVUT1

GMRVUT1.m

Go to the documentation of this file.
  1. GMRVUT1 ;HIRMFO/YH-VITAL SIGNS INFORMATION ;2/5/99
  1. ;;4.0;Vitals/Measurements;**6,7,11**;Apr 25, 1997
  1. T ;HELP INFORMATION FOR TEMPERATURE
  1. S GMRVITY="T",GMRVIT=$O(^GMRD(120.51,"C",GMRVITY,0)) Q:GMRVIT'>0 S GMRVIT(1)=$P($G(^GMRD(120.51,GMRVIT,0)),"^")
  1. W !,"** Temperature: a number + a location qualifier(optional), e.g., 99.6A",!,?3,"or 99.6AX (F AXILLARY) or 37R (C RECTAL)." S GLVL="" D LISTQ^GMRVQUAL S GLINE=$G(GLINE)+4 D CHECK Q
  1. P ;HELP INFORMATION FOR PULSE
  1. S GMRVITY="P",GMRVIT=$O(^GMRD(120.51,"C",GMRVITY,0)) Q:GMRVIT'>0 S GMRVIT(1)=$P($G(^GMRD(120.51,GMRVIT,0)),"^")
  1. W !,"** Pulse: a number + a location qualifier(optional), e.g., 70A or 70AP",!,?3,"(70 APICAL). " S GLVL="" D LISTQ^GMRVQUAL S GLINE=$G(GLINE)+5 D CHECK Q
  1. R ;HELP INFORMATION FOR RESPIRATORY
  1. S GMRVITY="R",GMRVIT=$O(^GMRD(120.51,"C",GMRVITY,0)) Q:GMRVIT'>0 S GMRVIT(1)=$P($G(^GMRD(120.51,GMRVIT,0)),"^")
  1. W !,"** Respiration: a number(0-99 with no decimal places) + method qualifier" S GLINE=$G(GLINE)+1 D CHECK W !,?3,"(optional) e.g., 40C or 40c." S GLVL="" D LISTQ^GMRVQUAL S GLINE=$G(GLINE)+1 D CHECK Q
  1. BP ;HELP INFORMATION FOR BLOOD PRESSURE
  1. W !,"** B/P: systolic/intermediate/diastolic" S GLINE=$G(GLINE)+1 D CHECK W !,?3,"intermediate pressure is optional, e.g., 98/64 or 120/100/80"
  1. S GLINE=$G(GLINE)+1 D CHECK W !,?3,"Null diastolic only be allowed for taken either by Doppler or Palpated." S GLINE=$G(GLINE)+1 D CHECK
  1. W !,?3,"The Default method is Palpated if no diastolic is entered."
  1. S GLINE=$G(GLINE)+1 D CHECK
  1. W !,?3,"Otherwise, enter D for Doppler, (e.g., 120/ or 120/D or 120/P)."
  1. S GLINE=$G(GLINE)+1 D CHECK Q
  1. HT ;HELP INFORMATION FOR HEIGHT
  1. W !,"** Height: a number + ',' (optional) + qualifier (2 decimals allowed)" S GLINE=$G(GLINE)+1 D CHECK
  1. S GMRVITY="HT",GMRVIT=$O(^GMRD(120.51,"C",GMRVITY,0)) Q:GMRVIT'>0 S GMRVIT(1)=$P($G(^GMRD(120.51,GMRVIT,0)),"^")
  1. W !,?3,"72I (inches) 147C (centimeters)" S GLINE=$G(GLINE)+1 D CHECK W !,?3,"5F10IE or 5'10""E (for 5 feet 10 inches ESTIMATED)" S GLINE=$G(GLINE)+1 D CHECK
  1. S GLVL="" D LISTQ^GMRVQUAL S GLINE=$G(GLINE)+2 D CHECK Q
  1. CG ;HELP INFORMATION FOR CIRCUMFERENCE/GIRTH
  1. D CG^GMRVUTL1 S GLINE=$G(GLINE)+3 D CHECK Q
  1. CVP ;
  1. D CVP^GMRVUTL1 Q
  1. PO2 ;
  1. D PO2^GMRVUTL1 S GLINE=$G(GLINE)+2 D CHECK Q
  1. PN ;HELP INFORMATION
  1. D PAIN^GMRVUTL1 S GLINE=$G(GLINE)+4 D CHECK Q
  1. WT ;HELP INFORMATION FOR WEIGHT
  1. S GMRVITY="WT",GMRVIT=$O(^GMRD(120.51,"C",GMRVITY,0)) Q:GMRVIT'>0 S GMRVIT(1)=$P($G(^GMRD(120.51,GMRVIT,0)),"^")
  1. W !,"** Weight: a number+L(l) or a number+K(k) + 2nd quality (optional) 2 decimals" S GLINE=$G(GLINE)+1 D CHECK W !,?3,"allowed, e.g., 120.25L or 120l (pounds), 45.25K or 45k (kilograms)." S GLINE=$G(GLINE)+1
  1. D CHECK W !,?3,"120L, 120LA, or 120K for actual weight." S GLVL="" D LISTQ^GMRVQUAL S GLINE=$G(GLINE)+2 D CHECK Q
  1. WTYPE ;ENTRY POIT FOR TYPE OF WEIGHT - ACTUAL/ESTIMATED/DRY
  1. K GMRW S (GMRVDFLT,GMRW)="",GLVL=9 D LISTQ^GMRVQUAL Q:'$D(GMRW)
  1. S GMRSITE=$P(X,+X,2) I $L(GMRSITE)=1,"LlKk"[GMRSITE S GMRSITE(GMRVITY)=$G(GMRVDFLT(1)) W ! G OTHERQ
  1. I $L(GMRSITE)=1,"LlKk"'[GMRSITE Q
  1. S:$L(GMRSITE)>1 GMRSITE=$$UP^XLFSTR($E(GMRSITE,2,30))
  1. ASK3 K GMRV S GMRV=0 D SETSITE^GMRVUT3 I GMRV>0!GMROUT G OTHERQ
  1. G ASK
  1. ;
  1. TPSITE ;SITE FOR TEMP., PULSE, B/P, RESPIRATION AND HEIGHT
  1. K GMRW S (GMRVDFLT,GMRW)="",GLVL=9 D LISTQ^GMRVQUAL Q:'$D(GMRW)
  1. ASK2 ;
  1. I GMRVITY="T"!(GMRVITY="R")!(GMRVITY="P"),GMRSITE="" S GMRSITE(GMRVITY)=$G(GMRVDFLT(1)) G OTHERQ
  1. I GMRVITY="HT",GMRSITE="" S GMRSITE(GMRVITY)="" G OTHERQ
  1. ASK1 K GMRV S GMRV=0 D SETSITE^GMRVUT3 I GMROUT!(GMRV>0) G OTHERQ
  1. ;
  1. ASK W !!,"Select one of the following qualifiers for "_GMRVIT(1)_" or <RET> for default" D LIST W !!,"Please enter "_$S(GMRVITY="T"!(GMRVITY="BP")!(GMRVITY="P"):"location: ",GMRVITY="R":"method: ",GMRVITY="WT":"quality: ",1:"")
  1. W $P($G(GMRVDFLT(1)),"^")_"// "
  1. S GMRSITE="" R GMRSITE:DTIME S:'$T!(GMRSITE["^") GMROUT=1 I GMROUT W ! G OTHERQ
  1. S GMRSITE=$$UP^XLFSTR(GMRSITE) I GMRSITE="" S (GMRSITE,GMRSITE(GMRVITY))=$G(GMRVDFLT(1)) G OTHERQ
  1. G ASK3:GMRVITY="WT",ASK1
  1. OTHERQ ;
  1. Q:GMROUT!(GMRENTY<5) D OTHERQ^GMRVQUAL
  1. Q
  1. CHECK ;
  1. I GLINE>14 D
  1. . W !,"<Ret> to continue " S J="" R J:DTIME S GLINE=0
  1. Q
  1. LIST ;LIST SITES FOR THE SELECTED VM TYPE
  1. Q:'$D(GMRW) S GMRZ="" F S GMRZ=$O(GMRW(GMRZ)) Q:GMRZ="" W !,?4,GMRZ
  1. Q