Changeset 599 for ccr/trunk/p
- Timestamp:
- Nov 5, 2009, 2:52:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CVITAL.m
r569 r599 1 C0CVITAL 1 C0CVITAL ; CCDCCR/CJE/GPL - CCR/CCD PROCESSING FOR VITALS ; 07/16/08 2 2 ;;1.0;C0C;;May 19, 2009; 3 3 ;Copyright 2008,2009 George Lilly, University of Minnesota and others. … … 22 22 Q 23 23 ; 24 EXTRACT(VITXML,DFN,VITOUTXML) 24 EXTRACT(VITXML,DFN,VITOUTXML) ; EXTRACT VITALS INTO PROVIDED XML TEMPLATE 25 25 ; 26 26 ; VITXML AND OUTXML ARE PASSED BY NAME SO GLOBALS CAN BE USED … … 39 39 Q 40 40 ; 41 VITVISTA 41 VITVISTA ; EXTRACT VITALS FROM VISTA INTO PROVIDED XML TEMPLATE 42 42 D VITALS^ORQQVI(.VITRSLT,DFN,C0CSDT,C0CEDT) 43 43 ;D VITALS^ORQQVI(.VITRSLT,DFN,C0CVSTRT,C0CVLMT) ; GPL LET GMR HANDLE THE DATES … … 199 199 Q 200 200 ; 201 VITRPMS 201 VITRPMS ; EXTRACT VITALS FROM RPMS INTO PROVIDED XML TEMPLATE 202 202 ; RPMS VITAL RPC ONLY RETURNS LATEST VITAL IN SPECIFIED DATE RANGE NOT ALL VITALS IN DATE RANGE 203 203 ; WE NEED TO SETUP THE VARIABLES THE INTERNAL CALL NEEDS TO BYPASS A HARD CODE OF ONE VITAL FOR DATE RANGE … … 241 241 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P($G(^AUPNVMSR($P(VITPTMP,U,1),12)),U,4) 242 242 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P($P(VITPTMP,U,5)," ",1) 243 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")= "in"243 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")=$P($P(VITPTMP,U,5)," ",2) 244 244 . . E I $P(VITPTMP,U,3)="WT" D 245 245 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED" … … 255 255 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P($G(^AUPNVMSR($P(VITPTMP,U,1),12)),U,4) 256 256 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P($P(VITPTMP,U,5)," ",1) 257 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")= "lbs"257 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")=$P($P(VITPTMP,U,5)," ",2) 258 258 . . E I $P(VITPTMP,U,3)="BP" D 259 259 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED" … … 269 269 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P($G(^AUPNVMSR($P(VITPTMP,U,1),12)),U,4) 270 270 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P($P(VITPTMP,U,5)," ",1) 271 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")= ""271 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")=$P($P(VITPTMP,U,5)," ",2) 272 272 . . E I $P(VITPTMP,U,3)="TMP" D 273 273 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED" … … 283 283 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P($G(^AUPNVMSR($P(VITPTMP,U,1),12)),U,4) 284 284 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P($P(VITPTMP,U,5)," ",1) 285 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")= "F"285 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")=$P($P(VITPTMP,U,5)," ",2) 286 286 . . E I $P(VITPTMP,U,3)="RS" D 287 287 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED" … … 297 297 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P($G(^AUPNVMSR($P(VITPTMP,U,1),12)),U,4) 298 298 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P($P(VITPTMP,U,5)," ",1) 299 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")= ""299 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")=$P($P(VITPTMP,U,5)," ",2) 300 300 . . E I $P(VITPTMP,U,3)="PU" D 301 301 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED" … … 311 311 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P($G(^AUPNVMSR($P(VITPTMP,U,1),12)),U,4) 312 312 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P($P(VITPTMP,U,5)," ",1) 313 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")= ""313 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")=$P($P(VITPTMP,U,5)," ",2) 314 314 . . E I $P(VITPTMP,U,3)="PA" D 315 315 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED" … … 325 325 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P($G(^AUPNVMSR($P(VITPTMP,U,1),12)),U,4) 326 326 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P($P(VITPTMP,U,5)," ",1) 327 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")= ""327 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")=$P($P(VITPTMP,U,5)," ",2) 328 328 . . E D 329 329 . . . ;W "IN VITAL: OTHER",! … … 361 361 Q 362 362 ; 363 VITDRPMS(VDT) 363 VITDRPMS(VDT) ; RUN DATE SORTING ALGORITHM FOR RPMS 364 364 ; VDT IS PASSED BY REFERENCE AND WILL CONTAIN THE ARRAY 365 365 ; OF DATES IN THE VITALS RESULTS … … 374 374 Q 375 375 ; 376 VITDVISTA(VDT) 376 VITDVISTA(VDT) ; RUN DATE SORTING ALGORITHM FOR VISTA 377 377 ; VDT IS PASSED BY REFERENCE AND WILL CONTAIN THE ARRAY 378 378 ; OF DATES IN THE VITALS RESULTS
Note:
See TracChangeset
for help on using the changeset viewer.