public class HL7Util
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
LOCAL_TIMEZONE_OFFSET  | 
| Constructor and Description | 
|---|
HL7Util()  | 
| Modifier and Type | Method and Description | 
|---|---|
static java.io.File | 
getHl7ArchivesDirectory()
Gets the destination directory for hl7 archives. 
 | 
protected static java.lang.String | 
getTimeZoneOffset(java.lang.String fullString,
                 java.util.Date givenDate)
Gets the timezone string for this given fullString. 
 | 
static java.util.Date | 
parseHL7Date(java.lang.String s)
Convenience method for parsing HL7 dates (treated just like a timestamp with only year,
 month, and day specified) 
 | 
static java.util.Date | 
parseHL7Time(java.lang.String s)
Converts an HL7 time into a java.util.Date object. 
 | 
static java.util.Date | 
parseHL7Timestamp(java.lang.String s)
Converts an HL7 timestamp into a java.util.Date object. 
 | 
public static java.util.Date parseHL7Timestamp(java.lang.String s)
                                        throws ca.uhn.hl7v2.HL7Exception
s - HL7 timestamp to be parsedca.uhn.hl7v2.HL7Exceptionprotected static java.lang.String getTimeZoneOffset(java.lang.String fullString,
                                                    java.util.Date givenDate)
fullString - the hl7 string being parsedgivenDate - the date that should be used if no timezone exists on the fullStringpublic static java.util.Date parseHL7Date(java.lang.String s)
                                   throws ca.uhn.hl7v2.HL7Exception
ca.uhn.hl7v2.HL7ExceptionparseHL7Timestamp(String)public static java.util.Date parseHL7Time(java.lang.String s)
                                   throws ca.uhn.hl7v2.HL7Exception
s - HL7 time to be convertedca.uhn.hl7v2.HL7Exceptionpublic static java.io.File getHl7ArchivesDirectory()
                                            throws APIException
APIExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.