Package ca.cdr.api.pub.hl7v2.model
Class MappingMessage
java.lang.Object
ca.cdr.api.pub.hl7v2.model.MappingMessage
This class represents a message, issue detected, warning, etc. when processing a transaction
in Smile CDR. It can be used to track mapping errors, and will generally result in
log entries in the transaction log.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Severity levelstatic enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructorMappingMessage
(String thePath, MappingMessage.PathType thePathType, MappingMessage.MessageLevel theLevel, String theMessage) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
getLevel()
getPath()
int
hashCode()
setLevel
(MappingMessage.MessageLevel theLevel) setMessage
(String theMessage) setPath
(String thePath, MappingMessage.PathType thePathType) toString()
-
Field Details
-
LEVEL
- See Also:
-
MESSAGE
- See Also:
-
PATH
- See Also:
-
PATH_TYPE
- See Also:
-
-
Constructor Details
-
MappingMessage
public MappingMessage()Constructor -
MappingMessage
public MappingMessage(String thePath, MappingMessage.PathType thePathType, MappingMessage.MessageLevel theLevel, String theMessage) Constructor- Parameters:
thePath
- The terser path (may benull
or empty) to the location in the message where the issue was detected, such asPATIENT_RESULT/PID-3(1)-2
theLevel
- The severity. Note that adding a message with levelMappingMessage.MessageLevel.ERROR
indicates that the processing failed and should not be completed.theMessage
- The actual message
-
-
Method Details
-
getPathType
-
equals
-
getLevel
- Returns:
- The severity
-
setLevel
- Parameters:
theLevel
- The severity. Note that adding a message with levelMappingMessage.MessageLevel.ERROR
indicates that the processing failed and should not be completed.
-
getMessage
- Returns:
- The actual message
-
setMessage
- Parameters:
theMessage
- The actual message
-
getPath
- Returns:
- The terser path (may be
null
or empty) to the location in the message where the issue was detected, such asPATIENT_RESULT/PID-3(1)-2
-
setPath
- Parameters:
thePath
- The terser path (may benull
or empty) to the location in the message where the issue was detected, such asPATIENT_RESULT/PID-3(1)-2
-
hashCode
-
toString
-