HLFNC ;AISC/SAW/OAK-OIFO/RBN-Routine of Functions and Other Calls Used for HL7 Messages ;03/26/2008 11:34
Source file <HLFNC.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| HLNAME(X,HLECDE) | ;Convert a name in DHCP format to HL7 format
 ; INPUT: X - Name in DHCP format ; Optional - HLECDE - HL7 encoding chars  | 
 
  | 
| FMNAME(X,HLECDE) | ;Convert a name in HL7 format to DHCP format
 ; INPUT: X - Name in HL7 format ; Optional - HLECDE - HL7 encoding chars  | 
 
  | 
| HLDATE(X,Y) | ;Convert date, date/time or time only in FM format to HL7 format
 | 
 
  | 
| FMDATE(X) | ; Convert a date, date/time or time only in HL7 format to FM format
 | 
 
  | 
| M10(X,HLECDE) | ; M10  check digit scheme
 ; INPUT : X - ID number ; Optional HLECDE - Encoding chars  | 
 
  | 
| M11(X,HLECDE) | ; M11 check digit scheme
 ; INPUT : X - ID number ; Optional HLECDE - Encoding chars  | 
 
  | 
| OLDM10(X,HLECDE) | ;Calculate M10 checksum
 ; INPUT : X - String to calc checksum ; Optional HLECDE - Encoding chars  | 
|
| OLDM11(X,HLECDE) | ;Calculate M11 checksum
 ; INPUT : X - String to calc checksum ; Optional HLECDE - Encoding chars  | 
|
| UPPER(X) | ;Convert lowercase letters to uppercase
 | 
 
  | 
| HLPHONE(X,B,C) | ;Convert DHCP Phone Number to HL7 Format
 | 
 
  | 
| HLADDR(AD,GL,HLECDE) | ;Convert DHCP address fields to HL7 address format
 | 
 
  |