Package ca.cdr.api.pub.hl7v2
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 TypeMethodDescriptionboolean
This method should returntrue
if the mapper should process this messageClass<? extends ca.uhn.hl7v2.model.Message>
Returns the input message type for this translatorClass<? extends ca.uhn.hl7v2.model.Message>
Returns the output message type for this translatormap
(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
This method should returntrue
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 messagetheContext
- An object containing context information- Returns:
- A result containing the output of the mapping
- Throws:
ca.uhn.hl7v2.HL7Exception
-