Class MappingResult

java.lang.Object
ca.cdr.api.pub.hl7v2.model.MappingResult

public class MappingResult extends Object
Holds the result of an HL7v2 message runtime mapping
See Also:
  • Constructor Details

    • MappingResult

      public MappingResult()
      Constructor
    • MappingResult

      public MappingResult(ca.uhn.hl7v2.model.Message theMessage)
      Constructor
  • Method Details

    • addMappingMessage

      public void addMappingMessage(MappingMessage theMappingMessage)
      Add a message relating to the mapping process
      Parameters:
      theMappingMessage - The message. Note that if the level is MappingMessage.MessageLevel.ERROR the do not process flag will be automatically set.
    • getMappingMessages

      Returns:
      Returns all mapping messages added to this result
    • getMessage

      public ca.uhn.hl7v2.model.Message getMessage()
      Returns the resulting message
    • setMessage

      public MappingResult setMessage(ca.uhn.hl7v2.model.Message theMessage)
      Sets the resulting message
      Returns:
      Returns a reference to this for easy method chaining
    • isDoNotProcess

      public boolean isDoNotProcess()
      If set to true (default is false) the given message will not be processed by the system
    • isDoProcess

      public boolean isDoProcess()
      If set to false (default is true) the given message will not be processed by the system
    • setDoNotProcess

      public MappingResult setDoNotProcess(boolean theDoNotProcess)
      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

      public void addMappingMessages(List<MappingMessage> theMappingMessages)
      Add mapping messages to the current list