source: WorldVistAEHR/trunk/r/GEN_MED_REC_VITALS-GMRV/GMRVGR5.m@ 1604

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

initial load of WorldVistAEHR

File size: 1.3 KB
Line 
1GMRVGR5 ;HIRMFO/RM,YH-TMP TO EXTRACT DATA FROM IO PAKAGE ;3/18/97
2 ;;4.0;Vitals/Measurements;;Apr 25, 1997
3IO ; INPUT VARS: DFN=PATIENT IEN
4 ; GMRFIN=END DATE OF EXTRACT
5 ; GMRSTRT=START DATE OF EXTRACT
6 ; GMROUT=0 (WILL BE SET IF ABNORMAL RESULTS)
7 ; GRPT=TYPE OF REPORT DATA EXTRACTED FOR
8 ; OUTPUT VARS: GMROUT=1 (IF ABNORMAL RESULTS), SSN=PT'S SSN
9 ; GMRAGE=AGE OF PATIENT, GMRBED=ROOM-BED FOR PATIENT
10 ; GMRSEX=PATIENT SEX, GMRVADM=PATIENT'S ADMISSION DATE
11 ; GMRWARD=PTR TO 42 OF PT LOCATION, GMRWARD(1)=FT PT. LOC
12 ; AND GMR( WHICH HAS PT IO DATA OVER D/T RANGE
13 N GMRNAM S GQT=0,GNN=$O(^GMRD(126.95,0)),GNN=$G(^GMRD(126.95,+GNN,1)),GMRNIT=$S($P(GNN,"^"):$P(GNN,"^"),1:2300),GMRDAY=$S($P(GNN,"^",2):$P(GNN,"^",2),1:"0700"),GMREVE=$S($P(GNN,"^",3):$P(GNN,"^",3),1:1500)
14 D STARTD^GMRYRP1,PT^GMRYUT0,^GMRYRP2,REPORT1^GMRYRP3
15 K DA,GAMOUNT,GBLNK,GCSHFT,GCURDT,GDATE,GDAY,GDSHFT,GDTFIN,GDTSTRT,GESHFT,GHR,GIN,GINDT,GIO,GITEM,GIVSTRT,GIVTYP,GLASTDT,GLN,GMRBTH,GMRDAY,GMRDIAG,GMREVE,GMRINDT,GMRNAM,GMRNIT,GMRX,GGNSHFT,GNXNSF,GNXTDT,GOP,GOPT,GOUT,GQT,GSHIFT,GSITE,GSTRT,GTEXT
16 K GTOTIN,GTOTLI,GTOTLO,GTOTOUT,GTYP,GTYPE,GTYPI,GTYPO,GX,GY,II,JJ,KK,N,GGNDATE,GNN,GNSH,VAROOT,^TMP($J,"GMRY")
17 Q
18QIO ; KILL OUTPUT VARIABLES FROM IO SUBR.
19 K GMRAGE,GMRBED,GMRSEX,GMRVADM,GMR,SSN
20 Q
Note: See TracBrowser for help on using the repository browser.