- Timestamp:
- Jul 7, 2008, 9:51:27 AM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRUTIL.m
r40 r51 21 21 ; In this case, set H, MM and S to "00" 22 22 S:('$L(H)&'$L(MM)&'$L(S)) (H,MM,S)="00" 23 I S="" S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_OFF 24 E S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_":"_S_OFF 23 S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_$S(S="":"",1:":"_S)_OFF ; Skip's code to fix hanging colon if no seconds 25 24 I $L($G(FORMAT)),FORMAT="DT" Q UTC ; Date with time. 26 25 E Q $P(UTC,"T") -
ccr/trunk/p/GPLCCR.m
r50 r51 13 13 S OARY=$NA(^TMP("GPLCCR",$J,DFN,"CCR",1)) 14 14 S ONAM="PAT_"_DFN_"_CCR_V1.xml" 15 S ODIR="/home/glilly/CCROUT"16 ;S ODIR="/home/cedwards/"15 ;S ODIR="/home/glilly/CCROUT" 16 S ODIR="/home/cedwards/" 17 17 ;S ODIR="/opt/wv/p/" 18 18 D OUTPUT^GPLXPATH(OARY,ONAM,ODIR) … … 83 83 N VMAP S VMAP=$NA(^TMP("GPLCCR",$J,DFN,"HEADER")) 84 84 ; K @VMAP 85 S @VMAP@("DATETIME")=$$FMDTOUTC^CCRUTIL($$ FMTHL7^XLFDT($$NOW^XLFDT),"DT")85 S @VMAP@("DATETIME")=$$FMDTOUTC^CCRUTIL($$NOW^XLFDT,"DT") 86 86 I IHDR="" D ; HEADER ARRAY IS NOT PROVIDED, USE DEFAULTS 87 87 . S @VMAP@("ACTORPATIENT")="ACTORPATIENT_"_DFN -
ccr/trunk/p/GPLVITALS.m
r50 r51 22 22 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED" 23 23 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT") 24 . . . W "CONVERTED DATE TIME: ",@VITVMAP@("VITALSIGNSEXACTDATETIME"),!25 24 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="HEIGHT" 26 . . . ;S @VITVMAP@("VITALSIGNSSOURCEACTORID")=""25 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 27 26 . . . S @VITVMAP@("VITALSIGNSTESTOBJECTID")="VITALTEST"_J 28 27 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" … … 31 30 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="" 32 31 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")="" 33 . . . ;S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")=""32 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 34 33 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) 35 34 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")="in" … … 39 38 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT") 40 39 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="WEIGHT" 41 . . . ;S @VITVMAP@("VITALSIGNSSOURCEACTORID")=""40 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 42 41 . . . S @VITVMAP@("VITALSIGNSTESTOBJECTID")="VITALTEST"_J 43 42 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" … … 46 45 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="" 47 46 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")="" 48 . . . ;S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")=""47 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 49 48 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) 50 49 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")="lbs" … … 54 53 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT") 55 54 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="OTHER VITAL" 56 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")=" "55 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 57 56 . . . S @VITVMAP@("VITALSIGNSTESTOBJECTID")="VITALTEST"_J 58 57 . . . S @VITVMAP@("VITALSIGNSTESTTYPETEXT")="OBSERVED" 59 58 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="OTHER" 60 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")=""61 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")=""62 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")=""63 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")=" "59 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVALUE")="" 60 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODINGSYSTEM")="" 61 . . . ;S @VITVMAP@("VITALSIGNSDESCRIPTIONCODEVERSION")="" 62 . . . S @VITVMAP@("VITALSIGNSTESTSOURCEACTORID")="ACTORPROVIDER_"_$P(^GMR(120.5,$P(VITPTMP,U,1),0),U,6) 64 63 . . . S @VITVMAP@("VITALSIGNSTESTRESULTVALUE")=$P(VITPTMP,U,3) 65 64 . . . S @VITVMAP@("VITALSIGNSTESTRESULTUNIT")="UNKNOWN"
Note:
See TracChangeset
for help on using the changeset viewer.