Interface IHl7V2MessageMapper


public interface IHl7V2MessageMapper
An HL7 v2 Message mapper is used to translate messages from one format to another when sending or receiving them. This can be used to provide mappings from a source system format to a format that Smile CDR understands.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    applies(String theMessageType, String theMessageTrigger)
    This method should return true if the mapper should process this message
    Class<? extends ca.uhn.hl7v2.model.Message>
    Returns the input message type for this translator
    Class<? extends ca.uhn.hl7v2.model.Message>
    Returns the output message type for this translator
    map(ca.uhn.hl7v2.model.Message theInput, MappingContext theContext)
    Translate a message
  • Method Details

    • getInputType

      Class<? extends ca.uhn.hl7v2.model.Message> getInputType()
      Returns the input message type for this translator
    • getOutputType

      Class<? extends ca.uhn.hl7v2.model.Message> getOutputType()
      Returns the output message type for this translator
    • applies

      boolean applies(String theMessageType, String theMessageTrigger)
      This method should return true if the mapper should process this message
    • map

      MappingResult map(ca.uhn.hl7v2.model.Message theInput, MappingContext theContext) throws ca.uhn.hl7v2.HL7Exception
      Translate a message
      Parameters:
      theInput - The source message
      theContext - An object containing context information
      Returns:
      A result containing the output of the mapping
      Throws:
      ca.uhn.hl7v2.HL7Exception