Package ca.cdr.api.pub.hl7v2.model
Class MappingResult
java.lang.Object
ca.cdr.api.pub.hl7v2.model.MappingResult
Holds the result of an HL7v2 message runtime mapping
-
Constructor Summary
ConstructorDescriptionConstructorMappingResult
(ca.uhn.hl7v2.model.Message theMessage) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMappingMessage
(MappingMessage theMappingMessage) Add a message relating to the mapping processvoid
addMappingMessages
(List<MappingMessage> theMappingMessages) Add mapping messages to the current listca.uhn.hl7v2.model.Message
Returns the resulting messageboolean
If set to true (default is false) the given message will not be processed by the systemboolean
If set to false (default is true) the given message will not be processed by the systemsetDoNotProcess
(boolean theDoNotProcess) If set to true (default is false) the given message will not be processed by the systemsetMessage
(ca.uhn.hl7v2.model.Message theMessage) Sets the resulting message
-
Constructor Details
-
MappingResult
public MappingResult()Constructor -
MappingResult
Constructor
-
-
Method Details
-
addMappingMessage
Add a message relating to the mapping process- Parameters:
theMappingMessage
- The message. Note that if the level isMappingMessage.MessageLevel.ERROR
thedo not process
flag will be automatically set.
-
getMappingMessages
- Returns:
- Returns all mapping messages added to this result
-
getMessage
Returns the resulting message -
setMessage
Sets the resulting message- Returns:
- Returns a reference to
this
for easy method chaining
-
isDoNotProcess
If set to true (default is false) the given message will not be processed by the system -
isDoProcess
If set to false (default is true) the given message will not be processed by the system -
setDoNotProcess
If set to true (default is false) the given message will not be processed by the system- Returns:
- Returns a reference to
this
for easy method chaining
-
addMappingMessages
Add mapping messages to the current list
-