Changeset 383
- Timestamp:
- Feb 26, 2009, 5:32:34 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CPARMS.m
r356 r383 36 36 I '$D(@C0CPARMS@("LABLIMIT")) S @C0CPARMS@("LABLIMIT")="T-360" ;ONE YR WORTH 37 37 I '$D(@C0CPARMS@("LABSTART")) S @C0CPARMS@("LABSTART")="T" ;TODAY 38 I '$D(@C0CPARMS@("VITLIMIT")) S @C0CPARMS@("VITLIMIT")="T-360" ;ONE YEAR VITALS 39 I '$D(@C0CPARMS@("VITSTART")) S @C0CPARMS@("VITSTART")="T" ;TODAY 38 40 Q 39 41 ; -
ccr/trunk/p/GPLLABS.m
r368 r383 143 143 . S C0CNSSN=1 ; SET NO SSN FLAG 144 144 S C0CSPC="*" ; LOOKING FOR ALL LABS 145 I $D(^TMP("GPLCCR","RPMS")) D ; RUNNING RPMS 146 . D DT^DILF(,"T-365",.C0CSDT) ; START DATE ONE YEAR AGO TO LIMIT VOLUME 147 E D DT^DILF(,"T-5000",.C0CSDT) ; START DATE LONG AGO TO GET EVERYTHING 148 D DT^DILF(,"T",.C0CEDT) ; END DATE TODAY 145 ;I $D(^TMP("GPLCCR","RPMS")) D ; RUNNING RPMS 146 ;. D DT^DILF(,"T-365",.C0CSDT) ; START DATE ONE YEAR AGO TO LIMIT VOLUME 147 ;E D DT^DILF(,"T-5000",.C0CSDT) ; START DATE LONG AGO TO GET EVERYTHING 148 ;D DT^DILF(,"T",.C0CEDT) ; END DATE TODAY 149 S C0CLLMT=$$GET^C0CPARMS("LABLIMIT") ; GET THE LIMIT PARM 150 S C0CLSTRT=$$GET^C0CPARMS("LABSTART") ; GET START PARM 151 D DT^DILF(,C0CLLMT,.C0CSDT) ; 152 W "LAB LIMIT: ",C0CLLMT,! 153 D DT^DILF(,C0CLSTRT,.C0CEDT) ; END DATE TODAY - IMPLEMENT END DATE PARM 149 154 S C0CR=$$GCPR^LA7QRY(C0CPTID,C0CSDT,C0CEDT,C0CSPC,C0CSPC) ; CALL LAB LOOKUP 150 155 Q … … 156 161 I '$D(C0CQT) S C0CQT=0 157 162 I '$D(DFN) S DFN=1 ; DEFAULT TEST PATIENT 158 I '$D(^ KVAI(0)) D SETTBL ;INITIALIZE LAB TABLE159 I ^ KBAI(0)'="V2" D SETTBL ;NEED NEWEST VERSION163 I '$D(^TMP("GPLCCR","LABTBL",0)) D SETTBL ;INITIALIZE LAB TABLE 164 I ^TMP("GPLCCR","LABTBL",0)'="V3" D SETTBL ;NEED NEWEST VERSION 160 165 I '$D(^TMP("HLS",$J,1)) D GHL7 ; GET HL7 MGS IF NOT ALREADY DONE 161 S C0CTAB=$NA(^ KBAI) ; BASE OF OBX TABLE166 S C0CTAB=$NA(^TMP("GPLCCR","LABTBL")) ; BASE OF OBX TABLE 162 167 S C0CHB=$NA(^TMP("HLS",$J)) 163 168 S C0CI="" … … 375 380 S X("OBX","OBX16")="16^00584^Responsible Observer" 376 381 S X("OBX","OBX17")="17^00936^Observation Method" 377 M ^KBAI=X ; SET VALUES IN ^KBAI 378 S ^KBAI(0)="V2" 379 Q 380 ; 382 K ^TMP("GPLCCR","LABTBL") 383 M ^TMP("GPLCCR","LABTBL")=X ; SET VALUES IN LAB TBL 384 S ^TMP("GPLCCR","LABTBL",0)="V3" 385 Q 386 ; -
ccr/trunk/p/GPLVITAL.m
r376 r383 27 27 ; 28 28 N VITRSLT,J,K,VITPTMP,X,VITVMAP,TBUF,VORDR 29 D VITALS^ORQQVI(.VITRSLT,DFN,"","") 29 S C0CVLMT=$$GET^C0CPARMS("VITLIMIT") ; GET THE LIMIT PARM 30 S C0CVSTRT=$$GET^C0CPARMS("VITSTART") ; GET START PARM 31 D DT^DILF(,C0CVLMT,.C0CSDT) ; 32 W "VITALS START: ",C0CVSTRT," LIMIT: ",C0CVLMT,! 33 D DT^DILF(,C0CVSTRT,.C0CEDT) ; END DATE TODAY - IMPLEMENT END DATE PARM 34 D VITALS^ORQQVI(.VITRSLT,DFN,C0CSDT,C0CEDT) 30 35 I '$D(VITRSLT(1)) S @VITOUTXML@(0)=0 Q ; RETURN NOT FOUND AND QUIT 31 36 I $P(VITRSLT(1),U,2)="No vitals found." D Q ; NULL RESULT FROM RPC
Note:
See TracChangeset
for help on using the changeset viewer.