Class ValidationMessageSuppressingInterceptor
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.validation.ValidationMessageSuppressingInterceptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMessageSuppressionPatterns
(String... thePatterns) Supplies one or more patterns to suppress.addMessageSuppressionPatterns
(List<String> thePatterns) Supplies one or more patterns to suppress.ca.uhn.fhir.validation.ValidationResult
handle
(ca.uhn.fhir.validation.ValidationResult theResult)
-
Constructor Details
-
ValidationMessageSuppressingInterceptor
Constructor
-
-
Method Details
-
addMessageSuppressionPatterns
Supplies one or more patterns to suppress. Any validation messages (of any severity) will be suppressed if they match this pattern. Patterns are in Java Regular Expression format (as defined by thePattern
class) and are treated as partial maches. They are also case insensitive.For example, a pattern of
loinc.*1234
would suppress the following message:
The LOINC code 1234 is not valid
-
addMessageSuppressionPatterns
public ValidationMessageSuppressingInterceptor addMessageSuppressionPatterns(List<String> thePatterns) Supplies one or more patterns to suppress. Any validation messages (of any severity) will be suppressed if they match this pattern. Patterns are in Java Regular Expression format (as defined by thePattern
class) and are treated as partial maches. They are also case insensitive.For example, a pattern of
loinc.*1234
would suppress the following message:
The LOINC code 1234 is not valid
-
handle
public ca.uhn.fhir.validation.ValidationResult handle(ca.uhn.fhir.validation.ValidationResult theResult)
-