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
Nested ClassesModifier and TypeClassDescriptionstatic enumSeverity levelstatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructorMappingMessage(String thePath, MappingMessage.PathType thePathType, MappingMessage.MessageLevel theLevel, String theMessage) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLevel()getPath()inthashCode()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 benullor empty) to the location in the message where the issue was detected, such asPATIENT_RESULT/PID-3(1)-2theLevel- The severity. Note that adding a message with levelMappingMessage.MessageLevel.ERRORindicates 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.ERRORindicates 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
nullor 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 benullor empty) to the location in the message where the issue was detected, such asPATIENT_RESULT/PID-3(1)-2
-
hashCode
-
toString
-