public class MessageUtils extends Object implements groovy.lang.GroovyObject
Constructor and Description |
---|
MessageUtils() |
Modifier and Type | Method and Description |
---|---|
static ca.uhn.hl7v2.model.Message |
ack(ca.uhn.hl7v2.model.Message msg) |
static boolean |
atLeastVersion(ca.uhn.hl7v2.model.Message msg,
String targetVersion) |
static boolean |
atLeastVersion(String actualVersion,
String targetVersion) |
static boolean |
atLeastVersion(ca.uhn.hl7v2.Version actualVersion,
ca.uhn.hl7v2.Version targetVersion) |
static ca.uhn.hl7v2.model.Message |
copy(ca.uhn.hl7v2.model.Message source) |
static ca.uhn.hl7v2.model.Message |
defaultNak(ca.uhn.hl7v2.HL7Exception e,
ca.uhn.hl7v2.AcknowledgmentCode ackCode,
String version) |
static ca.uhn.hl7v2.model.Message |
defaultNak(ca.uhn.hl7v2.HL7Exception e,
ca.uhn.hl7v2.AcknowledgmentCode ackCode,
String version,
String sendingApplication,
String sendingFacility,
String msh9) |
static String |
dump(ca.uhn.hl7v2.model.Message msg) |
static ca.uhn.hl7v2.model.Message |
empty(ca.uhn.hl7v2.model.Message message) |
static String |
encodeHL7String(String s,
ca.uhn.hl7v2.model.Message msg) |
static String |
eventType(ca.uhn.hl7v2.model.Message msg) |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
static String |
hl7Now() |
Object |
invokeMethod(String method,
Object arguments) |
static ca.uhn.hl7v2.model.Message |
load(ca.uhn.hl7v2.HapiContext context,
String resource) |
static ca.uhn.hl7v2.model.Message |
load(ca.uhn.hl7v2.HapiContext context,
String resource,
String charset) |
static ca.uhn.hl7v2.model.Message |
make(ca.uhn.hl7v2.HapiContext context,
InputStream stream) |
static ca.uhn.hl7v2.model.Message |
make(ca.uhn.hl7v2.HapiContext context,
InputStream stream,
String charset) |
static ca.uhn.hl7v2.model.Message |
make(ca.uhn.hl7v2.HapiContext context,
String message) |
static ca.uhn.hl7v2.model.Message |
makeMessage(ca.uhn.hl7v2.HapiContext context,
String eventType,
String triggerEvent,
String version) |
static String |
messageStructure(ca.uhn.hl7v2.model.Message msg) |
static String |
messageStructure(String messageType,
String triggerEvent,
String version,
ca.uhn.hl7v2.parser.ModelClassFactory factory) |
static ca.uhn.hl7v2.model.Composite |
newComposite(String name,
ca.uhn.hl7v2.model.Message message,
Map map) |
static ca.uhn.hl7v2.model.Group |
newGroup(String name,
ca.uhn.hl7v2.model.Message message) |
static ca.uhn.hl7v2.model.Message |
newMessage(ca.uhn.hl7v2.HapiContext context,
String event,
String version) |
static ca.uhn.hl7v2.model.Primitive |
newPrimitive(String name,
ca.uhn.hl7v2.model.Message message,
String value) |
static ca.uhn.hl7v2.model.Segment |
newSegment(String name,
ca.uhn.hl7v2.model.Message message) |
static String |
pipeEncode(ca.uhn.hl7v2.model.Segment s) |
static String |
pipeEncode(ca.uhn.hl7v2.model.Type t) |
static ca.uhn.hl7v2.model.Message |
response(ca.uhn.hl7v2.model.Message msg,
String eventType,
String triggerEvent) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
static String |
triggerEvent(ca.uhn.hl7v2.model.Message msg) |
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public static boolean atLeastVersion(ca.uhn.hl7v2.model.Message msg, String targetVersion)
public static boolean atLeastVersion(ca.uhn.hl7v2.Version actualVersion, ca.uhn.hl7v2.Version targetVersion)
public static String hl7Now()
public static String pipeEncode(ca.uhn.hl7v2.model.Type t)
public static String pipeEncode(ca.uhn.hl7v2.model.Segment s)
public static String eventType(ca.uhn.hl7v2.model.Message msg)
public static String triggerEvent(ca.uhn.hl7v2.model.Message msg)
public static String messageStructure(String messageType, String triggerEvent, String version, ca.uhn.hl7v2.parser.ModelClassFactory factory)
public static String messageStructure(ca.uhn.hl7v2.model.Message msg)
public static ca.uhn.hl7v2.model.Message ack(ca.uhn.hl7v2.model.Message msg)
public static ca.uhn.hl7v2.model.Message defaultNak(ca.uhn.hl7v2.HL7Exception e, ca.uhn.hl7v2.AcknowledgmentCode ackCode, String version, String sendingApplication, String sendingFacility, String msh9)
public static ca.uhn.hl7v2.model.Message defaultNak(ca.uhn.hl7v2.HL7Exception e, ca.uhn.hl7v2.AcknowledgmentCode ackCode, String version)
public static ca.uhn.hl7v2.model.Message newMessage(ca.uhn.hl7v2.HapiContext context, String event, String version)
public static ca.uhn.hl7v2.model.Message response(ca.uhn.hl7v2.model.Message msg, String eventType, String triggerEvent)
public static ca.uhn.hl7v2.model.Message empty(ca.uhn.hl7v2.model.Message message)
public static ca.uhn.hl7v2.model.Message copy(ca.uhn.hl7v2.model.Message source)
public static ca.uhn.hl7v2.model.Message makeMessage(ca.uhn.hl7v2.HapiContext context, String eventType, String triggerEvent, String version)
public static ca.uhn.hl7v2.model.Segment newSegment(String name, ca.uhn.hl7v2.model.Message message)
public static ca.uhn.hl7v2.model.Group newGroup(String name, ca.uhn.hl7v2.model.Message message)
public static ca.uhn.hl7v2.model.Primitive newPrimitive(String name, ca.uhn.hl7v2.model.Message message, String value)
public static ca.uhn.hl7v2.model.Composite newComposite(String name, ca.uhn.hl7v2.model.Message message, Map map)
public static String dump(ca.uhn.hl7v2.model.Message msg)
public static ca.uhn.hl7v2.model.Message load(ca.uhn.hl7v2.HapiContext context, String resource)
public static ca.uhn.hl7v2.model.Message load(ca.uhn.hl7v2.HapiContext context, String resource, String charset)
public static ca.uhn.hl7v2.model.Message make(ca.uhn.hl7v2.HapiContext context, InputStream stream)
public static ca.uhn.hl7v2.model.Message make(ca.uhn.hl7v2.HapiContext context, InputStream stream, String charset)
public static ca.uhn.hl7v2.model.Message make(ca.uhn.hl7v2.HapiContext context, String message)
Copyright © 2018 Open eHealth Foundation. All rights reserved.