Class MessageUtils
java.lang.Object
org.openehealth.ipf.modules.hl7.message.MessageUtils
- All Implemented Interfaces:
GroovyObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanatLeastVersion(Message msg, String targetVersion) static booleanatLeastVersion(Version actualVersion, Version targetVersion) static booleanatLeastVersion(String actualVersion, String targetVersion) static MessagecopyMessage(Message source) static MessagedefaultNak(HL7Exception e, AcknowledgmentCode ackCode, String version) static MessagedefaultNak(HL7Exception e, AcknowledgmentCode ackCode, String version, String sendingApplication, String sendingFacility, String msh9) static Messagestatic StringencodeHL7String(String s, Message msg) static Stringstatic Stringhl7Now()static Messageload(HapiContext context, String resource) static Messageload(HapiContext context, String resource, String charset) static Messagemake(HapiContext context, InputStream stream) static Messagemake(HapiContext context, InputStream stream, String charset) static Messagemake(HapiContext context, String message) static MessagemakeMessage(HapiContext context, String eventType, String triggerEvent, String version) static StringmessageStructure(Message msg) static StringmessageStructure(String messageType, String triggerEvent, String version, ModelClassFactory factory) static CompositenewComposite(String name, Message message, Map map) static Groupstatic MessagenewMessage(HapiContext context, String event, String version) static PrimitivenewPrimitive(String name, Message message, String value) static SegmentnewSegment(String name, Message message) static Messagevoidstatic StringtriggerEvent(Message msg) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
getProperty, invokeMethod, setProperty
-
Constructor Details
-
MessageUtils
public MessageUtils()
-
-
Method Details
-
getMetaClass
- Specified by:
getMetaClassin interfaceGroovyObject
-
setMetaClass
- Specified by:
setMetaClassin interfaceGroovyObject
-
atLeastVersion
-
atLeastVersion
-
atLeastVersion
-
hl7Now
-
encodeHL7String
-
eventType
-
triggerEvent
-
messageStructure
public static String messageStructure(String messageType, String triggerEvent, String version, ModelClassFactory factory) -
messageStructure
-
defaultNak
public static Message defaultNak(HL7Exception e, AcknowledgmentCode ackCode, String version, String sendingApplication, String sendingFacility, String msh9) -
defaultNak
-
newMessage
-
response
-
empty
-
copyMessage
-
makeMessage
public static Message makeMessage(HapiContext context, String eventType, String triggerEvent, String version) -
newSegment
-
newGroup
-
newPrimitive
-
newComposite
-
load
-
load
-
make
-
make
-
make
-