Changeset 396 for ccr/trunk


Ignore:
Timestamp:
Mar 15, 2009, 8:14:48 PM (16 years ago)
Author:
Sam Habiel
Message:

Changed CCRUTIL to C0CUTIL

Location:
ccr/trunk/p
Files:
16 edited
1 moved

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CALERT.m

    r391 r396  
    110110 . D GETN1^C0CRNF("C0CG1",120.8,DFN,"B") ;GET VALUES BY NAME
    111111 . S C0CT=$$ZVALUEI^C0CRNF("ORIGINATION DATE/TIME","C0CG1")
    112  . S @ALTVMAP@("ALERTDATETIME")=$$FMDTOUTC^CCRUTIL(C0CT)
     112 . S @ALTVMAP@("ALERTDATETIME")=$$FMDTOUTC^C0CUTIL(C0CT)
    113113 . K @ALTARYTMP
    114114 . D MAP^C0CXPATH(ALTXML,ALTVMAP,ALTARYTMP)
  • ccr/trunk/p/C0CCCD.m

    r392 r396  
    184184    N VMAP S VMAP=$NA(^TMP("C0CCCR",$J,DFN,"HEADER"))
    185185    ; K @VMAP
    186     S @VMAP@("DATETIME")=$$FMDTOUTC^CCRUTIL($$NOW^XLFDT,"DT")
     186    S @VMAP@("DATETIME")=$$FMDTOUTC^C0CUTIL($$NOW^XLFDT,"DT")
    187187    I IHDR="" D  ; HEADER ARRAY IS NOT PROVIDED, USE DEFAULTS
    188188    . S @VMAP@("ACTORPATIENT")="ACTORPATIENT_"_DFN
  • ccr/trunk/p/C0CCCR.m

    r391 r396  
    145145 N VMAP S VMAP=$NA(^TMP("C0CCCR",$J,DFN,"HEADER"))
    146146 ; K @VMAP
    147  S @VMAP@("DATETIME")=$$FMDTOUTC^CCRUTIL($$NOW^XLFDT,"DT")
     147 S @VMAP@("DATETIME")=$$FMDTOUTC^C0CUTIL($$NOW^XLFDT,"DT")
    148148 ; I IHDR="" D  ; HEADER ARRAY IS NOT PROVIDED, USE DEFAULTS
    149149 D  ; ALWAYS MAP THESE VARIABLES
  • ccr/trunk/p/C0CIMMU.m

    r391 r396  
    7979 . . D GETN^C0CRNF("C0CI",9000010.11,C0CIEN) ; GET THE FILEMAN RECORD FOR IENS
    8080 . . W C0CIEN,"_",C0CIMD
    81  . . S C0CT=$$FMDTOUTC^CCRUTIL(9999999-C0CIMD,"DT") ; FORMAT DATE/TIME
     81 . . S C0CT=$$FMDTOUTC^C0CUTIL(9999999-C0CIMD,"DT") ; FORMAT DATE/TIME
    8282 . . W C0CT,!
    8383 . . S @VMAP@("IMMUNEOBJECTID")="IMMUNIZATION_"_C0CC ;UNIQUE OBJECT ID
  • ccr/trunk/p/C0CLABS.m

    r391 r396  
    183183 . . S C0CX1=XV("RESULTASSESSMENTDATETIME") ;DATE TIME IN HL7 FORMAT
    184184 . . S C0CX2=$$HL7TFM^XLFDT(C0CX1,"L") ;FM DT LOCAL
    185  . . S XV("RESULTASSESSMENTDATETIME")=$$FMDTOUTC^CCRUTIL(C0CX2,"DT") ;UTC TIME
     185 . . S XV("RESULTASSESSMENTDATETIME")=$$FMDTOUTC^C0CUTIL(C0CX2,"DT") ;UTC TIME
    186186 . . M @C0CLB@(C0CLI)=XV ; PERSIST THE OBR VARS
    187187 . . S C0CLOBX=0 ; MARK THE BEGINNING OF A NEW SECTION
     
    221221 . . S C0CX1=XV("RESULTTESTDATETIME") ;DATE TIME IN HL7 FORMAT
    222222 . . S C0CX2=$$HL7TFM^XLFDT(C0CX1,"L") ;FM DT LOCAL
    223  . . S XV("RESULTTESTDATETIME")=$$FMDTOUTC^CCRUTIL(C0CX2,"DT") ;UTC TIME
     223 . . S XV("RESULTTESTDATETIME")=$$FMDTOUTC^C0CUTIL(C0CX2,"DT") ;UTC TIME
    224224 . . ; I 'C0CQT ZWR XV
    225225 . . M @C0CLB2@(C0CLOBX)=XV ; PERSIST THE TEST RESULT VARIABLES
  • ccr/trunk/p/C0CPROBS.m

    r391 r396  
    5454 . S @VMAP@("PROBLEMCODINGVERSION")=""
    5555 . S @VMAP@("PROBLEMCODEVALUE")=$P(PTMP,U,4)
    56  . S @VMAP@("PROBLEMDATEOFONSET")=$$FMDTOUTC^CCRUTIL($P(PTMP,U,5),"DT")
    57  . S @VMAP@("PROBLEMDATEMOD")=$$FMDTOUTC^CCRUTIL($P(PTMP,U,6),"DT")
     56 . S @VMAP@("PROBLEMDATEOFONSET")=$$FMDTOUTC^C0CUTIL($P(PTMP,U,5),"DT")
     57 . S @VMAP@("PROBLEMDATEMOD")=$$FMDTOUTC^C0CUTIL($P(PTMP,U,6),"DT")
    5858 . S @VMAP@("PROBLEMSC")=$P(PTMP,U,7)
    5959 . S @VMAP@("PROBLEMSE")=$P(PTMP,U,8)
     
    6666 . S @VMAP@("PROBLEMSERVICE")=$P(PTMP,U,13)
    6767 . S @VMAP@("PROBLEMHASCMT")=$P(PTMP,U,14)
    68  . S @VMAP@("PROBLEMDTREC")=$$FMDTOUTC^CCRUTIL($P(PTMP,U,15),"DT")
    69  . S @VMAP@("PROBLEMINACT")=$$FMDTOUTC^CCRUTIL($P(PTMP,U,16),"DT")
     68 . S @VMAP@("PROBLEMDTREC")=$$FMDTOUTC^C0CUTIL($P(PTMP,U,15),"DT")
     69 . S @VMAP@("PROBLEMINACT")=$$FMDTOUTC^C0CUTIL($P(PTMP,U,16),"DT")
    7070 . S ARYTMP=$NA(@TARYTMP@(J))
    7171 . ; W "ARYTMP= ",ARYTMP,!
  • ccr/trunk/p/C0CRPMS.m

    r345 r396  
    3737 F  S G=$O(^AUPNVSIT("AA",C0CDFN,G)) Q:(G="")!(GN>C0CCNT)  D  ;
    3838 . S GN=GN+1
    39  . W $$FMDTOUTC^CCRUTIL(9999999-G),!
     39 . W $$FMDTOUTC^C0CUTIL(9999999-G),!
    4040 Q
    4141 ;
     
    4848 F  S C0CG=$$NEXTV(C0CDFN,C0CG) Q:(C0CG="")!(GN'<C0CCNT)  D  ;
    4949 . S GN=GN+1
    50  . W $$FMDTOUTC^CCRUTIL(C0CG),!
     50 . W $$FMDTOUTC^C0CUTIL(C0CG),!
    5151 Q
    5252 ;
     
    7777 N C0CG S C0CG=""
    7878 F  S C0CG=$$NEXTV(C0CDFN,C0CG) Q:C0CG=""  D  ; LOOP BACKWARD THROUGH VISITS
    79  . W C0CG,"    ",$$FMDTOUTC^CCRUTIL(C0CG),!
     79 . W C0CG,"    ",$$FMDTOUTC^C0CUTIL(C0CG),!
    8080 . S APCDVLDT=C0CG
    8181 . D ^APCDVLK
  • ccr/trunk/p/C0CUTIL.m

    r394 r396  
    1 CCRUTIL ;CCRCCD/SMH - Various Utilites for generating the CCR/CCD;06/15/08
    2  ;;0.1;CCRCCD;;Jun 15, 2008;
    3  ;Copyright 2008 WorldVistA.  Licensed under the terms of the GNU
     1C0CUTIL ;WV/C0C/SMH - Various Utilites for generating the CCR/CCD;06/15/08
     2 ;;0.1;C0C;;Jun 15, 2008;
     3 ;Copyright 2008-2009 Sam Habiel & George Lily. 
     4 ;Licensed under the terms of the GNU
    45 ;General Public License See attached copy of the License.
    56 ;
     
    122123 Q
    123124 ;
     125RPMS ; Are we running on an RPMS system rather than Vista?
     126 Q $G(DUZ("AG")="I") ; If User Agency is Indian Health Service
  • ccr/trunk/p/C0CVITAL.m

    r391 r396  
    4646 D VITDATES(.VDATES) ; PULL OUT THE DATES INTO AN ARRAY
    4747 ; I DEBUG ZWR VDATES ;DEBUG
    48  S VCNT=$$SORTDT^CCRUTIL(.VSORT,.VDATES,-1) ; PUT VITALS IN REVERSE
     48 S VCNT=$$SORTDT^C0CUTIL(.VSORT,.VDATES,-1) ; PUT VITALS IN REVERSE
    4949 ; DATE ORDER AND COUNT THEM. VSORT CONTAINS INDIRECT INDEXES ONLY
    5050 S @VITTVMAP@(0)=VCNT ; SAVE NUMBER OF VITALS
     
    5656 . . S VITPTMP=VITRSLT(VSORT(J)) ; DATE SORTED VITAL FROM RETURN ARRAY
    5757 . . I DEBUG W "VITAL ",VSORT(J),!
    58  . . I DEBUG W VITRSLT(VSORT(J))," ",$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT"),!
     58 . . I DEBUG W VITRSLT(VSORT(J))," ",$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT"),!
    5959 . . I DEBUG W $P(VITPTMP,U,4),!
    6060 . . S @VITVMAP@("VITALSIGNSDATAOBJECTID")="VITAL"_J ; UNIQUE OBJID
    6161 . . I $P(VITPTMP,U,2)="HT" D
    6262 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    63  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     63 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    6464 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="HEIGHT"
    6565 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
     
    7575 . . E  I $P(VITPTMP,U,2)="WT" D
    7676 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    77  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     77 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    7878 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="WEIGHT"
    7979 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
     
    8989 . . E  I $P(VITPTMP,U,2)="BP" D
    9090 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    91  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     91 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    9292 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="BLOOD PRESSURE"
    9393 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
     
    103103 . . E  I $P(VITPTMP,U,2)="T" D
    104104 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    105  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     105 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    106106 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="TEMPERATURE"
    107107 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
     
    117117 . . E  I $P(VITPTMP,U,2)="R" D
    118118 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    119  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     119 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    120120 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="RESPIRATION"
    121121 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
     
    131131 . . E  I $P(VITPTMP,U,2)="P" D
    132132 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    133  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     133 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    134134 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="PULSE"
    135135 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
     
    145145 . . E  I $P(VITPTMP,U,2)="PN" D
    146146 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    147  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     147 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    148148 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="PAIN"
    149149 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
     
    160160 . . . ;W "IN VITAL:  OTHER",!
    161161 . . . S @VITVMAP@("VITALSIGNSDATETIMETYPETEXT")="OBSERVED"
    162  . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^CCRUTIL($P(VITPTMP,U,4),"DT")
     162 . . . S @VITVMAP@("VITALSIGNSEXACTDATETIME")=$$FMDTOUTC^C0CUTIL($P(VITPTMP,U,4),"DT")
    163163 . . . S @VITVMAP@("VITALSIGNSDESCRIPTIONTEXT")="OTHER VITAL"
    164164 . . . S @VITVMAP@("VITALSIGNSSOURCEACTORID")="ACTORSYSTEM_1"
  • ccr/trunk/p/CCRDPT.m

    r175 r396  
    111111 N DOB S DOB=$$GET1^DIQ(2,DFN,.03,"I")
    112112 ; Date in FM Date Format. Convert to UTC/ISO 8601.
    113  Q $$FMDTOUTC^CCRUTIL(DOB,"D")
     113 Q $$FMDTOUTC^C0CUTIL(DOB,"D")
    114114GENDER(DFN) ; Gender/Sex
    115115 Q $$GET1^DIQ(2,DFN,.02) ;
  • ccr/trunk/p/CCRMEDS.m

    r359 r396  
    111111 . S @MEDVMAP@("MEDOBJECTID")="MED"_(MEDCNT) ; UNIQUE OBJID FOR MEDS
    112112 . I $P(MEDPTMP,"^",11)="" S @MEDVMAP@("MEDISSUEDATETXT")=""
    113  . E  S @MEDVMAP@("MEDISSUEDATETXT")=$$FMDTOUTC^CCRUTIL($P(MEDPTMP,"^",11),"DT") ; GETS LAST FILL DATE
     113 . E  S @MEDVMAP@("MEDISSUEDATETXT")=$$FMDTOUTC^C0CUTIL($P(MEDPTMP,"^",11),"DT") ; GETS LAST FILL DATE
    114114 . S @MEDVMAP@("MEDISSUEDATE")=""
    115115 . S @MEDVMAP@("MEDLASTFILLDATETXT")=""
  • ccr/trunk/p/CCRMEDS1.m

    r347 r396  
    6060 . ; S @MAP@("MEDOBJECTID")="MED"_MED(.01) ;Rx Number
    6161 . S @MAP@("MEDISSUEDATETXT")="Issue Date"
    62  . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^CCRUTIL($P(MED(1),U))
     62 . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL($P(MED(1),U))
    6363 . S @MAP@("MEDLASTFILLDATETXT")="Last Fill Date"
    64  . S @MAP@("MEDLASTFILLDATE")=$$FMDTOUTC^CCRUTIL($P(MED(101),U))
     64 . S @MAP@("MEDLASTFILLDATE")=$$FMDTOUTC^C0CUTIL($P(MED(101),U))
    6565 . S @MAP@("MEDRXNOTXT")="Prescription Number"
    6666 . S @MAP@("MEDRXNO")=MED(.01)
  • ccr/trunk/p/CCRMEDS2.m

    r347 r396  
    6666 . S @MAP@("MEDISSUEDATETXT")="Issue Date"
    6767 . ; Field 6 is "Effective date", and we pull it in timson format w/ I
    68  . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^CCRUTIL($$GET1^DIQ(52.41,RXIEN,6,"I"),"DT")
     68 . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL($$GET1^DIQ(52.41,RXIEN,6,"I"),"DT")
    6969 . ; Med never filled; next 4 fields are not applicable.
    7070 . S @MAP@("MEDLASTFILLDATETXT")=""
  • ccr/trunk/p/CCRMEDS3.m

    r347 r396  
    6565 . S @MAP@("MEDISSUEDATETXT")="Documented Date"
    6666 . ; Field 6 is "Effective date", and we pull it in timson format w/ I
    67  . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^CCRUTIL(MED(11,"I"),"DT")
     67 . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL(MED(11,"I"),"DT")
    6868 . ; Med never filled; next 4 fields are not applicable.
    6969 . S @MAP@("MEDLASTFILLDATETXT")=""
  • ccr/trunk/p/CCRMEDS4.m

    r321 r396  
    6363 . S @MAP@("MEDOBJECTID")="MED_INPATIENT_UD"_RXIEN
    6464 . S @MAP@("MEDISSUEDATETXT")="Order Date"
    65  . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^CCRUTIL($P(MED(27),U),"DT")
     65 . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL($P(MED(27),U),"DT")
    6666 . S @MAP@("MEDLASTFILLDATETXT")="" ; For Outpatient
    6767 . S @MAP@("MEDLASTFILLDATE")="" ; For Outpatient
  • ccr/trunk/p/CCRMEDS6.m

    r374 r396  
    6969 . S @MAP@("MEDOBJECTID")="MED"_MEDCNT ; MEDCNT FOR ID
    7070 . S @MAP@("MEDISSUEDATETXT")="Issue Date"
    71  . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^CCRUTIL($P(MEDS(MEDCNT),U,13))
     71 . S @MAP@("MEDISSUEDATE")=$$FMDTOUTC^C0CUTIL($P(MEDS(MEDCNT),U,13))
    7272 . S @MAP@("MEDLASTFILLDATETXT")="Last Fill Date"
    73  . S @MAP@("MEDLASTFILLDATE")=$$FMDTOUTC^CCRUTIL($P(MEDS(MEDCNT),U,11))
     73 . S @MAP@("MEDLASTFILLDATE")=$$FMDTOUTC^C0CUTIL($P(MEDS(MEDCNT),U,11))
    7474 . S @MAP@("MEDRXNOTXT")="Prescription Number"
    7575 . S @MAP@("MEDRXNO")=$P(MEDS(MEDCNT),U,14)
  • ccr/trunk/p/CCRVA200.m

    r313 r396  
    1 CCRVA200 ;WV/CCDCCR/SMH - Routine to get Provider Data;07/13/2008
    2         ;;0.1;CCDCCR;;JUL 13, 2007;Build 0
    3  ;Copyright 2008 WorldVistA.  Licensed under the terms of the GNU
     1CCRVA200 ;WV/C0C/SMH - Routine to get Provider Data;07/13/2008
     2        ;;0.1;C0C;;JUL 13, 2007;Build 0
     3 ;Copyright 2008 Sam Habiel.  Licensed under the terms of the GNU
    44 ;General Public License See attached copy of the License.
    55 ;
Note: See TracChangeset for help on using the changeset viewer.