Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/HEALTH_LEVEL_SEVEN-HL/HLFNC.m

    r628 r636  
    1 HLFNC ;AISC/SAW/OAK-OIFO/RBN-Routine of Functions and Other Calls Used for HL7 Messages  ;03/26/2008  11:34
    2  ;;1.6;HEALTH LEVEL SEVEN;**38,42,51,66,141**;Oct 13, 1995;Build 11
    3  ;Per VHA Directive 2004-038, this routine should not be modified.
    4  ;
     1HLFNC ;AISC/SAW-Routine of Functions and Other Calls Used for HL7 Messages ;08/03/2000  15:45
     2 ;;1.6;HEALTH LEVEL SEVEN;**38,42,51,66**;Oct 13, 1995
    53HLNAME(X,HLECDE) ;Convert a name in DHCP format to HL7 format
    64 ; INPUT: X - Name in DHCP format
     
    5553 Q $S(Y="DT":$E(%,1,8),1:%)
    5654 ;
    57 FMDATE(X) ; Convert a date, date/time or time only in HL7 format to FM format
     55FMDATE(X) ;Convert a date, date/time or time only in HL7 format to FM format
    5856 I X="" Q ""
    5957 N %
     
    160158 Q:'$D(X) ""  Q:$L(X)<7 ""
    161159 N I,Y,Y1,Z S B=$S('$D(B):"",1:"B"_B),C=$S('$D(C):"",1:"C"_C)
    162  ;
    163  ; patch HL*1.6*141 start
    164  ; S Y="" F I=1:1:$L(X) S Y=Y_$S($E(X,I)?1N:$E(X,I),"X,x"[$E(X,I)&('$D(Z)):"X",1:"") I "X,x"[$E(X,I) S Z=""
    165  N CH
    166  S Y=""
    167  F I=1:1:$L(X) D
    168  . S CH=$E(X,I)
    169  . ; Next line modified by RBN
    170  . ;S Y=Y_$S(CH?1N:CH,"Xx"[CH&('$D(Z)):"X",1:"")
    171  . S Y=Y_$S(CH?1N:CH,"Xx,*"[CH&('$D(Z)):"X",1:"")
    172  . I "Xx"[CH S Z=""
    173  ;
    174  ; the number, following "X" character, should be greater than 0
    175  I Y["X",+$P(Y,"X",2)<1 S Y=$P(Y,"X")
    176  ; patch HL*1.6*141 end
    177  ;
     160 S Y="" F I=1:1:$L(X) S Y=Y_$S($E(X,I)?1N:$E(X,I),"X,x"[$E(X,I)&('$D(Z)):"X",1:"") I "X,x"[$E(X,I) S Z=""
    178161 I $L(Y)<7 Q ""
    179162 S Y1=$S(Y["X":"X"_$P(Y,"X",2),1:""),Y=$P(Y,"X") I $L(Y)<7 Q ""
Note: See TracChangeset for help on using the changeset viewer.