Changeset 36 for ccr/trunk/p/CCRUTIL.m


Ignore:
Timestamp:
Jul 3, 2008, 4:54:25 PM (16 years ago)
Author:
Christopher Edwards
Message:

switch proccessing of vitals and problems so CCR would validate
added date time for ccr
cleaned up template ccr (more to come)
more work done in vitals section

File:
1 edited

Legend:

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

    r15 r36  
    1 CCRUTIL ;CCRCCD/SMH - Various Utilites for generating the CCR/CCD;06/15/08
     1CCRUTIL ;CCRCCD/SMH - Various Utilites for generating the CCR/CCD;06/15/08
    22        ;;0.1;CCRCCD;;Jun 15, 2008;
    3 
     3       
    44        W "No Entry at Top!" Q
    5 
    6 FMDTOUTC(DATE,FORMAT) ; Convert Fileman Date to UTC Date Format; PUBLIC; Extrinsic
     5       
     6FMDTOUTC(DATE,FORMAT)   ; Convert Fileman Date to UTC Date Format; PUBLIC; Extrinsic
    77        ; FORMAT is Format of Date. Can be either D (Day) or DT (Date and Time)
    88        ; If not passed, or passed incorrectly, it's assumed that it is D.
     
    1616        S H=$E(DATE,9,10)
    1717        S MM=$E(DATE,11,12)
    18         S S=$E(DATE,12,13)
     18        S S=$E(DATE,13,14)
    1919        S OFF=$$TZ^XLFDT ; See Kernel Manual for documentation.
    2020        ; If H, MM and S are empty, it means that the FM date didn't supply the time.
    2121        ; In this case, set H, MM and S to "00"
    2222        S:('$L(H)&'$L(MM)&'$L(S)) (H,MM,S)="00"
    23         S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_":"_S_OFF
     23        I S="" S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_OFF
     24        E  S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_":"_S_OFF
    2425        I $L($G(FORMAT)),FORMAT="DT" Q UTC ; Date with time.
    2526        E  Q $P(UTC,"T")
Note: See TracChangeset for help on using the changeset viewer.