|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.hl7.HL7Util
public class HL7Util
HL7-related utilities
Field Summary | |
---|---|
static java.lang.String |
LOCAL_TIMEZONE_OFFSET
|
Constructor Summary | |
---|---|
HL7Util()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCAL_TIMEZONE_OFFSET
Constructor Detail |
---|
public HL7Util()
Method Detail |
---|
public static java.util.Date parseHL7Timestamp(java.lang.String s) throws ca.uhn.hl7v2.HL7Exception
s
- HL7 timestamp to be parsed
ca.uhn.hl7v2.HL7Exception
protected 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 fullString
public static java.util.Date parseHL7Date(java.lang.String s) throws ca.uhn.hl7v2.HL7Exception
ca.uhn.hl7v2.HL7Exception
parseHL7Timestamp(String)
public static java.util.Date parseHL7Time(java.lang.String s) throws ca.uhn.hl7v2.HL7Exception
s
- HL7 time to be converted
ca.uhn.hl7v2.HL7Exception
public static java.io.File getHl7ArchivesDirectory() throws APIException
APIException
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |